/* Apolo Wellness — design system
   Colors extracted from the brand logo (brand/logo-gold.png):
   navy #1b2d4b, gold #facd26. Gold fails WCAG on white (1.5:1), so a
   deepened --gold-deep exists for any text/icon sitting on a light
   background; the bright --gold is for buttons/badges (dark text on top)
   and large decorative fills only. */

:root {
  --navy: #1b2d4b;
  --navy-deep: #12203a;
  --navy-soft: #2f4569;
  --gold: #facd26;
  /* Darkened from #9a6d18 in the Step 5 accessibility pass. The old value
     measured 4.40:1 on --paper and 4.04:1 on --paper-warm, so every
     .eyebrow, .form-step-label and dropdown CTA row failed WCAG AA 4.5:1
     (31 axe nodes across 25 routes). #815a12 measures 5.92:1 on --paper,
     5.43:1 on --paper-warm and 6.17:1 on white. This variable is also the
     focus-ring colour (see :focus-visible below), so the change improves
     focus visibility at the same time. */
  --gold-deep: #815a12;
  --paper: #fdfaf3;
  --paper-warm: #f8f0dd;
  --white: #ffffff;
  --ink: #1b2d4b;
  --ink-muted: #51607e;
  --line: #e7e0cf;
  --line-soft: #f0ead9;
  --success: #1e7d4f;
  --error: #b3261e;
  --direct-badge: var(--navy);
  --referred-badge: #6b5a2e;

  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(27, 45, 75, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 45, 75, 0.10);
  --shadow-lg: 0 20px 48px rgba(27, 45, 75, 0.14);

  --container: 1180px;
  --header-h: 76px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--ink-muted); }
.lede { font-size: 1.18rem; color: var(--ink-muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper-warm); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #c3cde0; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold-deep); margin-bottom: 10px; }
.section-navy .eyebrow { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius-pill); font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border: none; text-decoration: underline; padding: 8px 4px; }
.btn-whatsapp { background: #25d366; color: #06210f; }
.btn-whatsapp:hover { background: #1fbd5a; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Focus visibility everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 250, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark img { height: 42px; width: auto; }
.brand-mark .brand-name-fallback { font-weight: 800; color: var(--navy); font-size: 1.1rem; }

.nav-desktop { display: none; }
@media (min-width: 960px) {
  .nav-desktop { display: flex; align-items: center; gap: 4px; }
  .nav-desktop > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .nav-desktop a.nav-link, .nav-desktop button.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: var(--radius-pill); text-decoration: none; color: var(--navy); font-weight: 700; font-size: 0.96rem; background: none; border: none; cursor: pointer; }
  .nav-desktop a.nav-link:hover, .nav-desktop button.nav-link:hover, .nav-desktop li.has-dropdown:hover > button.nav-link, .nav-desktop li.has-dropdown:focus-within > button.nav-link { background: var(--paper-warm); }
  .nav-cta { margin-left: 8px; }
}
.nav-mobile-toggle { display: inline-flex; background: none; border: 2px solid var(--navy); border-radius: var(--radius-sm); padding: 8px 10px; }
@media (min-width: 960px) { .nav-mobile-toggle { display: none; } }
.nav-mobile-toggle svg { width: 22px; height: 22px; }

li.has-dropdown { position: relative; list-style: none; }
.dropdown-panel { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 10px; margin-top: 8px; }
li.has-dropdown:hover .dropdown-panel, li.has-dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--navy); font-weight: 700; font-size: 0.94rem; }
.dropdown-panel a:hover { background: var(--paper-warm); }
.dropdown-panel a.cta-row { color: var(--gold-deep); border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 12px; }

.mobile-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); z-index: 49; overflow-y: auto; padding: 12px 20px 40px; }
.mobile-nav.open { display: block; }
/* Guarantees the mobile dialog can never render (or stay keyboard-
   focusable / in the accessibility tree) once the desktop nav is also
   visible, regardless of leftover .open state from before a resize. */
