/* =========================================================
   EG Speech Pathology — Contemporary Wellness
   Type: Playfair Display (headings) + Montserrat (body)
   Palette: navy, sage, soft blue, cloud white
   ========================================================= */

:root {
  --navy: #1B365D;
  --navy-deep: #122544;
  --sage: #94A596;
  --sage-deep: #6E8475;
  --sage-soft: #E6ECE7;
  --soft-blue: #7DA1C4;
  --soft-blue-light: #DDE7F1;
  --terra: #C77B5E;      /* echoes red bubble in logo, used sparingly */
  --ink: #1B365D;
  --ink-soft: #3a4452;
  --ink-mute: #5A6677;
  --cloud: #F5F5F5;
  --paper: #FFFFFF;
  --rule: #E5E7EB;

  --serif: "Playfair Display", "Lora", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(27, 54, 93, 0.04);
  --shadow: 0 6px 20px -8px rgba(27, 54, 93, 0.12);
  --shadow-lg: 0 14px 36px -16px rgba(27, 54, 93, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--soft-blue-light); color: var(--navy); }

/* --- Type ------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; margin-top: 1rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 600; }

p { margin: 0 0 1rem; text-wrap: pretty; color: var(--ink-soft); }
p strong { color: var(--navy); font-weight: 600; }

li { margin: 0 0 0.8rem; color: var(--ink-soft); }

.lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-block;
}

/* --- Layout --------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
section { padding-block: clamp(4rem, 8vw, 7rem); }

/* --- Header --------------------------------------------- */

.site-header {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(27, 54, 93, 0.06), 0 8px 24px -16px rgba(27, 54, 93, 0.15);
}
/* thin accent rule */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage) 30%, var(--soft-blue) 70%, transparent);
  opacity: 0.45;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  height: 56px;
  width: auto;
}

.nav { margin-left: auto; }
.nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s ease;
}
.nav a:hover { color: var(--sage-deep); }
.nav a.active { color: var(--sage-deep); }
.nav a:not(.pill)::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: -4px;
  height: 1.5px;
  background: var(--sage);
  transition: left 0.3s ease, right 0.3s ease;
}
.nav a:not(.pill):hover::after,
.nav a:not(.pill).active::after { left: 0; right: 0; }

.nav .pill {
  background: var(--navy);
  color: var(--paper);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav .pill:hover { background: var(--navy-deep); color: var(--paper); transform: translateY(-1px); }
.nav .pill::after { display: none; }

.menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
    display: none;
  }
  .nav.show { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding-bottom: 1rem; }
  .site-header .container { flex-wrap: wrap; }
  .brand img { height: 48px; }
}

/* --- Nav Dropdowns ------------------------------------- */

.nav ul li { position: relative; }
.nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav > ul > li.has-sub > a::after {
  content: "+";
  font-size: 0.7em;
  margin-left: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.25s ease;
  display: inline;
  font-weight: 700;
}
.nav > ul > li.has-sub:hover > a::after,
.nav > ul > li.has-sub:focus-within > a::after {
  opacity: 1;
}
/* invisible gap-bridge so cursor can travel from trigger to menu */
.nav > ul > li.has-sub::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 18px;
}
.nav ul ul {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.55rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 60;
}
.nav > ul > li:hover > ul,
.nav > ul > li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav ul ul li { width: 100%; }
.nav ul ul a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px;
  white-space: nowrap;
}
.nav ul ul a::after { display: none !important; }
.nav ul ul a:hover,
.nav ul ul a:focus-visible {
  background: var(--sage-soft);
  color: var(--navy);
}

@media (max-width: 900px) {
  .nav > ul > li.has-sub > a::after { display: none; }
  .nav > ul > li.has-sub::after { display: none; }
  .nav ul ul {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.15rem 0 0.4rem 0.85rem;
    min-width: 0;
  }
  .nav ul ul a {
    padding: 0.3rem 0;
    font-size: 0.9rem;
  }
}

/* --- Buttons -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--paper); }

.link-arrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sage-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.25s ease;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* CTA link styling - same as btn */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.cta:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* --- Photo / placeholder ------------------------------- */

.photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cloud);
}
.photo.wide { aspect-ratio: 5 / 4; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.tall { aspect-ratio: 3 / 4; }
.photo.cinema { aspect-ratio: 16 / 10; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo.ph {
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--sage-soft) 70%, transparent), color-mix(in oklab, var(--soft-blue-light) 70%, transparent)),
    repeating-linear-gradient(
      135deg,
      rgba(27, 54, 93, 0.04) 0 12px,
      rgba(27, 54, 93, 0.08) 12px 13px
    );
  display: grid;
  place-items: center;
}
.photo.ph .ph-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  max-width: 85%;
  text-align: center;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}

/* --- Hero ---------------------------------------------- */

.hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-content h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.hero-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.hero-content .cta {
  margin-bottom: 2rem;
}
.hero-image {
  position: relative;
}
.hero-image .photo {
  aspect-ratio: 4 / 3;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}
.shape1 {
  width: 300px;
  height: 300px;
  background: var(--sage);
  bottom: -100px;
  left: -80px;
}
.shape2 {
  width: 200px;
  height: 200px;
  background: var(--soft-blue);
  top: -60px;
  right: -40px;
}
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(125, 161, 196, 0.12), transparent 45%),
    radial-gradient(circle at 92% 88%, rgba(148, 165, 150, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 {
  margin-top: 1.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage-deep);
  font-weight: 400;
}
.hero .lede { margin-bottom: 2rem; max-width: 36ch; }
.hero-actions {
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  align-items: center;
}

.hero-photo {
  position: relative;
}
.hero-photo .photo { aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }

/* small accent card on hero photo */
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 280px;
}
.hero-badge .dots {
  display: flex;
  gap: -8px;
}
.hero-badge .dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cloud);
  border: 2px solid var(--paper);
  margin-left: -10px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.hero-badge .dot:first-child { margin-left: 0; background: var(--sage-soft); color: var(--sage-deep); }
