/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --bg:          #F5F1E8;
  --bg-warm:     #EFE9DA;
  --jade-deep:   #0F4F4A;
  --jade:        #14655E;
  --jade-mid:    #2A8A82;
  --jade-light:  #A8D5C7;
  --jade-pale:   #DDEDE6;
  --gold:        #B8924A;
  --gold-light:  #D4B574;
  --ink:         #1A1F1E;
  --ink-soft:    #3A4543;
  --ink-mute:    #6B7572;
  --line:        rgba(26, 31, 30, 0.08);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --nav-h: 72px;
  --container: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* Warm radial washes */
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 5%,  rgba(15, 79, 74, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(184, 146, 74, 0.03) 0%, transparent 60%);
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

/* ─────────────────────────────────────────────
   GRAIN OVERLAY
───────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-variation-settings: 'opsz' 72; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-variation-settings: 'opsz' 36; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-variation-settings: 'opsz' 18; font-weight: 500; }

.eyebrow, .section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─────────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 220ms var(--ease-out),
              color     220ms var(--ease-out),
              border-color 220ms var(--ease-out),
              box-shadow   220ms var(--ease-out),
              transform    220ms var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--jade-mid);
  outline-offset: 3px;
}

.btn-jade {
  background: var(--jade);
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 79, 74, 0.25), 0 4px 16px rgba(15, 79, 74, 0.15);
}
.btn-jade:hover {
  background: var(--jade-mid);
  box-shadow: 0 2px 8px rgba(15, 79, 74, 0.3), 0 8px 24px rgba(15, 79, 74, 0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--jade);
  border: 1.5px solid var(--jade);
}
.btn-outline:hover {
  background: var(--jade-pale);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 1px 3px rgba(184, 146, 74, 0.25);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-group.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-group.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-group.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-group.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

#nav {
  height: var(--nav-h);
  transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

#nav.scrolled {
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  font-variation-settings: 'opsz' 18;
  color: var(--jade-deep);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-suffix {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--jade-mid);
  vertical-align: super;
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 200ms, background 200ms;
}

.nav-links a:hover {
  color: var(--jade);
  background: var(--jade-pale);
}

/* Active section highlight — set by IntersectionObserver in script.js */
.nav-links a.active {
  color: var(--jade-deep);
  background: var(--jade-pale);
  font-weight: 600;
}

