/* ==========================================================================
   DUNESCAPE JOURNEYS — LAYOUT
   Header / Nav / Mobile overlay / Buttons / Cards / Footer / Cursor
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM CURSOR
   -------------------------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.cursor.is-active { opacity: 1; }

.cursor__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}

/* Hide on touch / coarse pointers — and never let it break the site */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* --------------------------------------------------------------------------
   2. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */

.header {
  /* Local ink scale so every child reads off one dark surface */
  --header-bg: rgba(26, 21, 16, 0.88);   /* = --deep, so it blends into dark page headers */
  --header-bg-scrolled: rgba(16, 12, 8, 0.97);
  --header-ink: var(--ink-inv);
  --header-ink-soft: rgba(243, 237, 226, 0.64);
  --header-ink-faint: rgba(212, 197, 169, 0.6);

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: var(--z-nav);
  color: var(--header-ink);
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform 0.5s var(--ease-out);
  will-change: transform;
}

/* Gold hairline that fades out toward both edges — reads as a rule, not a box */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-line) 18%,
    var(--gold-line) 82%,
    transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: rgba(212, 197, 169, 0.1);
  box-shadow: 0 14px 40px rgba(10, 7, 4, 0.28);
}

.header.is-scrolled::after { opacity: 1; }

/* Hidden when scrolling down, restored on scroll up */
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* --- Logo -----------------------------------------------------------------
   uploads/logo.png ships with transparent padding baked around the wordmark:
   the letterforms sit at x 3.3%-96.9% and y 40.8%-66.2% of the file, so the
   image box is ~3.7x taller than the ink. The ratios below encode that inset
   so the lockup aligns to the letterforms instead of the file's edges. Only
   --logo-w ever changes per breakpoint; everything else follows from it.
   -------------------------------------------------------------------------- */
.logo {
  --logo-w: 296px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.logo__mark {
  display: block;
  width: var(--logo-w);
  height: auto;
  /* Pull the file's dead top/bottom padding out of the layout box so it can't
     inflate the 72px header. ~2px is left in hand on each side so the cyan
     lens flare is never clipped by the GSAP clip-path wipe on .logo. */
  margin-top: calc(var(--logo-w) * -0.055);
  margin-bottom: calc(var(--logo-w) * -0.044);
}

.logo__sub {
  display: block;
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--header-ink-faint);
  line-height: 1;
  margin-top: 4px;
  transition: color var(--dur) var(--ease-out);
  /* Offset by the file's 3.3% transparent left edge so the tagline sits
     flush with the stem of the D rather than with the image box. */
  margin-left: calc(var(--logo-w) * 0.033);
}

/* --- Desktop nav --- */
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
  margin-right: 2.5rem;
}

.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--header-ink-soft);
  padding-block: 6px;
  transition: color var(--dur) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link:hover { color: var(--header-ink); }

.nav__link.is-current { color: var(--gold); }

.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); }

@media (max-width: 991px) {
  .header { height: 64px; }
  .nav { display: none; }
  .logo { --logo-w: 248px; }
}

/* --- Header actions --- */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fill: var(--deep);
  --btn-ink: var(--deep);
  --btn-ink-hover: var(--sand);
  --btn-border: var(--deep-12);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0.95em 1.9em;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--btn-ink);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-ui);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

/* Fill sweeps in from the left */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
  will-change: transform;
}

.btn:hover {
  color: var(--btn-ink-hover);
  border-color: var(--btn-fill);
}

.btn:hover::before { transform: scaleX(1); }

/* Leaving: retract to the right so the motion reads as continuous */
.btn:not(:hover)::before { transform-origin: right center; }

.btn__icon {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .btn__icon { transform: translateX(3px); }

/* --- Variants --- */
.btn--solid {
  --btn-bg: var(--deep);
  --btn-ink: var(--sand);
  --btn-fill: var(--gold);
  --btn-ink-hover: var(--deep);
  --btn-border: var(--deep);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-ink: var(--deep);
  --btn-fill: var(--deep);
  --btn-ink-hover: var(--gold);
  --btn-border: var(--gold);
}

.btn--terracotta {
  --btn-bg: var(--terracotta);
  --btn-ink: var(--pearl);
  --btn-fill: var(--deep);
  --btn-ink-hover: var(--pearl);
  --btn-border: var(--terracotta);
}

.btn--ghost-light {
  --btn-ink: var(--ink-inv);
  --btn-border: var(--rule-inv);
  --btn-fill: var(--sand);
  --btn-ink-hover: var(--deep);
}

.btn--pill { border-radius: var(--radius-pill); }
.btn--sm { padding: 0.75em 1.4em; font-size: 0.6875rem; }
.btn--block { width: 100%; }

/* Book Now pill in the header */
.btn--book {
  --btn-bg: var(--gold);
  --btn-ink: var(--deep);
  --btn-fill: var(--sand);
  --btn-ink-hover: var(--deep);
  --btn-border: var(--gold);
  border-radius: var(--radius-pill);
  padding: 0.85em 1.6em;
  box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.35);
  transition: color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.btn--book:hover {
  --btn-border: var(--sand);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.16);
}

