/* ============================================================
   REFERENCE LAYOUT
   Sections matching the client's reference build: hero tab strip,
   split section heads, step cards, the rushed/considered comparison,
   route cards, the credentials band and the enquiry band.
   Kept in its own file so the homepage layout can be reasoned about
   separately from the older home.css rules.
   ============================================================ */

/* ── 1. Hero tab strip ─────────────────────────────────────── */
.hero-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(252, 250, 244, 0.14);
}
.hero-tab {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: rgba(1, 25, 18, 0.55);
  backdrop-filter: blur(6px);
  color: var(--on-leaf);
  border-left: 1px solid rgba(252, 250, 244, 0.14);
  transition: background-color var(--dur) var(--ease);
}
.hero-tab:first-child { border-left: none; }
/* The gold fill follows the pointer: 01 is filled by default, but as soon
   as the strip is hovered that default drops and only the hovered tab
   fills — never two at once. */
.hero-tab:hover,
.hero-tab:focus-visible,
.hero-tab.is-active {
  background: var(--color-pop);
  color: var(--color-ink);
}
.hero-tabs:hover .hero-tab.is-active:not(:hover),
.hero-tabs:focus-within .hero-tab.is-active:not(:focus-visible):not(:hover) {
  background: rgba(1, 25, 18, 0.55);
  color: var(--on-leaf);
}
.hero-tab-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  opacity: 0.75;
  flex-shrink: 0;
}
.hero-tab.is-active .hero-tab-num,
.hero-tab:hover .hero-tab-num,
.hero-tab:focus-visible .hero-tab-num { opacity: 1; }
.hero-tabs:hover .hero-tab.is-active:not(:hover) .hero-tab-num { opacity: 0.75; }
.hero-tab-label {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}
.hero-tab-note {
  font-size: 0.82rem;
  opacity: 0.72;
  display: block;
  margin-top: 2px;
}
/* On phones the strip stops being an overlay: stacking three rows over
   the hero buries the secondary CTA, so it sits in normal flow below
   the image instead.

   .hero is a flex container with a fixed 100vh height and overflow:hidden,
   so simply unsetting `position` would make the strip a flex sibling of
   .hero-content — shrink-wrapped and clipped. The hero has to drop out of
   flex and release its height for the strip to lay out as a full-width
   block underneath. */
@media (max-width: 760px) {
  .hero {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .hero-media {
    /* The image keeps the old fixed-height frame the flex box gave it */
    position: absolute;
    height: 100svh;
    min-height: 560px;
  }
  .hero-overlay {
    height: 100svh;
    min-height: 560px;
    bottom: auto;
  }
  .hero-content {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
  }
  .hero-tabs {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    border-top: none;
  }
  .hero-tab {
    border-left: none;
    border-top: 1px solid rgba(252, 250, 244, 0.14);
    padding: var(--space-4) var(--space-5);
    background: var(--color-ink);
    backdrop-filter: none;
  }
  .hero-tab:first-child { border-top: none; }
  .hero-tab-note { display: none; }
}

/* ── 2. Split section head — title left, supporting copy right ── */
.split-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-8);
}
.split-head h2 { margin-bottom: 0; }
.split-head .lede { margin-bottom: 0; }
@media (max-width: 860px) {
  .split-head {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ── 3. Step cards — first one filled ──────────────────────── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .step-grid { grid-template-columns: 1fr; }
}
.step-card {
  display: flex;
  flex-direction: column;
  background: var(--color-pop);
  border: 1px solid var(--color-pop);
  border-radius: var(--radius);
  padding: var(--space-6);
  min-height: 320px;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
/* The green fill follows the pointer: 01 is filled by default, but as soon
   as the grid is hovered that default drops and only the hovered card
   fills — never two at once. */
.step-card--filled,
.step-card:hover,
.step-card:focus-within {
  background: var(--color-leaf);
  border-color: var(--color-leaf);
  color: var(--on-leaf);
}
.step-grid:hover .step-card--filled:not(:hover),
.step-grid:focus-within .step-card--filled:not(:focus-within):not(:hover) {
  background: var(--color-pop);
  border-color: var(--color-pop);
  color: var(--color-ink);
}
.step-grid:hover .step-card--filled:not(:hover) .step-card-num { color: var(--color-leaf); }
.step-grid:hover .step-card--filled:not(:hover) .step-card-icon { color: var(--color-leaf); opacity: 0.55; }
.step-grid:hover .step-card--filled:not(:hover) h3 { color: var(--color-ink); }
.step-grid:hover .step-card--filled:not(:hover) p { color: var(--color-ink-soft); }
.step-grid:hover .step-card--filled:not(:hover) .step-card-foot {
  border-top-color: var(--border-hairline);
  color: var(--color-ink);
}
.step-card:hover .step-card-num,
.step-card:focus-within .step-card-num { color: var(--color-pop); }
.step-card:hover .step-card-icon,
.step-card:focus-within .step-card-icon { color: var(--color-pop); opacity: 1; }
.step-card:hover h3,
.step-card:focus-within h3 { color: var(--on-leaf); }
.step-card:hover p,
.step-card:focus-within p { color: var(--on-leaf-muted); }
.step-card:hover .step-card-foot,
.step-card:focus-within .step-card-foot {
  border-top-color: rgba(252, 250, 244, 0.22);
  color: var(--color-pop);
}
.step-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.step-card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-leaf);
}
.step-card--filled .step-card-num { color: var(--color-pop); }
.step-card-icon {
  color: var(--color-leaf);
  opacity: 0.55;
}
.step-card--filled .step-card-icon {
  color: var(--color-pop);
  opacity: 1;
}
.step-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin-bottom: var(--space-3);
  color: var(--color-ink);
}
.step-card--filled h3 { color: var(--on-leaf); }
.step-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  /* Body ink, not ink-soft: the muted green only reaches 4.27:1 on gold. */
  color: var(--color-primary);
  margin-bottom: 0;
}
.step-card--filled p { color: var(--on-leaf-muted); }
.step-card-foot {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(1, 25, 18, 0.22);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
}
.step-card--filled .step-card-foot {
  border-top-color: rgba(252, 250, 244, 0.22);
  color: var(--color-pop);
}

