/*
Theme Name: Realm of Saga
Theme URI: https://festive.live/
Description: The Legendary Festive Chronicle — Siyam World Maldives. An epic gaming-inspired theme matching the Eldritch design system.
Author: Siyam World
Author URI: https://siyamworld.com
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: realm-of-saga
Tags: one-column, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   FONT FACES
   ========================================================================== */
@font-face {
  font-family: 'Marcellus';
  src: url('assets/fonts/Marcellus-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GoodSans';
  src: url('assets/fonts/GoodSans-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dahlia';
  src: url('assets/fonts/Dahlia-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hasta';
  src: url('assets/fonts/hasta-free.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   DESIGN SYSTEM — ELDRITCH-INSPIRED VARIABLES
   ========================================================================== */
:root {
  /* Core palette — dark gaming aesthetic */
  --ros-black: #0f0f0f;
  --ros-dark: #151515;
  --ros-dark-alt: #1b1b1b;
  --ros-panel: #1f1f1f;
  --ros-border: #2a2a2a;

  /* Gold accent — matches Eldritch's warm metallic */
  --ros-gold: #bfa155;
  --ros-gold-light: #d4b96a;
  --ros-gold-dark: #8c7640;

  /* Text */
  --ros-white: #ffffff;
  --ros-text: #c8c8c8;
  --ros-text-muted: #888888;
  --ros-text-dim: #555555;

  /* Realm accent colors */
  --realm-dragonspire: #e84545;
  --realm-elvenwood: #4ecdc4;
  --realm-starforge: #a855f7;
  --realm-runewave: #3b82f6;

  /* Typography scale */
  --font-heading: 'Marcellus', 'Georgia', serif;
  --font-body: 'GoodSans', 'Helvetica Neue', sans-serif;
  --font-accent: 'Dahlia', 'Marcellus', serif;
  --font-display: 'Hasta', 'Marcellus', serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --section-pad-sm: clamp(50px, 6vw, 80px);
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 200;
  color: var(--ros-text);
  background: var(--ros-black);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--ros-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ros-gold-light);
}

/* WordPress override — keep fonts light */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.entry-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ros-white);
  line-height: 1.2;
}

/* ==========================================================================
   UTILITY / LAYOUT
   ========================================================================== */
.ros-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.ros-container--narrow {
  max-width: var(--container-narrow);
}

.ros-section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background-color: var(--ros-black);
}

.ros-section--dark {
  background-color: var(--ros-dark);
}

.ros-section--panel {
  background-color: var(--ros-dark-alt);
}

/* Full-bleed background image sections (Eldritch parallax style) */
.ros-section--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (min-width: 1025px) {
  .ros-section--bg {
    background-attachment: fixed;
  }
}

/* Dark overlay on bg sections */
.ros-section--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.85) 0%,
    rgba(15, 15, 15, 0.65) 40%,
    rgba(15, 15, 15, 0.85) 100%
  );
  z-index: 1;
}

.ros-section--bg > * {
  position: relative;
  z-index: 2;
}

/* Section decorative borders (Eldritch-style gold lines) */
.ros-section--bordered::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--ros-gold);
  opacity: 0.4;
}

/* ==========================================================================
   SECTION TITLES — ELDRITCH STYLE
   ========================================================================== */
.section-label {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: clamp(3px, 0.8vw, 7px);
  text-transform: uppercase;
  color: var(--ros-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-title--hero {
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: clamp(4px, 1.2vw, 12px);
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--ros-text);
  line-height: 1.8;
  max-width: 600px;
}

.section-subtitle--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Gold decorative divider */
.section-divider {
  width: 50px;
  height: 1px;
  background: var(--ros-gold);
  margin: 1.5rem 0;
  opacity: 0.6;
}

.section-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   HEADER / NAVIGATION — ELDRITCH STICKY
   ========================================================================== */
.ros-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.ros-header.scrolled {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(191, 161, 85, 0.15);
}

.ros-navbar {
  padding: 0;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(20px, 4vw, 40px);
  transition: padding 0.4s ease;
}

.ros-header.scrolled .navbar-container {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.navbar-brand .logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ros-white);
  font-weight: 400;
}

/* Navigation links */
.navbar-menu {
  display: none;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar-nav li a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ros-text);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ros-gold);
  transition: width 0.3s ease;
}

.navbar-nav li a:hover {
  color: var(--ros-gold);
}

.navbar-nav li a:hover::after {
  width: 100%;
}

/* CTA button */
.navbar-cta {
  display: none;
}

