/* ============================================================================
   Fast Tracking — Why Outsource Anaesthetic Billing
   Paired stylesheet for template-why-outsource.php
   ----------------------------------------------------------------------------
   File location:  /wp-content/themes/astra-child/assets/why-outsource/style-why-outsource.css
   Loaded by:      functions.php on the template-why-outsource.php template only.

   Inherits the brand design system from style-home.css. Tokens are redeclared
   on :root for safety in case the page is loaded without the home stylesheet
   (e.g. cache inversion). All page-specific rules are scoped to body.ft-why-outsource
   where they could collide with other templates.

   Structure mirrors style-home.css ordering: :root, hero, hero-image-section,
   sections in document order, contact, fade-in, responsive.
   ============================================================================ */

:root {
  --ink:        #0B2238;
  --ink-deep:   #061826;
  --ink-soft:   #2C3D52;
  --paper:      #F8F6F1;
  --paper-warm: #F0EDE5;
  --paper-deep: #E5E0D5;
  --brass:      #C9986A;
  --brass-deep: #7a5928;
  --rule:       #DDD7C8;
  --text:       #1A2433;
  --text-soft:  #4A5568;
  --text-mute:  #7A8294;
  --white:      #FFFFFF;
  --serif:      'Fraunces', 'Times New Roman', serif;
  --sans:       'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'ss02';
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* GRAIN OVERLAY — same paper texture as homepage */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 1;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ============================================================================
   HERO — mirrors homepage hero pattern
   ============================================================================ */
.hero {
  position: relative;
  padding: 96px 48px 120px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1280px; margin: 0 auto;
  gap: 64px;
  align-items: end;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.4fr 0.9fr; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 36px;
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--brass);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.030em;
  color: var(--ink);
  margin-bottom: 42px;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 320;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--brass-deep);
}