@media (max-width: 480px) {
  .btn--book { display: none; }
}

/* Wordmark is ~24:1, so it has to go fluid before it crowds the burger */
@media (max-width: 480px) {
  .logo { --logo-w: clamp(178px, 58vw, 216px); }
  .logo__sub { letter-spacing: 0.22em; }
}

/* --- Text link with arrow --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
  padding-bottom: 6px;
  position: relative;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--inv { color: var(--ink-inv); }

/* --------------------------------------------------------------------------
   4. HAMBURGER + MOBILE OVERLAY
   -------------------------------------------------------------------------- */

.burger {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--header-ink);
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}

.burger.is-open span { background: var(--sand); }
.burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 991px) {
  .burger { display: flex; }
}

/* --- Full-screen overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav-overlay);
  background: var(--deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--pad-x) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  will-change: clip-path;
}

.nav-overlay.is-open { visibility: visible; }

.nav-overlay__list {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.nav-overlay__item { overflow: hidden; }

.nav-overlay__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 6.5vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink-inv);
  transition: color var(--dur) var(--ease-out);
}

.nav-overlay__link:hover { color: var(--gold); }

.nav-overlay__link .idx {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  opacity: 0.7;
}

.nav-overlay__foot {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule-inv);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-overlay__foot a {
  font-size: var(--fs-sm);
  color: var(--ink-inv-soft);
  transition: color var(--dur) var(--ease-out);
}

.nav-overlay__foot a:hover { color: var(--gold); }

.nav-overlay__label {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-inv-faint);
  margin-bottom: var(--space-2xs);
}

/* When overlay is open the header must sit above it for the close button */
body.nav-open .header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  z-index: calc(var(--z-nav-overlay) + 1);
  transform: none;
}

body.nav-open .header { box-shadow: none; }
body.nav-open .header::after { opacity: 0; }
body.nav-open .logo__sub { color: var(--ink-inv-faint); }

/* --------------------------------------------------------------------------
   5. CARD BASE (shared across pages)
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--pearl);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.card:hover .frame img { transform: scale(1.05); }

.card__body {
  padding: var(--space-md) calc(var(--space-md) - 0.25rem) calc(var(--space-md) + 0.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

/* Category / meta tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.55em 0.9em;
  border-radius: var(--radius-ui);
  background: var(--gold-soft);
  color: var(--gold-deep);
  white-space: nowrap;
}

.tag--outline {
  background: transparent;
  border: 1px solid var(--gold-line);
}

.tag--dark {
  background: rgba(212, 197, 169, 0.1);
  color: var(--beige);
}

.tag--float {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--deep);
}

/* Meta row (duration • group size) */
.meta {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-label);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.meta svg { width: 14px; height: 14px; stroke-width: 1.5; }
.meta__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  background: var(--deep);
  color: var(--ink-inv);
  padding: 80px 0 40px;
  overflow: hidden;
  z-index: 2;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: var(--space-lg) var(--gutter);
  padding-bottom: var(--space-xl);
}

@media (max-width: 991px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* Same wordmark, reusing .logo__mark's inset maths via an inherited --logo-w.
   Roomier here than in the header, and fluid so it never overruns the column. */
.footer__logo {
  --logo-w: clamp(200px, 40vw, 300px);
  display: inline-block;
  line-height: 0;
}

.footer__blurb {
  margin-top: var(--space-sm);
  max-width: 34ch;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-inv-soft);
}

.footer__heading {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.footer__list { display: flex; flex-direction: column; gap: 0.85rem; }

.footer__list a,
.footer__contact a {
  font-size: var(--fs-sm);
  color: var(--ink-inv-soft);
  transition: color var(--dur) var(--ease-out);
  position: relative;
  width: fit-content;
}

.footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}

.footer__list a:hover { color: var(--ink-inv); }
.footer__list a:hover::after { transform: scaleX(1); }

.footer__contact { display: flex; flex-direction: column; gap: 1.1rem; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: var(--fs-sm);
  color: var(--ink-inv-soft);
  line-height: 1.6;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: var(--gold);
  stroke-width: 1.5;
}

.footer__contact-item a:hover { color: var(--gold); }

/* Socials */
.socials { display: flex; gap: 0.65rem; margin-top: var(--space-md); }

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-inv);
  border-radius: var(--radius-ui);
  color: var(--ink-inv-soft);
  transition: color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.socials a svg { width: 17px; height: 17px; stroke-width: 1.5; }