.cta-button {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 200;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-gold);
  border: 1px solid var(--ros-gold);
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  transition: all 0.4s ease;
  display: inline-block;
}

.cta-button:hover {
  background: var(--ros-gold);
  color: var(--ros-black);
}

/* Mobile toggle */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-icon span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ros-white);
  transition: all 0.3s ease;
}

.navbar-toggle.is-active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.navbar-toggle.is-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.is-active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu */
.navbar-menu.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.98);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.navbar-menu.is-open .navbar-nav {
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.navbar-menu.is-open .navbar-nav li a {
  font-size: 1.1rem;
  letter-spacing: 4px;
}

body.menu-open {
  overflow: hidden;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .navbar-toggle {
    display: none;
  }

  .navbar-menu {
    display: flex;
  }

  .navbar-cta {
    display: block;
  }
}

/* ==========================================================================
   HERO SECTION — ELDRITCH FULL-SCREEN SLIDER
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--ros-black);
}

/* Slider container */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Slide text layers */
.hero-slide-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  pointer-events: none;
}

.hero-slide-text.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-slide-label {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-bottom: 1.5rem;
}

/* Slider navigation dots */
.hero-slider-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.slider-dot {
  width: 32px;
  height: 2px;
  background: var(--ros-text-dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.4s ease, width 0.4s ease;
  position: relative;
}

.slider-dot.is-active {
  background: var(--ros-gold);
  width: 48px;
}

.slider-dot::after {
  content: '';
  position: absolute;
  inset: -8px -4px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.6) 0%,
    rgba(15, 15, 15, 0.3) 35%,
    rgba(15, 15, 15, 0.2) 50%,
    rgba(15, 15, 15, 0.7) 85%,
    rgba(15, 15, 15, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(100px, 15vh, 160px) clamp(20px, 4vw, 40px) clamp(40px, 5vh, 80px);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Top meta bar */
.hero-top {
  text-align: center;
}

.hero-meta-line {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ros-gold);
  opacity: 0.8;
}

.hero-meta-line .separator {
  margin: 0 0.75rem;
  opacity: 0.4;
}

/* Center — main title cluster */
.hero-center {
  text-align: center;
  padding: clamp(40px, 8vh, 80px) 0;
}

.hero-presents {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--ros-text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: clamp(6px, 1.5vw, 18px);
  text-transform: uppercase;
  color: var(--ros-white);
  line-height: 1.05;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.hero-chronicle {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ros-text);
  margin-bottom: 0.5rem;
}

.hero-season {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.6rem, 0.9vw, 0.7rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-text-dim);
}

.hero-dates {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-top: 2rem;
}

.hero-dates .separator {
  margin: 0 0.5rem;
  opacity: 0.3;
}

/* Bottom tagline */
.hero-bottom {
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--ros-text);
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

/* Scroll indicator */
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-text {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ros-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   COUNTDOWN SECTION
   ========================================================================== */
.countdown-section {
  padding: var(--section-pad-sm) 0;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  max-width: 500px;
  margin: 2rem auto 0;
}

.countdown-unit {
  background: var(--ros-panel);
  border: 1px solid var(--ros-border);
  padding: clamp(16px, 3vw, 28px) clamp(8px, 2vw, 16px);
  position: relative;
}

.countdown-unit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ros-gold), transparent);
  opacity: 0.4;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--ros-white);
  display: block;
  line-height: 1;
  letter-spacing: 2px;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 0.9vw, 0.7rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-text-muted);
  margin-top: 0.5rem;
  display: block;
}

/* ==========================================================================
   PROLOGUE SECTION
   ========================================================================== */
.prologue-section .prologue-text {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--ros-text);
  line-height: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.prologue-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ==========================================================================
   REALMS GRID — FOUR CARDS (Eldritch card style)
   ========================================================================== */
.realms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-top: 3rem;
}

.realm-card {
  background: var(--ros-panel);
  border: 1px solid var(--ros-border);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
}

.realm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ros-gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.realm-card:hover {
  transform: translateY(-4px);
  border-color: var(--ros-gold-dark);
}

.realm-card:hover::before {
  opacity: 1;
}

/* Realm accent colors on top border */
.realm-card[data-realm="dragonspire"]::before { background: var(--realm-dragonspire); }
.realm-card[data-realm="elvenwood"]::before { background: var(--realm-elvenwood); }
.realm-card[data-realm="starforge"]::before { background: var(--realm-starforge); }
.realm-card[data-realm="runewave"]::before { background: var(--realm-runewave); }

