/* ==========================================================================
   Believe & Grow — Leah Dobry, BCBA
   Design system inspired by the logo: sage green, lavender, dusty blue
   ========================================================================== */

:root {
  /* Palette — pulled from the Believe & Grow logo */
  --sage:        #9DBC9F;   /* tree leaves, left side */
  --sage-dark:   #6F8F72;
  --lavender:    #A89BC4;   /* wordmark + center leaves */
  --lavender-dark:#7E6BA5;  /* deep purple for headings */
  --sky:         #A8C5DE;   /* arrow + right leaves */
  --sky-dark:    #7AA1C0;

  /* Neutrals */
  --bg:          #FBF9F5;   /* warm off-white */
  --paper:       #FFFFFF;
  --cream:       #F4EFE6;
  --line:        #E8E2D6;
  --ink:         #2E2740;   /* deep eggplant, softer than black */
  --body:        #5E5870;
  --mute:        #9C95A8;

  /* Type scale */
  --font-serif:  "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans:   "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --container:   1180px;
  --gap:         clamp(1.25rem, 2.5vw, 2rem);

  /* Motion */
  --ease:        cubic-bezier(.2, .8, .2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--lavender-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--sage-dark); }
button { font: inherit; cursor: pointer; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--lavender-dark); }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--sage);
}

.italic-accent { font-style: italic; color: var(--lavender-dark); font-family: var(--font-serif); }

/* ----- Rotating word (hero headline) ----- */
.rotating-word {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  font-style: italic;
  color: var(--sage-dark);
  min-width: 6.5ch;
  /* Reserve a stable line so layout doesn't jump as words rotate */
}
.rotating-word .word {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  white-space: nowrap;
  /* alternate accent hues, set per index for variety */
}
.rotating-word .word.is-in {
  position: relative;       /* the visible word controls the box width */
  opacity: 1;
  transform: translateY(0);
}
.rotating-word .word.is-out {
  opacity: 0;
  transform: translateY(-20px);
}
/* color variety across cycles — Believe&Grow palette */
.rotating-word .word:nth-child(6n+1) { color: var(--lavender-dark); }
.rotating-word .word:nth-child(6n+2) { color: var(--sage-dark); }
.rotating-word .word:nth-child(6n+3) { color: var(--sky-dark); }
.rotating-word .word:nth-child(6n+4) { color: var(--lavender-dark); }
.rotating-word .word:nth-child(6n+5) { color: var(--sage-dark); }
.rotating-word .word:nth-child(6n)   { color: var(--sky-dark); }

@media (prefers-reduced-motion: reduce) {
  .rotating-word .word { transition: none; }
}

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);  /* iOS notch safety */
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;             /* taller header — more breathing room */
  gap: 2.5rem;
  padding: .35rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;                /* a touch more space between mark and wordmark */
}
.brand-mark {
  height: 56px;             /* slightly larger mark, balanced by taller header */
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--lavender-dark);
  letter-spacing: .015em;
  line-height: 1;
}

/* Full logo lockup (used in footer and as occasional decorative mark) */
.logo-lockup {
  max-width: 280px;
  height: auto;
  display: block;
}
.logo-lockup-footer {
  max-width: 220px;
  height: auto;
  margin-bottom: 1rem;
  /* The footer is dark; we lighten the logo's wordmark with a soft filter */
  filter: brightness(1.15) saturate(1.05);
}

