/* ============================================================
   Jason Le — Web Design for Trades & Clinics
   Mobile-first · no frameworks · deep navy + amber
   ============================================================ */

:root {
  --navy-950: #070F1D;
  --navy-900: #0B1626;
  --navy-800: #101F35;
  --ink: #13233B;            /* headings on light */
  --slate: #4C5E76;          /* body text on light */
  --mist: #94A7BF;           /* muted text on dark */
  --paper: #F5F8FC;          /* light section background */
  --white: #FFFFFF;
  --amber: #FFB224;
  --amber-deep: #8A5A00; /* text-safe amber: 5.9:1 on white, passes WCAG AA */
  --line-light: #E3EAF3;
  --line-dark: rgba(255, 255, 255, 0.09);

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 6px rgba(11, 22, 38, 0.06), 0 16px 40px rgba(11, 22, 38, 0.10);
  --shadow-lift: 0 6px 14px rgba(11, 22, 38, 0.10), 0 24px 56px rgba(11, 22, 38, 0.16);
  --header-h: 64px;
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw + 1rem, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw + 0.8rem, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(100% - 2.5rem, 68.75rem); /* 1100px */
  margin-inline: auto;
}
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-dark { background: var(--navy-900); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--mist); }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head { max-width: 38rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-sub { margin-top: 0.75rem; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
  margin-bottom: 0.9rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy-950);
  box-shadow: 0 8px 24px rgba(255, 178, 36, 0.35);
}
.btn-primary:hover { background: #FFC14D; box-shadow: 0 10px 28px rgba(255, 178, 36, 0.45); transform: translateY(-1px); }

/* After the hover rules so press feedback wins while both apply */
.btn:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 22, 38, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(4, 10, 20, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-icon {
  width: 42px;
  height: 42px;
  flex: none;
}
.brand-icon-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  fill: var(--amber);
  text-anchor: middle;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.08;
  display: flex;
  flex-direction: column;
}
.brand-top { color: var(--white); }
.brand-bottom { color: var(--amber); }

.site-nav { display: none; }

.btn-call {
  background: var(--amber);
  color: var(--navy-950);
  font-size: 0.92rem;
  padding: 0.65rem 1.05rem;
  min-height: 44px; /* comfortable thumb target */
  white-space: nowrap;
}
.btn-call:hover { background: #FFC14D; }
.btn-call svg { width: 16px; height: 16px; flex: none; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* On mobile the tap-to-call is the sole, prominent CTA (tradies call);
   Free Preview joins it once there's room. */
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy-950);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.header-call svg { width: 18px; height: 18px; color: var(--navy-950); flex: none; }
.header-call .hc-num { display: none; }
.header-actions .btn-call { display: none; } /* Free Preview hidden on smallest screens */

@media (min-width: 37.5em) {
  .header-actions .btn-call { display: inline-flex; }
  .header-call {
    background: transparent;
    color: var(--white);
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
  }
  .header-call svg { color: var(--amber); }
  .header-call:hover { color: var(--amber); }
  .header-call .hc-short { display: none; }
  .header-call .hc-num { display: inline; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55rem 30rem at 85% -10%, rgba(255, 178, 36, 0.13), transparent 60%),
    radial-gradient(ellipse 45rem 28rem at -10% 110%, rgba(43, 108, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  max-width: 46rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero .accent { color: var(--amber); }
.hero-sub {
  font-size: clamp(1.1rem, 1.5vw + 0.8rem, 1.3rem);
  color: var(--mist);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-sub strong { color: var(--white); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.92rem;
  color: var(--mist);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* ---------- 2. Problem strip ---------- */
.strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.strip-inner { max-width: 44rem; text-align: center; margin-inline: auto; }
.strip h2 { font-size: clamp(1.45rem, 2.6vw + 0.7rem, 2.1rem); margin-bottom: 0.75rem; }
.strip em {
  font-style: normal;
  color: var(--amber-deep);
  text-decoration: underline;
  text-decoration-color: rgba(255, 178, 36, 0.65);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.strip p { font-size: 1.1rem; }

/* ---------- 3. Portfolio ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.work-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.work-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.045); }

.work-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(7, 15, 29, 0.68);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.work-view svg { width: 18px; height: 18px; }
/* Kept as separate rules: grouping them would void the whole rule
   in browsers that don't recognise :focus-visible (Safari < 15.4) */
.work-card:hover .work-view { opacity: 1; }
.work-thumb:focus-visible .work-view { opacity: 1; }

/* Extra cards hide only when JS runs (the button needs JS anyway) */
.js .work-grid:not(.is-expanded) .work-extra { display: none; }

.btn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto 0;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  background: none;
  border: 2px solid var(--line-light);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.18s ease;
}
.btn-more:hover { border-color: var(--amber); color: var(--amber-deep); }
.btn-more:active { transform: scale(0.97); }
.btn-more svg { width: 18px; height: 18px; }
.btn-more[hidden] { display: none; }

/* Before/After cross-link (→ before-after.html) */
.work-teaser {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.work-teaser-copy { flex: 1 1 20rem; }
.work-teaser h3 { color: var(--white); font-size: clamp(1.2rem, 2.2vw + 0.6rem, 1.5rem); }
.work-teaser p { color: var(--mist); margin-top: 0.4rem; font-size: 1rem; }
.work-teaser .btn { flex: none; }

.work-meta {
  padding: 1.15rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.work-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-deep);
  background: rgba(255, 178, 36, 0.14);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}
.work-meta h3 { font-size: 1.1rem; }
.work-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 2px solid var(--line-light);
  align-self: flex-start;
  padding-block: 0.5rem 0.2rem; /* bigger thumb target */
  transition: color 0.2s ease, border-color 0.2s ease;
}
.work-link:hover { color: var(--amber-deep); border-color: var(--amber); }

/* ---------- 4. How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.step {
  position: relative;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.5rem;
}
.step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
}
.step-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255, 178, 36, 0.12);
  color: var(--amber);
  margin-bottom: 1rem;
}
.step-icon svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.98rem; }

/* ---------- 5. What's included ---------- */
.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.check-grid li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.check-grid li::before {
  content: "";
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background-color: var(--amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23070F1D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}
.bonus {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-950);
  background: var(--amber);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}

/* ---------- Reviews / testimonials ---------- */
.reviews { background: var(--paper); }
.reviews .section-head { text-align: center; margin-inline: auto; }
.rv-carousel { position: relative; }
.rv-grid {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: none;
}
.rv-grid::-webkit-scrollbar { display: none; }
/* Card content order: person → stars/date → quote (Google-review style) */
.rv-person { order: 1; margin-top: 0; }
.rv-top { order: 2; }
.rv-quote { order: 3; }
.rv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-card);
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.rv-arrow:hover { border-color: var(--amber); }
.rv-arrow:active { transform: translateY(-50%) scale(0.94); }
.rv-arrow svg { width: 20px; height: 20px; }
.rv-prev { left: -8px; }
.rv-next { right: -8px; }
.rv-arrow[disabled] { opacity: 0.35; cursor: default; }
.rv-arrow[disabled]:hover { border-color: var(--line-light); }
.rv-arrow[hidden] { display: none; }
.rv-dots { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.rv-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0; padding: 0;
  background: #CBD6E4;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.rv-dots button.on { width: 22px; background: var(--amber); }
.rv-dots[hidden] { display: none; }
.rv-card {
  background: var(--white);
  border: 1px solid #ECF1F8;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(11, 22, 38, 0.04), 0 12px 32px rgba(11, 22, 38, 0.07);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.rv-stars { color: var(--amber); font-size: 1.05rem; letter-spacing: 3px; white-space: nowrap; }
.rv-stars .rv-empty { color: #DCE4EE; }
.rv-date { font-size: 0.8rem; color: var(--slate); opacity: 0.7; white-space: nowrap; }
.rv-quote { color: var(--slate); font-size: 0.98rem; line-height: 1.65; flex: 1; }
.rv-person { display: flex; align-items: center; gap: 0.85rem; margin-top: 0; }
.rv-av {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px rgba(255, 178, 36, 0.4);
}
.rv-av img { width: 100%; height: 100%; object-fit: cover; }
.rv-person-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.rv-role { font-size: 0.82rem; color: var(--slate); opacity: 0.85; }
.rv-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: -1.25rem 0 2.25rem;
  font-size: 0.95rem;
  color: var(--slate);
}
.rv-summary .rv-stars { font-size: 1.1rem; }
.rv-summary b { font-family: var(--font-display); color: var(--ink); }
.rv-card { flex: 0 0 min(21rem, 86%); scroll-snap-align: start; }
@media (min-width: 60em) {
  .rv-prev { left: -22px; }
  .rv-next { right: -22px; }
}

/* ---------- 6. Pricing ---------- */
.pricing .section-head, .guarantee .section-head { text-align: center; margin-inline: auto; }

.price-card {
  max-width: 30rem;
  margin-inline: auto;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.price-figure {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9vw, 4.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.price-currency { font-size: 0.5em; vertical-align: 0.55em; color: var(--amber); margin-right: 0.05em; }
.price-line {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white) !important;
  margin-bottom: 1.5rem;
}
.price-list {
  text-align: left;
  margin-bottom: 1.75rem;
  display: grid;
  gap: 0.65rem;
}
.price-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--mist);
  font-size: 0.98rem;
}
.price-list li::before {
  content: "";
  flex: none;
  margin-top: 0.42em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.price-list strong { color: var(--white); }
.price-guarantee {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--mist) !important;
  text-align: left;
  max-width: 24rem;
  margin-inline: auto;
}
.price-guarantee svg { width: 20px; height: 20px; flex: none; color: var(--amber); margin-top: 0.1em; }

/* ---------- 7. FAQ ---------- */
.faq-inner { max-width: 46rem; }
.faq-list { display: grid; gap: 0.85rem; }

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-light);
  transition: background-color 0.2s ease, transform 0.25s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-list details[open] .faq-icon { background: var(--amber); border-color: var(--amber); transform: rotate(45deg); }

.faq-body { padding: 0 1.3rem 1.25rem; }
.faq-body p { font-size: 0.99rem; }

/* ---------- 8. Contact / final CTA ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50rem 26rem at 110% 0%, rgba(255, 178, 36, 0.1), transparent 60%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact-copy h2 { margin-bottom: 0.9rem; }
.contact-lede { max-width: 30rem; margin-bottom: 1.5rem; }

/* "What happens after you send" reassurance steps */
.reply-steps {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.reply-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--mist);
  font-size: 1rem;
}
.reply-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 178, 36, 0.14);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.05rem;
}

.reply-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 178, 36, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 178, 36, 0.07);
  color: var(--mist) !important;
  font-size: 0.98rem;
  max-width: 30rem;
}
.reply-badge svg { width: 22px; height: 22px; color: var(--amber); flex: none; margin-top: 0.1rem; }
.reply-badge strong { color: var(--white); }

