/* ==========================================================================
   BRIGHT – THE SCHOOL | Cinematic Hero Section & Complete Mobile Optimization
   Architecture: Pure Vanilla CSS3 with Custom Properties
   Creative Direction: World-Class School Hero — Immersive, Premium, Dynamic
   ========================================================================== */

/* ==========================================================================
   1. CINEMATIC HERO SECTION — Full-Width Immersive Design
   ========================================================================== */

.hero-cinematic {
  position: relative;
  min-height: clamp(600px, 85vh, 900px);
  background: linear-gradient(165deg, #FFF3D6 0%, #FFF7E9 25%, #FFFDF9 50%, #F0F7FF 75%, #FFFFFF 100%);
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 7vw, 7rem) 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Animated Background Blobs */
.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  will-change: transform;
}

.hero-bg-blob-1 {
  width: 600px;
  height: 600px;
  top: -15%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 200, 61, 0.28) 0%, transparent 70%);
  animation: heroBlobFloat1 18s ease-in-out infinite;
}

.hero-bg-blob-2 {
  width: 500px;
  height: 500px;
  bottom: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(120, 205, 168, 0.22) 0%, transparent 70%);
  animation: heroBlobFloat2 22s ease-in-out infinite;
}

.hero-bg-blob-3 {
  width: 400px;
  height: 400px;
  top: 35%;
  left: 30%;
  background: radial-gradient(circle, rgba(105, 188, 235, 0.18) 0%, transparent 70%);
  animation: heroBlobFloat3 15s ease-in-out infinite;
}

@keyframes heroBlobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes heroBlobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

@keyframes heroBlobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.1); }
}

/* Doodle Positioning for Cinematic Hero */
.hero-doodle-sun {
  top: 8%;
  right: 3%;
  z-index: 2;
}

.hero-doodle-cloud {
  top: 12%;
  left: 2%;
  z-index: 2;
}

.hero-doodle-stars {
  bottom: 18%;
  left: 3%;
  z-index: 2;
}

/* Hero Content Grid */
.hero-cinematic-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
  z-index: 3;
}

/* Hero Text Content */
.hero-cinematic-content {
  position: relative;
  z-index: 3;
}

/* Badge Pill */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 200, 61, 0.2) 0%, rgba(255, 200, 61, 0.1) 100%);
  border: 1.5px solid rgba(255, 200, 61, 0.5);
  color: #8B6914;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.35rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(255, 200, 61, 0.15);
}

.hero-badge-sparkle {
  font-size: 1rem;
  animation: sparkleRotate 4s linear infinite;
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.2); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.hero-badge-divider {
  opacity: 0.5;
  font-weight: 400;
}

/* Cinematic Title */
.hero-cinematic-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #FFB84D 0%, #FF8074 40%, #B9A5EE 80%, #69BCEB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradientShift 6s ease-in-out infinite;
  display: inline-block;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Subtitle */
.hero-cinematic-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--color-charcoal-muted);
  line-height: 1.72;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

/* CTA Buttons */
.hero-cinematic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-cta-primary {
  position: relative;
  overflow: hidden;
}

.hero-cta-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: heroSheen 4s ease-in-out infinite;
}

@keyframes heroSheen {
  0%, 75%, 100% { left: -100%; }
  50% { left: 150%; }
}

/* Trust Strip */
.hero-trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(255, 200, 61, 0.3);
}

.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 3px 10px rgba(41, 54, 74, 0.04);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-charcoal);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-trust-chip:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(41, 54, 74, 0.08);
}

.hero-trust-emoji {
  font-size: 1.1rem;
}

/* ==========================================================================
   2. CINEMATIC IMAGE CAROUSEL
   ========================================================================== */

.hero-cinematic-media {
  position: relative;
  z-index: 3;
}

