/* =====================================================================
   福爾摩沙樂園 Formosa Park — Vanilla CSS
   Converted from a React + Tailwind project to plain HTML/CSS/JS.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --vivid-teal: #00d6d6;
  --vivid-amber: #ffaa00;
  --focus-cyan: #00c9c9;
  --bright-cyan: #00e5e5;
  --deep-teal: #0a5050;
  --deep-teal-ink: #08222a;
  --ink: #000000;
  --dark-gray: #222222;
  --mid-gray: #666666;
  --soft-gray: #aaaaaa;
  --edge-gray: #cccccc;
  --warm-white: #f2f2f2;
  --cream: #f6f5f0;

  --font-serif: "Noto Serif TC", serif;
  --font-sans: "Noto Sans TC", sans-serif;
  --font-display: "Playfair Display", serif;

  --site-max: 1440px;
  --site-pad: 64px;

  --ease-reveal: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-power2-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-panel: cubic-bezier(0.87, 0, 0.13, 1);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-sans);
  color: #222222;
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  word-break: keep-all;
  font-weight: 600;
  line-height: 1.2;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
}

.app {
  position: relative;
  min-height: 100dvh;
}

/* Lock page scroll while the nav panel is open */
html.menu-open {
  overflow: hidden;
}

/* ---------- Layout ---------- */
.container-site {
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
}

.text-center {
  text-align: center;
}

/* Generic section spacing */
.section {
  position: relative;
  z-index: 10;
  padding-top: 96px;
  padding-bottom: 96px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 128px;
    padding-bottom: 128px;
  }
}

