/* ================================================================
   Cherry Pi AI — style.css
   Fonts: Newsreader (headline) · Plus Jakarta Sans (body/label)
   ================================================================ */

/* ── Design Tokens ── */
:root {
  /* Primary — deep red */
  --color-primary:            #ab0029;
  --color-primary-container:  #d21f3c;
  --color-on-primary:         #ffffff;
  --color-on-primary-container: #ffdad9;
  --color-primary-fixed:      #ffdad9;
  --color-primary-fixed-dim:  #ffb3b3;

  /* Secondary — muted mauve */
  --color-secondary:          #82505b;
  --color-on-secondary:       #ffffff;

  /* Tertiary — forest green */
  --color-tertiary:           #00612f;
  --color-on-tertiary:        #ffffff;
  --color-tertiary-fixed:     #6dfe9c;
  --color-on-tertiary-fixed:  #003919;

  /* Surfaces — warm cream */
  --color-background:             #fdf9f0;
  --color-surface:                #fdf9f0;
  --color-surface-variant:        #e6e2d9;
  --color-surface-container-low:  #f7f3ea;
  --color-surface-container-lowest: #ffffff;
  --color-on-surface:             #1c1110;
  --color-on-surface-variant:     #534341;

  /* Neutrals */
  --color-outline:         #906f6f;
  --color-outline-variant: #e4bdbd;

  /* Stone scale */
  --color-stone-50:  #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-900: #1c1917;

  /* Red accents */
  --color-red-600: #dc2626;
  --color-red-700: #b91c1c;
  --color-red-800: #991b1b;

  /* Typography */
  --font-headline: 'Newsreader', Georgia, serif;
  --font-body:     'Plus Jakarta Sans', system-ui, sans-serif;
  --font-label:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout */
  --max-w: 80rem;
  --px:    2rem;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: var(--color-primary-fixed);
  color: var(--color-on-surface);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-on-surface);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section-padding {
  padding-block: 3rem;
}

/* ── Cherry Blob organic shape ── */
.cherry-blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* ── Fruity Glass card effect ── */
.fruity-glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Cherry icon color ── */
.cherry-icon {
  color: var(--color-primary);
}

/* ── Scroll-in animation ── */
.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: show headshot immediately, no scroll-triggered fade, and pull it 20px closer to hero */
@media (max-width: 1023px) {
  .about-image-wrap.will-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .about.section-padding {
    padding-block-start: calc(3rem - 20px);
  }
}


/* ── Skip to main content (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(12, 10, 9, 0.8); /* stone-950/80 */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1rem 2rem;
  gap: 1rem;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .nav-logo {
    height: 28px;
  }
  /* Trim the bar's side padding and gaps to make room for Call + Email */
  .nav-inner {
    padding: 1rem;
    gap: 0.6rem;
  }
}

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-headline);
  letter-spacing: -0.025em;
}

.nav-links a {
  color: var(--color-stone-400);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f87171; /* red-400 — visible on dark bg */
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Tablet band only. At 2rem spacing the six links plus the button were 59px
   wider than the bar, which wrapped "Case Studies" onto two lines and pushed
   Get in Touch off the right edge. Bounded at both ends so it cannot leak
   down to phone widths, where .nav-inner already has its own padding. */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links {
    gap: 1.1rem;
  }
  .nav-inner {
    padding: 1rem 1.5rem;
  }
}

/* Nav actions group */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-actions {
    gap: 1rem;
  }
}

/* Nav phone link — hidden on small screens */
.nav-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-stone-400);
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-phone:hover {
  color: #f87171;
}

@media (min-width: 900px) {
  .nav-phone {
    display: flex;
  }
}

/* Mobile-only Call / Email buttons. Below 768px these replace the
   Get in Touch pill, which is hidden. Below 380px the words drop and
   the icons stand alone so the bar never crowds the logo. */
.nav-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease-in-out;
}

.nav-mini svg {
  flex-shrink: 0;
}

.nav-mini:active {
  transform: scale(0.95);
}

.nav-mini--call {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary);
}

