/* =====================================================================
   VIKINGOS RECREACIÓN · shared across every page.
   Per-page styles live in home.css and personajes.css.
   ===================================================================== */

/* -------------------------------------------------------------- fonts */
/* Self-hosted: no visitor request leaves the site to fetch a font, and
   both families ship as a single variable file each, so one download per
   family covers every weight used below. Latin subset only; unicode-range
   keeps anything outside it on the fallback stack instead of downloading a
   face that lacks the character. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/baloo2-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------ tokens */
:root {
  --ink: #1c1934;
  --paper: #fffaf1;
  --surface: #ffffff;
  --surface-alt: #fbeee0;
  --card-border: rgba(28, 25, 52, 0.1);

  --blue: #280ac5;
  --blue-deep: #190680;
  --crimson: #c50a3c;
  --crimson-deep: #93072d;
  --gold: #b49a68;
  --teal: #0e9e94;
  /* Deepened from #ef5fa3 (3.07:1 with white — right at the 3:1 floor for a
     solid icon badge, too thin a margin) to 4.09:1. */
  --pink: #d9438c;
  --sun: #f5b400;
  /* Deepened from the usual #25d366: that green reads fine as a brand swatch
     but is only 1.98:1 against white text, well under the 4.5:1 floor. This
     shade keeps the same hue family at 5.41:1 (6.61:1 on hover). */
  --whatsapp: #0f7a40;
  --whatsapp-deep: #0c6b38;

  --text: var(--ink);
  /* 8.9:1 on --paper, 8.4:1 on --surface-alt. */
  --text-muted: #4d4870;
  --text-on-dark: #fdf9ff;
  --text-on-dark-muted: rgba(253, 249, 255, 0.72);

  --font-display: "Baloo 2", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;

  --ease: 0.25s ease;
  --lift: translateY(-5px);
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 36px;
  --shadow-sm: 0 6px 18px rgba(28, 20, 60, 0.08);
  --shadow-md: 0 18px 40px rgba(28, 20, 60, 0.16);
  --header-h: 84px;

  /* Tinted section washes: alongside --surface-alt, each part of the page
     gets its own pastel instead of repeating one neutral alternate, so
     scrolling feels like moving through a party, not a document. */
  --wash-blue: #eae7fa;
  --wash-pink: #fce8f1;
  --wash-purple: #f0e7fb;
}

/* ------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box }

html, body { margin: 0; padding: 0 }

html { scroll-behavior: smooth }

body {
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
}

a { text-decoration: none; color: inherit }
img { max-width: 100%; display: block }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

p { margin: 0 }
ul { margin: 0 }

/* Anchors must clear the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem) }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  color: var(--text-on-dark);
  background: var(--ink);
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus { left: 0 }

.atl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* An animation rather than a transition: components declare their own
   transition for hover, which would replace this one wholesale. */
.reveal { opacity: 0; translate: 0 18px }

.reveal.in {
  opacity: 1;
  translate: none;
  animation: reveal-in 0.6s ease backwards;
}

@keyframes reveal-in {
  from { opacity: 0; translate: 0 18px }
}

/* ------------------------------------------------------------- balloons */
/* Purely decorative drifting balloons. Positioned and timed per-instance
   via custom properties on each .balloon element, so one keyframe set
   covers every balloon on the page without a rule per instance. */
.balloon-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.balloon {
  position: absolute;
  left: var(--x, 50%);
  bottom: -20%;
  width: var(--w, 56px);
  aspect-ratio: 5 / 6;
  background: var(--c, var(--crimson));
  border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%;
  opacity: 0.85;
  filter: drop-shadow(0 10px 14px rgba(15, 10, 35, 0.18));
  animation: balloon-rise var(--dur, 16s) ease-in var(--delay, 0s) infinite;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 2px;
  height: 16px;
  background: rgba(28, 25, 52, 0.35);
  transform: translateX(-50%);
}

.balloon::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 24%;
  width: 26%;
  height: 34%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

@keyframes balloon-rise {
  0% { transform: translateY(0) translateX(0) rotate(-3deg) }
  50% { transform: translateY(-56vh) translateX(14px) rotate(3deg) }
  100% { transform: translateY(-112vh) translateX(-6px) rotate(-3deg) }
}

@media (max-width: 700px) {
  .balloon { width: calc(var(--w, 56px) * 0.7) }
}