.hero-carousel-wrapper {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -12px rgba(41, 54, 74, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 0 6px rgba(255, 200, 61, 0.15),
    0 0 0 12px rgba(255, 200, 61, 0.06);
  transform: rotate(0.5deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-carousel-wrapper:hover {
  transform: rotate(0deg) scale(1.01);
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s ease, transform 4s ease;
  z-index: 1;
}

.hero-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide Dots */
.hero-slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(41, 54, 74, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-dot-active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #FFB84D, #FF8074);
}

/* Glassmorphism Floating Badges */
.hero-glass-badge {
  position: absolute;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(41, 54, 74, 0.1), 0 2px 6px rgba(41, 54, 74, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-glass-badge:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 32px rgba(41, 54, 74, 0.14);
}

.hero-glass-badge-tr {
  top: 16px;
  right: 16px;
  animation: floatGlass1 5s ease-in-out infinite;
}

.hero-glass-badge-bl {
  bottom: 50px;
  left: 16px;
  animation: floatGlass2 6s ease-in-out infinite;
}

@keyframes floatGlass1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatGlass2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -6px); }
}

.hero-glass-emoji {
  font-size: 1.5rem;
}

.hero-glass-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-glass-meta strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.2;
}

.hero-glass-meta span {
  font-size: 0.75rem;
  color: var(--color-charcoal-muted);
  line-height: 1.2;
}

/* ==========================================================================
   3. HERO STAT COUNTERS (Glassmorphism Cards)
   ========================================================================== */

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 18px rgba(41, 54, 74, 0.06);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-stat-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(41, 54, 74, 0.1);
}

.hero-stat-sunshine {
  border-color: rgba(255, 200, 61, 0.35);
  background: linear-gradient(155deg, rgba(255, 253, 248, 0.95), rgba(255, 246, 219, 0.9));
}

.hero-stat-mint {
  border-color: rgba(120, 205, 168, 0.35);
  background: linear-gradient(155deg, rgba(248, 253, 251, 0.95), rgba(238, 250, 243, 0.9));
}