/* "We Meet You Where You Are" — icon grid section (services page) */
.where-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.where-card {
  text-align: center;
  padding: .25rem;
}
.where-icon {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.25rem;
  /* Organic "blob" — almost a circle, with a slight asymmetry */
  border-radius: 58% 42% 53% 47% / 47% 56% 44% 53%;
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease), border-radius .8s var(--ease);
}
.where-card:hover .where-icon {
  transform: translateY(-6px);
  border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;   /* settles into a clean circle on hover */
}
.where-icon svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.5;
}
/* Each card gets a different tint, rotating through the palette */
.where-card:nth-child(6n+1) .where-icon { background: rgba(168, 197, 222, .45); }   /* sky */
.where-card:nth-child(6n+2) .where-icon { background: rgba(157, 188, 159, .45); }   /* sage */
.where-card:nth-child(6n+3) .where-icon { background: rgba(168, 155, 196, .45); }   /* lavender */
.where-card:nth-child(6n+4) .where-icon { background: rgba(168, 197, 222, .45); }   /* sky */
.where-card:nth-child(6n+5) .where-icon { background: rgba(157, 188, 159, .45); }   /* sage */
.where-card:nth-child(6n)   .where-icon { background: rgba(168, 155, 196, .45); }   /* lavender */
.where-card:nth-child(6n+1) .where-icon svg { stroke: var(--sky-dark); }
.where-card:nth-child(6n+2) .where-icon svg { stroke: var(--sage-dark); }
.where-card:nth-child(6n+3) .where-icon svg { stroke: var(--lavender-dark); }
.where-card:nth-child(6n+4) .where-icon svg { stroke: var(--sky-dark); }
.where-card:nth-child(6n+5) .where-icon svg { stroke: var(--sage-dark); }
.where-card:nth-child(6n)   .where-icon svg { stroke: var(--lavender-dark); }

.where-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--lavender-dark);
  margin: 0 0 .4rem;
  line-height: 1.3;
}
.where-card-desc {
  font-size: .85rem;
  color: var(--mute);
  margin: 0;
  line-height: 1.45;
}
.where-footnote {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .9rem;
  font-style: italic;
  color: var(--mute);
}

@media (max-width: 880px) {
  .where-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; }
  .where-icon { width: 110px; height: 110px; }
  .where-icon svg { width: 48px; height: 48px; }
}
@media (max-width: 520px) {
  .where-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Small circular avatar (Leah's photo) — used on About and Contact only */
.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--paper);
  box-shadow: 0 8px 20px -10px rgba(46, 39, 64, .2);
  display: block;
}
.avatar-lg {
  width: 200px;
  height: 200px;
}
.founder-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.founder-card .founder-meta { line-height: 1.4; }
.founder-card .founder-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 .15rem;
}
.founder-card .founder-role {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0;
}

.nav-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 2.25rem; align-items: center; }
.nav-links a {
  color: var(--body);
  font-size: .95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover { color: var(--lavender-dark); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--sage); border-radius: 2px;
}

/* Nav CTA — mirrors the hero's .btn-primary so the two buttons feel like one.
   Scoped with .nav-links to win the specificity battle against `.nav-links a`,
   which otherwise overrides color and forces padding-bottom: 4px (the underline rule). */
.nav-links a.nav-cta {
  background: var(--lavender-dark);
  color: #fff !important;             /* defeat the body-color inherited from .nav-links a */
  padding: .85rem 1.7rem;             /* explicit, symmetric — top = bottom */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .015em;
  transition: background .25s var(--ease), color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-links a.nav-cta:hover {
  background: var(--lavender);        /* lighter shade on hover, as requested */
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(126, 107, 165, .55);
}
/* Kill the inherited underline-on-active that .nav-links a.is-active applies */
.nav-links a.nav-cta.is-active::after { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .15s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-top: 1rem; }
.hero p.lead { font-size: 1.2rem; color: var(--body); max-width: 38ch; margin: 1.5rem 0 2rem; }
.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(168, 155, 196, 0.18));
  pointer-events: none;
}

/* Decorative soft circles */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .35;
  pointer-events: none;
}
.hero::before { width: 320px; height: 320px; background: var(--sage); top: -100px; left: -120px; }
.hero::after  { width: 280px; height: 280px; background: var(--sky); bottom: -80px; right: -100px; opacity: .25; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .015em;
  transition: all .25s var(--ease);
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--lavender-dark); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(126, 107, 165, .55); }
.btn-secondary { background: transparent; color: var(--lavender-dark); border-color: var(--lavender); }
.btn-secondary:hover { background: var(--lavender-dark); color: #fff; border-color: var(--lavender-dark); }
.btn-text {
  color: var(--lavender-dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--sage);
}
.btn-text:hover { color: var(--sage-dark); border-bottom-color: var(--lavender-dark); }

.button-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ----- Trust bar ----- */
.trust-bar {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.trust-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 3rem;
}
.trust-item { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--body); }
.trust-item strong { color: var(--ink); font-weight: 600; }
.trust-dot { width: 8px; height: 8px; background: var(--sage); border-radius: 50%; flex-shrink: 0; }

