/* ============================================================
   Poorna Driving School — Styles
   Mobile-first, responsive single-page site
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #FFFFFF;
  --color-primary: #D32F2F;
  --color-primary-dark: #B71C1C;
  --color-dark: #1A1A1A;
  --color-accent: #FFC107;
  --color-light-gray: #F5F5F5;
  --color-text: #1A1A1A;
  --color-text-light: #FFFFFF;
  --color-muted: #666666;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --radius-lg: 16px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Typography --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.45);
}

.btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: #1EBE57;
  border-color: #1EBE57;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline:hover {
  background: var(--color-dark);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--block {
  width: 100%;
}

.btn--large {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn__icon--lg {
  width: 24px;
  height: 24px;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(255, 193, 7, 0.15);
  color: var(--color-dark);
  border: 1px solid var(--color-accent);
}

.govt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  background: #D32F2F;
  border: 2px solid #B71C1C;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.35);
}

.govt-badge__icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 1;
  min-width: 0;
  margin-right: auto;
}

.header__logo img {
  display: block;
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.header__brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.header__name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile nav */
.nav {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
  overflow-y: auto;
}

.nav.is-open {
  transform: translateX(0);
}

.nav__list {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.875rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-dark);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link.is-active {
  background: rgba(211, 47, 47, 0.08);
  color: var(--color-primary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
  background: var(--color-bg);
}

.hero__stripe {
  position: absolute;
  top: 0;
  right: -10%;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(211, 47, 47, 0.06) 40%, rgba(211, 47, 47, 0.12) 100%);
  transform: skewX(-8deg);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.hero__content {
  text-align: center;
  max-width: 640px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.hero__call {
  flex-wrap: wrap;
  white-space: normal;
  text-align: center;
}

.hero__call-nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.375rem;
}

.hero__call-nums a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__call-nums a:hover {
  color: var(--color-primary);
}

.contact__phone-nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.375rem;
}

.location__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer__phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.375rem;
  font-size: 0.875rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  background: var(--color-dark);
  padding: 2.5rem 0;
}

.stats__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-text-light);
}

.stat__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  filter: sepia(1) saturate(3) hue-rotate(5deg);
}

.stat__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stat__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.125rem;
}

/* ============================================================
   COURSES
   ============================================================ */
.courses {
  padding: 4rem 0;
  background: var(--color-bg);
}

.courses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.course-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.course-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.course-card__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.course-card__desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.course-card__list {
  margin-bottom: 1.5rem;
}

.course-card__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.course-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us {
  padding: 4rem 0;
  background: var(--color-light-gray);
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.feature__desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 4rem 0;
  background: #F5F5F5;
}

.testimonials-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.testimonials-carousel__slider {
  position: relative;
  width: 100%;
  padding: 0 2.75rem;
}

.testimonials-carousel__viewport {
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.testimonials-carousel__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
  height: 100%;
  position: relative;
  z-index: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  z-index: 1;
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.testimonial-card__text {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex: 1;
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  font-style: normal;
  color: var(--color-dark);
  margin-top: auto;
}

.testimonials-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.testimonials-carousel__arrow svg {
  width: 22px;
  height: 22px;
}

.testimonials-carousel__arrow:hover {
  background: var(--color-primary-dark);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.45);
}

.testimonials-carousel__arrow:active {
  transform: translateY(-50%) scale(0.97);
}

.testimonials-carousel__arrow--prev {
  left: 0;
}

.testimonials-carousel__arrow--next {
  right: 0;
}

.testimonials-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  padding-top: 0.25rem;
}

.testimonials-carousel__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(211, 47, 47, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.testimonials-carousel__dot:hover {
  background: rgba(211, 47, 47, 0.5);
}

.testimonials-carousel__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ============================================================
   LOCATION
   ============================================================ */
.location {
  padding: 4rem 0;
  background: var(--color-bg);
}

.location__map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.location__map iframe {
  width: 100%;
  height: 100%;
}

.location__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.location__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.location__text {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.location__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition);
}

.location__link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact {
  background: var(--color-dark);
  padding: 4rem 0;
}

