/* SOMBRIT — Charitable tuition centre landing styles */

:root {
  --navy: #0b1736;
  --navy-deep: #070f24;
  --academic: #173b73;
  --academic-soft: #2a5aa8;
  --gold: #f4b942;
  --gold-deep: #d9a02e;
  --cream: #fff9ee;
  --ink: #142033;
  --muted: #5a6578;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

.font-display {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Sticky header ---------- */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

#site-header.is-scrolled {
  background-color: rgba(11, 23, 54, 0.96);
  box-shadow: 0 10px 40px rgba(11, 23, 54, 0.22);
  border-color: transparent;
}

/* ---------- Guudle-style mesh gradient hero ---------- */
.hero-mesh {
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 90% 70% at 12% 20%, rgba(42, 90, 168, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 15%, rgba(23, 59, 115, 0.7), transparent 50%),
    radial-gradient(ellipse 60% 50% at 70% 85%, rgba(244, 185, 66, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 20% 90%, rgba(23, 59, 115, 0.45), transparent 50%),
    linear-gradient(155deg, #050a18 0%, #0b1736 38%, #12305f 72%, #0b1736 100%);
}

.hero-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
}

.hero-orb--one {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: -8%;
  right: 8%;
  background: rgba(42, 90, 168, 0.55);
  animation: orb-drift 14s ease-in-out infinite;
}

.hero-orb--two {
  width: min(36vw, 340px);
  height: min(36vw, 340px);
  bottom: 5%;
  left: -5%;
  background: rgba(244, 185, 66, 0.18);
  animation: orb-drift 18s ease-in-out 2s infinite reverse;
}

@keyframes orb-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -22px);
  }
}

/* ---------- Hero visual composition ---------- */
.academic-visual {
  position: relative;
  isolation: isolate;
}

.academic-visual__glow {
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle, rgba(244, 185, 66, 0.16), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.float-soft {
  animation: float-soft 7.5s ease-in-out infinite;
}

.float-soft-delay {
  animation: float-soft 9s ease-in-out 1.4s infinite;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.9s ease-out both;
}

.animate-fade-up-delay {
  animation: fade-up 0.9s ease-out 0.12s both;
}

.animate-fade-up-delay-2 {
  animation: fade-up 0.9s ease-out 0.24s both;
}

.animate-fade-up-delay-3 {
  animation: fade-up 0.9s ease-out 0.36s both;
}

/* ---------- Section reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mission pillars ---------- */
.pillar {
  border-top: 3px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  transform: translateY(-4px);
}

.pillar--learn {
  border-top-color: var(--academic);
}

.pillar--grow {
  border-top-color: var(--gold);
}

.pillar--achieve {
  border-top-color: #3d7cc9;
}

/* ---------- Journey ---------- */
.journey-connector {
  background: linear-gradient(90deg, var(--academic), var(--gold));
}

@media (max-width: 767px) {
  .journey-connector {
    background: linear-gradient(180deg, var(--academic), var(--gold));
  }
}

/* ---------- Subject cards ---------- */
.subject-card {
  transition: transform 0.28s ease, border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.subject-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 59, 115, 0.28);
  box-shadow: 0 18px 40px rgba(11, 23, 54, 0.08);
}

.subject-monogram {
  background: linear-gradient(145deg, rgba(23, 59, 115, 0.12), rgba(244, 185, 66, 0.14));
  color: var(--academic);
}

/* ---------- Community pathway ---------- */
.pathway-step {
  position: relative;
}

.pathway-line {
  background: linear-gradient(90deg, var(--academic), var(--gold));
}

@media (max-width: 767px) {
  .pathway-line {
    background: linear-gradient(180deg, var(--academic), var(--gold));
  }
}

/* ---------- Coming soon band ---------- */
.soon-band {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(42, 90, 168, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(244, 185, 66, 0.12), transparent 50%),
    linear-gradient(160deg, #070f24 0%, #0b1736 50%, #12305f 100%);
}
