/* ==========================================================================
   Organic Chiropractic Care — site styles
   Everything is controlled by the variables in :root below.
   Change a color there and it updates across the whole site.
   ========================================================================== */

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

:root {
  /* --- Colors (pulled from the logo) --- */
  --paper: #fbf9f4;          /* warm off-white, main background */
  --paper-2: #f2ede3;        /* sand, for alternating sections */
  --ink: #221e19;            /* warm near-black, body text */
  --ink-soft: #5f574c;       /* muted text */
  --forest: #1c5b2e;         /* deep green from the logo circle */
  --forest-deep: #113c1e;    /* darkest green, for dark sections */
  --leaf: #6bb33c;           /* bright leaf green, accents only */
  --bark: #8c5a33;           /* brown from the spine in the logo */
  --line: rgba(34, 30, 25, 0.12);
  --surface: #ffffff;

  /* --- Type --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Layout --- */
  --max: 1140px;
  --gutter: 1.5rem;
  --radius: 14px;
  --radius-leaf: 140px 20px 140px 20px;
  --shadow: 0 18px 50px -24px rgba(17, 60, 30, 0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { color: var(--ink-soft); }
a { color: var(--forest); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 720px; }

/* Little green label that sits above headings */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--leaf);
}

/* Placeholder text — dotted underline means "Claude needs the real info" */
.tbd {
  border-bottom: 1.5px dotted var(--bark);
  color: var(--bark);
  cursor: help;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }

.btn-light { background: #fff; color: var(--forest-deep); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.18s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--forest); }

/* The Book button is a link inside .nav-links, so it needs to win the colour rule */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero h1 span { color: var(--forest); }

.hero p.lede {
  font-size: 1.1875rem;
  margin: 1.5rem 0 2rem;
  max-width: 34ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-trust {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.hero-trust li { list-style: none; display: flex; align-items: center; gap: 0.45rem; }
.hero-trust li::before { content: "✽"; color: var(--leaf); font-size: 0.9rem; }

.hero-media { position: relative; }

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-leaf);
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  max-width: 235px;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.hero-badge span { font-size: 0.8125rem; color: var(--ink-soft); }

/* ==========================================================================
   Generic sections
   ========================================================================== */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-sand { background: var(--paper-2); }

.section-dark {
  background:
    linear-gradient(180deg, rgba(17,60,30,0.96), rgba(17,60,30,0.99)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  color: #eef3ea;
}

.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(238, 243, 234, 0.78); }
.section-dark .eyebrow { color: #a9d98a; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { font-size: 1.0625rem; margin-top: 1rem; }

/* Two-column: text beside an image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media figcaption {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  font-style: italic;
}

.section-dark .split-media figcaption { color: rgba(238,243,234,0.6); }

/* ==========================================================================
   Services — asymmetric bento grid
   ========================================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  grid-column: span 2;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover { transform: translateY(-4px); border-color: var(--leaf); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.9375rem; }

.card-wide { grid-column: span 3; }

.card-feature {
  grid-column: span 3;
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.card-feature h3 { color: #fff; }
.card-feature p { color: rgba(255,255,255,0.82); }
.card-feature a { color: #fff; font-weight: 600; font-size: 0.9375rem; }

.card-num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--leaf);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Steps (what a first visit looks like)
   ========================================================================== */

.steps { display: grid; gap: 1.5rem; }

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(238, 243, 234, 0.16);
}

.step:last-child { border-bottom: 0; padding-bottom: 0; }

.step-mark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(169, 217, 138, 0.5);
  display: grid;
  place-items: center;
  color: #a9d98a;
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }

/* ==========================================================================
   Team
   ========================================================================== */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.member img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px 12px 90px 12px;
  margin-bottom: 1.1rem;
}

.member h3 { margin-bottom: 0.2rem; }

.member .role {
  font-size: 0.875rem;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.member p { font-size: 0.9375rem; }

/* ==========================================================================
   Call-to-action band
   ========================================================================== */

.cta-band { text-align: center; }
.cta-band .wrap { max-width: 660px; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.detail-list { list-style: none; }

.detail-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list li:first-child { padding-top: 0; }

.detail-list .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.detail-list .value { font-size: 1.0625rem; color: var(--ink); }
.detail-list a { text-decoration: none; }
.detail-list a:hover { text-decoration: underline; }

.hours { list-style: none; font-size: 0.9375rem; }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest);
}

.field textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 0.8125rem; margin-top: 1rem; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #eaf4e3;
  color: var(--forest-deep);
  font-size: 0.9375rem;
}

.form-status.is-visible { display: block; }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */

.page-head {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-head p { font-size: 1.125rem; margin-top: 1rem; max-width: 55ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--forest-deep);
  color: rgba(238, 243, 234, 0.8);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(238, 243, 234, 0.15);
}

