/* ============================================================
   HARMONY JUNIOR SCHOOL — Master Stylesheet
   Colours: Sky Blue (#87CEEB + shades), Gold #C8A951, Grey #E8EAED
   ============================================================ */

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  --sky-blue:        #87CEEB;
  --sky-blue-dark:   #5BA4D4;
  --sky-blue-light:  #E8F7FC;
  --sky-blue-pale:   #B8E4F5;
  --gold:        #C8A951;
  --gold-light:  #E8D49A;
  --gold-dark:   #9A7C35;
  --grey-light:  #E8EAED;
  --grey-mid:    #D1D5DB;
  --grey-text:   #6B7280;
  --white:       #FFFFFF;
  --text-dark:   #0D1B2A;
  --text-mid:    #2C3E50;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', system-ui, sans-serif;

  --radius:      4px;
  --radius-lg:   12px;
  --shadow-sm:   0 2px 12px rgba(91,164,212,0.08);
  --shadow-md:   0 8px 32px rgba(91,164,212,0.12);
  --shadow-lg:   0 20px 60px rgba(91,164,212,0.18);

  --transition:  all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:       76px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.section-title em {
  font-style: italic;
  color: var(--sky-blue-dark);
}

.body-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 7rem 0; }
.mt-2 { margin-top: 2rem; }
.centered { text-align: center; }
.section-header {
  margin-bottom: 3.5rem;
}
.section-header.space-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,81,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--sky-blue-dark);
  border-color: var(--sky-blue-dark);
}
.btn-outline:hover {
  background: var(--sky-blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Top Bar ────────────────────────────────────────────── */
.topbar {
  background: var(--sky-blue-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.76rem;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  position: relative;
  z-index: 101;
}
.topbar-inner { display: flex; align-items: center; gap: 1rem; }
.topbar .divider { opacity: 0.3; }
.portal-link { color: var(--gold-light); transition: var(--transition); }
.portal-link:hover { color: var(--gold); }
.topbar-social { display: flex; gap: 0.75rem; }
.topbar-social a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.topbar-social a:hover { color: var(--gold); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
  transition: var(--transition);
  box-shadow: none;
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--sky-blue-dark), var(--sky-blue));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(91,164,212,0.3);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sky-blue-dark);
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: var(--transition);
  display: block;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--sky-blue-dark);
  background: var(--sky-blue-light);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: var(--transition);
}
.dropdown li a:hover {
  background: var(--sky-blue-light);
  color: var(--sky-blue-dark);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sky-blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91,164,212,0.92) 0%,
    rgba(135,206,235,0.85) 50%,
    rgba(91,164,212,0.92) 100%
  );
  z-index: 1;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(91,164,212,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200,169,81,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(91,164,212,0.05) 0%, transparent 70%);
  background-size: cover;
}
.hero-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem 2rem 10rem;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
}
.hero-title-main { color: var(--white); }
.hero-title-em {
  color: var(--gold);
  font-style: italic;
  font-weight: 700;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 13rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(91,164,212,0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(200,169,81,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 3rem;
}
.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-unit {
  font-size: 1.2rem;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
}

/* ── Motto Band ─────────────────────────────────────────── */
.motto-band {
  background: var(--gold);
  overflow: hidden;
  padding: 0.85rem 0;
  white-space: nowrap;
}
.motto-inner {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 30s linear infinite;
}
.motto-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-blue-dark);
}
.motto-star {
  color: rgba(91,164,212,0.5);
  font-size: 0.8rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Welcome Section ────────────────────────────────────── */
.welcome { background: var(--white); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.welcome-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.value-chip {
  background: var(--sky-blue-light);
  color: var(--sky-blue-dark);
  border: 1px solid rgba(91,164,212,0.2);
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.visual-frame {
  position: relative;
}
.visual-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.visual-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sky-blue-light) 0%, var(--grey-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--grey-text);
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}
.placeholder-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-circle {
  width: 160px;
  height: 160px;
  border: 2px solid rgba(91,164,212,0.2);
  border-radius: 50%;
  position: absolute;
}
.art-lines {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100px;
}
.art-lines div {
  height: 2px;
  background: rgba(91,164,212,0.15);
  border-radius: 2px;
}
.art-lines div:nth-child(2) { width: 70%; }
.art-lines div:nth-child(3) { width: 85%; }
.visual-img-placeholder > span {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sky-blue-dark);
  background: rgba(255,255,255,0.8);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
}
.visual-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