.hero-lede {
  font-size: 1.10rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 50ch;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--ink);
  max-width: 50ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 56px;
}

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans); font-size: 0.96rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary {
  background: var(--ink); color: var(--white);
  border-radius: 100px;
  letter-spacing: -0.005em;
}
.btn-primary:hover { background: var(--ink-deep); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(11, 34, 56, 0.3); }
.btn-primary::after {
  content: '→'; font-size: 1.1em;
  transition: transform 0.22s ease;
}
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  letter-spacing: -0.005em;
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.trust {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.trust span { position: relative; }
.trust span:not(:last-child)::after {
  content: '·';
  position: absolute; right: -20px;
  color: var(--brass);
  font-weight: 700;
}
.trust .num {
  font-family: var(--serif);
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.reading-time {
  display: inline-block;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* HERO CARD — editorial signature card */
.hero-card {
  position: relative;
  padding: 48px 44px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(11,34,56,0.04), 0 24px 60px -20px rgba(11,34,56,0.12);
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: var(--brass);
  border-radius: 0 0 3px 3px;
}
.hero-card-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.hero-card-title {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.6rem;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-card-title em { font-style: italic; color: var(--brass-deep); font-weight: 360; font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.hero-card-body {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-card-rule {
  height: 1px; background: var(--rule);
  margin: 24px 0;
}
.hero-card-detail {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--text-soft);
}
.hero-card-detail:last-child { margin-bottom: 0; }
.hero-card-detail strong { color: var(--ink); font-weight: 500; }

/* ============================================================================
   HERO IMAGE — full-bleed editorial photo, same as homepage
   ============================================================================ */
.hero-image-section {
  padding: 0 48px 96px;
  background: var(--paper);
}
.hero-image-figure {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 80px -20px rgba(11,34,56,0.18);
  position: relative;
}
.hero-image-figure::before {
  content: '';
  position: absolute; top: 0; left: 32px; right: 32px;
  height: 3px;
  background: var(--brass);
  border-radius: 0 0 3px 3px;
  z-index: 2;
}
.hero-image-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
  object-position: center 35%;
}

/* ============================================================================
   SECTIONS — shared scaffold (matches homepage)
   ============================================================================ */
section { padding: 120px 48px; position: relative; }
.container { max-width: 1280px; margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }

.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 28px;
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--brass);
}
.section-eyebrow .num {
  font-family: var(--mono); font-weight: 500;
  color: var(--text-mute); letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--serif); font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
}
.section-title em { font-style: italic; font-weight: 320; color: var(--brass-deep); font-variation-settings: 'opsz' 144, 'SOFT' 100; }

.section-sub-line {
  font-family: var(--serif); font-style: italic;
  font-weight: 380; font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.18rem; line-height: 1.45;
  color: var(--text-soft);
  max-width: 50ch;
  margin-top: 24px;
}

/* Body prose links inherit the editorial brass-deep convention */
.ft-why-outsource p a,
.ft-why-outsource li a {
  color: var(--brass-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.ft-why-outsource p a:hover,
.ft-why-outsource li a:hover {
  color: var(--ink);
  text-decoration-color: var(--brass);
}

/* ============================================================================
   01 — THE CASE
   ============================================================================ */
.case-section { background: var(--paper); border-bottom: 1px solid var(--rule); }
.case-prose {
  margin-top: 56px;
}
.case-prose p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 24px;
  max-width: 70ch;
}
.case-callout {
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: 6px;
  position: relative;
}
.case-callout p {
  margin-bottom: 0;
  font-family: var(--serif); font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
}
.case-callout strong { font-weight: 500; color: var(--brass-deep); }

/* ============================================================================
   02 — WHAT IT INVOLVES (two-column with process card)
   ============================================================================ */
.involves-section { background: var(--white); border-bottom: 1px solid var(--rule); }

.involves-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-top: 64px;
}
@media (min-width: 980px) {
  .involves-grid { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 80px; }
}

.involves-text p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.involves-list {
  list-style: none;
  margin: 24px 0 32px;
}
.involves-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.involves-list li:first-child { border-top: 1px solid var(--rule); }
.involves-list li::before {
  content: '';
  position: absolute; left: 0; top: 23px;
  width: 12px; height: 1px;
  background: var(--brass);
}
.involves-list li em { font-style: italic; color: var(--text-mute); }

/* Process card — sticky on desktop */
.process-card {
  position: relative;
  padding: 44px 36px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.process-card::before {
  content: '';
  position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  background: var(--brass);
  border-radius: 0 0 3px 3px;
}
.process-card-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.process-card-title {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.5rem;
  line-height: 1.2; letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 28px;
}
.process-card-title em { font-style: italic; color: var(--brass-deep); font-weight: 360; font-variation-settings: 'opsz' 144, 'SOFT' 100; }

.process-steps {
  list-style: none;
  counter-reset: step;
}
.process-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.process-steps li:first-child { border-top: none; padding-top: 4px; }
.process-step-num {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 500;
  color: var(--brass-deep);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.process-step-body {
  font-family: var(--sans); font-size: 0.96rem;
  color: var(--text-soft); line-height: 1.55;
}
.process-step-body strong { color: var(--ink); font-weight: 500; }

/* ============================================================================
   03 — WHAT CHANGES (five benefit items)
   ============================================================================ */
.changes-section { background: var(--paper); border-bottom: 1px solid var(--rule); }
.changes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 72px;
}
@media (min-width: 880px) {
  .changes-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  /* Asymmetric: 5 items in 3 cols = row 1: 3, row 2: 2 spanning */
  .change-item:nth-child(4) { grid-column: 1 / 2; }
  .change-item:nth-child(5) { grid-column: 2 / 4; }
}
.change-item {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.change-num {
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--brass-deep); letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.change-item h3 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.4rem; letter-spacing: -0.014em; line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.change-item p {
  font-size: 0.98rem; line-height: 1.6;
  color: var(--text-soft);
}
.change-item p strong { color: var(--ink); font-weight: 500; }

/* ============================================================================
   04 — CALCULATOR (dark ink section, brass accents — mirrors .rooms-section)
   ============================================================================ */
.calc-section {
  background: var(--ink);
  color: var(--white);
  padding: 140px 48px;
  position: relative;
  overflow: hidden;
}
.calc-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201,152,106,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(201,152,106,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.calc-section > .container { position: relative; z-index: 1; }
.calc-section .section-eyebrow { color: var(--brass); }
.calc-section .section-eyebrow::before { background: var(--brass); }
.calc-section .section-eyebrow .num { color: rgba(255,255,255,0.5); }
.calc-section .section-title { color: var(--white); }
.calc-section .section-title em { color: var(--brass); }
.calc-section .section-sub-line { color: rgba(255,255,255,0.78); }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 72px;
  align-items: stretch;
}
@media (min-width: 980px) {
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 12px;
}
.calc-field-value {
  font-family: var(--serif);
  font-weight: 440;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: 1.4rem;
  letter-spacing: -0.012em;
  text-transform: none;
  color: var(--brass);
  font-feature-settings: 'tnum';
}
.calc-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  outline: none;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brass);
  cursor: pointer;
  border: 3px solid var(--paper);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: transform 0.12s ease;
}
.calc-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brass);
  cursor: pointer;
  border: 3px solid var(--paper);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.calc-field input[type="range"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(201,152,106,0.3);
}
.calc-field-help {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  letter-spacing: 0;
  text-transform: none;
}