.section-white {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.section-cream {
  background-color: rgba(246, 245, 240, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Shared section headings */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-gray);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* =====================================================================
   Keyframe animations
   ===================================================================== */
@keyframes float-hero {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-schedule {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.float-hero {
  animation: float-hero 5s ease-in-out infinite;
}
.float-hero-delayed {
  animation: float-hero 5s ease-in-out 1.2s infinite;
}
.float-hero-delayed-2 {
  animation: float-hero 5s ease-in-out 2.4s infinite;
}
.float-schedule {
  animation: float-schedule 3s ease-in-out infinite;
}
.float-schedule-delayed {
  animation: float-schedule 3s ease-in-out 0.6s infinite;
}
.float-schedule-delayed-2 {
  animation: float-schedule 3s ease-in-out 1.2s infinite;
}
.float-schedule-delayed-3 {
  animation: float-schedule 3s ease-in-out 1.8s infinite;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn-primary,
.btn-outline,
.btn-outline-white,
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--vivid-amber);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--focus-cyan);
  color: var(--dark-gray);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark-gray);
  border-color: rgba(34, 34, 34, 0.3);
}
.btn-outline:hover {
  border-color: var(--vivid-amber);
  color: var(--vivid-amber);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-white {
  background-color: #ffffff;
  color: var(--vivid-teal);
}
.btn-white:hover {
  background-color: var(--warm-white);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 8px 20px;
}

/* Hero "explore" button overrides the outline colors to white */
.btn-outline-hero {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline-hero:hover {
  color: var(--vivid-teal);
  border-color: var(--vivid-teal);
}

/* =====================================================================
   Scroll-reveal utilities
   ===================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}
.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}
.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 80ms; }
.stagger-3 { transition-delay: 160ms; }
.stagger-4 { transition-delay: 240ms; }
.stagger-5 { transition-delay: 320ms; }
.stagger-6 { transition-delay: 400ms; }
.stagger-7 { transition-delay: 480ms; }
.stagger-8 { transition-delay: 560ms; }
.stagger-9 { transition-delay: 640ms; }

/* =====================================================================
   Wave-particles background canvas
   ===================================================================== */
.wave-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* =====================================================================
   Custom cursor
   ===================================================================== */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
  display: none;
}

.cursor-ring {
  width: 48px;
  height: 48px;
  border: 1px solid var(--focus-cyan);
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--focus-cyan);
}

@media (min-width: 1024px) {
  .cursor-ring,
  .cursor-dot {
    display: block;
  }
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: transform 0.5s, background-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
  transform: translateY(0);
  background-color: transparent;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

.menu-trigger {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  transform-origin: center;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-trigger.is-open .menu-bar-1 {
  transform: rotate(45deg) translateY(4px);
}
.menu-trigger.is-open .menu-bar-2 {
  opacity: 0;
}
.menu-trigger.is-open .menu-bar-3 {
  transform: rotate(-45deg) translateY(-4px);
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo-tc {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.025em;
}

.header-logo-en {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1.1;
}

.header-logo-mark {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-select {
  display: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border: none;
  outline: none;
  cursor: pointer;
}

.lang-select option {
  color: var(--dark-gray);
}

@media (min-width: 768px) {
  .lang-select {
    display: block;
  }
}

/* =====================================================================
   Nav menu (slide-out panel)
   ===================================================================== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 70;
  width: min(480px, 85vw);
  background-color: var(--ink);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 1s var(--ease-panel);
  display: flex;
  flex-direction: column;
}
.nav-panel.is-open {
  transform: translateX(0);
}

.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}

.nav-panel-brand {
  display: flex;
  flex-direction: column;
}
.nav-panel-brand-tc {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
}
.nav-panel-brand-en {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
}

.nav-close {
  padding: 8px;
}

.nav-main {
  padding: 16px 24px 0;
}

.nav-link {
  display: block;
  padding: 12px;
  margin: 0 -12px;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.3s, background-color 0.3s;
}
@media (min-width: 768px) {
  .nav-link {
    font-size: 1.875rem;
  }
}
.nav-link:hover {
  background-color: rgba(0, 214, 214, 0.15);
  color: var(--vivid-teal);
}

.nav-divider {
  margin: 24px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-secondary {
  padding: 0 24px 16px;
}

.nav-sublink {
  display: block;
  padding: 8px 12px;
  margin: 0 -12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.3s, background-color 0.3s;
}
.nav-sublink:hover {
  background-color: rgba(0, 214, 214, 0.15);
  color: var(--vivid-teal);
}

/* Staggered reveal when the panel is open. Delays applied via JS-set
   inline transition, but we provide the "open" target here. */
.nav-panel.is-open .nav-link,
.nav-panel.is-open .nav-sublink {
  opacity: 1;
  transform: translateY(0);
}

.nav-panel-foot {
  padding: 0 24px 32px;
  margin-top: auto;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.nav-social a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}
.nav-social a:hover {
  color: var(--vivid-amber);
}

.nav-copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-family: var(--font-sans);
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #0a1418;
}

/* Fallback when the WebGL hero canvas can't upload textures
   (e.g. the page is opened directly via file://). */
.hero.webgl-failed {
  background-image: url("../assets/hero-scene-main.jpg");
  background-size: cover;
  background-position: center;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100dvh;
  padding-top: 80px;
  /* Reserve room for the absolutely-positioned scroll cue (探索更多) so the
     vertically-centered buttons never overlap it on shorter viewports. */
  padding-bottom: 120px;
}

.hero-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Load-in reveal for hero blocks */
.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}
.hero-reveal.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero-year {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-year,
  .hero-title {
    font-size: 80px;
  }
}

.hero-desc-wrap {
  margin-top: 1.5rem;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.8;
  letter-spacing: 0.01em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* =====================================================================
   Intro
   ===================================================================== */
.intro-lead {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1.75;
  max-width: 640px;
  margin: 1.5rem auto 2rem;
}

.intro .section-title {
  margin-bottom: 1.5rem;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--vivid-amber);
}
.intro-link:hover {
  text-decoration: underline;
}

/* =====================================================================
   Cylinder gallery
   ===================================================================== */
.cylinder-section {
  overflow: hidden;
}

.cylinder-head {
  margin-bottom: 4rem;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
}
.cylinder-head .section-title {
  margin-bottom: 0.75rem;
}
.cylinder-head .section-sub {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cylinder-scene {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: 50vh;
  /* Shorter cards keep the perspective-magnified front card within the
     viewport on any screen size, so it never overlaps the heading or section
     below while still filling the space on larger displays */
  min-height: 380px;
  max-height: 460px;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
  perspective: 1200px;
  /* Manual spin: horizontal drag rotates the ring; vertical still scrolls */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cylinder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  /* Smooths the scroll-linked spin between discrete wheel steps */
  transition: transform 0.3s var(--ease-power2-out);
}
/* While the user is dragging, track the pointer 1:1 with no easing lag */
.cylinder.is-dragging {
  transition: none;
}

.cylinder-panel {
  position: absolute;
  width: 190px;
  height: 240px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* Folded (initial) state */
  transform: rotateY(0deg) translateZ(0px);
  opacity: 0.3;
  transition: transform 0.75s var(--ease-power2-out),
    opacity 0.75s var(--ease-power2-out);
  transition-delay: calc(var(--i) * 50ms);
}

/* Expanded state: laid out around the cylinder using --i and --radius */
.cylinder.is-expanded .cylinder-panel {
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--radius, 500px));
  opacity: 1;
}

.cylinder-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  -webkit-user-drag: none;
  user-select: none;
}

/* Smaller cards on phones so the whole gallery fits the viewport */
@media (max-width: 767px) {
  .cylinder-scene {
    height: 42vh;
    min-height: 300px;
    max-height: 360px;
  }
  .cylinder-panel {
    width: 150px;
    height: 190px;
  }
}

/* =====================================================================
   Events
   ===================================================================== */
.events-head {
  margin-bottom: 4rem;
}

.events-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) {
  .events-featured {
    grid-template-columns: 1fr 1fr;
  }
}