@media (min-width: 960px) { .mobile-nav.open { display: none; } }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-weight: 800; color: var(--navy); cursor: pointer; font-size: 1.05rem; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav a { display: block; padding: 12px 4px; color: var(--navy); text-decoration: none; font-weight: 700; }
.mobile-nav .mobile-sub a { padding-left: 16px; font-weight: 600; color: var(--ink-muted); }
.mobile-nav .mobile-cta { margin-top: 20px; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.hero-subtle-link { font-weight: 700; text-decoration: underline; color: var(--navy-soft); }
.hero-art { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: var(--radius-lg); min-height: 280px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.hero-art img { max-width: 100%; height: auto; }
.hero-art.hero-art-navy { background: var(--navy); border: none; }

/* Disclosure notice */
.disclosure {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper-warm); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius-md); padding: 16px 18px; font-size: 0.95rem; color: var(--ink);
}
.disclosure p { margin: 0; color: var(--ink); }
.disclosure svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--gold-deep); margin-top: 2px; }

/* Trust strip */
.trust-strip { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold-deep); }
.trust-item strong { display: block; color: var(--navy); }

/* Guides hub category filter */
.guide-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.guide-filter-btn { border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-weight: 700; font-size: 0.85rem; padding: 8px 16px; border-radius: var(--radius-pill); cursor: pointer; }
.guide-filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.guide-filter-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Cards / services grid */
.grid-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p { flex-grow: 1; }
/* Card CTAs used to render at text-decoration:none in var(--navy) at
   weight 800 — which is the EXACT colour and weight of the card's own <h3>.
   With no underline at rest, "Contact Apolo →" was visually
   indistinguishable from a bold caption, and was repeatedly reported as
   "plain text that cannot be clicked" even though the markup was a
   perfectly good <a href="mailto:...">. The markup was never the problem;
   the missing affordance was. Colour and weight alone must not be the only
   thing marking a link (WCAG 1.4.1 Use of Color), so these now carry a
   resting underline. Underlines don't affect box size, so no layout moves. */