.contact-call-btn { margin-top: 1.5rem; }

.contact-alt {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--mist) !important;
}
.contact-alt a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-alt a:hover { color: var(--amber); border-color: var(--amber); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 1.1rem;
}
/* ----- Wizard steps (fieldsets stack as one long form without JS) ----- */
.form-step {
  border: 0;
  padding: 0;
  margin: 0 0 1.6rem;
  min-inline-size: 0;
}
.form-step:last-child { margin-bottom: 0; }
.form-step legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.95rem;
  outline: none;
}
.is-wizard .form-step { display: none; margin-bottom: 0; }
.is-wizard .form-step.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .is-wizard .form-step.is-active { animation: stepIn 0.3s ease; }
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

.form-progress[hidden] { display: none; }
.form-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 34px;
  margin-bottom: 1.1rem;
}
.progress-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate);
}
.progress-dots { display: inline-flex; gap: 6px; }
.progress-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-light);
  transition: background-color 0.25s ease;
}
.progress-dots i.on { background: var(--amber); }

.step-back {
  background: none;
  border: 0;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 8px;
}
.step-back:hover { color: var(--ink); }
.step-back[hidden] { display: none; }
/* Keep the label aligned right when Back is hidden */
.form-progress .progress-label { margin-right: auto; }

