/* ============================================================
   Philippine Southfield School — styles.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --maroon:       #6b0d0d;
  --maroon-mid:   #8b1a1a;
  --maroon-light: #a83232;
  --cream:        #fffdf5;
  --cream-dark:   #fff8dc;
  --yellow:       #f5c800;
  --text:         #1a1a1a;
  --text-muted:   #6b5a5a;
  --white:        #ffffff;
  --border:       rgba(107,13,13,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 72px;
  background: rgba(255,253,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none; font-size: 0.78rem;
  font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--yellow);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active-page { color: var(--maroon); }
.nav-links a.active-page::after { transform: scaleX(1); }
.nav-cta {
  background: var(--maroon); color: var(--cream) !important;
  padding: 0.5rem 1.25rem; border-radius: 2px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--maroon-mid) !important; color: var(--cream) !important; }
.nav-cta::after { display: none !important; }

/* ── HERO ── */
/* ── HERO (full-bleed cinematic) ── */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/Aroll/20250429_113553.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,2,2,0.1) 0%, rgba(30,3,3,0.55) 45%, rgba(15,2,2,0.93) 100%),
    linear-gradient(to right, rgba(15,2,2,0.65) 0%, transparent 55%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: flex-end;
  gap: 4rem;
  padding: 5rem clamp(2rem, 6vw, 6rem);
}
.hero-text-block { display: flex; flex-direction: column; }
.hero-text-block h1 { color: var(--cream); }
.hero-text-block h1 em { color: var(--yellow); }
.hero-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,253,245,0.6); margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: rgba(255,253,245,0.35);
}
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--maroon);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
h1 em { font-style: italic; color: var(--maroon-light); }
.hero-sub {
  font-size: 1rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,253,245,0.6); max-width: 420px;
  margin-bottom: 2.5rem;
}
.hero-values {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 3rem;
}
.value-pill {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255,253,245,0.2);
  border-radius: 100px;
  color: rgba(255,253,245,0.5);
  background: transparent;
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--maroon); color: var(--cream);
  text-decoration: none; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.875rem 1.75rem;
  border-radius: 2px; transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--maroon-mid); transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; fill: currentColor; }
.btn-secondary {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,253,245,0.8);
  text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.btn-secondary:hover { gap: 0.65rem; }
.hero-stats-block { display: flex; flex-direction: column; }
.hero-stat-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.hero-stat {
  padding: 1.5rem;
  background: rgba(107,13,13,0.45);
  backdrop-filter: blur(12px);
}
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300;
  color: var(--yellow); line-height: 1;
  margin-bottom: 0.35rem;
}
.hero-stat-label {
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,253,245,0.6);
}
.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-style: italic;
  color: rgba(255,253,245,0.7); line-height: 1.6;
  border-left: 2px solid var(--yellow);
  padding-left: 1rem;
}

/* ── SECTION SHARED ── */
section { padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem); }
.section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--maroon-light); margin-bottom: 1rem;
}
.section-label::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--maroon-light);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300; line-height: 1.1;
  color: var(--maroon); margin-bottom: 1rem;
}
.section-body {
  font-size: 1rem; font-weight: 300; line-height: 1.75;
  color: var(--text-muted); max-width: 600px;
}

/* ── ABOUT ── */
#about {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: center;
}
.about-left { position: relative; }
.about-img-block {
  width: 100%; aspect-ratio: 4/5;
  background: var(--maroon);
  background-image: url('images/Aroll/20250429_114130.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 4px; overflow: hidden;
  position: relative;
}
.about-img-inner {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(50, 5, 5, 0.15) 0%,
    rgba(50, 5, 5, 0.05) 40%,
    rgba(50, 5, 5, 0.0) 60%
  );
}
.about-img-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(107,13,13,0.9));
}
.about-img-text-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; font-weight: 300;
  color: var(--yellow); line-height: 1;
  display: block;
}
.about-img-text-caption {
  font-size: 0.75rem; font-weight: 300;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,253,245,0.7);
}
.about-float {
  position: absolute; top: -1.5rem; right: -1.5rem;
  background: var(--cream); border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  max-width: 180px;
  border-radius: 2px;
}
.about-float strong {
  display: block; font-size: 1.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; color: var(--maroon);
  margin-bottom: 0.25rem;
}
.about-body {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: var(--text-muted); margin-bottom: 2rem;
}
.about-values-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2.5rem;
}
.value-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.value-card:hover {
  border-color: var(--maroon-light);
  background: rgba(107,13,13,0.04);
}
.value-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 300;
  color: var(--yellow); line-height: 1;
  display: block; margin-bottom: 0.4rem;
}
.value-card-name {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--maroon);
}