/* ------------------------------------------------------------ header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background-color: var(--surface);
  box-shadow: 0 2px 16px rgba(28, 20, 60, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-mark { width: 38px; height: 38px; flex-shrink: 0 }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
  color: var(--blue);
}

.brand-name span {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--crimson);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.85rem);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: color var(--ease);
}

.nav-link:hover { color: var(--crimson) }

.nav-toggle { display: none }

/* ---------------------------------------------------------------- buttons */
/* A "sticker" button: thick outline plus a hard offset shadow instead of a
   blurred one. Hover/active walk the button toward its own shadow, so
   pressing it reads as physically tactile rather than a flat color swap.
   --btn-edge carries the outline+shadow color so every variant below only
   has to override background/color/edge, never the press mechanics. */
.btn {
  --btn-edge: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.7rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background-color: var(--crimson);
  border: 2.5px solid var(--btn-edge);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--btn-edge);
  transition: background-color var(--ease), transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { background-color: var(--crimson-deep) }

.btn:hover,
.btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--btn-edge);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--btn-edge);
}

.btn.btn-ghost { color: var(--text); background: var(--surface) }
.btn.btn-ghost:hover { background: var(--surface-alt) }

.btn.btn-whatsapp { background-color: var(--whatsapp) }
.btn.btn-whatsapp:hover { background-color: var(--whatsapp-deep) }

/* For buttons sitting directly on a dark/gradient band (hero, closing CTA),
   an ink-colored edge would all but disappear. */
.btn-ghost-invert {
  --btn-edge: #fff;
  color: #fff;
  background: transparent;
}

.btn-ghost-invert:hover { background: rgba(255, 255, 255, 0.14) }

.btn svg { width: 20px; height: 20px; flex-shrink: 0 }

/* Self-contained pill (own background+text color) so it reads the same
   whether it sits on a light card or a dark gradient band. */
.countdown-badge { margin: 0 0 0.75rem 0 }

.countdown-badge span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--crimson);
  border-radius: 999px;
}

/* -------------------------------------------------------- floating cta */
.fab-whatsapp {
  position: fixed;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #fff;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(20, 130, 80, 0.4);
  transition: transform var(--ease), box-shadow var(--ease);
  animation: fab-pulse 2.6s ease-in-out infinite;
}

.fab-whatsapp:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(20, 130, 80, 0.48) }
.fab-whatsapp svg { width: 30px; height: 30px }

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(20, 130, 80, 0.4) }
  50% { box-shadow: 0 10px 34px rgba(20, 130, 80, 0.68), 0 0 0 8px rgba(15, 122, 64, 0.12) }
}

/* ------------------------------------------------------- legal content */
.legal-content {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-content h2 {
  margin: 2.5rem 0 0.8rem;
  font-size: 1.35rem;
}

.legal-content h2:first-of-type { margin-top: 1rem }

.legal-content p, .legal-content li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content p { margin: 0 0 1rem }
.legal-content ul { margin: 0 0 1rem; padding-left: 1.3rem }
.legal-content li { margin-bottom: 0.4rem }
.legal-content a { color: var(--blue); text-decoration: underline }

/* ------------------------------------------------------- cookie banner */
/* Shown once via JS (see main.js) until dismissed. Pushes .fab-whatsapp up
   via the body class below so the two never overlap. */
.cookie-banner[hidden] { display: none }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 1.75rem);
  background: var(--surface);
  border-top: 3px solid var(--sun);
  box-shadow: 0 -8px 24px rgba(28, 20, 60, 0.12);
}

.cookie-banner p {
  margin: 0;
  max-width: 46rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 0.5rem; color: var(--crimson) }
.cookie-banner .btn { min-height: 44px; padding: 0 1.2rem; font-size: 0.82rem; flex-shrink: 0 }

body.cookie-banner-visible .fab-whatsapp { bottom: calc(clamp(1rem, 4vw, 1.75rem) + var(--cookie-banner-h, 64px) + 12px) }

@media (max-width: 640px) {
  .cookie-banner { justify-content: flex-start }
}

/* --------------------------------------------------------- scaffolding */
.atl-section { padding: clamp(4rem, 8vw, 7rem) 0 }
.atl-container { max-width: 78rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem) }
.atl-center { text-align: center }