.nav-mini--email {
  padding: calc(0.7rem - 1px) calc(0.85rem - 1px);
  border: 1px solid var(--color-stone-400);
  color: #e7e5e4;
}

@media (max-width: 359px) {
  .nav-mini span {
    display: none;
  }
  .nav-mini {
    padding: 0.7rem;
  }
  .nav-mini--email {
    padding: calc(0.7rem - 1px);
  }
}

@media (min-width: 768px) {
  .nav-mini {
    display: none;
  }
}

/* Book / Get-in-touch button — desktop only, see .nav-mini above */
.btn-book {
  display: none;
  background-color: var(--color-primary-container);
  color: var(--color-on-primary);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  transition: transform 0.2s ease-in-out;
  flex-shrink: 0;
  text-align: center;
}

.btn-book:hover {
  transform: scale(0.95);
  color: var(--color-on-primary);
}

@media (min-width: 768px) {
  .btn-book {
    display: inline-block;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-stone-400);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* Mobile dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: rgba(12, 10, 9, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 2rem 1.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--color-stone-400);
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: #f87171;
}


/* ================================================================
   STEM DIVIDER
   ================================================================ */
.stem-wrapper {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  margin-block: 2rem;
}

.stem-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-outline-variant) 20%,
    var(--color-outline-variant) 80%,
    transparent
  );
  opacity: 0.4;
}


/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 10rem;
    padding-bottom: 4rem;
  }
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 800px;
  height: 800px;
  background: rgba(171, 0, 41, 0.05);
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background-color: var(--color-tertiary-fixed);
  color: var(--color-on-tertiary-fixed);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-label);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--color-on-surface);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 56rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  color: var(--color-primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-secondary);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Hero CTA block — buttons on one line, social proof centred underneath */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* On a phone the two buttons stack full width so each is a comfortable tap target */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
  }
}

.btn-primary {
  text-align: center;
  padding: 1rem 2rem;
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-container));
  color: var(--color-on-primary);
  border-radius: 9999px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow:
    0 10px 15px -3px rgba(171, 0, 41, 0.2),
    0 4px 6px  -4px rgba(171, 0, 41, 0.2);
  transition: box-shadow 0.25s, transform 0.25s;
}

.btn-primary:hover {
  box-shadow:
    0 20px 25px -5px rgba(171, 0, 41, 0.25),
    0 8px  10px -6px rgba(171, 0, 41, 0.2);
  transform: translateY(-2px);
}

/* Outlined companion button — the phone number. Padding is 2px short of
   .btn-primary on each side so the border does not make it taller. */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: calc(1rem - 2px) calc(2rem - 2px);
  border: 2px solid var(--color-primary);
  border-radius: 9999px;
  background-color: transparent;
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.btn-secondary svg {
  flex-shrink: 0;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  transform: translateY(-2px);
}

/* Hero social proof badge */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hero-stars {
  display: flex;
  gap: 0.1rem;
  color: #fbbf24;
}

.hero-stars svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.35));
}

.hero-social-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-social-text:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}


/* ================================================================
   ABOUT
   ================================================================ */
.about {
  padding-block: 3rem;
  /* .blob-accent is pushed 2rem past the right edge and rotated 45deg, which
     on a phone made the whole document 415px wide inside a 375px screen. The
     page scrolled sideways and the fixed navbar stretched with it, leaving the
     hamburger 24px off screen. Clip it here rather than on body: "clip" leaves
     overflow-y visible, where "hidden" would force it to auto. */
  overflow-x: hidden;
  overflow-x: clip;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Text side */
.about-text {
  order: 2;
}

@media (min-width: 1024px) {
  .about-text { order: 1; }
}

.about-greeting {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.about-text h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--color-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-on-surface);
}

.trust-list li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-headline);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-outline);
}

.stat-divider {
  width: 1px;
  height: 3rem;
  background-color: rgba(228, 189, 189, 0.3);
  flex-shrink: 0;
}

/* Image side */
.about-image-wrap {
  position: relative;
  padding-inline: 1rem;
  order: 1;
}

@media (min-width: 1024px) {
  .about-image-wrap { order: 2; }
}

