/* Manjita Osta — Australian Employability Assessment
   Design system per agreed brief: white + light slate dominant, deep navy
   text, vivid orange CTAs (~10% of interface), Manrope, soft cards,
   subtle motion with prefers-reduced-motion guards. */

/* Palette (Bruce 2026-07-23): black · white · orange · blue.
   Cards are defined by EDGE + ELEVATION, not by a 4%-lighter fill —
   that's what kept reading as "no contrast". */
:root {
  --navy: #0e2a4a;          /* the blue: badges, panels, structure */
  --navy-2: #1b3a5e;
  --blue: #1668c1;          /* brighter blue for links//accents */
  --orange: #f26b21;
  --orange-dark: #d95a14;
  --orange-pale: #fdeee4;
  --slate: #eaf0f7;         /* section tint — deeper, so white cards pop */
  --slate-2: #d7e2ee;
  --black: #101317;         /* headings */
  --ink: #101317;
  --ink-2: #435061;
  --ink-3: #6b7a8c;
  --line: #cbd8e6;          /* card edge — visible on white AND on tint */
  --white: #ffffff;
  --radius-card: 20px;
  --radius-btn: 12px;
  --maxw: 1180px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.section { padding: 96px 0; }
.section.alt { background: var(--slate); }
.section.textured { background: #fff url('assets/texture-waves.jpg') center / cover no-repeat; }
/* Never let mobile browsers force-darken the site (auto dark mode made a
   mess of the cards on Android/iOS) */
:root { color-scheme: light dark; }

/* Reassurance ticker — Patty-style scrolling strip under the hero */
.ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6; background: #fff; padding: 14px 0; }
.ticker-track { display: inline-flex; align-items: baseline; }
.ticker-track span { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 17px; color: #b95c14; padding: 0 18px; }
.ticker-track i { color: #c9d2de; font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: tickerScroll 28s linear infinite; }
}
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Desktop trust ticks: tidy 2x2 grid instead of ragged wrapping */
@media (min-width: 721px) {
  .hero .trust-strip { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 34px; row-gap: 12px; }
}

/* Centred button text everywhere it goes full-width on mobile */
.sticky-cta .btn, .btn-block-mobile { text-align: center; }

/* Click-burst particles (JS creates and removes them) */
.spark {
  position: fixed; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
  pointer-events: none; z-index: 9999; will-change: transform, opacity;
}

/* Patty-style box entrances: springy staggered rise, desktop AND mobile */
.card.reveal, .proof-card.reveal, .fit-panel.reveal {
  transform: translateY(46px) scale(0.96);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.2, 0.9, 0.3, 1.04);
}
.card.reveal.in, .proof-card.reveal.in, .fit-panel.reveal.in { transform: none; }
.card-grid .card.reveal:nth-child(2) { transition-delay: 0.15s; }
.card-grid .card.reveal:nth-child(3) { transition-delay: 0.3s; }
.card-grid .card.reveal:nth-child(4) { transition-delay: 0.45s; }
.proof-grid .proof-card.reveal:nth-child(2) { transition-delay: 0.18s; }
.proof-grid .proof-card.reveal:nth-child(3) { transition-delay: 0.36s; }

/* Proof cards sit in a WHITE section, so they take the tint themselves —
   back to the stronger setting Manjita asked for ("do the previous
   setting for this one") after the softer #f8fafc vanished into the page */
/* Every card: white fill, a VISIBLE edge and real elevation. This reads
   clearly on white sections and on tinted ones, which is why it replaced
   the fill-tint approach that kept looking flat. */
.card-grid .card,
.proof-grid .proof-card,
.cover-panel,
.fit-panel,
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .card.reveal, .proof-card.reveal, .fit-panel.reveal { transform: none; transition: none; }
}

/* Sydney glimpse: on mobile the harbour photo gets its own visible band
   (Manjita: overseas clients should SEE the Opera House + bridge) */
/* Harbour photo as a REAL picture, not a background (Bruce 2026-07-23:
   "a background picture can't help her clients see Australia's icons").
   Full-width banner above the two cards, on every screen size. */
.sydney-glimpse { display: block; margin: 0 0 44px; }
.sydney-glimpse img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 45%;
  border-radius: 18px; box-shadow: 0 14px 36px rgba(14, 42, 74, 0.16);
}
.sydney-glimpse figcaption {
  font-size: 13.5px; color: var(--ink-3); margin-top: 10px; text-align: center;
}
@media (max-width: 720px) {
  /* Taller crop on phones so the Opera House and bridge stay big enough
     to actually read as landmarks */
  .sydney-glimpse img { aspect-ratio: 3 / 2; }
  .sydney-glimpse { margin-bottom: 32px; }
}

