/* ---------------------------------------------------------------------------
   Zentigo Travels — site layer on top of the Organic design system (ds.css).
   Tokens, buttons, tags, cards, fields and tables come from ds.css; this file
   only adds page layout, the responsive behaviour and a few page-specific
   patterns.
--------------------------------------------------------------------------- */

:root {
  --color-bg: #ffffff;
  --color-surface: #f7f6f3;
  --wrap: 1160px;
  --gutter: 28px;
  --header-h: 72px;
  /* Fluid section rhythm — tightens on phones, opens up on large screens. */
  --section-y: clamp(44px, 6vw, 76px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* Long words (URLs, place names) must never force a horizontal scrollbar. */
p, li, h1, h2, h3, h4, td, th, label, summary { overflow-wrap: break-word; }
a { color: var(--color-accent-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-accent-800); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); text-wrap: balance; }

.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;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-md) 0; font-size: 14px;
}
.skip:focus { left: 0; color: #fff; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* --- header ---------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand-mark { display: block; flex: none; width: 46px; height: 46px; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--font-heading); font-size: 19px; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { font-size: 14px; color: var(--color-text); text-decoration: none; padding: 2px 0; }
.nav a:not(.btn):hover { color: var(--color-accent-700); }
.nav a:not(.btn)[aria-current="page"] { color: var(--color-accent-700); box-shadow: inset 0 -2px 0 var(--color-accent); }
.nav a.nav-cta {
  font-size: 14px; padding: 10px 20px; white-space: nowrap;
  color: var(--color-bg); text-decoration: none;
}
.nav a.nav-cta:hover { color: var(--color-bg); background: var(--color-accent-600); }
.nav a.nav-cta:active { color: var(--color-bg); background: var(--color-accent-700); }


.nav-toggle { display: none; }

/* --- hero ------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24,20,17,0.80) 0%, rgba(24,20,17,0.58) 45%, rgba(24,20,17,0.18) 100%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr 430px;
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; margin: 18px 0; max-width: 20ch; color: #fff; }
.hero-lede { font-size: clamp(16px, 1.4vw, 17.5px); line-height: 1.6; max-width: 52ch; color: rgba(255,255,255,0.88); margin: 0; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; color: #fff; }
.hero-stats b { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 26px; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,0.75); }

/* --- sections -------------------------------------------------------- */

.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * 0.8) 0; }
.section-alt { background: var(--color-surface); }
.page-head { padding-top: 56px; padding-bottom: 0; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; margin: 18px 0 14px; max-width: 22ch; }
.lede { max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); }
.section h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 8px; }
.section-sub { max-width: 56ch; color: var(--color-neutral-700); margin: 0 0 36px; line-height: 1.6; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 8px; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.split-mid { align-items: center; }
.split-flip { grid-template-columns: 0.9fr 1.1fr; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 16.5px; line-height: 1.65; color: var(--color-neutral-800); max-width: 62ch; }
.prose p { margin: 0; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.media { border-radius: calc(var(--radius-lg) * 1.3); overflow: hidden; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-stack { display: flex; flex-direction: column; gap: 16px; }
.media-300 { height: 300px; }
.media-200 { height: 200px; }
.media-340 { height: 340px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }

/* --- enquiry form card ----------------------------------------------- */

.form-card {
  background: #fff; border-radius: calc(var(--radius-lg) * 1.2);
  padding: 28px 28px 26px; box-shadow: var(--shadow-lg);
}
.form-panel {
  background: var(--color-surface); border-radius: calc(var(--radius-lg) * 1.2);
  padding: 32px 34px;
}
.form-card h2, .form-panel h2 { font-size: 23px; margin: 0 0 4px; }
.form-note { font-size: 13px; color: var(--color-neutral-700); margin: 0 0 18px; }
.form-grid { display: grid; gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-2 .span-2 { grid-column: 1 / -1; }
.form-fine { font-size: 12px; color: var(--color-neutral-700); margin: 12px 0 0; }
.field label { display: block; }
textarea.input { border-radius: var(--radius-md); min-height: 96px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 49%, var(--color-neutral-700) 50%), linear-gradient(-45deg, transparent 49%, var(--color-neutral-700) 50%); background-size: 7px 7px, 7px 7px; background-position: right 20px center, right 13px center; background-repeat: no-repeat; padding-right: 40px; }

.notice { border-radius: var(--radius-md); padding: 14px 18px; font-size: 14px; margin: 0 0 22px; }
.notice-ok { background: var(--color-accent-2-200); color: var(--color-accent-2-900); }
.notice-error { background: var(--color-accent-200); color: var(--color-accent-900); }
.notice a { color: inherit; }

/* --- tour packages --------------------------------------------------- */

.pkg-list { display: flex; flex-direction: column; gap: 20px; margin-top: 44px; }
.pkg {
  background: var(--color-surface); border-radius: calc(var(--radius-lg) * 1.15);
  overflow: hidden; display: grid; grid-template-columns: 300px 1fr;
}
.pkg-media { position: relative; overflow: hidden; min-height: 280px; }
.pkg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkg-body { padding: 28px 32px; }
.pkg-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pkg-body h2, .pkg-body h3 { font-size: 27px; margin: 0 0 4px; }
.pkg-body h2 a, .pkg-body h3 a { color: inherit; text-decoration: none; }
.pkg-body h2 a:hover, .pkg-body h3 a:hover { color: var(--color-accent-700); }
.pkg-sub { font-size: 15px; color: var(--color-accent-700); margin-bottom: 10px; }
.pkg-blurb { font-size: 14.5px; line-height: 1.6; color: var(--color-neutral-800); max-width: 70ch; }
.pkg-stops { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.pkg-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pkg-actions small { font-size: 13px; color: var(--color-neutral-700); }

.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin-top: 22px; }
.day-label { font-family: var(--font-heading); font-size: 15px; color: var(--color-accent-700); margin-bottom: 8px; }
.day ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; line-height: 1.5; color: var(--color-neutral-800); }

details.plan { margin-top: 22px; border-top: 1px solid var(--color-divider); padding-top: 18px; }
details.plan > summary {
  cursor: pointer; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--color-accent-700); list-style: none;
}
details.plan > summary::-webkit-details-marker { display: none; }
details.plan > summary::after { content: " ▾"; }
details.plan[open] > summary::after { content: " ▴"; }
details.plan > summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.callout {
  margin-top: 56px; background: var(--color-accent-2-100);
  border-radius: calc(var(--radius-lg) * 1.3); padding: 40px 44px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.callout div { flex: 1; min-width: 280px; }
.callout h2 { font-size: 28px; margin: 0 0 8px; }
.callout p { margin: 0; max-width: 56ch; color: var(--color-accent-2-900); line-height: 1.6; }

/* --- cards / posts --------------------------------------------------- */

.post-card {
  background: var(--color-surface); border-radius: calc(var(--radius-lg) * 1.15);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--color-text);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { color: var(--color-text); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card-media { height: 170px; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body h2, .post-card-body h3 { font-size: 20px; margin: 0; }
.post-card-body p { font-size: 13.5px; line-height: 1.55; color: var(--color-neutral-700); margin: 0; flex: 1; }
.post-card-read { font-size: 12px; color: var(--color-neutral-600); }

.tour-card { background: var(--color-bg); border-radius: calc(var(--radius-lg) * 1.15); overflow: hidden; display: flex; flex-direction: column; }
.tour-card-media { height: 190px; overflow: hidden; }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-card-body h3 { font-size: 21px; margin: 0; }
.tour-card-body h3 a { color: inherit; text-decoration: none; }
.tour-card-body h3 a:hover { color: var(--color-accent-700); }
.tour-card-body p { font-size: 14px; line-height: 1.55; color: var(--color-neutral-700); margin: 0; flex: 1; }

/* --- article --------------------------------------------------------- */

.article { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 88px; }
.article h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; margin: 10px 0 16px; }
.article-meta { font-size: 14px; color: var(--color-neutral-700); margin: 0 0 28px; }
.article-hero { height: clamp(200px, 34vw, 360px); border-radius: calc(var(--radius-lg) * 1.3); overflow: hidden; margin-bottom: 36px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body h2 { font-size: clamp(22px, 2.4vw, 26px); margin: 36px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body p { font-size: 17px; line-height: 1.7; margin: 0 0 22px; color: var(--color-neutral-900); text-wrap: pretty; }
.article-body p.q { font-weight: 600; color: var(--color-text); margin: 26px 0 6px; line-height: 1.5; }
.article-body ul { margin: 6px 0 22px; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 16.5px; line-height: 1.6; color: var(--color-neutral-900); }
.toc { background: var(--color-surface); border-radius: var(--radius-lg); padding: 22px 26px; margin: 0 0 34px; }
.toc h2 { font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-body); font-weight: 700; color: var(--color-neutral-700); }
.toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.article-form { margin-top: 52px; background: var(--color-surface); border-radius: calc(var(--radius-lg) * 1.3); padding: 36px 38px; }
.article-form h2 { font-size: 26px; margin: 0 0 8px; }
.article-form > p { margin: 0 0 22px; color: var(--color-neutral-800); max-width: 52ch; line-height: 1.6; }

.back-link { display: inline-block; margin-bottom: 24px; }

/* --- contact --------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; margin-top: 44px; align-items: start; }
.info-card { background: var(--color-bg); border: 1px solid var(--color-divider); border-radius: calc(var(--radius-lg) * 1.2); padding: 28px 30px; }
.info-card h2, .info-card h3 { font-size: 22px; margin: 0 0 16px; }
.info-list { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.info-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-600); }
.info-social { display: flex; gap: 14px; flex-wrap: wrap; }
.next-card { background: var(--color-accent-2-100); border-radius: calc(var(--radius-lg) * 1.2); padding: 28px 30px; }
.next-card h2 { font-size: 19px; margin: 0 0 10px; }
.next-card ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--color-accent-2-900); display: flex; flex-direction: column; gap: 8px; }
.aside-stack { display: flex; flex-direction: column; gap: 20px; }

.faq-item h2, .faq-item h3 { font-size: 19px; margin: 0 0 8px; }
.faq-item p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-800); margin: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- legal / simple pages -------------------------------------------- */

.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 88px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--color-neutral-900); }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal .updated { font-size: 14px; color: var(--color-neutral-700); }

.centered { max-width: 640px; margin: 0 auto; padding: 96px var(--gutter); text-align: center; }
.centered h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px; }
.centered p { font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); }
.centered .btn-row { justify-content: center; }