.card-link { margin-top: 12px; font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-link:hover { text-decoration-color: var(--gold-deep); }
/* .link-underline animates its own gold bar in on hover. Combined with the
   resting underline above that would draw two lines, so the gradient is
   dropped for that combination only — standalone .link-underline links
   (hero, guides) keep their existing animation untouched. */
.card-link.link-underline { background-image: none; padding-bottom: 0; }

/* Progress dashboard stat tiles — only ever rendered for real, derived
   counts (see components.py's progress_dashboard_html), never invented. */
.stat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-value { display: block; font-size: 2.2rem; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-label { display: block; margin-top: 8px; color: var(--ink-muted); font-size: 0.85rem; font-weight: 700; }

/* Media embeds (youtube_embed / photo_gallery) — components render "" with
   no real media, so these rules only ever apply to genuine content. */
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; margin: 20px 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.photo-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 20px 0; }
.photo-gallery figure { margin: 0; }
.photo-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-md); }
.photo-gallery figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--ink-muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.02em; padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 12px; width: fit-content; }
.badge-direct { background: var(--navy); color: var(--white); }
.badge-referred { background: var(--paper-warm); color: var(--referred-badge); border: 1px solid #ddcfa0; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* How it works */
.steps { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding-left: 54px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 4px; font-weight: 800; color: var(--navy); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { display: none; padding: 0 4px 20px; margin: 0; }
.faq-item[open] p { display: block; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.86rem; color: var(--ink-muted); padding: 18px 0 0; }
/* Padded to a 24px tappable height (WCAG 2.5.8) without shifting the
   breadcrumb baseline; the container's top padding absorbs it. */
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; display: inline-block; padding: 4px 2px; min-height: 24px; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; }

/* Forms */
.form-shell { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.form-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.form-progress .bar { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--line-soft); overflow: hidden; }
.form-progress .bar span { display: block; height: 100%; background: var(--gold); width: 0%; transition: width 0.3s ease; }
.form-step-label { font-weight: 800; color: var(--gold-deep); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; margin-bottom: 6px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.85rem; margin-top: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
/* Mouse/touch focus keeps the quiet border-only treatment, but the
   outline must NOT be suppressed for keyboard focus. This rule used to be
   `:focus { outline: none }`, which outranked the global :focus-visible
   ring on specificity (0,2,1 vs 0,1,1), so a keyboard user tabbing
   through a form saw only a subtle border-colour change: exactly the
   "colour change alone" failure WCAG 2.4.11/2.4.13 rule out. */
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--error); }
.field-error-msg { color: var(--error); font-size: 0.85rem; margin-top: 6px; font-weight: 700; display: none; }
.field-error .field-error-msg { display: block; }
.radio-group, .checkbox-group { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice-card { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.choice-card:has(input:checked) { border-color: var(--navy); background: var(--paper-warm); }
/* 24x24 minimum (WCAG 2.5.8). The wrapping .choice-card label is already a
   large target, but the control itself was rendering at the browser
   default ~13px, which is awkward to hit directly on a phone. */
.choice-card input { accent-color: var(--navy); width: 24px; height: 24px; flex-shrink: 0; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.consent-row input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.consent-row label { font-weight: 600; color: var(--ink); font-size: 0.93rem; }
/* The row is a flex line of [checkbox][label]; its error message must drop
   onto its own line rather than becoming a third item squeezed alongside
   them. 36px = the 24px checkbox + the 12px gap, so the message lines up
   under the label text instead of under the checkbox. */
.consent-row { flex-wrap: wrap; }
.consent-row .field-error-msg { flex-basis: 100%; margin-left: 36px; }
/* Native checkboxes largely ignore border-color, so .field-error alone
   (added by relocation-form.js / simple-form.js) is invisible on a
   .consent-row unless the row itself carries a visible error state. */
.consent-row.field-error { border-color: var(--error); border-width: 1.5px; background: rgba(214, 32, 25, 0.05); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.detail-toggle { margin: 20px 0 4px; border: none; background: none; padding: 0; }
.detail-toggle summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); padding: 10px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius-pill); font-size: 0.92rem; }
.detail-toggle summary::-webkit-details-marker { display: none; }
.detail-toggle summary .chev { transition: transform 0.2s ease; }
.detail-toggle[open] summary .chev { transform: rotate(180deg); }
.detail-toggle .detail-body { display: none; padding: 20px 2px 4px; border-left: 2px solid var(--line-soft); margin: 16px 0 0 14px; padding-left: 20px; }
.detail-toggle[open] .detail-body { display: block; }
.optional-hint { color: var(--ink-muted); font-size: 0.85rem; font-weight: 600; margin: -8px 0 4px; }
.pet-repeater-item { border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px; position: relative; }
.review-summary dt { font-weight: 800; color: var(--navy); margin-top: 14px; }
.review-summary dd { margin: 2px 0 0; color: var(--ink-muted); }
/* Travel-method comparison table — real <table>, scrolls horizontally on
   narrow screens instead of squashing columns unreadably. */
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 720px; }
.table-scroll caption { text-align: left; padding: 14px 16px; font-size: 0.85rem; color: var(--ink-muted); caption-side: top; }
.table-scroll th, .table-scroll td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
.table-scroll thead th { background: var(--paper-warm); font-weight: 800; color: var(--navy); white-space: nowrap; }
.table-scroll tbody th { font-weight: 700; color: var(--navy); white-space: nowrap; }