.about-image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 28rem;
  margin-inline: auto;
  position: relative;
  z-index: 10;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0  8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 4px solid #ffffff;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blob-behind {
  position: absolute;
  inset: 0;
  background: rgba(130, 80, 91, 0.05);
  transform: rotate(-12deg);
  z-index: -1;
}

.blob-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 12rem;
  height: 12rem;
  background: rgba(171, 0, 41, 0.1);
  transform: rotate(45deg);
  z-index: -1;
}


/* ================================================================
   SERVICES
   ================================================================ */
.services {
  background-color: var(--color-surface-container-low);
}

.section-header.center {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-sub {
  font-family: var(--font-label);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

a.service-card {
  text-decoration: none;
  color: inherit;
}

.service-card {
  background-color: var(--color-surface-container-lowest);
  padding: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(228, 189, 189, 0.2);
  box-shadow:
    inset 0 4px 0 var(--color-primary),
    0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow:
    inset 0 4px 0 var(--color-primary),
    0 16px 40px rgba(0,0,0,0.1);
  transform: translateY(-6px);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: background-color 0.3s, color 0.3s;
}

.icon-primary {
  background-color: rgba(171, 0, 41, 0.1);
  color: var(--color-primary);
}

.service-card:hover .icon-primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.service-card:hover .icon-primary svg {
  stroke: #ffffff;
}

.icon-tertiary {
  background-color: rgba(0, 97, 47, 0.1);
  color: var(--color-tertiary);
}

.service-card:hover .icon-tertiary {
  background-color: var(--color-tertiary);
  color: var(--color-on-tertiary);
}

.service-card:hover .icon-tertiary svg {
  stroke: #ffffff;
}

.service-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-secondary);
  line-height: 1.7;
}

.service-outcome {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(171, 0, 41, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}


/* ================================================================
   CASE STUDIES
   ================================================================ */
.case-studies {
  padding-block: 3rem;
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-header-text h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-sub-large {
  font-size: 1.125rem;
  color: var(--color-secondary);
}

/* View All button */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-label);
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: gap 0.2s;
}

.btn-link svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.btn-link:hover {
  gap: 0.875rem;
}

.btn-link:hover svg {
  transform: translateX(4px);
}

/* Light variant for use on dark backgrounds */
.btn-link--light {
  color: rgba(255, 255, 255, 0.75);
}

.btn-link--light:hover {
  color: #ffffff;
}

/* Case grid */
.case-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
}

.case-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-card:hover .case-image img {
  transform: scale(1.1);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 17, 16, 0.95) 0%,
    rgba(28, 17, 16, 0.4) 50%,
    transparent 100%
  );
  opacity: 0.9;
}

.case-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  color: #ffffff;
}

.case-tag {
  display: block;
  color: var(--color-primary-fixed-dim);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.case-content h3 {
  font-family: var(--font-headline);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.case-content p {
  color: var(--color-surface-variant);
  max-width: 28rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* Text-only case cards (no background image) */
.case-card--no-image {
  background-color: #1c1c17;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease;
}

.case-card--no-image:hover {
  background-color: #2a2a22;
}

.case-card--no-image .case-content {
  position: static;
  padding: 2rem 2rem 2.25rem;
  color: #ffffff;
}

.case-card--no-image .case-content p {
  -webkit-line-clamp: 3;
}


/* ================================================================
   REVIEWS
   ================================================================ */
.reviews {
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
  padding-top: 3rem;
  padding-bottom: 6rem;
  position: relative;
  scroll-margin-top: 6rem;
  overflow: hidden;
}

.reviews-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 28rem;
  height: 28rem;
  background: rgba(171, 0, 41, 0.06);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(4rem);
  transform: translate(50%, -50%);
  pointer-events: none;
}

.reviews-inner {
  position: relative;
  z-index: 1;
}

.reviews-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.reviews-header {
  margin-bottom: 0;
}

.reviews-header h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.reviews-sub {
  font-family: var(--font-label);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-on-surface-variant);
}

/* Review cards */
.reviews-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: inset 0 4px 0 var(--color-primary), 0 2px 8px rgba(0,0,0,0.06);
}