.events-featured-img {
  overflow: hidden;
  border-radius: 12px;
}
.events-featured-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.7s;
}
.events-featured-img:hover img {
  transform: scale(1.05);
}

.events-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vivid-teal);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.events-featured-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .events-featured-title {
    font-size: 2.25rem;
  }
}

.events-featured-date {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--mid-gray);
  margin-bottom: 1rem;
}

.events-featured-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.events-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .events-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.event-card {
  overflow: hidden;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}
.event-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.event-card-img {
  overflow: hidden;
}
.event-card-img img {
  width: 100%;
  height: 224px;
  object-fit: cover;
  transition: transform 0.7s;
}
.event-card:hover .event-card-img img {
  transform: scale(1.05);
}

.event-card-body {
  padding: 1.5rem;
}

.event-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.event-card-date {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--mid-gray);
}

/* =====================================================================
   Schedule
   ===================================================================== */
.schedule {
  background-image: linear-gradient(
      135deg,
      rgba(0, 60, 66, 0.82),
      rgba(0, 134, 134, 0.72)
    ),
    url("../assets/hero-scene-below.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Frosted card that holds the opening-hours details */
.schedule-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.schedule-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--vivid-amber);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.schedule-label {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.schedule-time {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--vivid-amber);
  margin-bottom: 1rem;
}

.schedule-note {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
}

.schedule-rule {
  width: 192px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vivid-amber), transparent);
  margin: 0 auto 1.5rem;
}

.schedule-info {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}
.schedule-info:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .schedule-card {
    padding: 4rem 3rem;
  }
  .schedule-label {
    font-size: 3rem;
  }
  .schedule-time {
    font-size: 3.75rem;
  }
  .schedule-note {
    font-size: 1.875rem;
  }
  .schedule-info {
    font-size: 1.5rem;
  }
}

/* =====================================================================
   Areas
   ===================================================================== */
.areas-head {
  margin-bottom: 3.5rem;
}
.areas-head .section-title {
  margin-bottom: 0.75rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-card {
  overflow: hidden;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.5s, transform 0.5s;
}
.area-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.area-card-img {
  overflow: hidden;
}
.area-card-img img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  transition: transform 0.7s;
}
.area-card:hover .area-card-img img {
  transform: scale(1.05);
}

.area-card-body {
  padding: 1.25rem;
}

.area-card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.area-card-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--mid-gray);
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
  background-color: var(--deep-teal-ink);
  background-image: linear-gradient(
    135deg,
    var(--deep-teal) 0%,
    var(--deep-teal-ink) 100%
  );
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--vivid-amber);
  margin-bottom: 1rem;
}

.cta-lead {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3rem;
  }
  .cta-lead {
    font-size: 1.25rem;
  }
}

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
}

.footer-inner {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-logo-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
}
.footer-logo-tc {
  color: var(--dark-gray);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
}
.footer-logo-en {
  color: rgba(34, 34, 34, 0.6);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1.1;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.footer-col-link {
  color: inherit;
  transition: color 0.3s;
}
.footer-col-link:hover {
  color: var(--vivid-teal);
}

.footer-about {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1.625;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-gray);
}
.footer-contact svg {
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-gray);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--vivid-amber);
}

.footer-bottom {
  border-top: 1px solid var(--edge-gray);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-social a {
  color: var(--mid-gray);
  transition: color 0.3s;
}
.footer-social a:hover {
  color: var(--vivid-amber);
}

.footer-copyright {
  color: var(--soft-gray);
  font-size: 0.75rem;
  font-family: var(--font-sans);
}

.footer-sitemap {
  color: var(--soft-gray);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  transition: color 0.3s;
}
.footer-sitemap:hover {
  color: var(--vivid-amber);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
  }
}
.footer-legal-links {
  display: flex;
  gap: 1.25rem;
}
.footer-legal-links a {
  color: var(--soft-gray);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  transition: color 0.3s;
}
.footer-legal-links a:hover,
.footer-legal-links a[aria-current="page"] {
  color: var(--vivid-amber);
}

/* =====================================================================
   Responsive container padding + cursor fallback
   ===================================================================== */