.nav-cta { flex-shrink: 0; font-size: 0.85rem; padding: 0.6rem 1.4rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 280ms var(--ease-out), opacity 280ms;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-top: var(--nav-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.hero-text { padding-block: 6rem 4rem; }

.hero-text .eyebrow { margin-bottom: 1.25rem; }

.hero-text h1 {
  margin-bottom: 1.5rem;
  max-width: 15ch;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.trust-line {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-gem {
  height: clamp(360px, 55vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-gem canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.gem-fallback {
  width: min(320px, 80%);
  height: auto;
  opacity: 0.92;
}

/* ─────────────────────────────────────────────
   PROBLEM / STATS
───────────────────────────────────────────── */
.section-problem {
  background: var(--bg-warm);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-problem h2 {
  text-align: center;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-card {
  background: var(--bg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 48;
  color: var(--jade);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.stat-body {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
.section-services {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.section-services .section-label { margin-bottom: 0.75rem; }
.section-services h2  { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.service-card {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out),
              box-shadow 260ms var(--ease-out);
}

.service-card.visible { opacity: 1; transform: none; }
.service-card:nth-child(2) { transition-delay: 0.12s; }

.service-card:hover {
  box-shadow: 0 8px 40px rgba(15, 79, 74, 0.1);
}

/* Neutral card */
.service-card-neutral {
  background: var(--jade-pale);
  border: 1px solid rgba(168, 213, 199, 0.5);
}

/* Accent card (gold treatment) */
.service-card-accent {
  background: var(--jade-deep);
  color: #fff;
  border: 1px solid rgba(184, 146, 74, 0.25);
}
.service-card-accent .service-eyebrow { color: var(--gold-light); }
.service-card-accent h3              { color: #fff; }
.service-card-accent .service-body   { color: rgba(255,255,255,0.8); }
.service-card-accent .service-includes li { color: rgba(255,255,255,0.75); }
.service-card-accent .service-includes li::before { color: var(--gold-light); }
.service-card-accent .service-pricing { color: rgba(255,255,255,0.65); border-top-color: rgba(255,255,255,0.1); }

.service-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jade-mid);
}

.service-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.22;
}

.service-body {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.service-includes {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-includes li {
  font-size: 0.875rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.service-includes li::before {
  content: "✓";
  color: var(--jade);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.service-pricing {
  font-size: 0.82rem;
  color: var(--ink-mute);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   SPECIALTIES
───────────────────────────────────────────── */
.section-specialties {
  background: var(--bg-warm);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-specialties h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.specialty-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  transition: box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.specialty-card:hover {
  box-shadow: 0 4px 24px rgba(15, 79, 74, 0.08);
  transform: translateY(-2px);
}

.specialty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--jade);
}

.specialty-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--jade-deep);
}

.specialty-detail {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────────── */
.section-how {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-how h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.timeline::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--jade-light), var(--jade-light), transparent);
  pointer-events: none;
}

.timeline-step {
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.timeline-step:nth-child(1) { transition-delay: 0.0s; padding-left: 0; }
.timeline-step:nth-child(2) { transition-delay: 0.1s; }
.timeline-step:nth-child(3) { transition-delay: 0.2s; }
.timeline-step:nth-child(4) { transition-delay: 0.3s; padding-right: 0; }
.timeline-step.visible { opacity: 1; transform: none; }

.step-number {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--jade-pale);
  border: 1.5px solid var(--jade-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  font-variation-settings: 'opsz' 14;
  color: var(--jade);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--jade-deep);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.step-body {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   SECURITY
───────────────────────────────────────────── */
.section-security {
  background: var(--jade-deep);
  padding-block: clamp(4rem, 8vw, 7rem);
  color: #fff;
}

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

.security-left .section-label { color: var(--jade-light); margin-bottom: 1rem; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.security-left h2              { color: #fff; margin-bottom: 1.75rem; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out) 0.08s, transform 0.6s var(--ease-out) 0.08s; }
.security-left ul              { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out) 0.16s, transform 0.6s var(--ease-out) 0.16s; }

.security-left .section-label.visible,
.security-left h2.visible,
.security-left ul.visible { opacity: 1; transform: none; }

.security-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.security-bullets li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
}

.security-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade-light);
  flex-shrink: 0;
  margin-top: 0.5em;
}

.security-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out) 0.2s, transform 0.6s var(--ease-out) 0.2s;
}
.security-right.visible { opacity: 1; transform: none; }

.security-doc {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(168, 213, 199, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.security-doc-icon {
  width: 40px;
  height: 40px;
  color: var(--jade-light);
  margin-bottom: 1rem;
}

.security-doc p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.security-doc .btn-outline {
  color: var(--jade-light);
  border-color: rgba(168, 213, 199, 0.4);
}
.security-doc .btn-outline:hover {
  background: rgba(168, 213, 199, 0.1);
}

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
.section-about {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-inner { max-width: 60ch; }

.about-inner .section-label { margin-bottom: 0.75rem; }
.about-inner h2 { margin-bottom: 1.25rem; }

.about-body {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   FAQ
───────────────────────────────────────────── */
.section-faq {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-faq h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.faq-container { display: flex; flex-direction: column; gap: 3rem; }

.faq-group { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.faq-group.visible { opacity: 1; transform: none; }

.faq-category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 500;
  color: var(--ink);
  transition: color 200ms;
}

.faq-question:hover { color: var(--jade); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--jade-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms var(--ease-out), background 200ms, border-color 200ms;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--jade);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 300ms;
}
.faq-icon::before { width: 8px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 8px; }

.faq-item.open .faq-icon { background: var(--jade); border-color: var(--jade); transform: rotate(45deg); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: #fff; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 380ms var(--ease-in-out);
}

.faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 68ch;
}

/* ─────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
.section-contact {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 8vw, 7rem);
}

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

.contact-intro h2 { margin-bottom: 1rem; }

.contact-intro > p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.contact-email-line {
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.contact-email-line a {
  color: var(--jade);
  font-weight: 500;
}
.contact-email-line a:hover { text-decoration: underline; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.7rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 200ms, box-shadow 200ms;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7572' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--jade-mid);
  box-shadow: 0 0 0 3px rgba(42, 138, 130, 0.12);
}

.form-field input.error,
.form-field select.error,
.form-field textarea.error {
  border-color: #c0392b;
}

.form-field .field-error {
  font-size: 0.75rem;
  color: #c0392b;
  display: none;
}
.form-field.has-error .field-error { display: block; }

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

.form-checkboxes { display: flex; flex-direction: column; gap: 0.4rem; }

.form-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--jade-light);
  border-radius: 3px;
  cursor: pointer;
  accent-color: var(--jade);
  flex-shrink: 0;
}

.contact-form .btn-jade {
  width: 100%;
  padding: 0.875rem;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.form-success {
  background: var(--jade-pale);
  border: 1.5px solid var(--jade-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.form-success p {
  color: var(--jade-deep);
  font-weight: 500;
  font-size: 1rem;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.75rem;
}

.footer-brand .brand {
  color: #fff;
  font-size: 1.25rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand .brand-suffix { color: rgba(168,213,199,0.8); }

.footer-tagline {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 24ch;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 200ms;
}
.footer-links a:hover { color: var(--jade-light); }

.footer-contact-email {
  font-size: 0.875rem;
  color: var(--jade-light);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-contact-email:hover { text-decoration: underline; }

.footer-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 200ms;
  margin-top: 0.5rem;
}
.footer-linkedin:hover { color: var(--jade-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-compliance {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  text-align: right;
}

/* ─────────────────────────────────────────────
   MOBILE NAV OVERLAY
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  .nav-links {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem var(--container-pad);
    transform: translateX(100%);
    transition: transform 320ms var(--ease-out);
    z-index: 99;
    border-top: 1px solid var(--line);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-links a:last-child { border-bottom: none; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 1024px
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 900px
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .security-grid  { grid-template-columns: 1fr; }
  .security-right { margin-top: 1rem; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 768px
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--nav-h);
    gap: 0;
  }

  .hero-text { padding-block: 4rem 2rem; }
  .hero-text h1 { max-width: none; }

  .hero-gem {
    height: clamp(240px, 50vw, 320px);
    order: -1;
    margin-top: 2rem;
  }

  .stats-grid     { grid-template-columns: 1fr; }
  .specialties-grid { grid-template-columns: 1fr; }

  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .timeline::before { display: none; }
  .timeline-step { padding: 0; }
  .timeline-step:nth-child(n) { padding: 0; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-compliance { text-align: left; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 480px
───────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; }
}

/* ─────────────────────────────────────────────
   FOCUS & ACCESSIBILITY
───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--jade-mid);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--jade);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* Smooth scroll respects reduce-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-icon, .faq-answer, .service-card,
  #nav, .nav-links { transition: none; }
}

/* ═════════════════════════════════════════════
   REDESIGN (v2) ADDITIONS
   Calculator · Specialty explorer · Polish
   ═════════════════════════════════════════════ */

/* ─── Scroll progress bar (top edge) ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--jade), var(--gold));
  z-index: 101;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ─── Section sub-label (subhead under H2) ─── */
.section-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: -0.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.7;
}

/* Center-align sub when section heading is centered */
.section-problem .section-sub,
.section-calculator .section-sub {
  margin-inline: auto;
  text-align: center;
}

/* ─── Updated problem section (heading centered with eyebrow) ─── */
.section-problem .section-label {
  text-align: center;
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── Stats — animated counters now have label + value ─── */
.stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 0.5rem;
}

/* Counter wrapper uses suffix span for animations */
.stat-value .stat-suffix {
  font-size: 0.65em;
  color: var(--jade-mid);
  font-weight: 400;
  margin-left: 0.05em;
}

/* ═════════════════════════════════════════════
   REVENUE RECOVERY CALCULATOR
   ═════════════════════════════════════════════ */

.section-calculator {
  padding-block: clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(15, 79, 74, 0.04) 0%, transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.section-calculator h2 {
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;
}

.calculator {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow:
    0 1px 2px  rgba(15, 79, 74, 0.04),
    0 12px 40px rgba(15, 79, 74, 0.08);
  max-width: 1080px;
  margin-inline: auto;
}

/* ─── Calculator: inputs (left) ─── */
.calc-inputs {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: var(--bg);
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-field-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.calc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.calc-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  font-variation-settings: 'opsz' 24;
  color: var(--jade-deep);
  letter-spacing: -0.01em;
}

.calc-help {
  font-size: 0.75rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* Number input field (monthly collections) */
.calc-num-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-warm);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.875rem;
  transition: border-color 200ms;
}
.calc-num-input:focus-within {
  border-color: var(--jade-mid);
  box-shadow: 0 0 0 3px rgba(42, 138, 130, 0.12);
}
.calc-num-input span { color: var(--ink-mute); font-weight: 500; }
.calc-num-input input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
}

/* Custom range slider — jade themed */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--jade-pale);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--jade);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  box-shadow: 0 1px 3px rgba(15, 79, 74, 0.2);
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.12); box-shadow: 0 2px 8px rgba(15, 79, 74, 0.3); }
.calc-slider::-webkit-slider-thumb:active { transform: scale(1.05); background: var(--jade-pale); }

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--jade);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 79, 74, 0.2);
}

/* Specialty pill selector */
.calc-pills {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-warm);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.calc-pill {
  flex: 1;
  padding: 0.5rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out);
}

.calc-pill.active {
  background: var(--jade);
  color: #fff;
  font-weight: 600;
}

.calc-pill:hover:not(.active) {
  background: rgba(168, 213, 199, 0.4);
  color: var(--jade-deep);
}

/* ─── Calculator: outputs (right, dark jade panel) ─── */
.calc-outputs {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--jade-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

/* Subtle gold accent radial */
.calc-outputs::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(184, 146, 74, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.calc-outputs > * { position: relative; z-index: 1; }

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

.calc-result-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 213, 199, 0.7);
}

.calc-result-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 36;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color 300ms ease-out;
}

.calc-result-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

/* The hero output — big number */
.calc-result-hero {
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(168, 213, 199, 0.18);
  margin-top: 0.5rem;
}
.calc-result-hero .calc-result-label { color: var(--gold-light); }
.calc-result-hero .calc-result-value {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: var(--gold-light);
  font-variation-settings: 'opsz' 60;
  font-weight: 400;
}

.calc-disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  width: fit-content;
  background: var(--gold);
  color: #fff;
}
.calc-cta:hover { background: var(--gold-light); }