/* ── Cards Grid ─────────────────────────────────────────── */
.explore { background: var(--grey-light); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card {
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-blue {
  background: var(--white);
  border-color: var(--grey-mid);
}
.card-blue::before { background: var(--sky-blue); }
.card-blue .card-icon { color: var(--sky-blue); }
.card-blue:hover { border-color: var(--sky-blue); }

.card-gold {
  background: var(--sky-blue-dark);
  border-color: var(--sky-blue-dark);
}
.card-gold::before { background: var(--gold); }
.card-gold .card-title, .card-gold .card-text, .card-gold .card-link { color: var(--white); }
.card-gold .card-text { color: rgba(255,255,255,0.7); }
.card-gold .card-icon { color: var(--gold); }

.card-grey {
  background: var(--white);
  border-color: var(--grey-mid);
}
.card-grey::before { background: var(--gold); }
.card-grey .card-icon { color: var(--gold); }
.card-grey:hover { border-color: var(--gold); }

.card-light {
  background: var(--sky-blue-light);
  border-color: rgba(91,164,212,0.2);
}
.card-light::before { background: var(--sky-blue-dark); }
.card-light .card-icon { color: var(--sky-blue-dark); }
.card-light:hover { border-color: var(--sky-blue-dark); }

.card-icon {
  width: 48px;
  height: 48px;
}
.card-icon svg { width: 100%; height: 100%; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}
.card-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.7;
  flex: 1;
}
.card-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sky-blue-dark);
  text-transform: uppercase;
  margin-top: auto;
}

/* ── Timetable ──────────────────────────────────────────── */
.timetable-section { background: var(--white); }
.timetable-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}
.timetable-times {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--gold);
  padding-left: 2.5rem;
}
.time-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey-mid);
  position: relative;
}
.time-row::before {
  content: '';
  position: absolute;
  left: -2.62rem;
  top: 1.75rem;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--white);
  outline: 2px solid var(--gold);
}
.time-row:last-child { border-bottom: none; }
.time-badge {
  background: var(--sky-blue-dark);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.time-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.time-detail strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}
.time-detail span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--grey-text);
}

/* ── News ───────────────────────────────────────────────── */
.news-section { background: var(--grey-light); }
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: block;
  border: 1px solid var(--grey-mid);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-img-wrap { overflow: hidden; }
.news-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-img { transform: scale(1.04); }
.news-img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sky-blue-dark), var(--sky-blue));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--white);
  font-size: 3rem;
  transition: transform 0.5s ease;
}
.news-card:hover .news-img-placeholder { transform: scale(1.04); }
.news-img-placeholder p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 0 1rem;
}
.news-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.news-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(200,169,81,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  display: inline-block;
  width: fit-content;
}
.news-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.news-excerpt {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--grey-text);
  line-height: 1.7;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--grey-text);
  padding-top: 0.75rem;
  border-top: 1px solid var(--grey-mid);
}
.news-meta span:last-child {
  color: var(--sky-blue-dark);
  font-weight: 600;
}
.news-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.news-small {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--grey-mid);
  transition: var(--transition);
}
.news-small:hover {
  border-color: var(--sky-blue);
  transform: translateX(4px);
}
.news-small-img {
  width: 52px;
  height: 52px;
  background: var(--sky-blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.news-small h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0.25rem 0;
}
.news-date {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--grey-text);
}