.contact__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.contact__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.contact__phones {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.contact__phones-label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.contact__phone-link {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.contact__phone-link:hover {
  color: var(--color-text-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__address {
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-text-light);
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

/* ============================================================
   MOBILE HERO TYPO (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero__title {
    font-size: clamp(36px, 6vw, 3rem);
    font-weight: 900;
  }

  .hero__subtitle {
    font-size: 18px;
    font-weight: 500;
  }

  .hero__actions .btn {
    font-size: 18px;
    font-weight: 600;
  }

  .hero__call-nums a {
    font-size: 16px;
    font-weight: 600;
  }

  .govt-badge {
    font-size: 15px;
    font-weight: 700;
  }
}

/* ============================================================
   MOBILE (≤ 639px)
   ============================================================ */
@media (max-width: 639px) {
  .hero__actions .btn,
  .contact__inner .btn--whatsapp {
    width: 100%;
  }

  .hero__call-sep,
  .contact__phone-sep,
  .phone-sep {
    display: none;
  }

  .hero__call-nums,
  .contact__phone-nums,
  .location__phones,
  .footer__phones {
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
  }
}

/* ============================================================
   TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .header__logo img {
    height: 52px;
  }

  .header__name {
    font-size: 0.875rem;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .stats__inner {
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
  }

  .stat {
    flex: 1;
  }

  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-carousel__slider {
    padding: 0 3rem;
  }

  .location__map {
    height: 360px;
  }

  .location__details {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }

  .footer__copy {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   DESKTOP (≥ 900px)
   ============================================================ */
@media (min-width: 900px) {
  :root {
    --header-height: 80px;
  }

  .header__logo img {
    height: 60px;
  }

  .header__name {
    font-size: 0.9375rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    transform: none;
    background: transparent;
    overflow: visible;
  }

  .nav__list {
    flex-direction: row;
    padding: 0;
    gap: 0.25rem;
  }

  .nav__link {
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem;
  }

  .hero {
    padding: 5rem 0 6rem;
  }

  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero__content {
    text-align: left;
    flex: 1;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__stripe {
    width: 38%;
    right: 0;
  }

  .courses,
  .why-us,
  .testimonials,
  .location,
  .contact {
    padding: 5rem 0;
  }

  .testimonial-card {
    flex: 0 0 33.333%;
    padding: 1.75rem 1rem;
    align-self: stretch;
  }

  .testimonials-carousel__slider {
    padding: 0 3.5rem;
  }

  .testimonials-carousel__arrow--prev {
    left: 0;
  }

  .testimonials-carousel__arrow--next {
    right: 0;
  }

  .location__map {
    height: 420px;
  }
}

/* ============================================================
   PAGE INTRO SPLASH (all screen sizes)
   ============================================================ */
.intro-splash {
  display: none;
}

body.intro-active .intro-splash {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg);
  pointer-events: none;
}

body.intro-logo-moving .intro-splash {
  background: transparent;
}

.intro-splash__logo {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 120px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 10001;
  will-change: transform;
}

@media (min-width: 768px) {
  .intro-splash__logo {
    width: 180px;
  }
}

body.intro-logo-moving .intro-splash__logo {
  transition: transform 0.8s ease-in-out;
  transform: translate(-50%, -50%) translate(var(--intro-dx, 0), var(--intro-dy, 0)) scale(var(--intro-scale, 1));
}

body.intro-logo-settled .intro-splash__logo {
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Hide page content until intro completes */
body.intro-active:not(.intro-content-visible) main,
body.intro-active:not(.intro-content-visible) footer,
body.intro-active:not(.intro-content-visible) .whatsapp-float {
  opacity: 0;
  visibility: hidden;
}

body.intro-active:not(.intro-content-visible) .nav,
body.intro-active:not(.intro-content-visible) .nav-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Header logo hidden until splash logo lands */
body.intro-active:not(.intro-logo-settled) .header__logo img {
  opacity: 0;
}

body.intro-logo-settled .header__logo img {
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* School name fades in after logo reaches navbar */
body.intro-active:not(.intro-brand-visible) .header__name {
  opacity: 0;
}

body.intro-brand-visible .header__name {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Hero + rest of page fade in */
body.intro-content-visible main,
body.intro-content-visible footer,
body.intro-content-visible .whatsapp-float,
body.intro-content-visible .nav,
body.intro-content-visible .nav-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.intro-complete .intro-splash {
  display: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
