/* =====================================================
   ANZ Travel Services — site.css
   Queenstown-based DMC. Snami-inspired luxury travel feel.
===================================================== */

:root {
  /* Palette drawn from the ANZ Travel Services crest:
     deep emerald green ribbon, warm laurel gold, ivory text,
     kraft-tan interior and matte black background. */
  --bg:        #0e120f;            /* deep dark with green undertone */
  --bg-soft:   #161b17;            /* slightly raised dark */
  --bg-paper:  #f3ecd9;            /* logo ivory / cream */
  --fg:        #f3ecd9;            /* logo ivory text */
  --fg-muted:  rgba(243, 236, 217, 0.62);
  --fg-dim:    rgba(243, 236, 217, 0.35);
  --line:      rgba(243, 236, 217, 0.14);
  --card-bg:   rgba(243, 236, 217, 0.045);
  --panel-bg:  rgba(22, 27, 23, 0.88);
  --section-copy: rgba(243, 236, 217, 0.86);
  --photo-fg:  #f3ecd9;
  --photo-btn-bg: transparent;
  --photo-btn-border: #f3ecd9;
  --photo-btn-fg: #f3ecd9;
  --photo-btn-hover-bg: #f3ecd9;
  --photo-btn-hover-fg: #0e120f;
  --btn-outline-bg: transparent;
  --btn-outline-border: #d4a33a;
  --btn-outline-fg: #d4a33a;
  --btn-outline-hover-bg: #d4a33a;
  --btn-outline-hover-fg: #0e120f;
  --btn-solid-bg: #141414;
  --btn-solid-fg: #f3ecd9;
  --btn-ghost-bg: transparent;
  --btn-ghost-border: #f3ecd9;
  --btn-ghost-fg: #f3ecd9;
  --btn-ghost-hover-bg: #f3ecd9;
  --btn-ghost-hover-fg: #0e120f;
  --accent:    #d4a33a;            /* logo gold (laurels, mountains, rim) */
  --accent-2:  #e6c069;            /* warmer highlight gold */
  --accent-3:  #b58c42;            /* kraft tan inner badge */
  --scroll-progress-bg: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  --scroll-progress-glow: rgba(212, 163, 58, 0.55);
  --footer-title-color: #d4a33a;
  --forest:    #0f4d2f;            /* logo emerald green ribbon */
  --forest-2:  #16623d;            /* lifted emerald */
  --chrome-bg: rgba(15, 14, 12, 0.85);
  --ease:      cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --text-shadow-photo:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 2px 14px rgba(0, 0, 0, 0.78),
    0 4px 28px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg:        #f7f1e6;
  --bg-soft:   #efe4d0;
  --bg-paper:  #fffaf0;
  --fg:        #17140f;
  --fg-muted:  rgba(23, 20, 15, 0.66);
  --fg-dim:    rgba(23, 20, 15, 0.38);
  --line:      rgba(23, 20, 15, 0.16);
  --card-bg:   rgba(255, 250, 240, 0.72);
  --panel-bg:  rgba(255, 250, 240, 0.92);
  --section-copy: rgba(23, 20, 15, 0.78);
  --photo-fg:  #ffffff;
  --photo-btn-bg: transparent;
  --photo-btn-border: #ffffff;
  --photo-btn-fg: #ffffff;
  --photo-btn-hover-bg: #ffffff;
  --photo-btn-hover-fg: #0e120f;
  --btn-outline-bg: transparent;
  --btn-outline-border: #17140f;
  --btn-outline-fg: #17140f;
  --btn-outline-hover-bg: #17140f;
  --btn-outline-hover-fg: #fffaf0;
  --btn-solid-bg: #9f7522;
  --btn-solid-fg: #fffaf0;
  --btn-ghost-bg: transparent;
  --btn-ghost-border: #17140f;
  --btn-ghost-fg: #17140f;
  --btn-ghost-hover-bg: #17140f;
  --btn-ghost-hover-fg: #fffaf0;
  --accent:    #9f7522;
  --accent-2:  #c28f2c;
  --accent-3:  #c9a46a;
  --scroll-progress-bg: linear-gradient(90deg, #0f4d2f 0%, #1f6b45 100%);
  --scroll-progress-glow: rgba(31, 107, 69, 0.45);
  --footer-title-color: #17140f;
  --footer-text-color: #244734;
  --forest:    #1f6b45;
  --forest-2:  #2c8056;
  --chrome-bg: rgba(247, 241, 230, 0.9);
}

html[data-theme="light"] #chrome .ch-cta {
  text-shadow: none;
  box-shadow: none;
  filter: none;
}