.stars {
  display: flex;
  gap: 0.125rem;
  color: #fbbf24;
  margin-bottom: 1.5rem;
}

.stars svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.4));
}

.review-quote {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--color-on-surface);
}

.review-divider {
  height: 1px;
  background: var(--color-outline-variant);
  margin-bottom: 1.5rem;
}

.reviewer {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-on-surface);
}


/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  background-color: var(--color-surface);
  padding-top: 6rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-section h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 48rem;
  margin-bottom: 0;
}

.cta-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-secondary);
  max-width: 38rem;
  line-height: 1.65;
  margin-inline: auto;
}

.cta-contact {
  margin-top: 0.25rem;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-family: var(--font-label);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.cta-phone:hover {
  color: var(--color-primary);
}

/* On mobile, make phone number easy to tap */
@media (max-width: 640px) {
  .cta-phone {
    font-size: 1.125rem;
    padding: 0.5rem 0;
  }
}

.btn-cta {
  display: inline-block;
  text-align: center;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: 1.5rem 3rem;
  border-radius: 9999px;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0  8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.25s, transform 0.25s;
}

.btn-cta:hover {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary);
  transform: translateY(-4px);
}


/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background-color: var(--color-stone-100);
  padding: 3rem 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-red-800);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a {
  color: var(--color-stone-500);
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--color-stone-200);
  padding-top: 2rem;
}

.footer-bottom p {
  color: var(--color-stone-500);
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: 9999px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0  8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
  z-index: 50;
  opacity: 0;
  transform: translateY(2.5rem);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background-color: var(--color-primary-container);
  transform: translateY(-4px);
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-page {
  min-height: 100vh;
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 60rem;
}

@media (min-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
  }
}

.contact-info h1 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-on-surface);
  margin-bottom: 1rem;
}

.contact-info h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.contact-info p {
  font-size: 1.05rem;
  color: var(--color-on-surface-variant);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-on-surface-variant);
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-detail-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-detail-item a {
  color: inherit;
  transition: color 0.2s;
}

.contact-detail-item a:hover {
  color: var(--color-primary);
}

.contact-divider {
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.contact-form-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-on-surface);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-on-surface);
  background-color: var(--color-background);
  border: 1.5px solid var(--color-outline-variant);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-stone-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(171, 0, 41, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.btn-submit {
  display: block;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background-color: var(--color-primary-container);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-stone-400);
  text-align: center;
}

.back-link {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: gap 0.2s;
}

.back-link:hover {
  gap: 0.65rem;
}

/* ================================================================
   CASE STUDY PAGES
   ================================================================ */
.case-study-hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background-color: var(--color-surface-container-low);
}

.case-study-tag {
  display: inline-block;
  background-color: rgba(171, 0, 41, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-label);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-study-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.case-study-hero p {
  font-size: 1.2rem;
  color: var(--color-secondary);
  max-width: 40rem;
  line-height: 1.7;
}

.case-study-image {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 1rem;
  margin-block: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.case-study-body {
  padding-block: 4rem;
}

.case-study-grid {
  display: grid;
  gap: 4rem;
  max-width: 52rem;
}

.case-study-section h2 {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-on-surface);
}

.case-study-section p,
.case-study-section li {
  font-size: 1.05rem;
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.case-study-section ul {
  padding-left: 1.5rem;
}

.result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.result-chip {
  background-color: rgba(171, 0, 41, 0.08);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(171, 0, 41, 0.15);
}


/* ================================================================
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ================================================================ */
.legal-hero {
  padding-top: 11rem;
  padding-bottom: 5rem;
  background-color: var(--color-surface-container-low);
  border-bottom: 1px solid var(--color-outline-variant);
}

.legal-page-tag {
  display: inline-block;
  background-color: rgba(171, 0, 41, 0.08);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-label);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.legal-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.legal-hero p {
  font-size: 0.875rem;
  color: var(--color-secondary);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-body {
  padding-block: 5rem;
}

.legal-container {
  max-width: 46rem;
}

/* Opening paragraph — styled as a lead */
.legal-container > p:first-child {
  font-size: 1.125rem;
  color: var(--color-on-surface);
  line-height: 1.85;
  font-weight: 500;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-outline-variant);
}

.legal-container h2 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-on-surface);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-container h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.2em;
  background-color: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-container p {
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.legal-container a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal-container a:hover {
  opacity: 0.75;
}

.legal-list {
  list-style: none !important;
  padding: 0 !important;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-list li {
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.75;
  padding-left: 1.5rem;
  position: relative;
}

.legal-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}


/* ================================================================
   REVIEWS PAGE
   ================================================================ */
.reviews-page-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .reviews-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-page-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stars--dark {
  color: #fbbf24;
}

.review-page-quote {
  flex: 1;
}

.review-page-quote p {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--color-on-surface);
  margin-bottom: 0.75rem;
}

.review-page-quote p:last-child {
  margin-bottom: 0;
}

.review-page-author {
  border-top: 1px solid var(--color-outline-variant);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-page-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-on-surface);
}