.hero-badge .dot:nth-child(2) { background: var(--soft-blue-light); color: var(--navy); }
.hero-badge .dot:nth-child(3) { background: #F4E6DE; color: var(--terra); }
.hero-badge .lbl {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.hero-badge .lbl strong { color: var(--navy); display: block; font-size: 0.85rem; font-weight: 600; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-badge { bottom: 16px; left: 16px; }
}

/* --- About story --------------------------------------- */

.bg-cloud { background: var(--cloud); }
.bg-sage { background: var(--sage-soft); }

.story .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.story .copy { padding-block: 1rem; }
.story .copy .eyebrow { margin-bottom: 1.1rem; }
.story h2 { margin-bottom: 1.3rem; }
.story .signature {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.story .signature .name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  font-size: 1.25rem;
}
.story .signature .role-text {
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.story-actions { margin-top: 1.75rem; display: flex; gap: 0.85rem; flex-wrap: wrap; }

.story .photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }

@media (max-width: 800px) {
  .story .container { grid-template-columns: 1fr; }
}

/* --- How we help (4-grid) ----------------------------- */

.help-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
.help-head .eyebrow { margin-bottom: 0.9rem; }
.help-head h2 { margin-bottom: 1rem; }
.help-head p { max-width: 56ch; margin-inline: auto; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}
@media (max-width: 1000px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .help-grid { grid-template-columns: 1fr; } }

.help-card {
  display: block;
  background: var(--paper);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.help-card .photo { aspect-ratio: 5 / 4; border-radius: 0; }
.help-card .body { padding: 1.5rem 1.5rem 1.7rem; }
.help-card .tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft-blue);
  margin-bottom: 0.65rem;
}
.help-card h3 { font-size: 1.35rem; margin-bottom: 0.55rem; }
.help-card p { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 0.9rem; }
.help-card .more { color: var(--sage-deep); font-weight: 600; font-size: 0.9rem; }

/* --- Service sections (alternating layout) ----------- */

.service-section {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
.service-section:last-of-type {
  border-bottom: none;
}
.service-section .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.service-section .photo { aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.service-section .copy { padding-block: 1rem; }
.service-section h2 { margin-bottom: 1.3rem; }
.service-section p { margin-bottom: 1rem; line-height: 1.65; }
.service-section p:last-of-type { margin-bottom: 1.5rem; }
.service-section .btn { display: inline-block; }

/* Alternate photo position on even sections */
.service-section:nth-child(even) .container {
  grid-template-columns: 1.1fr 1fr;
}
.service-section:nth-child(even) .photo {
  order: 2;
}
.service-section:nth-child(even) .copy {
  order: 1;
}

@media (max-width: 800px) {
  .service-section .container {
    grid-template-columns: 1fr;
  }
  .service-section:nth-child(even) .container {
    grid-template-columns: 1fr;
  }
  .service-section:nth-child(even) .photo {
    order: unset;
  }
  .service-section:nth-child(even) .copy {
    order: unset;
  }
}

/* --- Services section --------------------------------- */

.services {
  background: var(--cloud);
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.services .container {
  text-align: center;
}
.services h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.services > .container > p:first-of-type {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.services .service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-bottom: 2rem;
}
@media (max-width: 1000px) {
  .services .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services .service-grid {
    grid-template-columns: 1fr;
  }
}
.services .service-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--rule);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.services .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.services .service-card .photo {
  margin-bottom: 1.2rem;
  aspect-ratio: 4 / 3;
  width: 100% !important;
  display: block !important;
  overflow: hidden;
}
.services .service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.services .service-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --- Service grid and cards (standalone, not just .services) --- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--rule);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card .photo {
  margin-bottom: 1.2rem;
  aspect-ratio: 4 / 3;
}
.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --- About section ------------------------------------ */

.about {
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
.about .photo {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.about-text h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.about-text blockquote {
  font-style: italic;
  color: var(--navy);
  border-left: 3px solid var(--sage);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-size: 1.05rem;
}
.about-text .cta {
  display: inline-block;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
  }
}

/* --- Service grids (alias for help-grid) -------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .services-grid { grid-template-columns: 1fr; } }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--rule);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* --- Team grid ---------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.team-card {
  text-align: center;
}
.team-card .photo {
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.team-card h3 {
  margin-bottom: 0.35rem;
}
.team-card .title {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.team-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --- About block / story layout ----------------------- */

.about-block {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.about-block .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-block .photo-wrap { }
.about-block .photo { box-shadow: var(--shadow-lg); }
.about-block .copy { padding-block: 1rem; }
.about-block h2 { margin-bottom: 1.3rem; }
.about-block h3 { margin-top: 1.5rem; margin-bottom: 0.8rem; }

@media (max-width: 800px) {
  .about-block .container { grid-template-columns: 1fr; }
}

/* --- Highlight box ------------------------------------ */

.highlight {
  background-color: #fffef6;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}
.highlight h3 { margin-bottom: 1rem; }
.highlight p { margin-bottom: 1rem; }
.highlight p:last-child { margin-bottom: 0; }

/* --- Stats strip -------------------------------------- */

.stats {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  display: block;
  line-height: 1;
  color: var(--paper);
}
.stat .lbl {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

/* --- Quote ------------------------------------------- */

.quote-section {
  background: var(--sage-soft);
}
.quote {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}
.quote .qmark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.4;
  color: var(--sage);
  margin-bottom: 1.5rem;
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.45;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
.quote .cite {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.quote .cite strong { color: var(--navy); font-weight: 600; }

/* --- CTA Banner -------------------------------------- */

.cta-banner {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 161, 196, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--paper); margin-bottom: 0.6rem; }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 0; max-width: 52ch; }
.cta-banner .btn {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}
.cta-banner .btn:hover {
  background: var(--sage-soft);
  border-color: var(--sage-soft);
  color: var(--navy);
}
@media (max-width: 700px) {
  .cta-banner { grid-template-columns: 1fr; }
}

/* --- Footer ------------------------------------------ */

.site-footer {
  background: var(--cloud);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
}
.site-footer .container { display: grid; gap: 3rem; }
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot-top { grid-template-columns: 1fr; } }

.foot-brand img { height: 56px; margin-bottom: 1rem; }
.foot-brand p { font-size: 0.92rem; max-width: 30ch; color: var(--ink-soft); }

.foot-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1rem;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.foot-col a, .foot-col li {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.foot-col a:hover { color: var(--sage-deep); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink-mute);
  flex-wrap: wrap; gap: 1rem;
}

/* Improved spacing for narrow content sections */
div[style*="max-width: 800px"] h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

div[style*="max-width: 800px"] h3 {
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

/* No entrance animation — keep content visible at all times */