html[data-theme="light"] .foot-base {
  color: #17140f;
}

html[data-theme="light"] .foot-base a {
  color: #0f4d2f;
}

html[data-theme="light"] .foot-base a:hover {
  color: #1f6b45;
}

/* Local fonts */
@font-face {
  font-family: "Basis Grotesque";
  src: url("../fonts/basis-grotesque-regular-pro.woff2") format("woff2"),
       url("../fonts/basis-grotesque-regular-pro.woff")  format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Basis Grotesque";
  src: url("../fonts/basis-grotesque-bold-pro.woff2") format("woff2"),
       url("../fonts/basis-grotesque-bold-pro.woff")  format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Shadows Into Light";
  src: url("../fonts/ShadowsIntoLight-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/Caveat-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Dream Avenue";
  src: url("../fonts/Dream Avenue.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Basis Grotesque", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

/* =====================================================
   Typography — Dream Avenue is the display title font
===================================================== */

h1, h2, h3, h4 { font-weight: 400; }

.display,
h1.display, h2.display, h3.display,
.h-xxl, .h-xl, .h-l,
.hero-h1, .d-hero-h1, .slide-name, .abh-inner h1,
.h-m {
  font-family: "Dream Avenue", "Basis Grotesque", serif;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.0;
}

.script   { font-family: "Shadows Into Light", "Dream Avenue", serif; color: var(--accent); }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.h-xxl { font-size: clamp(60px, 11vw, 200px); }
.h-xl  { font-size: clamp(44px, 7vw, 110px); }
.h-l   { font-size: clamp(34px, 4.6vw, 68px); }
.h-m   { font-size: clamp(24px, 2.6vw, 38px); }

/* =====================================================
   Top chrome (header) — fixed
===================================================== */

#chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding: 22px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: #fff;
  text-shadow: var(--text-shadow-photo);
  pointer-events: none;
  transition: background 0.4s ease, color 0.4s ease;
}
#chrome > * { pointer-events: auto; }
#chrome.is-solid {
  background: var(--chrome-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-shadow: none;
}

#chrome .ch-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 13px;
}
#chrome .ch-brand img { width: 28px; height: 28px; }

#chrome .ch-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
#chrome .ch-nav a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  padding: 4px 0;
  transition: color 0.3s ease;
}
#chrome .ch-nav a:hover,
#chrome .ch-nav a.is-active { color: var(--accent); }
#chrome .ch-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
#chrome .ch-nav a:hover::after,
#chrome .ch-nav a.is-active::after { transform: scaleX(1); }

#chrome .ch-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
#chrome .ch-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}
#chrome .ch-cta:hover { background: var(--accent); color: var(--bg); }

.theme-toggle {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.theme-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

#chrome .ch-burger { display: none; }

@media (max-width: 920px) {
  #chrome { padding: 14px 18px; grid-template-columns: 1fr auto; }
  #chrome .ch-nav, #chrome .ch-cta { display: none; }
  #chrome .ch-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    color: inherit;
  }
  #chrome.is-open + #menu { transform: translateX(0); }
}

/* mobile menu drawer */
#menu {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#menu.is-open { transform: translateX(0); }
#menu a {
  padding: 8px 0;
  transition: color 0.3s ease;
}
#menu a:hover { color: var(--accent); }