@media (max-width: 1024px) {
  :root {
    --site-pad: 48px;
  }
  html {
    cursor: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --site-pad: 24px;
  }
  .header-actions {
    display: none;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .float-hero,
  .float-hero-delayed,
  .float-hero-delayed-2,
  .float-schedule,
  .float-schedule-delayed,
  .float-schedule-delayed-2,
  .float-schedule-delayed-3 {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Sub-pages (about-us / contact-us / privacy / terms)
   Shared banner + content styles. The header sits over the dark
   .page-hero so its white logo/menu stay legible at scroll-top.
   ===================================================================== */
.page-hero {
  position: relative;
  z-index: 10;
  background-color: #0a1418;
  padding-top: calc(80px + 56px);
  padding-bottom: 56px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero {
    padding-top: calc(80px + 80px);
    padding-bottom: 80px;
  }
}
/* Full-bleed background image — text overlaps it (mirrors index.html hero). */
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Readability scrim over the image, behind the copy. */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(4, 12, 15, 0.82) 0%,
      rgba(4, 12, 15, 0.55) 45%,
      rgba(4, 12, 15, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 12, 15, 0.55) 0%,
      rgba(4, 12, 15, 0.2) 40%,
      rgba(4, 12, 15, 0.5) 100%
    );
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--vivid-teal);
}
.breadcrumb [aria-current] {
  color: #ffffff;
}

.page-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vivid-teal);
  margin-bottom: 1rem;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) {
  .page-hero-title {
    font-size: 3rem;
  }
}
.page-hero-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.page-content {
  position: relative;
  z-index: 10;
  padding-top: 72px;
  padding-bottom: 96px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 768px) {
  .page-content {
    padding-top: 96px;
    padding-bottom: 128px;
  }
}

/* Active nav / footer link highlight */
.nav-link[aria-current="page"],
.nav-sublink[aria-current="page"] {
  color: var(--vivid-teal);
}
.footer-links a[aria-current="page"] {
  color: var(--vivid-amber);
}

/* ---------- Prose (legal + article copy) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose > * + * {
  margin-top: 1.25rem;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-top: 2.75rem;
  margin-bottom: 0.25rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-top: 1.5rem;
}
.prose p,
.prose li {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1.85;
}
.prose ul,
.prose ol {
  padding-left: 1.35rem;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-top: 0.5rem;
}
.prose a {
  color: var(--vivid-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: var(--focus-cyan);
}
.prose strong {
  font-weight: 500;
  color: var(--dark-gray);
}
.prose-updated {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--soft-gray);
  margin-bottom: 2.5rem !important;
}

/* ---------- About page ---------- */
.about-lead {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--dark-gray);
  line-height: 1.85;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin: 3rem auto;
}
@media (min-width: 768px) {
  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.about-stat {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.about-stat-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--vivid-amber);
  line-height: 1;
}
.about-stat-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--mid-gray);
  margin-top: 0.5rem;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .contact-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-info-grid .contact-item {
  background-color: #ffffff;
  border: 1px solid var(--edge-gray);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.1);
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: rgba(0, 214, 214, 0.12);
  color: var(--vivid-teal);
}
.contact-item-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--soft-gray);
  margin-bottom: 0.25rem;
}
.contact-item-value {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--dark-gray);
  line-height: 1.6;
}
.contact-item-value a {
  transition: color 0.3s;
}
.contact-item-value a:hover {
  color: var(--vivid-amber);
}
.contact-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-social a {
  color: var(--mid-gray);
  transition: color 0.3s;
}
.contact-social a:hover {
  color: var(--vivid-amber);
}

.contact-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.15);
}
.contact-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-gray);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--dark-gray);
  padding: 12px 16px;
  border: 1px solid var(--edge-gray);
  border-radius: 10px;
  background-color: #ffffff;
  outline: none;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--vivid-teal);
  box-shadow: 0 0 0 3px rgba(0, 214, 214, 0.15);
}

.contact-map {
  max-width: 960px;
  margin: 3rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--edge-gray);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.12);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* Shared "back to home" / page CTA block */
.page-cta {
  max-width: 760px;
  margin: 3.5rem auto 0;
  padding: 2.5rem;
  border-radius: 16px;
  background-color: var(--cream);
  text-align: center;
}
.page-cta-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}
.page-cta-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-gray);
  margin-bottom: 1.5rem;
}

/* =====================================================================
   Hero — extra ambient animation (centered layout)
   ===================================================================== */

/* Soft breathing "aurora" glow behind the headline. Sits above the dark
   overlay (z-index 2) but behind the hero text (normal flow of .hero-content). */
.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 42%;
  left: 50%;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(0, 214, 214, 0.22) 0%,
    rgba(0, 214, 214, 0.08) 40%,
    rgba(0, 214, 214, 0) 70%
  );
  filter: blur(12px);
  animation: hero-aurora 9s ease-in-out infinite;
}

@keyframes hero-aurora {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, -54%) scale(1.18);
    opacity: 1;
  }
}

/* Bouncing scroll-down cue pinned to the bottom of the hero */
.hero-scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.hero-scroll-cue {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 2px;
  transition: color 0.3s;
}
.hero-scroll-cue:hover {
  color: var(--vivid-teal);
}
.hero-scroll-icon {
  display: block;
  animation: hero-bounce 2s var(--ease-reveal) infinite;
}

@keyframes hero-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content::before,
  .hero-scroll-icon {
    animation: none;
  }
}