/* No background photo anywhere — the harbour is a real picture above the
   cards now, so this is an ordinary white section with tinted cards. */
.section.sydney { position: relative; background: #fff; }
.section.sydney .container { position: relative; z-index: 1; }
/* Fill/edge come from the shared card rule above — only geometry here. */
.fit-panel { border-radius: var(--radius-card); padding: 34px; }
@media (max-width: 720px) { .section { padding: 58px 0; } }

/* ---- Type ---- */
h1, h2, h3 { color: var(--black); font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: 60px; line-height: 1.05; }
h2 { font-size: 42px; line-height: 1.12; margin-bottom: 0.5em; }
h3 { font-size: 20px; line-height: 1.3; }
p { max-width: 640px; }
.lede { font-size: 19px; color: var(--ink-2); }
.center .lede, .center p { margin-left: auto; margin-right: auto; }
@media (max-width: 720px) {
  h1 { font-size: 37px; line-height: 1.08; }
  h2 { font-size: 31px; }
  body { font-size: 16px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--navy);
}
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; }

.orange-rule { width: 44px; height: 4px; background: var(--orange); border-radius: 2px; margin-bottom: 18px; }
.center .orange-rule { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  border-radius: var(--radius-btn); border: none; cursor: pointer;
  font-family: var(--sans); font-size: 17px; font-weight: 700;
  text-decoration: none; transition: background 0.18s, transform 0.18s, border-color 0.18s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--slate-2); }