/* Pulse animation when output changes */
@keyframes calc-flash {
  0%   { color: var(--gold-light); }
  100% { color: #fff; }
}
.calc-result-value.updated { animation: calc-flash 500ms ease-out; }
.calc-result-hero .calc-result-value.updated {
  animation: calc-flash-hero 500ms ease-out;
}
@keyframes calc-flash-hero {
  0%   { color: #fff; }
  100% { color: var(--gold-light); }
}

@media (max-width: 768px) {
  .calculator { grid-template-columns: 1fr; }
  .calc-inputs, .calc-outputs { padding: 1.5rem; }
}

/* ═════════════════════════════════════════════
   INTERACTIVE SPECIALTY EXPLORER
   ═════════════════════════════════════════════ */

.specialty-explorer {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 79, 74, 0.05);
}

/* Tabs row */
.specialty-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}

.specialty-tab {
  padding: 1.5rem 1.25rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out);
  border-right: 1px solid var(--line);
}
.specialty-tab:last-child { border-right: none; }

.specialty-tab:hover:not(.active) { background: rgba(168, 213, 199, 0.18); }

.specialty-tab.active {
  background: var(--bg);
  color: var(--jade-deep);
}

/* Active tab indicator (gold underline) */
.specialty-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--gold);
}

.specialty-tab-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-variation-settings: 'opsz' 14;
  color: var(--jade-deep);
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.specialty-tab-tagline {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.45;
}