.hero-stat-coral {
  border-color: rgba(255, 128, 116, 0.35);
  background: linear-gradient(155deg, rgba(255, 251, 251, 0.95), rgba(255, 239, 239, 0.9));
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   4. HERO WAVE BOTTOM SEPARATOR
   ========================================================================== */

.hero-wave-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.hero-wave-bottom svg {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
}

/* ==========================================================================
   5. HERO ENTRANCE ANIMATIONS (Fade-Up on Load)
   ========================================================================== */

.hero-anim-fadeup {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--anim-delay, 0s);
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   6. COMPLETE MOBILE RESPONSIVENESS — ALL DEVICES
   ========================================================================== */

/* ---- Ultra-Wide Desktop (1920px+) ---- */
@media (min-width: 1920px) {
  .hero-cinematic {
    min-height: 85vh;
    padding: 7rem 0 8rem 0;
  }
  
  .hero-cinematic-title {
    font-size: 5rem;
  }
}

/* ---- Large Desktop (1440px+) ---- */
@media (min-width: 1440px) {
  .hero-cinematic-content {
    max-width: 680px;
  }
}

/* ---- Tablet & Small Laptops (max-width: 1160px) ---- */
@media (max-width: 1160px) {
  .hero-cinematic {
    min-height: auto;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 6rem) 0;
  }

  .hero-cinematic-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-cinematic-content {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cinematic-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cinematic-actions {
    justify-content: center;
  }

  .hero-trust-strip {
    justify-content: center;
  }

  .hero-cinematic-media {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-doodle-sun {
    width: 90px;
    height: 90px;
  }

  .hero-doodle-cloud {
    width: 100px;
    height: 65px;
  }
}

/* ---- Tablet Portrait (max-width: 900px) ---- */
@media (max-width: 900px) {
  .hero-cinematic {
    padding: 2.5rem 0 4rem 0;
  }

  .hero-cinematic-title {
    font-size: clamp(2.4rem, 7vw, 3.2rem);
  }

  .hero-glass-badge-tr {
    top: 10px;
    right: 10px;
    padding: 0.5rem 0.85rem;
  }

  .hero-glass-badge-bl {
    bottom: 40px;
    left: 10px;
    padding: 0.5rem 0.85rem;
  }

  .hero-glass-emoji {
    font-size: 1.2rem;
  }

  .hero-glass-meta strong {
    font-size: 0.78rem;
  }

  .hero-glass-meta span {
    font-size: 0.68rem;
  }
}

/* ---- Mobile Devices (max-width: 767px) ---- */
@media (max-width: 767px) {
  .hero-cinematic {
    padding: 2rem 0 3.5rem 0;
    min-height: auto;
  }

  .hero-cinematic-grid {
    gap: 2rem;
  }

  .hero-cinematic-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 1.15rem;
  }

  .hero-cinematic-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
    max-width: 100%;
  }

  .hero-badge-pill {
    font-size: 0.78rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-cinematic-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .hero-cinematic-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-top: 1.5rem;
  }

  .hero-trust-chip {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Carousel adjustments */
  .hero-carousel-wrapper {
    border-radius: 22px;
    transform: none;
    box-shadow:
      0 16px 40px -8px rgba(41, 54, 74, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.5),
      0 0 0 4px rgba(255, 200, 61, 0.12);
  }

  .hero-carousel {
    aspect-ratio: 4 / 3;
  }

  .hero-glass-badge {
    padding: 0.45rem 0.75rem;
    border-radius: 14px;
    gap: 0.45rem;
  }

  .hero-glass-badge-tr {
    top: 8px;
    right: 8px;
  }

  .hero-glass-badge-bl {
    bottom: 36px;
    left: 8px;
  }

  .hero-glass-emoji {
    font-size: 1.1rem;
  }

  .hero-glass-meta strong {
    font-size: 0.72rem;
  }

  .hero-glass-meta span {
    font-size: 0.64rem;
  }

  .hero-slide-dots {
    bottom: 10px;
    padding: 4px 10px;
    gap: 6px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-dot-active {
    width: 22px;
  }

  /* Stats */
  .hero-stats-row {
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .hero-stat-card {
    padding: 0.75rem 0.35rem;
    border-radius: 14px;
  }

  .hero-stat-number {
    font-size: 1.35rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }

  /* Doodles - smaller on mobile */
  .hero-doodle-sun {
    width: 70px;
    height: 70px;
    top: 5%;
    right: 2%;
    opacity: 0.65;
  }

  .hero-doodle-cloud {
    width: 80px;
    height: 55px;
    top: 8%;
    left: 1%;
    opacity: 0.6;
  }

  .hero-doodle-stars {
    display: none;
  }

  /* Blobs smaller */
  .hero-bg-blob-1 { width: 300px; height: 300px; }
  .hero-bg-blob-2 { width: 250px; height: 250px; }
  .hero-bg-blob-3 { display: none; }
}

/* ---- Small Mobile (max-width: 380px) ---- */
@media (max-width: 380px) {
  .hero-cinematic {
    padding: 1.5rem 0 3rem 0;
  }

  .hero-cinematic-title {
    font-size: 1.85rem;
  }

  .hero-cinematic-subtitle {
    font-size: 0.92rem;
  }

  .hero-badge-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-carousel {
    aspect-ratio: 16 / 11;
  }

  .hero-glass-badge {
    display: none;
  }

  .hero-stat-number {
    font-size: 1.15rem;
  }

  .hero-stat-label {
    font-size: 0.6rem;
  }
}

/* ==========================================================================
   7. GLOBAL MOBILE RESPONSIVENESS FIXES
   (Supplements responsive.css — fixes overflows, touch targets, spacing)
   ========================================================================== */

/* ---- Container padding for mobile safety ---- */
@media (max-width: 767px) {
  .container,
  .container-wide,
  .container-narrow {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  /* Fix announcement ribbon wrapping */
  .site-announcement-ribbon {
    font-size: 0.75rem;
    padding: 0.4rem 0.65rem;
    line-height: 1.45;
  }

  .announcement-inner {
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .announcement-pill {
    font-size: 0.68rem;
    padding: 0.1rem 0.5rem;
  }

  /* Section headers mobile */
  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-badge {
    font-size: 0.78rem;
    padding: 0.35rem 1rem;
  }

  /* Feature cards */
  .features-playful-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-playful-card {
    padding: 1.75rem 1.35rem;
  }

  /* Card icon bubbles */
  .card-icon-bubble {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  /* Safety pillars grid */
  .safety-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .safety-pillar-card {
    padding: 1.5rem 1.25rem;
  }

  /* Programme cards */
  .programmes-playful-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .programme-media-wrap {
    height: 200px;
  }

  .programme-body {
    padding: 1.5rem 1.25rem;
  }

  /* Two-column responsive grid: fix order on mobile */
  .two-col-responsive-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Admissions overview grid */
  .admissions-overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Gallery */
  .gallery-responsive-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Lightbox */
  .lightbox-dialog {
    margin: 0.5rem;
    border-radius: 18px;
  }

  .lightbox-image {
    max-height: 65vh;
  }

  /* Tour modal */
  .tour-modal-card {
    margin: 0.75rem;
    padding: 1.5rem;
    border-radius: 22px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .tour-form-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Tables overflow */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Images prevent overflow */
  img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
  }

  /* Breadcrumb text wrapping */
  .breadcrumb-nav {
    flex-wrap: wrap;
  }

  /* Fix inline styles overflow */
  [style*="display:flex"],
  [style*="display: flex"] {
    flex-wrap: wrap;
  }
}

/* ---- Extra Small Devices (max-width: 340px) ---- */
@media (max-width: 340px) {
  .container,
  .container-wide,
  .container-narrow {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }

  .btn-lg {
    font-size: 0.95rem;
    padding: 0.75rem 1.35rem;
  }
}

/* ==========================================================================
   8. LANDSCAPE MOBILE OPTIMIZATION
   ========================================================================== */

@media (max-width: 900px) and (orientation: landscape) {
  .hero-cinematic {
    min-height: auto;
    padding: 2rem 0 3rem 0;
  }

  .hero-cinematic-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 2rem;
  }

  .hero-cinematic-content {
    align-items: flex-start;
  }

  .hero-cinematic-actions {
    justify-content: flex-start;
  }

  .hero-trust-strip {
    justify-content: flex-start;
  }

  .hero-cinematic-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .hero-cinematic-subtitle {
    font-size: 0.88rem;
  }

  .hero-carousel {
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   9. TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch devices to prevent sticky states */
  .hero-carousel-wrapper:hover {
    transform: rotate(0.5deg);
  }

  .hero-glass-badge:hover {
    transform: none;
  }

  .hero-trust-chip:hover {
    transform: none;
  }

  .hero-stat-card:hover {
    transform: none;
  }

  /* Larger touch targets */
  .hero-dot {
    width: 14px;
    height: 14px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-clip: content-box;
    padding: 16px;
    margin: -16px;
  }

  .hero-dot-active {
    width: 32px;
  }
}

/* ==========================================================================
   10. PREFERS REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-anim-fadeup {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-bg-blob,
  .hero-glass-badge-tr,
  .hero-glass-badge-bl,
  .hero-badge-sparkle,
  .hero-title-gradient,
  .hero-cta-primary::after {
    animation: none !important;
  }

  .hero-slide {
    transition: opacity 0.5s ease;
    transform: none;
  }
}

/* ==========================================================================
   11. HIGH DPI / RETINA DISPLAYS
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-carousel-wrapper {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ==========================================================================
   12. NOTCH-SAFE AREA (iPhone X+ / Modern Android)
   ========================================================================== */

@supports (padding-top: env(safe-area-inset-top)) {
  .hero-cinematic {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}