/* Output card — paper-on-ink, brass accent */
.calc-output {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
}
.calc-output::before {
  content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  background: var(--brass);
  border-radius: 0 0 3px 3px;
}
.calc-output-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.calc-headline {
  font-family: var(--serif); font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1; letter-spacing: -0.030em;
  color: var(--ink);
  margin-bottom: 6px;
  font-feature-settings: 'tnum';
}
.calc-headline-sub {
  font-family: var(--serif); font-style: italic;
  font-weight: 380; font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.08rem;
  color: var(--brass-deep);
  margin-bottom: 28px;
}

.calc-breakdown {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans); font-size: 0.94rem;
}
.calc-row-label { color: var(--text-soft); }
.calc-row-value {
  color: var(--ink);
  font-weight: 500;
  font-feature-settings: 'tnum';
}
.calc-row-total {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
}
.calc-row-total .calc-row-label { color: var(--ink); font-weight: 500; }
.calc-row-total .calc-row-value {
  font-family: var(--serif); font-weight: 440;
  font-size: 1.2rem; letter-spacing: -0.012em;
  color: var(--brass-deep);
}

.calc-cta {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.calc-cta:hover { gap: 14px; color: var(--brass-deep); border-bottom-color: var(--brass); }

.calc-disclaimer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}
.calc-disclaimer strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.calc-disclaimer em { font-style: italic; color: rgba(255,255,255,0.78); }

/* ============================================================================
   05 — DIY vs OUTSOURCED (mirrors homepage rooms-vs pattern)
   ============================================================================ */
.diy-section { background: var(--paper-warm); border-bottom: 1px solid var(--rule); }

.diy-vs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 72px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
@media (min-width: 880px) {
  .diy-vs { grid-template-columns: 1fr 1fr; gap: 1px; }
}
.diy-col {
  padding: 44px 40px;
  background: var(--paper);
}
.diy-col-us {
  background: var(--white);
  position: relative;
}
.diy-col-us::before {
  content: '';
  position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  background: var(--brass);
}
.diy-col h3 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.4rem; letter-spacing: -0.016em; line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}
.diy-col-tag {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-mute); letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.diy-list {
  list-style: none;
}
.diy-list li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.diy-list li:last-child { padding-bottom: 0; }
.diy-label {
  display: block;
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--text-mute); letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.diy-col-us .diy-list li { color: var(--text); }