/* ── ACADEMICS ── */
#academics { background: var(--cream-dark); }
.academics-inner { max-width: 1200px; margin: 0 auto; }
.academics-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}
.academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
}
.program-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  transition: background 0.25s;
  cursor: default;
}
.program-card:hover { background: var(--white); }
.program-icon {
  width: 44px; height: 44px;
  background: var(--maroon);
  border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 1.5rem;
}
.program-icon svg { width: 20px; height: 20px; fill: var(--yellow); }
.program-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--maroon); margin-bottom: 0.75rem;
}
.program-levels {
  list-style: none; margin-top: auto; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.program-levels li {
  font-size: 0.82rem; font-weight: 300;
  color: var(--text-muted); padding: 0.35rem 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.program-levels li::before {
  content: ''; display: block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--yellow); flex-shrink: 0;
}

/* ── ADMISSION ── */
#admission {
  background: var(--maroon);
  position: relative; overflow: hidden;
}
#admission::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(168,50,50,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 20%, rgba(245,200,0,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.admission-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem); align-items: start;
}
#admission .section-label { color: var(--yellow); }
#admission .section-label::before { background: var(--yellow); }
#admission .section-title { color: var(--cream); }
#admission .section-body { color: rgba(255,253,245,0.65); }
.admission-steps { margin-top: 2.5rem; }
.step {
  display: flex; gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300;
  color: var(--yellow); line-height: 1;
  flex-shrink: 0; width: 2.5rem;
}
.step-title {
  font-size: 0.9rem; font-weight: 500;
  color: var(--cream); margin-bottom: 0.3rem;
}
.step-desc {
  font-size: 0.82rem; font-weight: 300;
  color: rgba(255,253,245,0.55); line-height: 1.5;
}
.admission-esc {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 2.5rem;
}
.esc-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow); border: 1px solid rgba(245,200,0,0.4);
  padding: 0.3rem 0.75rem; border-radius: 100px;
  margin-bottom: 1.25rem;
}
.esc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--cream); margin-bottom: 1rem;
  line-height: 1.3;
}
.esc-body {
  font-size: 0.85rem; font-weight: 300;
  color: rgba(255,253,245,0.6); line-height: 1.7;
}
.esc-note {
  color: rgba(255,253,245,0.4);
  font-size: 0.78rem;
  margin-top: 1rem;
}

/* ── CONTACT ── */
#contact {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%; display: grid; place-items: center;
}
.contact-icon svg { width: 16px; height: 16px; stroke: var(--maroon); fill: none; stroke-width: 1.5; }
.contact-item-label {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.3rem;
}
.contact-item-value {
  font-size: 0.95rem; font-weight: 300;
  color: var(--text); line-height: 1.5;
}
.contact-item-value a { color: var(--maroon); text-decoration: none; }
.contact-item-value a:hover { text-decoration: underline; }
.contact-map {
  width: 100%;
  display: flex; flex-direction: column;
  gap: 0.75rem;
}
.contact-map-iframe {
  width: 100%; aspect-ratio: 4/3;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: block;
}
.contact-map-link {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--maroon-light); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.contact-map-link:hover { color: var(--maroon); }

/* ── MISSION BAR ── */
.mission-bar {
  background: var(--cream-dark);
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.mission-bar p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 300; font-style: italic;
  color: var(--maroon); max-width: 800px;
  margin: 0 auto; line-height: 1.5;
}
.mission-bar span {
  display: block; margin-top: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); font-style: normal;
}

/* ── FOOTER ── */
footer {
  background: var(--maroon);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-bottom {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 400;
  color: rgba(255,253,245,0.8); letter-spacing: 0.04em;
}
.footer-copy {
  font-size: 0.75rem; font-weight: 300;
  color: rgba(255,253,245,0.4);
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,253,245,0.5); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-social {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,253,245,0.5); text-decoration: none;
  transition: color 0.2s;
}
.footer-social:hover { color: var(--yellow); }
.footer-social svg { width: 14px; height: 14px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text-block > * {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
h1            { animation-delay: 0.2s; }
.hero-sub     { animation-delay: 0.3s; }
.hero-values  { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.5s; }

/* ── FACILITIES ── */
#facilities { background: var(--white); }
.facilities-inner { max-width: 1200px; margin: 0 auto; }
.facilities-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.facility-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.facility-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.facility-card:hover img { transform: scale(1.04); }
.facility-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(60,5,5,0.75));
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,253,245,0.9);
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(107,13,13,0.06); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--maroon);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
/* Animate to × when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ── */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0;
  z-index: 99;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 2rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-menu ul li { border-bottom: 1px solid var(--border); }
.mobile-menu ul li:last-child { border-bottom: none; margin-top: 1.25rem; }
.mobile-menu ul a {
  display: block;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-menu ul a:hover { color: var(--maroon); }
.mobile-cta {
  display: block !important;
  padding: 0.75rem 1.5rem !important;
  background: var(--maroon);
  color: var(--cream) !important;
  border-radius: 2px;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}
.mobile-cta:hover { background: var(--maroon-mid) !important; }

.mobile-menu-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 98;
  background: rgba(26,26,26,0.25);
  backdrop-filter: blur(2px);
}
.mobile-menu-overlay.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats-block { display: none; }
  .hero-stat-row { grid-template-columns: repeat(4, 1fr); }
  #about { grid-template-columns: 1fr; }
  .about-float { display: none; }
  .academics-grid { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .admission-inner { grid-template-columns: 1fr; }
  #contact { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  footer { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 0.75rem; }
}
@media (max-width: 600px) {
  .hero-stat-row { grid-template-columns: 1fr 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: 1fr; }
}