/* ============================================================================
   Fast Tracking — Adelaide Page Styles
   ----------------------------------------------------------------------------
   File location:  wp-content/themes/astra-child/assets/adelaide/style-adelaide.css
   Loaded by:      template-adelaide.php (via conditional enqueue in functions.php)

   Architecture:
   - Uses the SAME :root block as style-home.css and style-sydney.css (single
     source of truth for design tokens, even though tokens are duplicated
     across the city CSS files).
   - Includes the masthead and footer rules verbatim from style-home.css so
     the Adelaide page's shell renders identically to the homepage and the
     other capital city pages.
   - Adelaide-specific body rules below use the homepage variable names.
   - Adelaide reuses sydney-masthead.js — no Adelaide-specific JS file.

   Future improvement (still outstanding): extract the masthead, footer, and
   :root block into a shared assets/shell/style-shell.css and enqueue it on
   every templated page. That refactor turns each new city page CSS into
   ~150 lines of page-specific rules instead of ~400 lines including
   duplicated shell. With Sydney + Adelaide now both shipping, the
   duplicated shell is now in two places — Hobart, Perth, and any future
   capitals are the trigger to do the refactor.
   ============================================================================ */

:root {
  --ink:        #0B2238;
  --ink-deep:   #061826;
  --ink-soft:   #2C3D52;
  --paper:      #F8F6F1;
  --paper-warm: #F0EDE5;
  --paper-deep: #E5E0D5;
  --brass:      #C9986A;
  --brass-deep: #7a5928;   /* was: #A37844 */
  --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 — paper texture (matches homepage)
   z-index:-1 puts it behind page content so it can't intercept clicks.
   pointer-events:none !important is belt-and-braces in case any plugin
   tries to override it. The visual effect is identical either way. */
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 !important;
  z-index: -1;
  mix-blend-mode: overlay;
}


/* ============================================================================
   ADELAIDE PAGE BODY CONTENT — page-specific styles
   ============================================================================ */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
section { padding: 96px 0; }
@media (max-width: 780px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 22px; }
}

/* ─── section number + label ─────────────────────────────────────────── */
.section-meta {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 500;
  margin-bottom: 32px;
}
.section-meta .num { color: var(--brass-deep); font-weight: 600; }
.section-meta .num::after {
  content: ""; display: inline-block; width: 34px; height: 1px; background: var(--brass-deep);
  vertical-align: middle; margin-left: 14px; opacity: .6;
}

/* ─── headings ───────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.015em;
  color: var(--ink); line-height: 1.08;
}
h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 500; letter-spacing: -.025em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.4vw, 50px); max-width: 880px; line-height: 1.06; font-weight: 500; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; color: var(--brass-deep); font-weight: 400; }

main p {
  font-family: var(--sans); font-size: 18px; line-height: 1.65;
  color: var(--text-soft); max-width: 68ch;
}
@media (max-width: 780px) { main p { font-size: 16.5px; } }
.lead { font-size: 21px; line-height: 1.55; color: var(--text-soft); max-width: 36ch; margin-top: 12px; }

a { color: inherit; }

/* ─── buttons ────────────────────────────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; border: 1px solid transparent;
  transition: all .25s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ─── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 80px; border-bottom: 1px solid var(--rule); }
.hero .eyebrow {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-deep); font-weight: 500; margin-bottom: 32px;
}
.hero p { font-size: 21px; line-height: 1.55; max-width: 62ch; margin-top: 32px; color: var(--text-soft); }
.hero p.signoff { margin-top: 14px; font-style: italic; color: var(--ink); }
@media (max-width: 780px) { .hero p { font-size: 18px; } }

/* ─── hero image ─────────────────────────────────────────────────────── */
.hero-image-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 56px auto;
  border-radius: 4px;
}
@media (max-width: 780px) {
  .hero-image { margin: 36px auto; }
  .hero-image-wrap { padding: 0 22px; }
}

/* ─── stats strip ────────────────────────────────────────────────────── */
.stats {
  display: flex; flex-wrap: wrap; gap: 40px 60px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--rule);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .v { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.stat .l { font-size: 12.5px; color: var(--text-mute); letter-spacing: .08em; text-transform: uppercase; }

/* ─── tri-grid ────────────────────────────────────────────────────────── */
.tri {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  margin-top: 56px;
}
@media (max-width: 900px) { .tri { grid-template-columns: 1fr; gap: 40px; } }
.cell .marker {
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--brass-deep);
  margin-bottom: 22px; letter-spacing: -.005em;
}
.cell h3 { margin-bottom: 12px; }
.cell p { font-size: 16.5px; line-height: 1.6; }
.cell strong { color: var(--ink); font-weight: 500; }