.bg-alt,
.bg-wash-blue,
.bg-wash-pink,
.bg-wash-purple {
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.bg-alt { background-color: var(--surface-alt) }
.bg-wash-blue { background-color: var(--wash-blue) }
.bg-wash-pink { background-color: var(--wash-pink) }
.bg-wash-purple { background-color: var(--wash-purple) }

/* A scattered confetti-dot texture, three layered radial-gradients tiled at
   different sizes so the repeat isn't obvious. No image request, no JS. */
.confetti-bg {
  background-image:
    radial-gradient(circle, rgba(197, 10, 60, 0.16) 2.4px, transparent 3px),
    radial-gradient(circle, rgba(40, 10, 197, 0.14) 2.4px, transparent 3px),
    radial-gradient(circle, rgba(245, 180, 0, 0.2) 2.4px, transparent 3px);
  background-size: 96px 96px, 150px 150px, 120px 120px;
  background-position: 0 0, 45px 70px, 90px 20px;
}

/* A tilted "sticker" label rather than a plain eyebrow line. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem 0;
  padding: 0.4rem 1rem 0.4rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  rotate: -2deg;
}

.kicker svg { width: 16px; height: 16px; flex-shrink: 0; color: inherit }

.section-head { max-width: 42rem; margin: 0 auto 3rem auto; text-align: center }

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--text);
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.section-title em,
h1 em, h2 em { font-style: italic; color: var(--blue) }

/* On a dark/gradient background (hero, closing band, page banner) the
   default blue em all but disappears; those sections override it to --sun. */
.hero-title em,
.page-banner h1 em,
.closing-cta h2 em { color: var(--sun) }

/* min() so a track can never be wider than the space it has. */
.grid {
  display: grid;
  gap: var(--grid-gap, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 260px), 100%), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
  transform: var(--lift);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

/* -------------------------------------------------------------- gallery */
/* Shared by index.html's "Galería" section and personajes.html's "Momentos"
   grid. grid-auto-flow: dense fills the gaps a spanning tile leaves behind,
   giving a masonry-like layout with none of masonry's JS or reflow cost. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 1rem;
  margin-top: 1rem;
}

/* Polaroids, not clean tiles: a slight per-item tilt (alternating via
   nth-child) plus a white frame thicker at the bottom, like a stack of party
   photos rather than a stock-photo grid. Hover straightens and lifts it. */
.gallery-item {
  --tilt: -2.5deg;
  position: relative;
  overflow: hidden;
  padding: 8px 8px 26px 8px;
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  rotate: var(--tilt);
  transition: rotate var(--ease), transform var(--ease), box-shadow var(--ease);
}

.gallery-item:nth-child(even) { --tilt: 2.5deg }
.gallery-item:nth-child(3n) { --tilt: -1.5deg }

.gallery-item:hover {
  rotate: 0deg;
  transform: scale(1.045);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.gallery-item--tall { grid-row: span 2 }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; transition: transform 0.5s ease }

/* Default centered crop unless the subject sits high in the frame (faces
   near the top rather than the middle) — then it needs pulling upward. */
.obj-top { object-position: 50% 15% }
.gallery-item:hover img { transform: scale(1.06) }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 640px) {
  .gallery-grid { grid-auto-rows: 150px }
}

/* ------------------------------------------------------------- wave */
/* A wavy seam instead of a hard rectangular edge between a dark band and the
   section under it. The fill is set per instance via --wave-fill so the same
   markup works against whichever section comes next. */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 2;
}

.wave-divider svg { display: block; width: 100%; height: clamp(36px, 6vw, 64px) }
.wave-divider path { fill: var(--wave-fill, var(--paper)) }

/* -------------------------------------------------------------- service */
/* An icon-badge card: index.html's Servicios grid and fiestas-halloween's
   "Qué incluye" grid both use it. */
.service-card {
  padding: 2rem 1.75rem;
  text-align: left;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--crimson));
  border-radius: var(--r-sm);
}

.service-icon svg { width: 28px; height: 28px }

.service-card:nth-child(4n+2) .service-icon { background: linear-gradient(150deg, var(--teal), var(--blue)) }
.service-card:nth-child(4n+3) .service-icon { background: linear-gradient(150deg, var(--sun), var(--crimson)) }
.service-card:nth-child(4n+4) .service-icon { background: linear-gradient(150deg, var(--pink), var(--blue)) }

