/* ============================================================
   OLPC-SMI HOMEPAGE STYLESHEET
   Our Lady of the Pillar College – San Manuel, Inc.
   San Manuel, Isabela
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES ───────────────────────────────────────── */
:root {
  --navy: #1a237e;
  --navy-dark: #0d1757;
  --navy-light: #283593;
  --gold: #f9c900;
  --gold-light: #ffe566;
  --dark: #0a0e2e;
  --text: #1a1a2e;
  --muted: #555;
  --light: #f4f5fb;
  --white: #ffffff;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background 0.35s, box-shadow 0.35s;
}

nav.scrolled {
  background: rgba(10,14,46,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-seal {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-seal img { width: 48px; height: 48px; object-fit: contain; }

.nav-brand-text .name {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.1;
}

.nav-brand-text .sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
  border-radius: 2px;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links .btn-portal {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-left: 8px;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-links .btn-portal:hover {
  background: var(--navy-light) !important;
  box-shadow: 0 4px 16px rgba(26,35,126,0.5);
}

.nav-links .btn-portal::after { display: none; }

/* ── HAMBURGER ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,14,46,0.98);
  padding: 20px 30px 30px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  border-top: 2px solid var(--navy);
  animation: slideDown 0.3s ease;
}

.mobile-menu.open { display: flex; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu .btn-portal-m {
  margin-top: 10px;
  background: var(--navy);
  color: #fff !important;
  text-align: center;
  border-radius: 4px;
  padding: 14px !important;
  border-bottom: none !important;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('image/schoololpc.jpg')
    center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10,14,46,0.9) 0%,
    rgba(26,35,126,0.6) 50%,
    rgba(0,0,0,0.3) 100%
  );
}

.hero-accent {
  position: absolute;
  right: -80px;
  top: 0; bottom: 0;
  width: 55%;
  background: linear-gradient(135deg, transparent 30%, rgba(26,35,126,0.15) 100%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 760px;
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  animation: fadeUp 0.6s 0.05s both;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
  animation: fadeUp 0.6s 0.1s both;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.2s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero p {
  font-family: 'Lora', serif;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeUp 0.6s 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s both;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 3px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 6px 24px rgba(26,35,126,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 3px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ── SCROLL HINT ─────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUp 0.6s 0.8s both;
}

.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-dot {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot::before {
  content: '';
  width: 5px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 3px;
  animation: scrollBounce 1.6s infinite;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: #0d1757;
  padding: 0 60px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.stat-item {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.06); }

.stat-item .num {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-item .label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 5px;
}

/* ── SECTION COMMONS ─────────────────────────────────────── */
section { padding: 90px 60px; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  border-left: 3px solid var(--navy);
  padding-left: 10px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-lead {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
}

/* ── ABOUT SECTION ───────────────────────────────────────── */
.about {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-img-wrap { position: relative; }

.about-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  position: relative;
  z-index: 1;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 3px solid var(--gold);
  border-radius: 4px;
  z-index: 0;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  padding: 18px 22px;
  text-align: center;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(26,35,126,0.4);
}

.about-badge .big {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.about-badge .sm {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-text { padding-right: 20px; }

.about-text p {
  font-family: 'Lora', serif;
  font-size: 15.5px;
  color: #555;
  line-height: 1.8;
  margin-top: 16px;
}

/* ── ANNOUNCEMENTS ───────────────────────────────────────── */
.announcements { background: var(--light); }

.ann-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.ann-header a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.ann-header a:hover { opacity: 0.75; }

.ann-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ann-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.ann-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.ann-card-img { height: 180px; overflow: hidden; }

.ann-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ann-card:hover .ann-card-img img { transform: scale(1.05); }

.ann-card-body { padding: 22px 24px 26px; }

.ann-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.ann-card-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.ann-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.ann-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #aaa;
}

.ann-read-more {
  color: var(--navy);
  font-weight: 600;
  font-size: 12px;
}

/* ── QUICK LINKS ─────────────────────────────────────────── */
.quick-links {
  background: var(--dark);
  padding: 70px 60px;
}

.quick-links .section-title { color: #fff; }

.ql-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.ql-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 30px 24px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ql-card:hover {
  background: rgba(26,35,126,0.25);
  border-color: var(--navy-light);
  transform: translateY(-4px);
}

.ql-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(26,35,126,0.25);
  border: 2px solid rgba(26,35,126,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.2s, border-color 0.2s;
}

.ql-card:hover .ql-icon {
  background: var(--navy);
  border-color: var(--navy-light);
}

.ql-card span {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ── CONTACT / MAP STRIP ─────────────────────────────────── */
.contact-strip {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.contact-info {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(26,35,126,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-row h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 3px;
}

.contact-row p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.map-placeholder {
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('favicon/map.svg')
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder a {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 3px;
  transition: background 0.2s;
}

.map-placeholder a:hover { background: var(--navy-light); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #07091f;
  padding: 50px 60px 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .name {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.footer-brand .tagline {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }

.footer-col ul a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 60px 28px; }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content { padding: 0 30px; }
  .about { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .about-text { padding-right: 0; }
  .ann-grid { grid-template-columns: 1fr; }
  .ql-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { padding: 0 20px; flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .contact-strip { grid-template-columns: 1fr; }
  .map-placeholder { min-height: 220px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .quick-links { padding: 60px 28px; }
}

@media (max-width: 500px) {
  .ql-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-content { padding: 0 22px; }
}

/* ── EXTRA UTILITY CLASSES ───────────────────────────────── */
.btn-mt { margin-top: 28px; }

.ann-delay-1 { transition-delay: 0.1s; }
.ann-delay-2 { transition-delay: 0.2s; }

.section-tag-gold {
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
}