/* ─── two-up ─────────────────────────────────────────────────────────── */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; gap: 40px; } }

/* ─── intro lead ─────────────────────────────────────────────────────── */
.intro-lead { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .intro-lead { grid-template-columns: 1fr; gap: 30px; } }

/* ─── hospital list ──────────────────────────────────────────────────── */
.hospital-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px;
  list-style: none; border-top: 1px solid var(--rule); margin-top: 48px;
  padding: 0;
}
@media (max-width: 780px) { .hospital-list { grid-template-columns: 1fr; } }
.hospital-list li {
  border-bottom: 1px solid var(--rule); padding: 18px 0;
  display: flex; align-items: baseline; gap: 16px;
}
.hospital-list .name { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); flex: 1; }
.hospital-list .suburb { font-size: 13.5px; color: var(--text-mute); letter-spacing: .04em; }

/* ─── quote ──────────────────────────────────────────────────────────── */
.quote-block {
  margin-top: 64px; padding: 40px 0 8px;
  border-top: 1px solid var(--rule);
  max-width: 780px;
}
blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.4; color: var(--ink); letter-spacing: -.005em;
}
blockquote::before {
  content: "\201C"; color: var(--brass-deep); font-style: normal; margin-right: .1em;
}
.attrib { margin-top: 24px; font-size: 14px; color: var(--text-mute); letter-spacing: .04em; }
.attrib b { color: var(--ink); font-weight: 600; letter-spacing: 0; }

/* ─── included grid ──────────────────────────────────────────────────── */
.included { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
@media (max-width: 900px) { .included { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 560px) { .included { grid-template-columns: 1fr; } }
.inc h3 { font-size: 18px; margin-bottom: 18px; font-weight: 600; }
.inc h3 .roman {
  display: block; font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--brass-deep); font-weight: 400; margin-bottom: 6px;
}
.inc ul { list-style: none; padding: 0; margin: 0; }
.inc li { font-size: 15px; color: var(--text-soft); padding: 5px 0; line-height: 1.4; }

/* ─── testimonials ───────────────────────────────────────────────────── */
.testis { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 48px; }
@media (max-width: 900px) { .testis { grid-template-columns: 1fr; gap: 40px; } }
.testi blockquote { font-size: 21px; line-height: 1.5; }
.testi .attrib { margin-top: 18px; }

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.faqs { margin-top: 48px; border-top: 1px solid var(--rule); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; padding: 24px 0; cursor: pointer;
  font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brass-deep); font-family: var(--sans);
  font-size: 24px; font-weight: 300; transition: transform .25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding: 0 0 24px; font-size: 16.5px; line-height: 1.65;
  color: var(--text-soft); max-width: 68ch;
}

/* ─── pricing strip ──────────────────────────────────────────────────── */
.pricing-strip {
  background: var(--paper-warm); padding: 48px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.pricing-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; justify-content: space-between; }
.price-tag { display: flex; flex-direction: column; gap: 4px; }
.price-tag .num { font-family: var(--serif); font-size: 42px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.price-tag .num em { font-style: italic; color: var(--brass-deep); font-weight: 400; }
.price-tag .lab { font-size: 13px; color: var(--text-mute); letter-spacing: .08em; text-transform: uppercase; }
.price-msg { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); max-width: 36ch; font-weight: 500; }
.price-msg em { font-style: italic; color: var(--brass-deep); font-weight: 400; }

/* ─── also-serving links bar ─────────────────────────────────────────── */
.also-serving {
  padding: 48px 0; border-bottom: 1px solid var(--rule);
}
.also-serving-inner {
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: baseline;
}
.also-serving-label {
  font-family: var(--serif); font-style: italic; color: var(--brass-deep);
  font-size: 16px; margin-right: 12px;
}
.also-serving a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--brass-deep); padding-bottom: 2px;
  font-size: 15px;
}
.also-serving a:hover { color: var(--brass-deep); }
.also-serving .sep { color: var(--text-mute); font-size: 14px; margin-left: 8px; }