/* =====================================================
   Continuous page transitions (fetch+swap)
   Disabled: pages use normal navigation plus a gentle load fade.
===================================================== */

#sheet {
  display: none;
}

/* Gentle page load reveal. Home still waits for its loader before is-ready. */
body:not(.is-ready) #page {
  opacity: 0;
}
body.is-ready #page {
  opacity: 1;
  transition:
    opacity 1.15s ease 0.08s;
}

/* =====================================================
   Reveal helpers
===================================================== */

.reveal { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1; }
.reveal > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1s var(--ease-out);
}
.is-in .reveal > span,
body.is-ready .reveal.boot > span { transform: translate3d(0, 0, 0); }
.reveal.d2 > span { transition-delay: 0.08s; }
.reveal.d3 > span { transition-delay: 0.16s; }
.reveal.d4 > span { transition-delay: 0.24s; }
.reveal.d5 > span { transition-delay: 0.34s; }

.fade {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.fade.is-in { opacity: 1; transform: none; }

/* =====================================================
   Image Reveal (snamitravel.com style — clip-path wipe + zoom)
   Wrap any image in a .reveal container plus a direction class.
   GSAP + ScrollTrigger drive the animation (see js/reveal.js).
===================================================== */

.reveal {
  visibility: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.reveal.reveal--overlay { background-color: var(--accent); }
.reveal > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* fallback when reduced motion or JS off — show image immediately */
@media (prefers-reduced-motion: reduce) {
  .reveal { visibility: visible; }
}

/* =====================================================
   Buttons / CTAs
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--btn-outline-border);
  background: var(--btn-outline-bg);
  color: var(--btn-outline-fg);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease;
}
.btn:hover { background: var(--btn-outline-hover-bg); color: var(--btn-outline-hover-fg); padding-right: 30px; }
.btn .btn-arrow { transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn.btn-solid { border-color: var(--btn-solid-bg); background: var(--btn-solid-bg); color: var(--btn-solid-fg); }
.btn.btn-solid:hover { background: var(--accent-2); }
.btn.btn-ghost { border-color: var(--btn-ghost-border); background: var(--btn-ghost-bg); color: var(--btn-ghost-fg); }
.btn.btn-ghost:hover { background: var(--btn-ghost-hover-bg); color: var(--btn-ghost-hover-fg); }

/* Buttons placed over photography must stay readable in light mode too. */
#hero .hero-cta .btn-ghost,
.sp-hero .btn-ghost {
  border-color: var(--photo-btn-border);
  background: var(--photo-btn-bg);
  color: var(--photo-btn-fg);
}
#hero .hero-cta .btn-ghost:hover,
.sp-hero .btn-ghost:hover {
  background: var(--photo-btn-hover-bg);
  color: var(--photo-btn-hover-fg);
}

/* =====================================================
   Footer
===================================================== */

footer#foot {
  position: relative;
  background: var(--bg-soft);
  padding: 80px 32px 28px;
  margin-top: 80px;
  border-top: 2px solid var(--forest);
  box-shadow: 0 -1px 0 0 rgba(212,163,58,0.25) inset;
}
.foot-wrap {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(28px, 3.5vw, 56px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .foot-wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .foot-wrap { grid-template-columns: 1fr; }
}
.foot-brand h3 {
  font-family: "Dream Avenue", "Basis Grotesque", serif;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--footer-title-color, var(--accent));
  margin-bottom: 16px;
}
.foot-brand .script { font-size: 38px; line-height: 1; margin-bottom: 14px; display: block; }
.foot-brand p { font-size: 14px; color: var(--footer-text-color, var(--fg-muted)); max-width: 36ch; }
.foot-brand-cta { margin-top: 18px; }
.foot-col h4 {
  font-family: "Dream Avenue", "Basis Grotesque", serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--footer-title-color, var(--accent));
  margin-bottom: 18px;
  font-weight: 400;
}
.foot-col a, .foot-col li {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--footer-text-color, var(--fg-muted));
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.foot-col a:hover {
  color: var(--accent);
  padding-left: 8px;
}
.foot-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.foot-col .foot-social-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}
.foot-col .foot-social-btn:hover {
  padding-left: 0;
  color: var(--bg);
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-2px);
}
.foot-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Single-line footer base: copyright, photo credit, tagline. */
.foot-base {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: none;
  filter: none;
}
.foot-base .foot-base-sep { color: rgba(212, 163, 58, 0.6); }
.foot-base a {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
  text-shadow: none;
  filter: none;
}
.foot-base a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