.service-card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; color: var(--text) }
.service-card p { font-size: 0.96rem; line-height: 1.55; color: var(--text-muted) }

@media (max-width: 640px) {
  .service-card { padding: 1.6rem }
}

/* -------------------------------------------------------- feature bands */
/* Shared by index.html (two bands under Servicios) and fiestas-halloween. */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.feature + .feature { margin-top: clamp(3.5rem, 8vw, 6rem) }
.feature--reverse .feature-media { order: 2 }
.feature--reverse .feature-content { order: 1 }

.feature-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  background: var(--surface-alt);
}

.feature-media img { width: 100%; height: 100%; object-fit: cover }

.feature-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.feature-badge svg { width: 16px; height: 16px; color: var(--crimson) }

.feature-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1rem }
.feature-content p { font-size: 1.05rem; line-height: 1.65; color: var(--text-muted) }
.feature-content .btn { margin-top: 1.5rem }

.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 0 0; display: flex; flex-direction: column; gap: 0.6rem }

.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr }
  .feature--reverse .feature-media,
  .feature--reverse .feature-content { order: initial }
}

/* ------------------------------------------------------------------ faq */
/* Shared by index.html and fiestas-halloween's mini-FAQ. */
.faq-list {
  max-width: 46rem;
  margin: 1rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  padding: 0.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--crimson);
  transition: transform var(--ease);
}

.faq-item[open] .faq-icon { transform: rotate(45deg) }

.faq-item p {
  padding: 0 0 1.25rem 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- banner */
/* Secondary-page banner (every page besides the home). */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 11vw, 7.5rem) 1.5rem clamp(3.5rem, 7vw, 5rem);
  text-align: center;
  color: var(--text-on-dark);
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(197, 10, 60, 0.5), transparent 55%),
    linear-gradient(160deg, var(--blue-deep), var(--ink) 70%);
}

/* Used by fiestas-halloween/index.html. */
.page-banner--halloween {
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(245, 140, 0, 0.45), transparent 55%),
    radial-gradient(100% 120% at 10% 110%, rgba(40, 10, 197, 0.4), transparent 55%),
    linear-gradient(160deg, var(--blue-deep), var(--ink) 70%);
}

.page-banner-inner { position: relative; z-index: 2 }
.page-banner h1 { font-size: clamp(2.4rem, 5vw, 3.6rem) }
.page-banner p { max-width: 38rem; margin: 1rem auto 0 auto; font-size: 1.1rem; color: var(--text-on-dark-muted) }

/* -------------------------------------------------------------- footer */
.site-footer {
  padding: 3.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  color: var(--text-on-dark-muted);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 78rem;
  margin: 0 auto;
}

.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem }
.footer-brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--text-on-dark) }
.footer-tagline { color: var(--sun); font-style: italic; margin-bottom: 0.6rem }

.footer-col h3 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sun);
}

.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.2rem }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px }
.footer-col a:hover { color: var(--text-on-dark) }

.footer-bottom {
  max-width: 78rem;
  margin: 2.5rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 249, 255, 0.14);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------------------------------------------------- lightbox (shared) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem;
  background: rgba(15, 10, 30, 0.88);
}

.lightbox[hidden] { display: none }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3) }

.lightbox-close { top: 1rem; right: 1.25rem }
.lightbox-nav.prev { left: 1rem; top: 50% ; transform: translateY(-50%) }
.lightbox-nav.next { right: 1rem; top: 50%; transform: translateY(-50%) }
.lightbox-nav svg, .lightbox-close svg { width: 22px; height: 22px }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr }
  .footer-brand { grid-column: 1 / -1 }
}

@media (max-width: 760px) {
  :root { --header-h: 68px }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 2rem;
    background: var(--surface);
    box-shadow: 0 12px 24px rgba(28, 20, 60, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--ease), opacity var(--ease), visibility var(--ease);
  }

  .main-nav.open { transform: none; opacity: 1; visibility: visible }
  .nav-link { min-height: 52px; border-bottom: 1px solid var(--card-border) }
  .main-nav .btn { margin-top: 1rem }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle svg { width: 26px; height: 26px }
  .footer-grid { grid-template-columns: 1fr }
  .lightbox-nav { width: 42px; height: 42px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .reveal { opacity: 1; translate: none }
  .reveal.in { animation: none }
  .balloon { animation: none; display: none }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