/* ----- Cards ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(46, 39, 64, .15); }
.card h3 { margin-bottom: .5rem; font-size: 1.4rem; }
.card .card-icon {
  width: 48px; height: 48px;
  background: var(--cream);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  color: var(--lavender-dark);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}
.card p { color: var(--body); font-size: .98rem; margin-bottom: 1.25rem; }

/* Service variants — alternate accent ring */
.card.service-1 .card-icon { background: rgba(157, 188, 159, .25); color: var(--sage-dark); }
.card.service-2 .card-icon { background: rgba(168, 155, 196, .25); color: var(--lavender-dark); }
.card.service-3 .card-icon { background: rgba(168, 197, 222, .3);  color: var(--sky-dark); }
.card.service-4 .card-icon { background: rgba(157, 188, 159, .25); color: var(--sage-dark); }

/* ----- Two-column section ----- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.split img, .split .split-img {
  width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream);
}

/* ----- Quote block ----- */
.quote {
  background: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  border-radius: 6px;
  text-align: center;
  position: relative;
}
.quote::before {
  content: "“";
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--lavender);
  position: absolute; top: -.5rem; left: 50%; transform: translateX(-50%);
  opacity: .4;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto;
}
.quote cite { display: block; margin-top: 1.5rem; font-size: .9rem; font-style: normal; color: var(--lavender-dark); letter-spacing: .12em; text-transform: uppercase; }