/* --- footer ---------------------------------------------------------- */

.site-footer { background: var(--color-neutral-900); color: var(--color-neutral-200); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 190px; height: auto; border-radius: var(--radius-md); margin-bottom: 18px; }
.footer-blurb { font-size: 14px; line-height: 1.6; max-width: 38ch; color: var(--color-neutral-300); margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-head { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; color: var(--color-neutral-100); margin: 0 0 4px; }
.footer-col a { color: var(--color-neutral-300); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-accent { color: var(--color-accent-300) !important; }
.footer-accent:hover { color: #fff !important; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.footer-legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--color-neutral-800);
  font-size: 12.5px; color: var(--color-neutral-500);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal a { color: var(--color-neutral-400); }
.footer-legal a:hover { color: #fff; }

.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 60px; height: 60px; border-radius: 999px; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.wa-float:hover { background: #1eb85a; }

/* --- responsive ------------------------------------------------------
   Breakpoints, largest first:
     1400  large laptop / desktop — wider measure
     1180  small laptop — hero and split columns tighten
     1024  tablet landscape — two-column grids, sidebars drop below
      860  tablet portrait / large phone — burger nav, single column
      600  phone — one column everywhere, full-width actions
      380  small phone — tighter gutters, smaller display type
   Touch targets are raised to 44px at 1024 and below, where a pointer is
   likely to be a finger.
-------------------------------------------------------------------------- */

@media (min-width: 1400px) {
  :root { --wrap: 1260px; --gutter: 40px; }
  .hero-inner { grid-template-columns: 1fr 460px; gap: 72px; }
}

@media (max-width: 1180px) {
  :root { --gutter: 24px; }
  .hero-inner { grid-template-columns: 1fr 380px; gap: 40px; }
  .hero { min-height: 0; }
  .split, .split-flip { gap: 40px; }
  .grid-2 { gap: 20px 32px; }
  .pkg { grid-template-columns: 240px 1fr; }
  .pkg-body { padding: 26px 26px; }
}

@media (max-width: 1024px) {
  /* Hero becomes one column: headline first, enquiry form beneath it. */
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { max-width: 24ch; }
  .form-card { max-width: 560px; }

  .split, .split-flip { grid-template-columns: 1fr; gap: 32px; }
  .split .media-stack { flex-direction: row; }
  .split .media-stack > * { flex: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .aside-stack { flex-direction: row; flex-wrap: wrap; }
  .aside-stack > * { flex: 1 1 300px; }

  /* Three-up card rows go two-up here — 3 across below ~1050px leaves each
     card too narrow for its heading and blurb. */
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-300, .media-200, .media-340 { height: clamp(200px, 34vw, 300px); }

  /* Finger-sized controls. */
  .btn { min-height: 44px; padding: 11px 20px; }
  .btn-icon { width: 44px; height: 44px; padding: 0; }
  .btn-ghost { min-height: 44px; }
  .input { min-height: 44px; padding-block: 10px; }
  textarea.input { min-height: 110px; }
  .nav a.nav-cta { min-height: 44px; }
}

@media (max-width: 860px) {
  /* Burger navigation. The header stays sticky — a sticky element is still a
     positioned containing block, so the panel anchors to it correctly. */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none;
    border: 1px solid var(--color-divider); background: transparent;
    border-radius: 999px; cursor: pointer; padding: 0;
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--color-text); border-radius: 2px;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  html.js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
    padding: 4px var(--gutter) 20px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  html.js .nav.open { display: flex; }
  html.js .nav a:not(.btn) {
    padding: 15px 0; font-size: 16px; min-height: 44px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--color-divider);
  }
  html.js .nav a:not(.btn)[aria-current="page"] { box-shadow: none; font-weight: 600; }
  html.js .nav a.nav-cta { margin-top: 16px; border-bottom: 0; text-align: center; font-size: 15px; padding: 13px 20px; }
  /* No-JS fallback: the links simply stay in a wrapping row. */
  html:not(.js) .nav { flex-wrap: wrap; gap: 14px 18px; }

  .header-inner { gap: 16px; }
  .brand-name { font-size: 17px; }

  .pkg { grid-template-columns: 1fr; }
  .pkg-media { min-height: 0; height: clamp(190px, 42vw, 280px); }
  .pkg-media img { position: static; }
  .pkg-body { padding: 24px 22px; }
  .days { grid-template-columns: 1fr; gap: 20px; }
  .callout { padding: 30px 26px; gap: 22px; }
  .article-form { padding: 26px 22px; }
  .form-panel { padding: 24px 22px; }
  .article { padding-top: 28px; padding-bottom: 64px; }
  .section-head { margin-bottom: 28px; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .split .media-stack { flex-direction: column; }
  .aside-stack { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .hero-inner { padding-top: 40px; padding-bottom: 44px; }
  .hero h1 { max-width: none; }
  .hero-lede { font-size: 16px; }
  .hero-stats { gap: 18px 24px; margin-top: 28px; }
  .hero-stats b { font-size: 22px; }

  .page-head { padding-top: 36px; }
  .form-card { padding: 22px 20px; max-width: none; }
  .info-card, .next-card { padding: 24px 22px; }
  .callout { margin-top: 40px; padding: 26px 22px; }
  .toc { padding: 20px 22px; }

  /* Full-width actions read better than half-width pills on a phone. */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn, .pkg-actions .btn { width: 100%; }
  .pkg-actions { flex-direction: column; align-items: stretch; }
  .pkg-actions small { order: 3; text-align: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .centered { padding: 64px var(--gutter); }
  .centered .btn-row { align-items: stretch; }

  /* 16px stops iOS Safari zooming the page when a field takes focus. */
  .input, select.input, textarea.input { font-size: 16px; }

  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }

  .article-body p { font-size: 16.5px; }
  .article-body ul { font-size: 16px; }
  .footer-legal { flex-direction: column; gap: 10px; }
  .footer-logo { width: 160px; }
}

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .brand-name { font-size: 16px; }
  .hero-stats { gap: 14px 18px; }
  .hero-stats b { font-size: 20px; }
  .pkg-body { padding: 20px 18px; }
  .form-card, .form-panel, .article-form { padding: 20px 16px; }
  .info-card, .next-card { padding: 20px 18px; }
}

/* Short landscape phones: stop the hero eating the whole viewport. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: 32px; padding-bottom: 32px; }
  html.js .nav { max-height: 70vh; }
}

@media print {
  .site-header, .site-footer, .wa-float, .form-card, .form-panel, .article-form, .nav-toggle, .skip { display: none !important; }
  body { background: #fff; }
  .article { max-width: none; padding: 0; }
}