.site-footer img { height: 92px; width: auto; margin-bottom: 1rem; }
.site-footer p { color: rgba(238, 243, 234, 0.72); font-size: 0.9375rem; }

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.site-footer ul { list-style: none; font-size: 0.9375rem; }
.site-footer li { padding: 0.28rem 0; }
.site-footer a { color: rgba(238, 243, 234, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .tbd { color: #c9d8bd; border-bottom-color: #7f9a6a; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(238, 243, 234, 0.55);
}

.disclaimer {
  font-size: 0.8125rem;
  color: rgba(238, 243, 234, 0.5);
  max-width: 62ch;
  margin-top: 1.25rem;
}

/* ==========================================================================
   Gentle fade-in on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Small screens
   ========================================================================== */

@media (max-width: 900px) {
  .hero,
  .split,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-media img { aspect-ratio: 16 / 11; border-radius: 90px 16px 90px 16px; }
  .hero-badge { left: auto; right: 0.75rem; bottom: -1rem; }
  .hero p.lede { max-width: none; }

  .card,
  .card-wide,
  .card-feature { grid-column: span 6; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 0.75rem; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ==========================================================================
   Locations (we have two offices)
   ========================================================================== */

.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.location-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.location-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.location-card .city {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 600;
  display: block;
  margin-bottom: 0.9rem;
}

.location-card address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.location-card .phone {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.location-card .phone:hover { color: var(--leaf); }
.location-card .fax { font-size: 0.8125rem; color: var(--ink-soft); }

.location-card .hours {
  margin: 1.25rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.location-card .lunch {
  font-size: 0.8125rem;
  color: var(--bark);
  margin-top: 0.75rem;
}

.location-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.location-links a {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color 0.18s, color 0.18s;
}

.location-links a:hover { border-color: var(--forest); color: var(--forest); }

.section-dark .location-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(238, 243, 234, 0.18);
}

.section-dark .location-card address,
.section-dark .location-card .fax,
.section-dark .hours li { color: rgba(238, 243, 234, 0.75); }

.section-dark .location-card .phone { color: #a9d98a; }
.section-dark .hours li { border-bottom-color: rgba(238, 243, 234, 0.15); }
.section-dark .location-links a { border-color: rgba(238,243,234,0.28); color: #eef3ea; }
.section-dark .location-links a:hover { border-color: #a9d98a; color: #a9d98a; }

/* ==========================================================================
   Team members without a photo — initials in a circle
   ========================================================================== */

.monogram {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px 12px 90px 12px;
  background: linear-gradient(150deg, var(--forest), var(--forest-deep));
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 2.75rem;
  letter-spacing: 0.02em;
}

.member-note {
  font-size: 0.8125rem;
  color: var(--bark);
  margin-top: 0.5rem;
}

/* Long bios read better a little narrower */
.bio-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}

.bio-grid:last-child { border-bottom: 0; }

.bio-grid img,
.bio-grid .monogram {
  border-radius: 12px 12px 80px 12px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 0;
}

.bio-grid h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.bio-grid .role { color: var(--forest); font-weight: 600; font-size: 0.9375rem; margin-bottom: 1rem; }
.bio-grid p + p { margin-top: 0.9rem; }

/* ==========================================================================
   Condition & technique lists
   ========================================================================== */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1.5rem;
}

.tag-list li {
  font-size: 0.875rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.section-dark .tag-list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(238, 243, 234, 0.2);
  color: #eef3ea;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}

.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✽";
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--leaf);
  font-size: 0.9rem;
}

.section-dark .check-list li { color: rgba(238, 243, 234, 0.8); }

/* A softer note box for careful, medical-adjacent wording */
.note-box {
  border-left: 3px solid var(--leaf);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.section-dark .note-box {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 243, 234, 0.85);
}

@media (max-width: 720px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid img, .bio-grid .monogram { max-width: 220px; }
}

/* ==========================================================================
   Technique list (name + one line, on the Services page)
   ========================================================================== */

.tech-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

.tech-list li {
  position: relative;
  padding-left: 1.6rem;
}

.tech-list li::before {
  content: "✽";
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--leaf);
  font-size: 0.9rem;
}

.tech-list h3 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}

.tech-list p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ==========================================================================
   Phones and small tablets
   ========================================================================== */

@media (max-width: 940px) {
  /* Five links plus the Book button no longer fit, so switch to the menu button */
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px -20px rgba(17, 60, 30, 0.5);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-links a.btn-primary {
    margin-top: 1rem;
    justify-content: center;
    border-bottom: 0;
    padding: 0.9rem 1.5rem;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 1.15rem; }

  body { font-size: 1rem; }

  h1 { font-size: clamp(2rem, 8.5vw, 2.4rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }

  .nav-logo img { height: 38px; }

  .hero { padding-top: 2rem; gap: 2rem; }
  .hero p.lede { font-size: 1.0625rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-media img {
    aspect-ratio: 4 / 3;
    max-height: 46vh;
    border-radius: 70px 14px 70px 14px;
  }

  /* The floating badge crowds the image on a phone, so it sits underneath */
  .hero-badge {
    position: static;
    max-width: none;
    margin-top: 1rem;
    box-shadow: none;
  }

  .hero-trust { flex-direction: column; gap: 0.35rem; }

  .section { padding: 2.75rem 0; }
  .section-head { margin-bottom: 2rem; }

  .card { padding: 1.35rem; }

  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step-mark { width: 36px; height: 36px; font-size: 0.95rem; }

  .team { gap: 2.5rem; }
  .member img, .monogram { aspect-ratio: 1 / 1; border-radius: 12px 12px 70px 12px; }

  .location-card .phone { font-size: 1.35rem; }
  .hours li { font-size: 0.875rem; }

  .cta-actions .btn,
  .location-links a { width: 100%; justify-content: center; text-align: center; }

  .footer-bottom { flex-direction: column; gap: 0.35rem; }

  .tech-list { gap: 1.25rem; }
}