.diy-bottom-line {
  margin-top: 48px;
  padding: 24px 0;
  font-family: var(--serif); font-style: italic;
  font-weight: 400; font-variation-settings: 'opsz' 144, 'SOFT' 80;
  font-size: 1.18rem; line-height: 1.5;
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ============================================================================
   06 — COMMON PITFALLS (6-item grid)
   ============================================================================ */
.pitfalls-section { background: var(--white); border-bottom: 1px solid var(--rule); }

.pitfalls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 64px;
}
@media (min-width: 720px) { .pitfalls-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
@media (min-width: 1080px) { .pitfalls-grid { grid-template-columns: repeat(3, 1fr); } }

.pitfall-item {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.pitfall-num {
  font-family: var(--mono); font-size: 0.86rem;
  color: var(--brass-deep); letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.pitfall-item h3 {
  font-family: var(--serif); font-weight: 440;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.2rem; letter-spacing: -0.014em; line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.pitfall-item p {
  font-size: 0.96rem; line-height: 1.6;
  color: var(--text-soft);
}

/* ============================================================================
   07 — FINANCIAL CASE (text + card grid)
   ============================================================================ */
.financial-section { background: var(--paper); border-bottom: 1px solid var(--rule); }

.financial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: 64px;
  align-items: start;
}
@media (min-width: 980px) {
  .financial-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
.financial-text p {
  font-size: 1.02rem; line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.financial-card {
  position: relative;
  padding: 44px 36px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(11,34,56,0.04), 0 24px 60px -20px rgba(11,34,56,0.12);
}
.financial-card::before {
  content: '';
  position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  background: var(--brass);
  border-radius: 0 0 3px 3px;
}
.financial-card-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.financial-card-title {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.5rem; letter-spacing: -0.018em; line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}
.financial-card-sub {
  font-family: var(--serif); font-style: italic;
  font-weight: 380; font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1rem;
  color: var(--brass-deep);
  margin-bottom: 24px;
}
.financial-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 0.96rem;
  color: var(--text-soft);
}
.financial-row:first-of-type { border-top: none; }
.financial-row strong { color: var(--ink); font-weight: 500; font-feature-settings: 'tnum'; }
.financial-rule { height: 1px; background: var(--ink); margin: 18px 0 22px; }
.financial-card-foot {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; font-variation-settings: 'opsz' 144, 'SOFT' 80;
  font-size: 1.02rem; line-height: 1.55;
  color: var(--ink);
}

/* ============================================================================
   08 — FOUNDER
   ============================================================================ */
.founder-section { background: var(--paper-warm); border-bottom: 1px solid var(--rule); }
.founder-grid { margin-top: 56px; }
.founder-text p {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 24px;
  max-width: 64ch;
}
.founder-text p strong { color: var(--ink); font-weight: 500; }
.founder-quote {
  font-family: var(--serif); font-style: italic;
  font-weight: 380; font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35; letter-spacing: -0.014em;
  color: var(--ink);
  border-left: 2px solid var(--brass);
  padding: 8px 0 8px 28px;
  margin: 36px 0;
  max-width: 32ch;
}
.founder-cite {
  display: block;
  font-style: normal;
  font-family: var(--sans); font-size: 0.96rem;
  color: var(--text-mute);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: 64ch;
}
.founder-cite::before { content: '— '; color: var(--brass); }
.founder-cite strong { color: var(--ink); font-weight: 600; }

/* ============================================================================
   09 — TESTIMONIALS (mirrors homepage testimonials)
   ============================================================================ */
.testimonials-section { background: var(--paper); border-bottom: 1px solid var(--rule); }
.testimonials {
  display: grid; grid-template-columns: 1fr; gap: 56px;
  margin-top: 80px;
}
@media (min-width: 880px) {
  .testimonials { grid-template-columns: repeat(12, 1fr); gap: 48px; }
  .testimonial:nth-child(1) { grid-column: 1 / span 7; }
  .testimonial:nth-child(2) { grid-column: 8 / span 5; padding-top: 48px; }
}
.testimonial-mark {
  font-family: var(--serif); font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 4.5rem; line-height: 0.5;
  color: var(--brass);
  margin-bottom: 8px;
}
.testimonial blockquote {
  font-family: var(--serif); font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.4; letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 28px;
}
.testimonial cite {
  font-style: normal;
  display: flex; align-items: baseline; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 0.92rem;
}
.testimonial cite strong { color: var(--ink); font-weight: 600; }
.testimonial cite span { color: var(--text-mute); }
.testimonial cite::before { content: '—'; color: var(--brass); }

.trust-strip {
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-item { text-align: center; }
.trust-num {
  font-family: var(--serif); font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: clamp(2.2rem, 3.6vw, 2.8rem);
  line-height: 1; letter-spacing: -0.028em;
  color: var(--ink);
  font-feature-settings: 'tnum';
  margin-bottom: 8px;
}
.trust-label {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute);
}

/* ============================================================================
   10 — SECURITY
   ============================================================================ */
.security-section { background: var(--white); border-bottom: 1px solid var(--rule); }
.security-grid { margin-top: 56px; }
.security-grid p {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 20px;
  max-width: 70ch;
}
.security-grid p strong { color: var(--ink); font-weight: 500; }
.security-list {
  list-style: none;
  margin-top: 28px;
}
.security-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 70ch;
}
.security-list li:first-child { border-top: 1px solid var(--rule); }
.security-list li::before {
  content: '';
  position: absolute; left: 0; top: 23px;
  width: 12px; height: 1px;
  background: var(--brass);
}

/* ============================================================================
   11 — FAQ (mirrors homepage .faq-grid)
   ============================================================================ */
.faq-section { background: var(--paper-warm); border-bottom: 1px solid var(--rule); }
.faq-grid {
  display: grid; grid-template-columns: 1fr; gap: 64px;
  margin-top: 64px;
}
@media (min-width: 980px) { .faq-grid { grid-template-columns: 1fr 2fr; gap: 96px; } }
.faq-aside {
  position: sticky; top: 110px;
  align-self: start;
}
.faq-aside p {
  font-size: 1rem; line-height: 1.65;
  color: var(--text-soft);
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  font-family: var(--serif); font-weight: 440;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.16rem; line-height: 1.4;
  letter-spacing: -0.014em;
  color: var(--ink);
  position: relative;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--brass-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--brass-deep);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat; }
.faq-answer {
  padding: 0 48px 28px 0;
  font-family: var(--sans); font-size: 0.98rem; line-height: 1.7;
  color: var(--text-soft);
  max-width: 64ch;
}
.faq-answer p { margin-bottom: 0; }

/* ============================================================================
   12 — CONTACT (identical structure to homepage)
   ============================================================================ */
.contact-section {
  background: var(--ink);
  color: var(--white);
  padding: 140px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,152,106,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,152,106,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.contact-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.contact-section .section-eyebrow { color: var(--brass); justify-content: center; }
.contact-section .section-eyebrow::before { background: var(--brass); }
.contact-section .section-eyebrow .num { color: rgba(255,255,255,0.5); }

.contact-title {
  font-family: var(--serif); font-weight: 320;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1; letter-spacing: -0.034em;
  color: var(--white);
  margin: 24px 0 32px;
}
.contact-title em { font-style: italic; color: var(--brass); font-weight: 320; font-variation-settings: 'opsz' 144, 'SOFT' 100; }

.contact-lede {
  font-family: var(--serif); font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.18rem; line-height: 1.55;
  color: rgba(255,255,255,0.86);
  margin-bottom: 16px;
  max-width: 56ch; margin-left: auto; margin-right: auto;
}
.contact-meta {
  font-family: var(--mono); font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  line-height: 1.7;
}

.contact-form-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 40px;
  text-align: left;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
  margin-bottom: 32px;
}
.contact-form-wrap::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: var(--brass); border-radius: 0 0 3px 3px;
}

/* WPForms overrides — identical to homepage */
.contact-form-wrap .wpforms-container { font-family: var(--sans) !important; }
.contact-form-wrap .wpforms-field-label-inline svg,
.contact-form-wrap .wpforms-field-label svg,
.contact-form-wrap label svg { display: none !important; }
.contact-form-wrap .wpforms-field-label,
.contact-form-wrap label {
  font-family: var(--sans) !important;
  font-size: 0.84rem !important; font-weight: 500 !important;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-soft) !important;
  margin-bottom: 8px !important;
}
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="url"],
.contact-form-wrap select,
.contact-form-wrap textarea {
  font-family: var(--sans) !important;
  font-size: 1rem !important;
  background: var(--white) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;
  color: var(--ink) !important;
  width: 100% !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  outline: none !important;
  border-color: var(--brass) !important;
  box-shadow: 0 0 0 3px rgba(201,152,106,0.18) !important;
}
.contact-form-wrap textarea { min-height: 140px; resize: vertical; }
.contact-form-wrap .wpforms-field { margin-bottom: 20px !important; padding: 0 !important; }
.contact-form-wrap button[type="submit"],
.contact-form-wrap .wpforms-submit {
  font-family: var(--sans) !important;
  font-size: 0.96rem !important; font-weight: 500 !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 16px 32px !important;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-wrap button[type="submit"]:hover,
.contact-form-wrap .wpforms-submit:hover {
  background: var(--ink-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(11,34,56,0.3);
}

.contact-fallback {
  display: inline-flex; flex-wrap: wrap; gap: 6px 14px;
  justify-content: center; align-items: baseline;
  font-family: var(--sans); font-size: 0.94rem;
  color: rgba(255,255,255,0.7);
}
.contact-fallback a {
  color: var(--brass);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,152,106,0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-fallback a:hover { color: var(--white); border-color: var(--white); }
.contact-fallback-hours { color: rgba(255,255,255,0.45); font-family: var(--mono); font-size: 0.82rem; }

/* ============================================================================
   SCROLL ANIMATIONS — shared with masthead-ft.js .fade-in observer
   ============================================================================ */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================================
   RESPONSIVE — mirrors homepage breakpoints
   ============================================================================ */
@media (max-width: 980px) {
  .calc-section { padding: 96px 48px; }
}
@media (max-width: 720px) {
  section { padding: 80px 24px; }
  .hero { padding: 48px 24px 80px; }
  .hero-image-section { padding: 0 16px 64px; }
  .hero-card { padding: 36px 28px; }

  .calc-section { padding: 80px 24px; }
  .calc-output { padding: 32px 24px; }
  .calc-field label { font-size: 0.78rem; }
  .calc-field-value { font-size: 1.15rem; }

  .diy-col { padding: 32px 24px; }

  .faq-aside { position: static; }
  .faq summary { padding-right: 36px; }
  .faq-answer { padding-right: 0; }

  .contact-section { padding: 96px 24px; }
  .contact-form-wrap { padding: 28px 24px; }

  .involves-list li { padding-left: 24px; }
  .security-list li { padding-left: 24px; }

  .trust-strip { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }

  .founder-quote { padding-left: 20px; margin: 28px 0; font-size: 1.4rem; }
}
