/* ============================================================
   WREST Design System v2.0 — Maritime Corporate Theme
   All tokens are consumed by Tailwind + fallback CSS vars
   ============================================================ */

:root {
  /* ---- Spacing Scale (8px base) ---- */
  --space-xs: 0.25rem;
  /*  4px */
  --space-sm: 0.5rem;
  /*  8px */
  --space-md: 0.75rem;
  /* 12px */
  --space-lg: 1rem;
  /* 16px */
  --space-xl: 1.5rem;
  /* 24px */
  --space-2xl: 2rem;
  /* 32px */
  --space-3xl: 2.5rem;
  /* 40px */
  --space-4xl: 3rem;
  /* 48px */
  --space-5xl: 4rem;
  /* 64px */
  --space-6xl: 5rem;
  /* 80px */
  --space-7xl: 6rem;
  /* 96px */
  --space-8xl: 8rem;
  /* 128px */
  --space-9xl: 10rem;
  /* 160px */
  --space-10xl: 12rem;
  /* 192px */

  /* ---- Section Padding ---- */
  --section-py: var(--space-8xl);
  /* 128px desktop */
  --section-py-md: var(--space-6xl);
  /*  80px tablet  */
  --section-py-sm: var(--space-5xl);
  /*  64px mobile  */
  --section-px: 1.5rem;

  /* ---- Container Widths ---- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-narrow: 896px;

  /* ---- Typography ---- */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */
  --text-7xl: 4.5rem;
  /* 72px */
  --text-8xl: 6rem;
  /* 96px */

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* ---- Border Radius ---- */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-xs: 0 1px 2px rgba(6, 16, 31, 0.05);
  --shadow-sm: 0 1px 3px rgba(6, 16, 31, 0.08), 0 1px 2px rgba(6, 16, 31, 0.06);
  --shadow-md: 0 4px 6px rgba(6, 16, 31, 0.07), 0 2px 4px rgba(6, 16, 31, 0.06);
  --shadow-lg: 0 10px 15px rgba(6, 16, 31, 0.08), 0 4px 6px rgba(6, 16, 31, 0.05);
  --shadow-xl: 0 20px 25px rgba(6, 16, 31, 0.10), 0 10px 10px rgba(6, 16, 31, 0.04);
  --shadow-2xl: 0 25px 50px rgba(6, 16, 31, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(6, 16, 31, 0.06);

  /* ---- Overlay Presets ---- */
  --overlay-light: rgba(6, 16, 31, 0.25);
  --overlay-medium: rgba(6, 16, 31, 0.50);
  --overlay-heavy: rgba(6, 16, 31, 0.75);
  --overlay-dark: rgba(6, 16, 31, 0.90);

  --overlay-gradient-right: linear-gradient(90deg, rgba(6, 16, 31, 0.92) 0%, rgba(6, 16, 31, 0.60) 50%, rgba(6, 16, 31, 0.20) 100%);
  --overlay-gradient-left: linear-gradient(270deg, rgba(6, 16, 31, 0.92) 0%, rgba(6, 16, 31, 0.60) 50%, rgba(6, 16, 31, 0.20) 100%);
  --overlay-gradient-bottom: linear-gradient(0deg, rgba(6, 16, 31, 0.85) 0%, rgba(6, 16, 31, 0.30) 50%, transparent 100%);
  --overlay-gradient-top: linear-gradient(180deg, rgba(6, 16, 31, 0.85) 0%, rgba(6, 16, 31, 0.30) 50%, transparent 100%);
  --overlay-gradient-radial: radial-gradient(ellipse at center, rgba(6, 16, 31, 0.30) 0%, rgba(6, 16, 31, 0.70) 100%);

  /* ---- Glass / Backdrop ---- */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-dark-bg: rgba(6, 16, 31, 0.40);
  --glass-dark-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
  --glass-blur-sm: blur(6px);
  --glass-blur-lg: blur(24px);

  /* ---- Gradients ---- */
  --gradient-brand: linear-gradient(135deg, #0B1B3D 0%, #143698 100%);
  --gradient-accent: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  --gradient-dark: linear-gradient(135deg, #06101F 0%, #0B1B3D 100%);
  --gradient-surface: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  --gradient-glow: linear-gradient(135deg, rgba(234, 88, 12, 0.15) 0%, rgba(234, 88, 12, 0.05) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(6, 16, 31, 0.95) 0%, rgba(11, 27, 61, 0.80) 50%, rgba(20, 54, 152, 0.40) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* ---- Transitions ---- */
  --transition-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 300ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 500ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-reveal: 800ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 1000ms cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- Z-Index Scale ---- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ============================================================
   Utility Classes (Tailwind companions)
   ============================================================ */

/* --- Section Spacing (Rhythmic Alternation) --- */
.section {
  padding-top: var(--space-8xl);
  padding-bottom: var(--space-8xl);
}

.section-sm {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.section-lg {
  padding-top: var(--space-9xl);
  padding-bottom: var(--space-9xl);
}

.section-xl {
  padding-top: var(--space-9xl);
  padding-bottom: var(--space-10xl, 10rem);
}

.section-compact {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

@media (max-width: 1023px) {
  .section {
    padding-top: var(--section-py-md);
    padding-bottom: var(--section-py-md);
  }

  .section-sm {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }

  .section-lg {
    padding-top: var(--space-7xl);
    padding-bottom: var(--space-7xl);
  }

  .section-xl {
    padding-top: var(--space-8xl);
    padding-bottom: var(--space-8xl);
  }

  .section-compact {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}

@media (max-width: 767px) {
  .section {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
  }

  .section-sm {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .section-lg {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
  }

  .section-xl {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
  }

  .section-compact {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

/* --- Section Bridge (gradient transition between contrasting sections) --- */
.section-bridge::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 2;
}

.section-bridge-light::after {
  background: linear-gradient(180deg, transparent, #F8FAFC);
}

.section-bridge-dark::after {
  background: linear-gradient(180deg, transparent, #0B1B3D);
}

.section-bridge-white::after {
  background: linear-gradient(180deg, transparent, #FFFFFF);
}

.section-bridge-muted::after {
  background: linear-gradient(180deg, transparent, #F1F5F9);
}

/* --- Container Variants --- */
.container-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

/* --- Overlays --- */
.overlay-light {
  background: var(--overlay-light);
}

.overlay-medium {
  background: var(--overlay-medium);
}

.overlay-heavy {
  background: var(--overlay-heavy);
}

.overlay-dark {
  background: var(--overlay-dark);
}

.overlay-gradient-right {
  background: var(--overlay-gradient-right);
}

.overlay-gradient-left {
  background: var(--overlay-gradient-left);
}

.overlay-gradient-bottom {
  background: var(--overlay-gradient-bottom);
}

.overlay-gradient-top {
  background: var(--overlay-gradient-top);
}

.overlay-gradient-radial {
  background: var(--overlay-gradient-radial);
}

.overlay-gradient-hero {
  background: var(--gradient-hero);
}

/* --- Glass Effects --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.glass-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-border);
}

.glass-sm {
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
}

.glass-lg {
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
}

/* --- Typography Helpers --- */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-md {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.heading-sm {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.heading-xs {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .heading-xl {
    font-size: var(--text-4xl);
  }

  .heading-lg {
    font-size: var(--text-3xl);
  }

  .heading-md {
    font-size: var(--text-2xl);
  }

  .heading-sm {
    font-size: var(--text-lg);
  }
}

/* --- Body text refinement --- */
.body-large {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: #334155;
}

.body-base {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: #334155;
}

.body-small {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: #475569;
}

.body-xs {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: #64748B;
}

/* --- Shadows --- */
.shadow-card {
  box-shadow: var(--shadow-md);
}

.shadow-card:hover {
  box-shadow: var(--shadow-lg);
}

.shadow-glass {
  box-shadow: 0 8px 32px rgba(6, 16, 31, 0.12);
}

/* --- Transitions --- */
.transition-base {
  transition: all var(--transition-base);
}

.transition-slow {
  transition: all var(--transition-slow);
}

.transition-reveal {
  transition: all var(--transition-reveal);
}

.transition-bounce {
  transition: all var(--transition-bounce);
}

.transition-transform {
  transition: transform var(--transition-base);
}

.transition-opacity {
  transition: opacity var(--transition-base);
}

/* --- Card Glow (legacy, decorative) --- */
.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

/* --- Card Hover (subtle lift) --- */
.card-hover {
  transition: all var(--transition-base);
}

.card-hover:hover {
  border-color: var(--color-safety-400, #FB923C);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* --- Mobile Hero Crop --- */
@media (max-width: 767px) {
  .hero-bg-mobile {
    background-position: 50% 25%;
  }
}

/* --- Background Parallax --- */
.bg-fixed-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .bg-fixed-parallax {
    background-attachment: scroll;
  }
}

/* --- Text Shadows for Hero Readability --- */
.text-shadow {
  text-shadow: 0 2px 20px rgba(6, 16, 31, 0.6), 0 0 8px rgba(6, 16, 31, 0.3);
}

.text-shadow-sm {
  text-shadow: 0 1px 8px rgba(6, 16, 31, 0.5);
}

.text-shadow-lg {
  text-shadow: 0 4px 30px rgba(6, 16, 31, 0.7), 0 0 12px rgba(6, 16, 31, 0.4);
}

/* --- Focus Visible (keyboard-only focus ring) --- */
:focus-visible {
  outline: 2px solid #EA580C;
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #EA580C;
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --- Image Treatments --- */
.img-frame {
  border: 1px solid var(--color-sea-200, #E2E8F0);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.img-frame-dark {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(6, 16, 31, 0.3);
}

/* --- Subtle Texture Overlays (pure CSS) --- */
.texture-dots {
  background-image: radial-gradient(rgba(6, 16, 31, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.texture-dots-light {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.texture-lines {
  background-image: repeating-linear-gradient(0deg, rgba(6, 16, 31, 0.02) 0px, rgba(6, 16, 31, 0.02) 1px, transparent 1px, transparent 40px);
  background-size: 100% 40px;
}

.texture-lines-light {
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 40px);
  background-size: 100% 40px;
}

/* --- Image Placeholder Gradient (for empty states) --- */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-sea-100, #F1F5F9) 0%, var(--color-sea-200, #E2E8F0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   ANIMATIONS & INTERACTIONS
   ============================================================ */

/* --- Scroll Reveal System --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-2rem);
}

[data-reveal="right"] {
  transform: translateX(2rem);
}

[data-reveal="scale"] {
  transform: scale(0.95);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="left"].revealed,
[data-reveal="right"].revealed {
  transform: translateX(0);
}

[data-reveal="scale"].revealed {
  transform: scale(1);
}

/* --- Stagger Delays (0-10) --- */
[data-reveal][style*="--delay"] {
  transition-delay: var(--delay);
}

/* --- Navbar Scroll Transition --- */
.site-header {
  transition: background-color var(--transition-base),
    backdrop-filter var(--transition-base),
    box-shadow var(--transition-base),
    padding var(--transition-base);
  will-change: background-color, backdrop-filter, box-shadow, padding;
}

.site-header.is-scrolled {
  background-color: rgba(6, 16, 31, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* --- FAQ Accordion --- */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
  overflow: hidden;
  opacity: 0;
}

.faq-content>div {
  min-height: 0;
  visibility: hidden;
  transition: visibility var(--transition-base);
}

.faq-item.is-active .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.is-active .faq-content>div {
  visibility: visible;
}

.faq-chevron {
  transition: transform var(--transition-base);
}

.faq-item.is-active .faq-chevron {
  transform: rotate(180deg);
}

/* --- Button Hover Lift --- */
.btn-hover-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-hover-lift:active {
  transform: translateY(0);
}

/* --- Image Zoom --- */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform var(--transition-smooth);
  will-change: transform;
}

.img-zoom-container:hover img {
  transform: scale(1.08);
}

/* --- Ken Burns Effect --- */
@-webkit-keyframes kenBurns {
  0% {
    -webkit-transform: scale(1.05) translate(0, 0);
    transform: scale(1.05) translate(0, 0);
  }

  50% {
    -webkit-transform: scale(1.12) translate(-1%, -0.5%);
    transform: scale(1.12) translate(-1%, -0.5%);
  }

  100% {
    -webkit-transform: scale(1.2) translate(-2%, -1%);
    transform: scale(1.2) translate(-2%, -1%);
  }
}

@keyframes kenBurns {
  0% {
    -webkit-transform: scale(1.05) translate(0, 0);
    transform: scale(1.05) translate(0, 0);
  }

  50% {
    -webkit-transform: scale(1.12) translate(-1%, -0.5%);
    transform: scale(1.12) translate(-1%, -0.5%);
  }

  100% {
    -webkit-transform: scale(1.2) translate(-2%, -1%);
    transform: scale(1.2) translate(-2%, -1%);
  }
}

.ken-burns,
.hero-bg-anim {
  -webkit-animation: kenBurns 25s ease-in-out infinite alternate;
  animation: kenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Force animation on active slides or revealed sections */
.is-active .ken-burns,
.is-active .hero-bg-anim,
.revealed .ken-burns {
  -webkit-animation-play-state: running !important;
  animation-play-state: running !important;
}

@media (max-width: 767px) {

  .ken-burns,
  .hero-bg-anim {
    -webkit-animation-duration: 30s;
    animation-duration: 30s;
    /* Slower on mobile */
    -webkit-animation-name: kenBurnsMobile;
    animation-name: kenBurnsMobile;
  }

  @-webkit-keyframes kenBurnsMobile {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }

    100% {
      -webkit-transform: scale(1.08);
      transform: scale(1.08);
    }
  }

  @keyframes kenBurnsMobile {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }

    100% {
      -webkit-transform: scale(1.08);
      transform: scale(1.08);
    }
  }
}

.hero-ken-burns-wrapper {
  position: absolute;
  inset: -10px;
  /* Slight bleed to prevent edges showing during pan */
  overflow: hidden;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 16, 31, 0.8) 0%, rgba(6, 16, 31, 0.4) 100%);
  z-index: 1;
}

/* --- Moving Overlay Gradient --- */
@keyframes movingGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-moving-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, rgba(234, 88, 12, 0.05), rgba(20, 54, 152, 0.05), rgba(6, 16, 31, 0.05));
  background-size: 400% 400%;
  animation: movingGradient 15s ease infinite;
  z-index: 2;
  pointer-events: none;
}

/* --- Floating Atmosphere Particles --- */
@keyframes floatAtmosphere {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  25% {
    opacity: 0.3;
  }

  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.1;
  }

  100% {
    transform: translateY(-40px) translateX(-5px);
    opacity: 0;
  }
}

.atmosphere-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  animation: floatAtmosphere var(--duration, 10s) linear infinite;
  opacity: 0;
}

/* --- Accessibility: prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



/* --- Hero Slider Specific Animations --- */
.hero-slide.is-active .hero-bg-anim {
  /* Animation is now handled by the consolidated .hero-bg-anim class */
}

@keyframes slideProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.progress-bar {
  transform-origin: left;
  will-change: width;
}

.hero-slide .slide-title,
.hero-slide .slide-desc,
.hero-slide .slide-cta {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide.is-active .slide-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hero-slide.is-active .slide-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.hero-slide.is-active .slide-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

/* Force reset on inactive */
.hero-slide.is-inactive .slide-title,
.hero-slide.is-inactive .slide-desc,
.hero-slide.is-inactive .slide-cta {
  opacity: 0;
  transform: translateY(30px);
  transition-duration: 0.4s;
  transition-delay: 0s;
}