.btn-outline:hover { border-color: var(--navy); }
.on-navy .btn-primary:focus-visible { outline-color: #fff; }
.btn-lg { min-height: 60px; font-size: 18px; }
@media (max-width: 720px) { .btn-block-mobile { width: 100%; } }

.reassure { font-size: 14.5px; color: var(--ink-3); margin-top: 14px; }
.urgency-note { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; max-width: 46ch; }
/* Sits as the very next line of the paragraph, not a separate block —
   the breathing room goes BELOW it, before the button. */
.value-line { margin: 0 0 30px; font-size: 17px; color: var(--black); }
.hero .lede:has(+ .value-line) { margin-bottom: 4px; }
/* Tighter in the booking sidebar, where it sits under the service blurb */
.booking-side .value-line { margin: 10px 0 16px; font-size: 16px; }

/* ---- Header (minimal, no nav) ---- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 20px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 19px; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--orange); }

/* ---- Hero ---- */
/* Hero: pure CSS gradient, no photo (Bruce 2026-07-23) */
.hero {
  padding: 130px 0 96px; overflow: hidden; position: relative;
  background: linear-gradient(115deg, #fbfcfe 0%, #ffffff 32%, #fff3e9 66%, #ffdfc4 100%);
  background-size: 190% 190%;
}
.hero-grid { display: grid; grid-template-columns: 58% 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lede { margin-bottom: 30px; }
.hero-photo { position: relative; }
.hero-frame { overflow: hidden; border-radius: 22px; }
.hero-photo img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
@media (max-width: 900px) { .hero-photo img { aspect-ratio: 16 / 10; } }
.hero-photo::before {
  content: ''; position: absolute; right: -14px; bottom: -14px;
  width: 42%; height: 42%; background: var(--orange); border-radius: 18px; z-index: -1; opacity: 0.9;
}
/* Typography-led hero (no photo until real high-res shots exist) */
.hero-center { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-center h1 { margin-left: auto; margin-right: auto; }
.hero-center .lede { margin-left: auto; margin-right: auto; }
.hero-center .eyebrow { justify-content: center; }
.hero-center .trust-strip { justify-content: center; }
@media (max-width: 720px) { .hero-center { text-align: left; } .hero-center .eyebrow, .hero-center .trust-strip { justify-content: flex-start; } }

.trust-strip { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.trust-item svg { flex: none; width: 18px; height: 18px; }
@media (max-width: 900px) {
  .hero { padding: 96px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .trust-strip { flex-direction: column; gap: 12px; }
  .hero-photo { max-width: 420px; }
}

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 30px; box-shadow: 0 1px 3px rgba(14, 42, 74, 0.04);
}
.card h3 { margin: 16px 0 8px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--orange-pale);
  display: flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 24px; height: 24px; stroke: var(--orange); }
@media (max-width: 1020px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* ---- Fit / Cover two-column ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 44px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.fit-list { list-style: none; margin-top: 22px; }
.fit-list li { display: flex; gap: 12px; padding: 10px 0; font-size: 16.5px; color: var(--ink-2); }
.fit-list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.cover-panel { border-radius: var(--radius-card); padding: 34px; }
.cover-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--slate-2); }
.cover-row:last-child { border-bottom: none; }
.cover-num {
  flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--navy);
  color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.cover-row strong { display: block; color: var(--navy); font-size: 16.5px; }
.cover-row span { font-size: 14.5px; color: var(--ink-2); }

/* ---- Meet Manjita ---- */
.meet-solo { max-width: 720px; margin: 0 auto; }
.meet-solo p { margin-bottom: 16px; color: var(--ink-2); }
.meet-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
.meet-grid img { border-radius: 22px; width: 100%; }
.meet-grid p { margin-bottom: 16px; color: var(--ink-2); }
.pull-quote {
  border-left: 4px solid var(--orange); padding: 6px 0 6px 20px; margin-top: 24px;
  font-size: 19px; font-weight: 600; color: var(--navy); font-style: italic;
}
@media (max-width: 900px) {
  .meet-grid { grid-template-columns: 1fr; gap: 30px; }
  .meet-grid img { max-width: 340px; }
}

/* ---- Proof cards ---- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.proof-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; }
.proof-stat { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.proof-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-top: 4px; }
.proof-card hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.proof-card h3 { margin-bottom: 8px; }
.proof-card p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 40px auto 0; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--white); }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--orange); font-size: 22px; font-weight: 700; flex: none; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 22px 18px; color: var(--ink-2); font-size: 15.5px; }

/* ---- Final CTA panel ---- */
.cta-panel {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(14, 42, 74, 0.72), rgba(14, 42, 74, 0.35)), url('assets/skyline-lineart.jpg');
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
  border-radius: 30px; padding: 76px 40px; text-align: center; color: #fff;
}
.cta-panel h2 { color: #fff; }
.cta-panel .lede { color: #c6d4e2; margin: 14px auto 32px; }
.cta-panel .reassure { color: #9db2c7; }
@media (max-width: 720px) { .cta-panel { padding: 52px 22px; border-radius: 22px; } }

/* ---- Footer ---- */
.site-footer { padding: 34px 0 44px; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.footer-inner a { color: var(--ink-3); }

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.25s ease; display: none;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; min-height: 54px; }
@media (max-width: 720px) { .sticky-cta { display: block; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---- Scroll reveal (JS adds .in) ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Ambient motion pass (visible but calm; fully disabled for reduced motion) ---- */
@media (prefers-reduced-motion: no-preference) {

  /* The gradient itself drifts slowly across the hero — no photo layer */
  .hero { animation: heroGradient 22s ease-in-out infinite alternate; }
  .hero::before, .hero::after { content: none; }
  .hero .container { position: relative; z-index: 1; }

  /* Mobile hero: the deep orange wash overwhelmed the small screen —
     calm the background right down and move the colour INTO the heading
     as a navy→orange gradient with a soft glow (Bruce 2026-07-23). */
  @media (max-width: 720px) {
    /* Phones get the gradient still, not drifting — motion on a small
       screen read as busy, and a static wash is calmer behind the copy */
    .hero {
      animation: none;
      background: linear-gradient(165deg, #fbfcfe 0%, #ffffff 46%, #fff3e9 78%, #ffe6d1 100%);
      background-size: 100% 100%;
    }
    /* NO gradient-clipped headline on mobile. Manjita's phone force-darkens
       pages, and clipped-gradient text turns into unreadable maroon-on-black
       ("Can't read", 2026-07-23). Solid text survives force-dark fine. */
  }

  /* Orange rules draw themselves in */
  .reveal.in .orange-rule { animation: ruleGrow 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

  /* Benefit-card icons gently float, out of phase */
  .icon-circle { animation: iconFloat 3.2s ease-in-out infinite alternate; }
  .card:nth-child(2) .icon-circle { animation-delay: 0.6s; }
  .card:nth-child(3) .icon-circle { animation-delay: 1.2s; }
  .card:nth-child(4) .icon-circle { animation-delay: 1.8s; }

  /* Card grids stagger in */
  .card-grid .card:nth-child(2) { transition-delay: 0.1s; }
  .card-grid .card:nth-child(3) { transition-delay: 0.2s; }
  .card-grid .card:nth-child(4) { transition-delay: 0.3s; }
  .proof-grid .proof-card:nth-child(2) { transition-delay: 0.12s; }
  .proof-grid .proof-card:nth-child(3) { transition-delay: 0.24s; }

  /* List items cascade inside their revealed section */
  .reveal .cover-row, .reveal .fit-list li, .reveal .trust-item, .reveal .faq-item {
    opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal.in .cover-row, .reveal.in .fit-list li, .reveal.in .trust-item, .reveal.in .faq-item { opacity: 1; transform: none; }
  .reveal.in .cover-row:nth-child(3), .reveal.in .fit-list li:nth-child(2), .reveal.in .trust-item:nth-child(2), .reveal.in .faq-item:nth-child(2) { transition-delay: 0.1s; }
  .reveal.in .cover-row:nth-child(4), .reveal.in .fit-list li:nth-child(3), .reveal.in .trust-item:nth-child(3), .reveal.in .faq-item:nth-child(3) { transition-delay: 0.2s; }
  .reveal.in .cover-row:nth-child(5), .reveal.in .fit-list li:nth-child(4), .reveal.in .faq-item:nth-child(4) { transition-delay: 0.3s; }
  .reveal.in .cover-row:nth-child(6), .reveal.in .fit-list li:nth-child(5) { transition-delay: 0.4s; }

  /* Final CTA: light sweep across the navy panel + breathing button */
  .cta-panel { position: relative; overflow: hidden; }
  .cta-panel::before {
    content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    animation: ctaSweep 6s ease-in-out infinite; pointer-events: none;
  }
  .cta-panel > * { position: relative; }
  .cta-panel .btn-primary { animation: btnPulse 2.8s ease-in-out infinite; }

  /* Booking page: selected-day pop */
  .cal-day.selected, .slot.selected { animation: popIn 0.25s cubic-bezier(0.2, 0.7, 0.3, 1.3); }

  /* Hero skyline: parallax pan inside its frame (JS sets --py) */
  .hero-photo img { transform: scale(1.3) translateY(calc(var(--py, 0) * 1px)); will-change: transform; }

  /* Sydney background on small screens: drifts slower than the page (JS sets --py).
     Desktop uses background-attachment: fixed instead — no transform there. */
  .section.sydney { overflow: hidden; }
  /* Mobile: no background photo at all — the visible photo band above the
     boxes does the job; the drifting bg looked poor on phones (Bruce). */

  /* Cards lift on hover */
  .card, .proof-card, .faq-item { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .card:hover, .proof-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(14, 42, 74, 0.10); }

  /* Meet photo: soft lift on hover */
  .meet-grid img { transition: transform 0.35s ease, box-shadow 0.35s ease; }
  .meet-grid img:hover { transform: scale(1.02); box-shadow: 0 14px 34px rgba(14, 42, 74, 0.14); }

  /* FAQ answers fade-slide in when opened */
  .faq-item[open] .faq-a { animation: faqOpen 0.35s ease both; }

  /* Benefit-card icons float gently, out of phase (Patty-style life) */
  .icon-circle { animation: iconBob 3.4s ease-in-out infinite alternate; }
  .card:nth-child(2) .icon-circle { animation-delay: 0.5s; }
  .card:nth-child(3) .icon-circle { animation-delay: 1s; }
  .card:nth-child(4) .icon-circle { animation-delay: 1.5s; }
  .cover-panel { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .cover-panel:hover { transform: translateY(-4px); }
}
@keyframes iconBob { from { transform: translateY(0); } to { transform: translateY(-6px); } }

@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@keyframes heroGlow {
  0% { background-position: -40% 45%, 0 0; }
  50% { background-position: 140% 55%, 0 0; }
  100% { background-position: -40% 45%, 0 0; }
}
@keyframes heroGradient { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
@keyframes ruleGrow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes iconFloat { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes ctaSweep { 0% { left: -60%; } 55% { left: 120%; } 100% { left: 120%; } }
@keyframes btnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 107, 33, 0.45); } 55% { box-shadow: 0 0 0 14px rgba(242, 107, 33, 0); } }
@keyframes popIn { from { transform: scale(0.85); } to { transform: scale(1); } }

/* ================= Booking page ================= */
.booking-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .booking-wrap { grid-template-columns: 1fr; } }
.booking-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px; }
.booking-side { background: var(--slate); border-radius: var(--radius-card); padding: 28px; }
.side-photo { border-radius: 14px; margin-bottom: 18px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.booking-side h3 { margin-bottom: 10px; }
.booking-side p { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.side-meta { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--navy); padding: 5px 0; }
.side-meta svg { width: 17px; height: 17px; stroke: var(--orange); flex: none; }

.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-header h3 { font-size: 18px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 17px; color: var(--navy);
}
.cal-nav button:disabled { opacity: 0.35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow span { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 6px 0; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: transparent;
  font-family: var(--sans); font-size: 15px; color: var(--ink-3); cursor: default;
}
.cal-day.available { background: var(--orange-pale); color: var(--navy); font-weight: 700; cursor: pointer; border-color: #f8cdb0; }
.cal-day.available:hover { border-color: var(--orange); }
.cal-day.selected { background: var(--orange); color: #fff; border-color: var(--orange); }
.cal-day.today { text-decoration: underline; }
.cal-day.empty { visibility: hidden; }

.slots-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.slot {
  min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer;
  transition: border-color 0.15s;
}
.slot:hover { border-color: var(--orange); }
.slot.selected { background: var(--orange); border-color: var(--orange); color: #fff; }
/* Dual-timezone slot: visitor's time large, Melbourne time underneath */
.slot-dual { display: flex; flex-direction: column; line-height: 1.25; padding: 8px 10px; min-height: 54px; }
.slot-dual small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.slot-dual.selected small { color: rgba(255, 255, 255, 0.85); }
#timeslotsHeading { margin-top: 22px; font-size: 16px; color: var(--ink-2); font-weight: 600; }

.form-grid { display: grid; gap: 16px; margin-top: 20px; }
.form-grid label { font-size: 14px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.form-error { color: #c0392b; font-size: 14.5px; font-weight: 600; margin-top: 10px; }
.summary-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--orange-pale); color: var(--navy);
  font-weight: 700; font-size: 15px; border-radius: 999px; padding: 8px 16px; margin-bottom: 14px;
}
.back-link { background: none; border: none; color: var(--ink-3); font-family: var(--sans); font-size: 14.5px; text-decoration: underline; cursor: pointer; margin-top: 14px; }

/* ---- Confirm / thankyou shared ---- */
.confirm-card {
  background: var(--slate); border-radius: var(--radius-card); padding: 26px; margin: 26px auto; max-width: 480px;
}
.confirm-card .svc { font-weight: 800; color: var(--navy); }
.confirm-card .when { font-size: 18px; margin-top: 6px; color: var(--ink); }
.confirm-card .with { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.check svg { width: 64px; height: 64px; margin: 0 auto 18px; stroke: var(--orange); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.day-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 24px 0 14px; }
.day-chip {
  padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink-2); font-family: var(--sans); font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.day-chip.selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.reslot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto 20px; }
.cancel-link { background: none; border: none; color: var(--ink-3); font-family: var(--sans); font-size: 14.5px; text-decoration: underline; cursor: pointer; margin-top: 24px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Official DDP chat.js widget: lift the launcher above the sticky mobile CTA */
@media (max-width: 720px) {
  #ddp-webchat-container { bottom: 92px !important; }
}

/* ================= Chat widget ================= */
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; box-shadow: 0 6px 22px rgba(14, 42, 74, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher:hover { background: var(--navy-2); }
@media (max-width: 720px) { .chat-launcher { bottom: 84px; } }

.chat-panel {
  position: fixed; right: 20px; bottom: 94px; z-index: 51;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 130px));
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(14, 42, 74, 0.28); overflow: hidden;
  display: none; flex-direction: column;
}
.chat-panel.open { display: flex; }
@media (max-width: 720px) { .chat-panel { bottom: 150px; height: min(540px, calc(100dvh - 180px)); } }
.chat-head { background: var(--navy); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.chat-head strong { font-size: 15.5px; }
.chat-head button { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; display: flex; flex-direction: column; }
.chat-gate { padding: 22px; overflow-y: auto; }
.chat-gate p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }
.chat-gate label { font-size: 13px; font-weight: 700; color: var(--navy); display: block; margin: 10px 0 4px; }
.chat-gate input {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  font-family: var(--sans); font-size: 15px;
}
.chat-gate .btn { width: 100%; margin-top: 16px; min-height: 48px; font-size: 15.5px; }
.chat-gate .gate-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.chat-frame { flex: 1; border: none; width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   DARK VARIANT (2026-07-23, Bruce's call after Manjita's phone showed
   the browser's force-darkened mess). A DESIGNED dark theme: deep navy
   canvas, lifted navy cards, brightened orange so it stays legible.
   Because we now declare `color-scheme: light dark`, browsers stop
   machine-darkening and use this instead.
   Note: --white is redefined as "card surface" — every card in this
   sheet uses var(--white) as its background, so this flips them all.
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #eaf1f8;          /* was the dark heading colour → now light */
    --navy-2: #cfdcea;
    --orange: #ff7f3c;        /* brightened: #f26b21 goes muddy on navy */
    --orange-dark: #ff9155;
    --orange-pale: rgba(255, 127, 60, 0.16);
    --slate: #12243c;         /* panel surface */
    --slate-2: #24405e;
    --ink: #e3ebf3;
    --ink-2: #b3c4d5;
    --ink-3: #8ea0b4;
    --line: #24405e;
    --white: #142942;         /* card surface */
  }

  body { background: #0a1626; }
  .section.alt { background: #0e1e33; }
  .section.textured { background: #0e1e33; }
  .card, .card-grid .card, .proof-grid .proof-card, .cover-panel, .fit-panel, .faq-item {
    background: var(--white); border-color: #24405e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  /* Ticker */
  .ticker { background: #0e1e33; border-top-color: #1e3550; border-bottom-color: #1e3550; }
  .ticker-track span { color: #ffa06a; }
  .ticker-track i { color: #46617e; }

  /* Hero: the same gradient idea in navy, so dark keeps the warm hint */
  .hero {
    background: linear-gradient(115deg, #0a1626 0%, #0c1d31 34%, #14293f 68%, #23364b 100%);
    background-size: 190% 190%;
  }
  @media (max-width: 720px) {
    .hero {
      background: linear-gradient(165deg, #0a1626 0%, #0c1d31 50%, #16293d 100%);
      background-size: 100% 100%;
    }
    /* Mobile headline stays solid in dark too — see the note in the light
       rule; gradient-clipped text is what her phone renders unreadable. */
  }

  /* Sydney section + fit panel */
  .section.sydney { background: #0a1626; }
  .fit-panel { background: var(--white); border-color: #24405e; }
  .sydney-glimpse img { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); }

  /* Navy-as-BACKGROUND uses (the variable is now light, so these need
     their own colour or they'd turn into pale blocks) */
  .cover-num { background: var(--orange); color: #0a1626; }
  .day-chip.selected { background: var(--orange); border-color: var(--orange); color: #0a1626; }
  .chat-fab, .chat-head { background: #152a44; }
  .cta-panel { background-color: #0d2038; border: 1px solid #24405e; }

  /* Proof cards: keep the gentle lift Manjita asked for */
  .proof-grid .proof-card { background: #142942; border-color: #24405e; }

  /* Booking + form surfaces */
  .booking-panel, .cal-nav, .slot, .day-chip, .chat-panel { background: #142942; }
  .form-grid input, .form-grid textarea, .form-grid select { background: #0f2136; color: var(--ink); border-color: #24405e; }
  .form-grid input::placeholder, .form-grid textarea::placeholder { color: #7286a0; }
  .cal-day.available { background: rgba(255, 127, 60, 0.14); color: #ffc39f; border-color: #6b3a1c; }
  .cal-day.selected { color: #0a1626; }
  .btn-outline { border-color: #2c4a6b; }
  .btn-primary { color: #0a1626; }

  /* Sticky mobile CTA bar */
  .sticky-cta { background: rgba(10, 22, 38, 0.96); border-top-color: #24405e; }

  /* Tick icons carry an inline stroke="#f26b21" in the HTML — CSS wins
     over presentation attributes, so lift them to the brighter orange */
  .trust-item svg, .fit-list svg, .summary-pill svg { stroke: var(--orange); }
}