.review-page-title {
  font-size: 0.85rem;
  color: var(--color-secondary);
}


/* ================================================================
   SITEMAP PAGE
   ================================================================ */
.sitemap-hero {
  padding-top: 11rem;
  padding-bottom: 5rem;
  background-color: var(--color-surface-container-low);
  border-bottom: 1px solid var(--color-outline-variant);
}

.sitemap-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.sitemap-hero p {
  font-size: 0.875rem;
  color: var(--color-secondary);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sitemap-body {
  padding-block: 5rem;
}

.sitemap-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .sitemap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sitemap-group h2 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(171, 0, 41, 0.15);
}

.sitemap-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sitemap-list li a {
  font-size: 0.975rem;
  color: var(--color-on-surface);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, gap 0.2s;
}

.sitemap-list li a::before {
  content: '→';
  color: var(--color-primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sitemap-list li a:hover {
  color: var(--color-primary);
  gap: 0.75rem;
}


/* ================================================================
   PROJECTS PAGE
   ================================================================ */
.projects-hero {
  padding-top: 11rem;
  padding-bottom: 5rem;
  background-color: var(--color-surface-container-low);
  border-bottom: 1px solid var(--color-outline-variant);
}

.projects-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.projects-hero p {
  font-size: 1.15rem;
  color: var(--color-secondary);
  max-width: 36rem;
  line-height: 1.7;
}

.projects-body {
  padding-block: 5rem;
}


/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
  background-color: var(--color-surface-container-low);
}

.faq-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.faq-item h3 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-on-surface);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--color-on-surface-variant);
  line-height: 1.7;
}


/* ================================================================
   404 PAGE
   ================================================================ */
.not-found-section {
  padding-top: 10rem;
  padding-bottom: 8rem;
  text-align: center;
}

.not-found-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.not-found-code {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.15;
}

.not-found-inner h1 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.not-found-inner p {
  font-size: 1.1rem;
  color: var(--color-on-surface-variant);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.not-found-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.not-found-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-on-surface-variant);
}

.not-found-nav a {
  color: var(--color-primary);
  font-weight: 600;
}

.not-found-nav a:hover {
  text-decoration: underline;
}


/* ================================================================
   RESOURCE CARDS (shared: homepage preview + /resources/ index)
   ================================================================ */
.resource-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: .5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.resource-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.resource-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.resource-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}
.resource-card h2,
.resource-card h3 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}
.resource-card p {
  color: #555;
  font-size: .95rem;
  margin: 0;
  flex: 1;
}
/* Blog card meta line (date · read time) — sits below the summary, never grows */
.resource-card .resource-card-meta {
  flex: 0 0 auto;
  color: #888;
  font-size: .825rem;
  margin-block-start: .25rem;
}
/* Resources index hub */
.resources-hero { background: var(--cream, #fdf9f0); padding-block-start: 6rem; }
.resources-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .5rem 0 1rem; }
.resources-hero .hero-subtitle { margin-inline: 0; }
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }

/* Homepage resources preview section */
.resources-preview-section { background: var(--cream, #fdf9f0); }
.resources-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }

/* ── Resource detail page ── */
.resource-page-hero { background: var(--cream, #fdf9f0); padding: 6rem 0 2rem; text-align: center; }
.resource-page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .5rem 0 .75rem; }
.resource-subtitle { font-size: 1.15rem; color: #555; margin: 0 auto .5rem; max-width: 600px; }
.resource-byline { font-size: .875rem; color: #888; }
.resource-byline a { color: #ab0029; text-decoration: none; }

.resource-back-strip { background: var(--cream, #fdf9f0); padding: 1.25rem 0 0; }
/* Cover images. Changed 2026-09-15 after a headline was cut in half on a wide window.
   The cover used to run edge to edge with max-height:420px, and object-fit:cover takes
   its scale from the WIDTH. So the wider the screen the more was thrown away: 85% of the
   image survived on a phone, 44% on a laptop, 33% on a 1900px window and 25% on a 4K
   monitor. Every cover was being judged on a different crop depending on who opened it.
   Capping the cover at the site width stops it degrading, and 560px keeps two thirds of
   a 3:2 image visible instead of a third. */
.resource-cover { background: #fff; padding: 0; overflow: hidden; width: 100%; max-width: var(--max-w); margin-inline: auto; }
.resource-cover-img { width: 100%; max-width: 100%; max-height: 560px; object-fit: cover; display: block; height: auto; }

.resource-body { background: #fff; }
.resource-content { max-width: 720px; margin: 0 auto; }
.resource-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.resource-content p { line-height: 1.75; margin: 0 0 1rem; color: #2a2a24; }
.resource-content ul,
.resource-content ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.resource-content li { line-height: 1.7; margin-bottom: .4rem; }

/* Callouts */
.rc-callout { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; border-radius: 10px; margin: 1.5rem 0; }
.rc-callout p { margin: 0; line-height: 1.65; }
.rc-callout a { color: #ab0029; }
.rc-callout-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .05rem; }
.rc-callout--purple { background: #f3f0ff; border-left: 4px solid #7c3aed; }
.rc-callout--yellow { background: #fffbeb; border-left: 4px solid #d97706; }
.rc-callout--gray   { background: #f5f5f3; border-left: 4px solid #9ca3af; font-size: .9rem; }
.rc-callout--orange { background: #fff7ed; border-left: 4px solid #ea580c; }
.rc-callout--red    { background: #fff1f2; border-left: 4px solid #ab0029; }
.rc-callout--green  { background: #f0fdf4; border-left: 4px solid #16a34a; }

/* Template fill-in blocks (context-file page) */
.rc-template { align-items: flex-start; }
.rc-template-lines { flex: 1; }
.rc-template-lines p { margin: 0 0 .75rem; font-family: 'Plus Jakarta Sans', sans-serif; color: #2a2a24; }
.rc-template-lines p:last-child { margin-bottom: 0; }
.rc-template-lines strong { color: #1c1c17; }

/* Table */
.rc-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.rc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rc-table th { background: #1c1c17; color: #fdf9f0; padding: .6rem 1rem; text-align: left; }
.rc-table td { padding: .6rem 1rem; border-bottom: 1px solid #e8e2d9; }
.rc-table tr:last-child td { border-bottom: none; }
.rc-table tr:nth-child(even) td { background: #faf8f4; }

/* Divider */
.rc-divider { border: none; border-top: 1px solid #e8e2d9; margin: 2.5rem 0; }

/* About block */
.rc-about { display: flex; gap: 1.5rem; align-items: flex-start; margin: 2rem 0; }
.rc-about-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rc-about h2 { font-size: 1.2rem; margin: 0 0 .5rem; }

/* LinkedIn CTA */
.rc-linkedin-cta { text-align: center; padding: 2.5rem 1rem; }
.rc-linkedin-cta p { color: #555; margin-bottom: 1.25rem; }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; color: #666; text-decoration: none; margin-bottom: 1rem; }
.back-link:hover { color: #ab0029; }

@media (max-width: 768px) {
  .resource-cover-img { max-height: 220px; }
  .rc-about { flex-direction: column; }
}