.specialty-tab.active .specialty-tab-name { color: var(--jade); }

/* Panel — single live panel, content swaps with fade */
.specialty-panel {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: 360px;
  transition: opacity 280ms var(--ease-out);
}

.specialty-panel.swapping { opacity: 0; }

.specialty-panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.specialty-panel-section.full {
  grid-column: 1 / -1;
}

.specialty-panel-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.specialty-panel-codes {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-variation-settings: 'opsz' 24;
  color: var(--jade);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.specialty-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.specialty-panel-list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.55;
}

.specialty-panel-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade-light);
  flex-shrink: 0;
  margin-top: 0.55em;
}

@media (max-width: 768px) {
  .specialty-tabs { grid-template-columns: 1fr; }
  .specialty-tab { border-right: none; border-bottom: 1px solid var(--line); }
  .specialty-tab:last-child { border-bottom: none; }
  .specialty-tab.active::after { display: none; }
  .specialty-tab.active { border-left: 3px solid var(--gold); padding-left: calc(1.25rem - 3px); }
  .specialty-panel { grid-template-columns: 1fr; min-height: 0; }
}

/* ═════════════════════════════════════════════
   MAGNETIC HOVER ON SERVICE CARDS
   ═════════════════════════════════════════════ */

/* Make the transition snappy when JS removes the transform on leave */
.service-card {
  transition:
    opacity 0.65s var(--ease-out),
    transform 400ms var(--ease-out),
    box-shadow 280ms var(--ease-out);
  will-change: transform;
}

@media (hover: none) {
  /* Disable magnetic effect on touch devices — JS also checks this */
  .service-card { transform: none !important; }
}

/* ═════════════════════════════════════════════
   ANIMATED COUNTER STATE
   ═════════════════════════════════════════════ */

.stat-value { display: inline-flex; align-items: baseline; }

/* ═════════════════════════════════════════════
   HOW IT WORKS — sub spacing fix
   ═════════════════════════════════════════════ */

.section-how .section-sub { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