[aria-live] { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 700; margin-bottom: 20px; }
.form-alert-error { background: #fbe9e7; color: var(--error); border: 1px solid #f3c6c0; }
.form-alert-success { background: #e6f4ec; color: var(--success); border: 1px solid #b9e2c9; }

/* Accessible error summary (components.py's error_summary_html) */
.error-summary { border: 2px solid var(--error); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 24px; }
.error-summary:focus { outline: 3px solid var(--navy); outline-offset: 2px; }
.error-summary h2 { color: var(--error); font-size: 1.05rem; margin: 0 0 10px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); font-weight: 700; text-decoration: underline; }

/* Confirmation page */
.confirmation-box { text-align: center; padding: 60px 24px; }
.confirmation-ref { display: inline-block; background: var(--paper-warm); border: 1px dashed var(--gold-deep); border-radius: var(--radius-sm); padding: 10px 20px; font-weight: 800; color: var(--navy); letter-spacing: 0.04em; margin: 16px 0; }

/* Footer */
.site-footer { background: var(--navy); color: #c3cde0; padding: 64px 0 28px; }
/* Footer column headings are <h2>: they are second-level sections of
   the page. As <h3> they produced an h1 -> h3 document jump on pages
   whose <main> contains only an h1 (thank-you routes, 404). */
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 40px; }
.site-footer a { color: #c3cde0; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
/* WCAG 2.5.8 target size: these links measured ~18px tall, so the padding
   below lifts the tappable area to 24px+ without changing the visual
   rhythm (the list gap shrinks by the amount the padding adds). These are
   a list of links, not links inline in a sentence, so the 2.5.8 inline
   exception does not apply to them. */
.footer-links a { display: inline-block; padding: 4px 0; min-height: 24px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.footer-logo-chip { display: inline-block; background: var(--paper); padding: 10px 18px; border-radius: var(--radius-md); margin-bottom: 14px; }
.footer-brand img { height: 40px; width: auto; display: block; }
.footer-disclosure { font-size: 0.82rem; color: #9aa8c4; max-width: 60ch; margin-top: 10px; }

/* Guides / articles */
.article-layout { display: grid; gap: 40px; }
/* A grid item defaults to min-width:auto, i.e. it refuses to shrink below
   its content's min-content width. .article-body holds the travel-method
   comparison table (min-width:720px inside .table-scroll), so without this
   the whole column blew out to ~1047px at a 320px viewport — .table-scroll's
   overflow-x:auto never got the chance to scroll, and the .toc beside it was
   stretched to match, scrolling the entire page sideways (WCAG 2.2 AA
   reflow, SC 1.4.10). min-width:0 lets the item shrink so the scroll
   container inside it does its job. */
.article-layout > * { min-width: 0; }
@media (min-width: 900px) { .article-layout { grid-template-columns: 220px 1fr; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.toc a { text-decoration: none; color: var(--ink-muted); font-weight: 700; font-size: 0.9rem; }
.toc a:hover { color: var(--navy); }
.article-body h2 { margin-top: 1.6em; }
.article-body ul, .article-body ol { color: var(--ink-muted); }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-muted); font-size: 0.88rem; margin-bottom: 24px; }
.checklist { background: var(--paper-warm); border-radius: var(--radius-md); padding: 24px; list-style: none; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 900; }
.guide-callout { background: var(--white); border: 1.5px solid var(--gold); border-radius: var(--radius-md); padding: 18px 20px; margin: 24px 0; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 12px 20px; z-index: 100; border-radius: 0 0 8px 0; font-weight: 800; text-decoration: none; }
.skip-link:focus { left: 0; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 20px; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.balanced-cols { display: grid; gap: 24px; }
@media (min-width: 760px) { .balanced-cols { grid-template-columns: 1fr 1fr; } }
.fit-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.fit-list h3 { display: flex; align-items: center; gap: 8px; }
.fit-list ul { padding-left: 22px; color: var(--ink-muted); }
.fit-list li { margin-bottom: 10px; }

/* ============================================================
   Motion & interaction system
   Everything here is additive: if JS fails to load, nothing is
   hidden or broken, elements just sit in their normal end-state.
   Every animated rule has a prefers-reduced-motion off-switch.
   ============================================================ */

/* Scroll reveal — IntersectionObserver in script.js toggles .is-visible */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(.16,.84,.44,1), transform 0.6s cubic-bezier(.16,.84,.44,1); }
.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group > *:nth-child(2) { transition-delay: 80ms; }
.reveal-group > *:nth-child(3) { transition-delay: 160ms; }
.reveal-group > *:nth-child(4) { transition-delay: 240ms; }
.reveal-group > *:nth-child(5) { transition-delay: 320ms; }
.reveal-group > *:nth-child(6) { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; transition: none; }
}
/* No-JS fallback: if script.js never runs, nothing should stay invisible */
.no-js .reveal, .no-js .reveal-group > * { opacity: 1; transform: none; }

/* Header gets a touch more definition once the page has scrolled */
.site-header { transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(253, 250, 243, 0.98); }

/* Magnetic buttons — JS sets --mx/--my from cursor offset on hover */
.magnetic { --mx: 0px; --my: 0px; transform: translate(var(--mx), var(--my)); transition: transform 0.2s cubic-bezier(.16,.84,.44,1); }
.magnetic:active { transition: transform 0.08s ease; }
@media (prefers-reduced-motion: reduce) { .magnetic { transition: none; } }

/* Tilt cards — JS sets --rx/--ry from cursor position over the card */
.tilt-card { --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.4s cubic-bezier(.16,.84,.44,1), box-shadow 0.4s ease; }
.tilt-card.is-tilting { transition: transform 0.05s linear; box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { .tilt-card { transform: none !important; transition: none; } }

/* Trailing paw cursor accent — additive only, never replaces the real cursor */
.paw-trail { position: fixed; top: 0; left: 0; width: 26px; height: 26px; pointer-events: none; z-index: 200; opacity: 0; transform: translate3d(-50%, -50%, 0); transition: opacity 0.25s ease; will-change: transform; }
.paw-trail.is-active { opacity: 0.9; }
.paw-trail svg { width: 100%; height: 100%; color: var(--gold-deep); filter: drop-shadow(0 2px 4px rgba(27,45,75,0.25)); }
@media (hover: none), (prefers-reduced-motion: reduce) { .paw-trail { display: none; } }

/* Intro loader */
.site-loader { position: fixed; inset: 0; z-index: 300; background: var(--navy); display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
.site-loader svg { width: 64px; height: 64px; animation: loader-pulse 1.1s ease-in-out infinite; }
.site-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loader-pulse { 0%, 100% { transform: scale(0.85); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .site-loader { display: none; } }

/* Floating decorative paw prints */
.paw-decor { position: absolute; opacity: 0.1; color: var(--navy); pointer-events: none; animation: paw-float 7s ease-in-out infinite; z-index: 0; }
.paw-decor:nth-of-type(2) { animation-delay: 1.4s; animation-duration: 8.5s; }
.paw-decor:nth-of-type(3) { animation-delay: 2.8s; animation-duration: 6.5s; }
@keyframes paw-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .paw-decor { animation: none; } }

/* Animated route line (dashed path that "draws" itself in on reveal) */
.route-line path { stroke-dasharray: 6 10; stroke-dashoffset: 0; }
.route-line.is-visible path { animation: route-dash 22s linear infinite; }
@keyframes route-dash { to { stroke-dashoffset: -320; } }
@media (prefers-reduced-motion: reduce) { .route-line.is-visible path { animation: none; } }

/* Section anchor dot-nav (desktop only, appears once past the hero) */
.dot-nav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 12px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.dot-nav.is-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 1180px) { .dot-nav { display: flex; } }
.dot-nav button { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; padding: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.dot-nav button.is-active { background: var(--gold); border-color: var(--gold-deep); transform: scale(1.3); }
.dot-nav button:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

/* Floating WhatsApp button, bottom-right, every page */
.whatsapp-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #06210f; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(6,33,15,0.3); transition: transform 0.2s cubic-bezier(.16,.84,.44,1), box-shadow 0.2s ease; }
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(6,33,15,0.38); }
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: fab-pulse 2.6s ease-out infinite; z-index: -1; }
@keyframes fab-pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-fab::before { animation: none; } .whatsapp-fab { transition: none; } }
@media (max-width: 600px) { .whatsapp-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; } .whatsapp-fab svg { width: 26px; height: 26px; } }

/* Hero art gets gentle ambient float + a cursor-follow glow */
.hero-art { position: relative; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(250,205,38,0.28), transparent 55%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.hero-art:hover::before { opacity: 1; }
.hero-art img { animation: hero-float 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } .hero-art::before { display: none; } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Button ripple on click */
.btn { position: relative; overflow: hidden; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.5); transform: scale(0); animation: ripple 0.6s ease-out; pointer-events: none; }
.btn-secondary .ripple, .btn-ghost .ripple { background: rgba(27,45,75,0.15); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn .ripple { animation: none; display: none; } }

/* Animated underline for text links inside prose */
.link-underline { position: relative; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 2px; transition: background-size 0.3s ease; padding-bottom: 2px; }
.link-underline:hover { background-size: 100% 2px; }

/* Planning checklist */
.checklist-section { margin-bottom: 28px; }
.print-checklist { list-style: none; padding: 0; }
.print-checklist li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.print-checklist label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.print-checklist input[type="checkbox"] { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); flex-shrink: 0; }

@media print {
  .no-print, .site-header, .site-footer, .whatsapp-fab, .paw-trail, .site-loader,
  .dot-nav, .mobile-nav, .skip-link, .breadcrumbs, .toc, .section-navy,
  .guide-filters, .form-shell, .error-summary { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .print-checklist input[type="checkbox"] { border: 1px solid #000; }
  .article-layout { display: block !important; }
}