.realm-card:hover[data-realm="dragonspire"] { border-color: rgba(232, 69, 69, 0.3); box-shadow: 0 8px 30px rgba(232, 69, 69, 0.1); }
.realm-card:hover[data-realm="elvenwood"] { border-color: rgba(78, 205, 196, 0.3); box-shadow: 0 8px 30px rgba(78, 205, 196, 0.1); }
.realm-card:hover[data-realm="starforge"] { border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 8px 30px rgba(168, 85, 247, 0.1); }
.realm-card:hover[data-realm="runewave"] { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1); }

.realm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  opacity: 0.7;
}

.realm-icon svg {
  width: 100%;
  height: 100%;
}

.realm-label {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-bottom: 0.5rem;
}

.realm-name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-white);
  margin-bottom: 0.5rem;
}

.realm-motto {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--ros-gold);
  font-style: italic;
  margin-bottom: 1rem;
}

.realm-desc {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.8rem;
  color: var(--ros-text-muted);
  line-height: 1.7;
}

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

@media (max-width: 600px) {
  .realms-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CHALLENGE SECTION
   ========================================================================== */
.challenge-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin: 3rem 0;
}

.challenge-step {
  text-align: center;
  padding: clamp(20px, 3vw, 32px);
  background: var(--ros-panel);
  border: 1px solid var(--ros-border);
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--ros-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-white);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.8rem;
  color: var(--ros-text-muted);
  line-height: 1.7;
}

.challenge-prize {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--ros-gold);
  border-opacity: 0.3;
  position: relative;
}

.challenge-prize::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ros-gold), transparent);
}

.prize-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-bottom: 1rem;
}

.prize-text {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--ros-white);
  line-height: 1.6;
  letter-spacing: 1px;
}

.prize-criteria {
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-text-dim);
}

@media (max-width: 768px) {
  .challenge-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HEROES SECTION
   ========================================================================== */
.heroes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin-top: 3rem;
}

.hero-card {
  text-align: center;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px);
  background: var(--ros-panel);
  border: 1px solid var(--ros-border);
  transition: border-color 0.4s ease;
}

.hero-card:hover {
  border-color: var(--ros-gold-dark);
}

.hero-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
}

.hero-card-icon svg {
  width: 100%;
  height: 100%;
}

.hero-card-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-bottom: 0.5rem;
}

.hero-card-name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-white);
  margin-bottom: 0.5rem;
}

.hero-card-desc {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--ros-text-muted);
  font-style: italic;
}

/* Court Minstrel teaser */
.court-minstrel-box {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--ros-border);
  background: var(--ros-dark);
}

.minstrel-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-bottom: 0.75rem;
}

.minstrel-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 2px;
  color: var(--ros-white);
  margin-bottom: 0.75rem;
}

.minstrel-desc {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--ros-text-muted);
  margin-bottom: 0.5rem;
}

.minstrel-reveal {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-text-dim);
}

@media (max-width: 768px) {
  .heroes-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HIGHLIGHTS — FULL-WIDTH EVENT PANELS (Eldritch match/game style)
   ========================================================================== */
.highlight-panel {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (min-width: 1025px) {
  .highlight-panel {
    background-attachment: fixed;
  }
}

.highlight-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.88) 0%,
    rgba(15, 15, 15, 0.7) 40%,
    rgba(15, 15, 15, 0.88) 100%
  );
  z-index: 1;
}

.highlight-panel > * {
  position: relative;
  z-index: 2;
}

.highlight-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 40px);
}

.highlight-label {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-bottom: 1.5rem;
}

.highlight-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: clamp(3px, 0.8vw, 7px);
  text-transform: uppercase;
  color: var(--ros-white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.highlight-motto {
  font-family: var(--font-accent);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--ros-gold-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.highlight-description {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: var(--ros-text);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.highlight-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.highlight-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ros-text-muted);
}

.highlight-meta-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--ros-gold);
  fill: none;
  stroke-width: 1.5;
}

/* ==========================================================================
   SPIRIT OF THE MALDIVES — ACTIVITIES GRID
   ========================================================================== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-top: 3rem;
}

.activity-card {
  background: var(--ros-panel);
  border: 1px solid var(--ros-border);
  padding: clamp(16px, 2vw, 24px);
  text-align: center;
  transition: border-color 0.3s ease;
}

.activity-card:hover {
  border-color: var(--ros-gold-dark);
}

.activity-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ros-white);
  margin-bottom: 0.4rem;
}

.activity-location {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.75rem;
  color: var(--ros-text-muted);
}

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

@media (max-width: 480px) {
  .activities-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   KIDS WORLD TABLE
   ========================================================================== */