/* ─── contact section (dark) ─────────────────────────────────────────── */
.contact { background: var(--ink); color: var(--paper); padding: 96px 0; }
.contact h2 { color: var(--paper); }
.contact h2 em { color: #d9b977; }
.contact p { color: #c4cfd9; font-size: 18px; }
.contact .section-meta { color: #9aa6b0; }
.contact .section-meta .num { color: #d9b977; }
.contact .section-meta .num::after { background: #d9b977; }
.contact .micro {
  margin-top: 30px; font-size: 13px; letter-spacing: .04em; color: #9aa6b0;
}
.contact .micro::before {
  content: ""; display: inline-block; width: 30px; height: 1px;
  background: #d9b977; vertical-align: middle; margin-right: 14px;
}
.contact .phones {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid #2c3a48;
  font-size: 15px; color: #c4cfd9;
}
.contact .phones a { color: #d9b977; text-decoration: none; font-weight: 500; }
.contact .phones a:hover { text-decoration: underline; }
.contact .phones .hours { color: #7a8693; margin-left: 10px; }

/* "What happens after you submit" line — sits between .micro and the form */
.contact .next-step {
  margin-top: 36px;
  max-width: 60ch;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;
  color: #c4cfd9;
}
.contact .next-step::before {
  content: "→";
  display: inline-block;
  color: #d9b977;
  font-style: normal;
  font-family: var(--sans);
  margin-right: 10px;
  font-weight: 500;
}

/* WPForms styling overrides for the dark contact section */
.contact .contact-form-wrap { margin-top: 48px; max-width: 720px; }
.contact .wpforms-form label,
.contact .wpforms-form .wpforms-field-label { color: #c4cfd9 !important; font-family: var(--sans) !important; font-weight: 500 !important; }
.contact .wpforms-form input,
.contact .wpforms-form textarea {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid #2c3a48 !important;
  color: var(--paper) !important;
  font-family: var(--sans) !important;
}
.contact .wpforms-form input:focus,
.contact .wpforms-form textarea:focus {
  border-color: #d9b977 !important;
  outline: none !important;
}
.contact .wpforms-form button[type="submit"] {
  background: #d9b977 !important;
  color: var(--ink) !important;
  border: none !important;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
}
.contact .wpforms-form button[type="submit"]:hover {
  background: #e6c785 !important;
}

/* ─── comparison block (Side by Side) ────────────────────────────────── */
.compare-block {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.compare-table {
  margin-top: 48px;
  border-top: 2px solid var(--ink);
}
.compare-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  gap: 32px;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.compare-head .col-ft {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--brass-deep);
  font-weight: 500;
  letter-spacing: -.005em;
}
.compare-head .col-alt {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--text-mute);
  font-weight: 400;
  letter-spacing: -.005em;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.compare-row:last-child { border-bottom: none; }
.compare-row .lab {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}
.compare-row .ft {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.compare-row .alt {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-soft);
}
@media (max-width: 780px) {
  .compare-head { display: none; }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  .compare-row .lab { font-size: 11.5px; letter-spacing: .14em; }
  .compare-row .ft::before {
    content: "Fast Tracking · ";
    color: var(--brass-deep);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
  }
  .compare-row .alt::before {
    content: "Typical · ";
    color: var(--text-mute);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
  }
}

/* ─── page meta — reviewed by + last updated (trust signal) ─────────── */
.page-meta {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}
.page-meta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-mute);
  letter-spacing: .005em;
}
.page-meta-review strong {
  color: var(--ink);
  font-weight: 600;
}
.page-meta-date {
  font-style: italic;
  color: var(--text-mute);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .page-meta-inner { font-size: 12.5px; }
  .page-meta-date { font-size: 12px; }
}

/* ─── helpers used inline ─────────────────────────────────────────────── */
.bg-soft {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.ink-strong { color: var(--ink); font-weight: 500; }
.italic-ink { font-style: italic; color: var(--ink); }

/* ─── fade-ins (matches homepage) ────────────────────────────────────── */
.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); }

/* ============================================================================
   FOOTER (verbatim from style-home.css — keep in sync if homepage footer changes)
   ============================================================================ */
.footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,0.72);
  padding: 56px 48px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: center;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr auto; } }
.footer-brand { display: flex; align-items: center; }
.footer-logo {
  display: block;
  height: 38px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  opacity: 0.92;
}
.footer-contact {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  font-family: var(--sans); font-size: 0.88rem;
}
.footer-contact a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }

/* ============================================================================
   RESPONSIVE — final tweaks
   ============================================================================ */
@media (max-width: 720px) {
  section { padding: 80px 24px; }
  .hero { padding: 48px 24px 80px; }
  .footer { padding: 40px 24px; }
}