/* ── 4. Comparison band — rushed vs considered ─────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 860px) {
  .compare-grid { grid-template-columns: 1fr; }
}
.compare-card {
  border-radius: var(--radius);
  padding: var(--space-6);
}
.compare-card--against { background: var(--color-coral-soft); }
.compare-card--for {
  background: var(--color-leaf);
  color: var(--on-leaf);
}
.compare-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.compare-card--against .compare-label { color: var(--color-coral-deep); }
.compare-card--for .compare-label { color: var(--color-pop); }
.compare-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}
.compare-card--against h3 { color: var(--color-ink); }
.compare-card--for h3 { color: var(--on-leaf); }
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}
.compare-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.compare-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 9px;
}
.compare-card--against .compare-list li { color: var(--color-ink-soft); }
.compare-card--against .compare-list li::before { background: var(--color-coral-deep); }
.compare-card--for .compare-list li { color: var(--on-leaf-muted); }
.compare-card--for .compare-list li::before { background: var(--color-pop); }

/* ── 5. Route cards with collapsible details ───────────────── */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1000px) {
  .route-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}
.route-card {
  display: flex;
  flex-direction: column;
  background: rgba(252, 250, 244, 0.05);
  border: 1px solid var(--on-leaf-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.route-card-media { position: relative; }
.route-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.route-chip {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(1, 25, 18, 0.82);
  color: var(--on-leaf);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
}
.route-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.route-meta {
  font-size: 0.8rem;
  color: var(--color-pop);
  margin-bottom: var(--space-3);
}
.route-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--on-leaf);
  margin-bottom: var(--space-3);
}
.route-card-body > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--on-leaf-muted);
  margin-bottom: var(--space-5);
}
.route-details {
  border-top: 1px solid var(--on-leaf-line);
  margin-bottom: var(--space-5);
}
.route-details summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-leaf);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.route-details summary::-webkit-details-marker { display: none; }
.route-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease);
}
.route-details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.route-spec {
  display: grid;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}
.route-spec-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-3);
  font-size: 0.84rem;
}
.route-spec-row dt { color: var(--on-leaf-faint); }
.route-spec-row dd {
  margin: 0;
  color: var(--on-leaf-muted);
}
.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: var(--space-4);
}
.route-tag {
  font-size: 0.72rem;
  border: 1px solid var(--on-leaf-line);
  color: var(--on-leaf-muted);
  padding: 4px 10px;
  border-radius: 999px;
}
.route-card .btn { margin-top: auto; }

/* ── 6. Credentials band — photo left, icon grid right ─────── */
/* Warm pale ground, not the teal accent. Lagoon stays reserved for the
   small icons inside this band — as a full-width wash it reads as a
   different palette from the rest of the page. */
.section--mint { background: var(--color-ivory); }
.creds-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-9);
  align-items: center;
}
@media (max-width: 900px) {
  .creds-layout {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}
.creds-media { position: relative; }
.creds-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.creds-chip {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  background: var(--color-paper);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lift);
  max-width: 260px;
}
.creds-chip strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}
.creds-chip span {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
  display: block;
}
.creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-7);
  margin-top: var(--space-7);
  padding-top: var(--space-7);
  border-top: 1px solid rgba(0, 72, 34, 0.14);
}
@media (max-width: 560px) {
  .creds-grid { grid-template-columns: 1fr; }
}
.creds-item-icon {
  color: var(--color-lagoon);
  margin-bottom: var(--space-3);
  display: block;
}
.creds-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.creds-item p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin-bottom: 0;
}

/* ── 7. Enquiry band — heading left, form card right ───────── */
.enquiry-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-9);
  align-items: start;
}
@media (max-width: 900px) {
  .enquiry-layout {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}
.enquiry-card {
  background: var(--color-paper);
  border-radius: var(--radius);
  padding: var(--space-7);
  box-shadow: var(--shadow-deep);
}
.enquiry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 620px) {
  .enquiry-row { grid-template-columns: 1fr; }
}
/* Sits inside the white card, so it keeps ink — not the band's light text */
.enquiry-card .enquiry-note {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  margin: var(--space-4) 0 0;
}

/* ── Journey cards are the homepage's three tabs (client 2026-09-28) ─
   The hero tab strip was merged in here: each card is now a link into its
   step, with the step's name where "01/02/03" used to be. */
a.step-card {
  color: var(--color-ink);
  text-decoration: none;
  cursor: pointer;
}
a.step-card:focus-visible {
  outline: 3px solid var(--color-pop);
  outline-offset: 3px;
}
.step-card-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-leaf);
}
.step-card--filled .step-card-label,
.step-card:hover .step-card-label,
.step-card:focus-within .step-card-label { color: var(--color-pop); }
.step-grid:hover .step-card--filled:not(:hover) .step-card-label { color: var(--color-leaf); }
.step-card-go {
  margin-top: auto;
  font-weight: 700;
}
.step-card-go { display: block; }