.kids-table-wrapper {
  margin-top: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.kids-table {
  width: 100%;
  border-collapse: collapse;
}

.kids-table th {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-gold);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ros-border);
  text-align: left;
}

.kids-table td {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--ros-text);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.kids-table tr:hover td {
  background: rgba(191, 161, 85, 0.03);
}

.kids-table .date-cell {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--ros-gold);
  white-space: nowrap;
  min-width: 80px;
}

/* ==========================================================================
   SCHEDULE / TIMELINE (Eldritch match-listing style)
   ========================================================================== */
.schedule-table-wrapper {
  margin-top: 2rem;
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-gold);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ros-border);
  text-align: left;
}

.schedule-table td {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--ros-text);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
  vertical-align: top;
}

.schedule-table tr:hover td {
  background: rgba(191, 161, 85, 0.03);
}

.schedule-date {
  font-family: var(--font-heading);
  color: var(--ros-gold);
  white-space: nowrap;
  min-width: 80px;
}

.schedule-event-name {
  color: var(--ros-white);
  font-weight: 400;
}

.schedule-location {
  font-size: 0.75rem;
  color: var(--ros-text-muted);
}

/* Schedule filter pills */
.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ros-text-muted);
  background: transparent;
  border: 1px solid var(--ros-border);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--ros-gold);
  border-color: var(--ros-gold);
  background: rgba(191, 161, 85, 0.05);
}

/* ==========================================================================
   APP CTA / COMPANION SECTION
   ========================================================================== */
.app-cta-container {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--ros-border);
  background: var(--ros-panel);
}

.app-cta-text {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--ros-text);
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   FOOTER — ELDRITCH STYLE
   ========================================================================== */
.ros-footer {
  background: var(--ros-black);
  padding: clamp(40px, 6vw, 60px) clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--ros-border);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ros-white);
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--ros-text-muted);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--ros-gold);
}

.footer-links .separator {
  color: var(--ros-text-dim);
  font-size: 0.7rem;
}

.brand-stamp-footer {
  width: 50px;
  height: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.brand-stamp-footer:hover {
  opacity: 0.8;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ros-border);
  text-align: center;
}

.footer-copyright {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--ros-text-dim);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
body.ros-js-ready .ros-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

body.ros-js-ready .ros-animate.ros-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
body.ros-js-ready .ros-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

body.ros-js-ready .ros-stagger.ros-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   GOLD PARTICLE CANVAS
   ========================================================================== */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   MINI HEROES CARNIVAL — DUAL CARDS
   ========================================================================== */
.carnival-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 24px);
  margin-top: 3rem;
}

.carnival-card {
  background: var(--ros-panel);
  border: 1px solid var(--ros-border);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
}

.carnival-card-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ros-gold);
  margin-bottom: 0.75rem;
}

.carnival-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ros-white);
  margin-bottom: 0.75rem;
}

.carnival-card-desc {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--ros-text-muted);
  line-height: 1.7;
}

.carnival-meta {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ros-text-dim);
}

@media (max-width: 768px) {
  .carnival-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RESPONSIVE FINE-TUNING
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    white-space: normal;
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    letter-spacing: clamp(3px, 1vw, 6px);
  }

  .hero-content {
    padding-top: 80px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    letter-spacing: clamp(2px, 0.6vw, 4px);
  }

  .highlight-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
}

/* ==========================================================================
   NUCLEAR OVERRIDE — WordPress / WPBakery font-weight reset
   ========================================================================== */
.ros-section h1, .ros-section h2, .ros-section h3,
.ros-section h4, .ros-section h5, .ros-section h6,
.ros-section p, .ros-section span, .ros-section a, .ros-section div,
.highlight-panel h1, .highlight-panel h2, .highlight-panel h3,
.highlight-panel p, .highlight-panel span, .highlight-panel div,
.hero-section h1, .hero-section h2, .hero-section p,
.hero-section span, .hero-section div,
.wpb_wrapper h1, .wpb_wrapper h2, .wpb_wrapper h3,
.wpb_wrapper h4, .wpb_wrapper h5, .wpb_wrapper h6,
.wpb_wrapper p, .wpb_wrapper span, .wpb_wrapper a,
.vc_row h1, .vc_row h2, .vc_row h3,
.vc_row p, .vc_row span, .vc_row a {
  font-weight: inherit !important;
}