.socials a:hover {
  color: var(--deep);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* Bottom bar */
.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule-inv);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__bottom p {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-inv-faint);
}

.footer__bottom .accent { color: var(--gold); }

/* Oversized watermark wordmark bleeding off the bottom */
.footer__watermark {
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--beige);
  opacity: 0.045;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* --------------------------------------------------------------------------
   7. ACCORDION BASE — shared by the chauffeur rows and the FAQ
   Variant styling lives in tours.css / forms.css.
   -------------------------------------------------------------------------- */

.accordion__item { border-bottom: 1px solid var(--rule); }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  text-align: left;
  color: inherit;
  transition: color var(--dur) var(--ease-out);
}

.accordion__icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--deep-12);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

/* Plus → minus: the vertical bar collapses */
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.accordion__icon::before { width: 13px; height: 1.5px; }
.accordion__icon::after  { width: 1.5px; height: 13px; }

.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

/* max-height is driven by main.js so the transition has a value to run to */
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease-inout);
}

.accordion__panel-inner { padding-bottom: var(--space-md); }

/* --------------------------------------------------------------------------
   8. CTA BAND — closes every page into the footer
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(180deg, rgba(26, 21, 16, 0.82), rgba(26, 21, 16, 0.9)),
    url("../uploads/footer_bg.jpg");
  background-image:
    linear-gradient(180deg, rgba(26, 21, 16, 0.82), rgba(26, 21, 16, 0.9)),
    image-set(url("../uploads/footer_bg.avif") type("image/avif"), url("../uploads/footer_bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ink-inv);
  overflow: hidden;
  text-align: center;
}

.cta-band .bloom {
  width: 760px;
  height: 500px;
  bottom: -260px;
  left: 50%;
  margin-left: -380px;
  opacity: 0.4;
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.cta-band h2 {
  color: var(--ink-inv);
  max-width: 16ch;
}

.cta-band h2 em { font-style: italic; color: var(--gold); }

.cta-band .lead {
  color: var(--ink-inv-soft);
  text-align: center;
  max-width: 50ch;
}

.cta-band__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   9. PAGE HEADER (shared by about / tours / contact)
   -------------------------------------------------------------------------- */

.page-header {
  position: relative;
  background: var(--deep);
  color: var(--ink-inv);
  padding-top: calc(72px + var(--section-y));
  padding-bottom: var(--section-y);
  text-align: center;
  overflow: hidden;
}

.page-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.page-header h1 {
  color: var(--ink-inv);
  max-width: 18ch;
}

.page-header .lead {
  color: var(--ink-inv-soft);
  max-width: 58ch;
  text-align: center;
}

.page-header .bloom {
  width: 700px;
  height: 700px;
  top: -280px;
  left: 50%;
  margin-left: -350px;
  opacity: 0.34;
}

/* Breadcrumb */
.crumb {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-inv-faint);
}

.crumb a { transition: color var(--dur) var(--ease-out); }
.crumb a:hover { color: var(--gold); }
.crumb span { color: var(--gold); }

@media (max-width: 991px) {
  .page-header { padding-top: calc(64px + var(--section-y)); }
}

/* --------------------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   Fixed bottom-right on every page. Sits under the nav overlay so the
   mobile menu always wins.
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: calc(var(--z-nav) - 10);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
}

.wa-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--deep);
  box-shadow: var(--shadow-lift);
  transition:
    transform var(--dur) var(--ease-expo),
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.wa-float__btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.wa-float__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--gold);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.wa-float__label {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 10px 16px;
  background: var(--deep);
  color: var(--ink-inv);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-expo);
}

.wa-float__btn:hover,
.wa-float__btn:focus-visible {
  transform: translateY(-3px);
  background: var(--deep);
  color: var(--gold);
}

.wa-float:hover .wa-float__label,
.wa-float__btn:focus-visible + .wa-float__label {
  opacity: 1;
  transform: translateX(0);
}

/* Slow attention pulse — stops on hover and for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  .wa-float__btn::after { animation: wa-pulse 3.2s var(--ease-out) infinite; }
  .wa-float__btn:hover::after { animation-play-state: paused; }
}

@keyframes wa-pulse {
  0%   { opacity: 0.5; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.45); }
  100% { opacity: 0;   transform: scale(1.45); }
}

@media (max-width: 991px) {
  .wa-float__btn { width: 52px; height: 52px; }
  .wa-float__btn svg { width: 25px; height: 25px; }
  .wa-float__label { display: none; }
}

/* Hide behind the open mobile menu */
body.nav-open .wa-float { opacity: 0; pointer-events: none; }
.wa-float { transition: opacity var(--dur) var(--ease-out); }