.step-skip {
  display: block;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.45rem 0.25rem;
  margin-top: 0.8rem;
}
.step-skip:hover { color: var(--ink); }
.step-skip[hidden] { display: none; }

/* ----- Tap chips (styled radio buttons) ----- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.chip { position: relative; display: block; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 56px;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line-light);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.chip:hover span { border-color: var(--amber); }
.chip input:active + span { transform: scale(0.97); }
.chip input:checked + span {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy-950);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.label-optional { font-weight: 400; color: var(--slate); }

.form-field { display: grid; gap: 0.4rem; }
.form-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-light);
  border-radius: 10px;
  background: var(--paper);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #5C7089; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 178, 36, 0.25);
}
.form-note {
  font-size: 0.85rem;
  color: var(--slate) !important;
  text-align: center;
}
/* Live region stays rendered (empty = zero height) so screen
   readers reliably announce the first status message */
.form-status {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
}
.form-status.is-ok { background: #E8F7EC; color: #14683A !important; padding: 0.85rem 1rem; }
.form-status.is-err { background: #FDECEC; color: #A32020 !important; padding: 0.85rem 1rem; }

/* ---------- 9. Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  padding-block: 2.25rem;
  text-align: center;
}
.footer-inner { display: grid; gap: 0.5rem; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 0.98rem;
}
.footer-tag {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 0.3rem;
}
.footer-contact { color: var(--mist); font-size: 0.92rem; }
.footer-contact a { color: var(--mist); text-decoration: none; }
.footer-contact a:hover { color: var(--amber); }
.footer-copy { color: #7E92A9; font-size: 0.82rem; }

/* ---------- Scroll reveal ----------
   Hidden state is gated behind the .js class (set in <head>),
   so content stays visible if JavaScript is off or fails. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Stagger siblings slightly (covers the 8-item checklist too) */
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }
.reveal:nth-child(5) { transition-delay: 0.28s; }
.reveal:nth-child(6) { transition-delay: 0.35s; }
.reveal:nth-child(7) { transition-delay: 0.42s; }
.reveal:nth-child(8) { transition-delay: 0.49s; }

/* No-JS and reduced-motion safety: content always visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .work-card, .work-thumb img, .btn { transition: none; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ============================================================
   Breakpoints — mobile-first
   ============================================================ */

/* ≥ 640px */
@media (min-width: 40em) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≥ 960px */
@media (min-width: 60em) {
  :root { --header-h: 72px; }

  .site-nav {
    display: flex;
    gap: 1.9rem;
  }
  .site-nav a {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--mist);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .site-nav a:hover { color: var(--white); }

  .work-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  /* Lead with the 4 trades/clinics as big featured cards (2×2),
     the rest sit smaller (3-across) behind "View more work" */
  .work-card:nth-child(-n + 4) { grid-column: span 3; }
  .work-card:nth-child(n + 5) { grid-column: span 2; }

  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .check-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }

  .contact-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
  }

  .footer-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
  }
}