/* ----- Steps ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 2.5rem;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-serif);
  font-size: 2rem; color: var(--sage);
  font-style: italic;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--body); font-size: .95rem; }

/* ----- FAQ ----- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0;
  width: 100%;
  text-align: left;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 500;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1.5px solid var(--lavender);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--lavender-dark);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  transition: transform .3s var(--ease), background .2s;
}
.faq-item.is-open .faq-q .icon { background: var(--lavender-dark); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-a-inner { padding-top: 1rem; color: var(--body); }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-detail { margin-bottom: 1.75rem; }
.contact-detail h4 { margin: 0 0 .35rem; }
.contact-detail p { margin: 0; color: var(--body); }
.contact-detail a { color: var(--ink); font-weight: 500; }
.contact-detail a:hover { color: var(--lavender-dark); }

form { background: var(--paper); padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-bottom: 1.1rem; font-size: .88rem; font-weight: 500; color: var(--ink); }
label span { display: block; margin-bottom: .4rem; }
input, select, textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(168, 155, 196, .2);
}
textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.form-hint {
  font-size: .82rem;
  color: var(--mute);
  margin: -.5rem 0 1.25rem;
  font-style: italic;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 1.75rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer h4 { color: rgba(255,255,255,.95); letter-spacing: .15em; font-size: .8rem; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--sage); }
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: .5rem;
}
.footer-brand p { color: rgba(255,255,255,.6); max-width: 32ch; font-size: .92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 92px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .35s var(--ease), visibility 0s .35s;
    box-shadow: 0 16px 30px -20px rgba(46,39,64,.2);
    z-index: 999;                /* below the sticky header (1000), above content */
    visibility: hidden;          /* truly hidden when not open — no accidental tap targets */
    max-height: calc(100vh - 92px - env(safe-area-inset-top));
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .35s var(--ease), visibility 0s;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-cta { width: 100%; text-align: center; margin-top: .75rem; padding: .95rem 1.5rem; }
  .brand-name { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Mobile refinements — tighter spacing, better stacking, cleaner type on phones
   Added 2026-06-05 — applies on top of the 880/760 breakpoints above.
   ========================================================================== */

@media (max-width: 720px) {
  /* Tighter section spacing */
  section { padding: clamp(2.25rem, 7vw, 3.5rem) 0; }
  .section-tight { padding: clamp(1.5rem, 5vw, 2.5rem) 0; }

  /* Tighter container side padding */
  .container { padding: 0 1.25rem; }

  /* Heading scale */
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.12; }
  h2 { font-size: clamp(1.6rem, 6vw, 2.15rem); line-height: 1.18; }
  h3 { font-size: 1.2rem; }

  /* Hero */
  .hero { padding: 2.25rem 0 1.75rem; }
  .hero h1 { margin-top: .5rem; }
  .hero p.lead { font-size: 1.02rem; line-height: 1.55; margin: 1.1rem 0 1.4rem; max-width: 100%; }
  .hero-image { max-width: 340px; aspect-ratio: 5 / 4; }
  .hero::before { width: 220px; height: 220px; top: -80px; left: -100px; }
  .hero::after  { width: 200px; height: 200px; bottom: -60px; right: -80px; }

  /* Trust bar — stack vertically so the four items don't fight for room */
  .trust-bar { padding: 1.1rem 0; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: .55rem 0; }
  .trust-item { font-size: .88rem; gap: .55rem; line-height: 1.35; }

  /* Cards — tighter padding, less rounding */
  .card { padding: 1.5rem 1.4rem; border-radius: 6px; }
  .card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
  .card .card-icon { width: 40px; height: 40px; margin-bottom: .9rem; font-size: 1.2rem; }
  .card p { font-size: .95rem; margin-bottom: 1rem; }

  /* Button rows — stack full-width on phones (more tap-friendly) */
  .button-row { gap: .65rem; }
  .button-row .btn { flex: 1 1 100%; justify-content: center; padding: .9rem 1.4rem; }

  /* Quote block */
  .quote { padding: 2.5rem 1.25rem 1.75rem; border-radius: 6px; }
  .quote::before { font-size: 4rem; top: -.25rem; }
  .quote blockquote { font-size: 1.15rem; line-height: 1.45; }
  .quote cite { margin-top: 1.1rem; font-size: .78rem; }

  /* Steps — tighter spacing for the big numerals */
  .steps { gap: 1.5rem; }
  .step { padding-top: 1.85rem; }
  .step::before { font-size: 1.65rem; }
  .step h3 { font-size: 1.1rem; margin-bottom: .25rem; }
  .step p { font-size: .92rem; }

  /* FAQ — smaller question type so 2-line questions don't dominate the screen */
  .faq-item { padding: 1.15rem 0; }
  .faq-q { font-size: 1.05rem; line-height: 1.3; gap: .75rem; }
  .faq-q .icon { width: 24px; height: 24px; font-size: 1rem; }
  .faq-a-inner { padding-top: .75rem; font-size: .95rem; }

  /* Contact form */
  form { padding: 1.4rem 1.25rem; border-radius: 6px; }
  label { margin-bottom: .9rem; font-size: .85rem; }
  input, select, textarea { padding: .75rem .85rem; font-size: 16px; /* prevents iOS zoom on focus */ }
  textarea { min-height: 96px; }

  /* About page avatar — slightly smaller */
  .avatar-lg { width: 150px; height: 150px; }

  /* Eyebrow tag — slightly smaller */
  .eyebrow { font-size: .76rem; letter-spacing: .2em; }

  /* Footer — tighter overall */
  .site-footer { padding: 2.5rem 0 1.25rem; }
  .footer-grid { gap: 1.75rem; margin-bottom: 2rem; }
  .footer-brand p { max-width: 100%; font-size: .9rem; }
  .footer-bottom { font-size: .78rem; }
  .logo-lockup-footer { max-width: 180px; }

  /* Nav — slightly tighter so the hamburger doesn't crowd the logo */
  .nav { height: 76px; gap: 1rem; }
  .brand-mark { height: 44px; }
  .brand { gap: .75rem; }
  .brand-name { font-size: 1.1rem; }
  .nav-links { top: 76px; }
}

@media (max-width: 400px) {
  /* Very small phones — squeeze a bit more */
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.95rem; }
  .hero p.lead { font-size: .98rem; }
  .brand-mark { height: 40px; }
  .brand-name { font-size: 1rem; }
  .nav { height: 70px; gap: .75rem; }
  .nav-links { top: 70px; }
  h2 { font-size: 1.55rem; }
  .card { padding: 1.25rem 1.15rem; }
  .quote { padding: 2rem 1rem 1.5rem; }
  .quote blockquote { font-size: 1.05rem; }
  .where-icon { width: 96px; height: 96px; }
  .where-icon svg { width: 42px; height: 42px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