/* ── CTA Band ───────────────────────────────────────────── */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--sky-blue-dark) 0%, var(--sky-blue) 100%);
  padding: 7rem 0;
  overflow: hidden;
  text-align: center;
}
.cta-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(200,169,81,0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(91,164,212,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.cta-title em {
  color: var(--gold);
  font-style: italic;
}
.cta-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--sky-blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { margin-bottom: 1.25rem; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-motto {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
}
.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--white); padding-left: 4px; }
.footer-contact p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.65rem;
}
.footer-contact a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-contact a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  gap: 2rem;
}
.footer-disclaimer p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 700px;
}
.footer-cr {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* ── Reveal Animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* Page-specific: inner pages */
.page-hero {
  background: linear-gradient(135deg, var(--sky-blue-dark) 0%, var(--sky-blue) 100%);
}
.page-hero-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,164,212,0.85) 0%, rgba(135,206,235,0.75) 100%);
  z-index: 0;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.page-hero-sub {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ── Content Sections (inner pages) ────────────────────── */
.content-section { padding: 5rem 0; }
.content-section:nth-child(even) { background: var(--grey-light); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.info-block { margin-bottom: 2.5rem; }
.info-block h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.info-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.info-block ul li {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-mid);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
}
.info-block ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 0.35rem;
}
.highlight-box {
  background: var(--sky-blue-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}
.highlight-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}
.highlight-box p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* Meal Cards */
.meal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.meal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-mid);
  transition: var(--transition);
}
.meal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.meal-day {
  background: var(--sky-blue-dark);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.65rem;
}
.meal-emoji {
  font-size: 2.5rem;
  text-align: center;
  padding: 1.25rem 1rem;
}
.meal-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--grey-light);
}
.meal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meal-desc {
  padding: 0 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--grey-text);
  line-height: 1.6;
  text-align: center;
}

/* Uniform Table */
.uniform-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.uniform-table th {
  background: var(--sky-blue-dark);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 1rem 1.25rem;
  text-align: left;
}
.uniform-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--grey-mid);
  color: var(--text-mid);
}
.uniform-table tr:nth-child(even) td { background: var(--grey-light); }
.uniform-table tr:hover td { background: var(--sky-blue-light); }

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 3px solid var(--gold);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .v-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.value-card p {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--grey-text);
  line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--sky-blue-light);
  border: 1px solid var(--grey-mid);
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item.tall { aspect-ratio: 3/4; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/7; }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--sky-blue-light), var(--grey-light));
  color: var(--sky-blue-dark);
  font-size: 2.5rem;
}
.gallery-placeholder span.label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey-text);
}

/* Contact Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-full { grid-column: span 2; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px rgba(91,164,212,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* Extra Curriculars */
.ec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ec-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-mid);
  transition: var(--transition);
}
.ec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ec-banner {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sky-blue-dark), var(--sky-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}
.ec-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-body { padding: 1.75rem; }
.ec-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.ec-body p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.ec-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-blue-dark);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-grid { grid-template-columns: 1fr; gap: 3rem; }
  .welcome-visual { display: none; }
  .timetable-grid { grid-template-columns: 1fr; gap: 3rem; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .meal-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Table scroll on small screens */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}
.table-scroll .uniform-table { min-width: 280px; }

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-top: 1px solid var(--grey-mid);
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 0.75rem 1rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--grey-light); margin-top: 0.25rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 60px; height: 1px; }
  .cards-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .ec-grid { grid-template-columns: 1fr; }
  .section-header.space-between { flex-direction: column; align-items: flex-start; }
  .meal-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .meal-grid { grid-template-columns: 1fr; }
}

/* Touch-friendly: minimum tap target 44px (Apple HIG) */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .nav-links > li > a { min-height: 44px; display: flex; align-items: center; }
  a.social-btn { min-height: 44px; display: inline-flex; align-items: center; }
}