@media (max-width: 720px) {
  .foot-base .foot-base-sep { display: none; }
  .foot-base { flex-direction: column; gap: 10px; }
}

/* =====================================================
   Event Popup
===================================================== */

.event-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 163, 58, 0.18), transparent 34%),
    rgba(8, 10, 8, 0.78);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease, backdrop-filter 0.75s ease;
}
.event-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.event-popup__panel {
  position: relative;
  width: min(430px, 100%);
  overflow: hidden;
  border: 1px solid rgba(212, 163, 58, 0.42);
  border-radius: 28px;
  background: var(--bg-soft);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(243, 236, 217, 0.04) inset,
    0 0 54px rgba(212, 163, 58, 0.14);
  opacity: 0;
  transform: translateY(26px) scale(0.92);
  filter: blur(10px);
  transition: opacity 0.55s ease, transform 0.7s var(--ease-out), filter 0.7s ease;
}
.event-popup.is-open .event-popup__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.event-popup__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 24%, transparent 72%, rgba(212, 163, 58, 0.16));
  mix-blend-mode: screen;
  opacity: 0.45;
}
.event-popup__media {
  position: relative;
  background: #070b08;
  overflow: hidden;
}
.event-popup__poster {
  display: block;
  width: 100%;
  max-height: 64vh;
  object-fit: cover;
  transform: scale(1.025);
  transition: transform 1.2s var(--ease-out);
}
.event-popup.is-open .event-popup__poster {
  transform: scale(1);
}
.event-popup__logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.event-popup__content {
  position: relative;
  z-index: 2;
  padding: 28px 24px 32px;
  text-align: center;
  color: var(--fg);
  background:
    linear-gradient(180deg, rgba(212, 163, 58, 0.08), transparent 48%),
    var(--bg-soft);
}
.event-popup__eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.event-popup__content h2 {
  font-family: "Dream Avenue", "Basis Grotesque", serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
}
.event-popup__location {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 8px;
}
.event-popup__date {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}
.event-popup__btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 12px 28px rgba(212, 163, 58, 0.18);
}
.event-popup__btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s var(--ease-out);
}
.event-popup__btn:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
  color: var(--bg);
  box-shadow: 0 16px 34px rgba(212, 163, 58, 0.24);
}
.event-popup__btn:hover::after {
  left: 108%;
}
.event-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 236, 217, 0.28);
  border-radius: 999px;
  background: rgba(14, 18, 15, 0.72);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}
.event-popup__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: rotate(90deg);
}

html[data-theme="light"] .event-popup {
  background: rgba(23, 20, 15, 0.48);
}
html[data-theme="light"] .event-popup__panel,
html[data-theme="light"] .event-popup__content {
  background: var(--bg-paper);
}
html[data-theme="light"] .event-popup__content {
  color: var(--fg);
}
html[data-theme="light"] .event-popup__location {
  color: #244734;
}

@media (max-width: 480px) {
  .event-popup { padding: 14px; }
  .event-popup__panel { border-radius: 22px; }
  .event-popup__logo {
    width: 68px;
    height: 68px;
  }
  .event-popup__content { padding: 24px 18px 26px; }
}

/* =====================================================
   Global scroll-progress bar (top of every page)
===================================================== */

#scroll-prog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--scroll-progress-bg);
  z-index: 100;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s linear;
  box-shadow: 0 0 8px var(--scroll-progress-glow);
}

/* =====================================================
   Accessibility / motion
===================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
