/*
Theme Name: St. Peter School
Theme URI: https://www.stpeteredu.com
Author: St. Peter School, Samastipur
Author URI: https://www.stpeteredu.com
Description: A modern, professional homepage theme for St. Peter School, Samastipur — English Medium School from Playway to Class VIII. Features hero section, academics, campuses, admissions CTA, and footer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stpeters
Tags: education, school, custom-background, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ─── RESET & ROOT ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0C2340;
  --navy-mid:  #153A6A;
  --gold:      #C8912C;
  --gold-lt:   #F5D282;
  --gold-pale: #FDF6E3;
  --sky:       #E8F3FB;
  --cream:     #FDFAF4;
  --text:      #1C1C2E;
  --muted:     #5A6A7A;
  --white:     #FFFFFF;
  --green:     #1A6B44;
  --green-lt:  #E6F4ED;
  --r:         14px;
  --r-lg:      24px;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ─── TOPBAR ─── */
.sps-topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 5vw;
  gap: 12px;
  flex-wrap: wrap;
}
.sps-topbar a { color: var(--gold-lt); }
.sps-topbar-right { display: flex; gap: 20px; align-items: center; }

/* ─── NAVIGATION ─── */
.sps-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1.5px solid #E5EAF2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  box-shadow: 0 2px 16px rgba(12,35,64,0.07);
}
.sps-nav-brand { display: flex; align-items: center; gap: 14px; }
.sps-nav-crest {
  width: 50px; height: 50px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sps-nav-crest svg { width: 32px; height: 32px; }
.sps-brand-text h1,
.sps-brand-text .site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}
.sps-brand-text p,
.sps-brand-text .site-description {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sps-nav-links { display: flex; gap: 2px; align-items: center; }
.sps-nav-links a,
.sps-nav-links .nav-link {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 13px; border-radius: 8px;
  transition: all 0.2s;
}
.sps-nav-links a:hover { color: var(--navy); background: var(--sky); }
.sps-nav-links .btn-nav {
  background: var(--gold) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  padding: 10px 20px !important;
  transition: background 0.2s !important;
}
.sps-nav-links .btn-nav:hover { background: var(--navy) !important; }

/* WordPress menu override */
#site-navigation ul { list-style: none; display: flex; gap: 2px; align-items: center; }
#site-navigation ul li a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 13px; border-radius: 8px;
  transition: all 0.2s; display: block;
}
#site-navigation ul li a:hover { color: var(--navy); background: var(--sky); }

/* ─── HERO ─── */
.sps-hero {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 90px 5vw 70px;
  gap: 64px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
}
.sps-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(200,145,44,0.13) 0%, transparent 55%);
  pointer-events: none;
}
.sps-hero-dots {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52%;
  opacity: 0.04;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.sps-hero-content { position: relative; z-index: 2; }
.sps-hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,145,44,0.16);
  border: 1px solid rgba(200,145,44,0.38);
  color: var(--gold-lt);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 26px;
}
.sps-hero-pill-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.sps-hero-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 60px);
  color: var(--white); line-height: 1.12;
  margin-bottom: 20px; font-weight: 900;
}
.sps-hero-content h2 em { color: var(--gold-lt); font-style: normal; }
.sps-hero-lead {
  font-size: 17px; line-height: 1.78;
  color: rgba(255,255,255,0.68);
  max-width: 470px; margin-bottom: 36px;
}
.sps-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-gold {
  background: var(--gold); color: var(--white);
  font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 10px;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,145,44,0.45); color: var(--white); }

.btn-ghost {
  background: rgba(255,255,255,0.08); color: var(--white);
  font-weight: 500; font-size: 15px;
  padding: 14px 28px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.22);
  display: inline-block; transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); color: var(--white); }

.sps-hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  margin-top: 50px; gap: 1px;
  border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.1);
}
.sps-stat { background: rgba(255,255,255,0.05); padding: 20px 16px; text-align: center; }
.sps-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 34px; color: var(--gold-lt); }
.sps-stat span { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* Hero Visual Card */
.sps-hero-vis { position: relative; z-index: 2; }
.sps-main-card {
  background: var(--white); border-radius: 22px;
  padding: 32px; color: var(--text); position: relative;
}
.sps-card-ico { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; background: var(--sky); }
.sps-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sps-mini-c { background: var(--cream); border: 1px solid #E8EDF3; border-radius: 11px; padding: 14px; }
.sps-mini-c h5 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sps-mini-c p { font-size: 12px; color: var(--muted); }

.sps-float-tag {
  position: absolute; background: var(--green); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 10px 16px; border-radius: 100px;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22); white-space: nowrap;
  animation: floatY 3s ease-in-out infinite;
}
.sps-float-tag.top { top: -18px; right: 18px; }
.sps-float-tag.bottom { bottom: -18px; left: 18px; animation-delay: 1.5s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ─── COMMON SECTION STYLES ─── */
.sps-section { padding: 80px 5vw; }
.sps-inner { max-width: 1180px; margin: 0 auto; }
.sps-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.sps-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px,3.5vw,44px); color: var(--navy); line-height: 1.2; margin-bottom: 16px; font-weight: 700; }
.sps-sub { font-size: 16px; color: var(--muted); line-height: 1.78; max-width: 560px; }
.centered { text-align: center; }
.centered .sps-sub { margin: 0 auto; }

/* ─── ABOUT SECTION ─── */
.sps-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.sps-about-text p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }

.sps-checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.sps-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text); line-height: 1.55; }
.sps-checklist li::before {
  content: '✓';
  background: var(--green-lt); color: var(--green);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}

.sps-why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sps-why-card {
  background: var(--white); border: 1px solid #E4EAF3;
  border-radius: var(--r-lg); padding: 24px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.sps-why-card:hover { box-shadow: 0 14px 36px rgba(12,35,64,0.1); transform: translateY(-3px); }
.sps-wico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.sps-why-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.sps-why-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── ACADEMICS SECTION ─── */
.sps-academics { background: var(--navy); }
.sps-academics .sps-title { color: var(--white); }
.sps-academics .sps-label { color: var(--gold-lt); }
.sps-academics .sps-sub { color: rgba(255,255,255,0.62); }

.sps-prog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; }
.sps-prog-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg); padding: 32px 26px;
  transition: background 0.2s, transform 0.2s;
}
.sps-prog-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.sps-prog-num { font-family: 'Playfair Display', serif; font-size: 50px; font-weight: 900; color: rgba(200,145,44,0.22); line-height: 1; margin-bottom: 16px; }
.sps-prog-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.sps-prog-card p { font-size: 14px; color: rgba(255,255,255,0.58); line-height: 1.75; }
.sps-prog-tag {
  display: inline-block; margin-top: 18px;
  background: rgba(200,145,44,0.2); color: var(--gold-lt);
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
}
.sps-extra-band {
  margin-top: 44px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13); border-radius: var(--r-lg);
  padding: 34px; text-align: center;
}
.sps-extra-band h3 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.sps-extra-band p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* ─── CAMPUSES ─── */
.sps-camp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 52px; }
.sps-camp-card {
  background: var(--white); border: 1px solid #E4EAF2;
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow 0.25s;
}
.sps-camp-card:hover { box-shadow: 0 18px 44px rgba(12,35,64,0.12); }
.sps-camp-map { height: 180px; background: var(--sky); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sps-camp-map svg { width: 100%; height: 100%; }
.sps-camp-body { padding: 28px; }
.sps-camp-name { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.sps-camp-addr { font-size: 14px; color: var(--muted); line-height: 1.72; margin-bottom: 20px; }
.sps-phone-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; flex-wrap: wrap; }
.sps-phone-row a { color: var(--navy-mid); }

/* ─── CTA SECTION ─── */
.sps-cta {
  background: linear-gradient(130deg, #C8912C 0%, #9A6B18 100%);
  text-align: center; padding: 84px 5vw;
  position: relative; overflow: hidden;
}
.sps-cta::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 0, transparent 50%);
  background-size: 18px 18px;
}
.sps-admission-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.2); color: var(--white);
  font-size: 13px; font-weight: 700; padding: 8px 20px;
  border-radius: 100px; margin-bottom: 26px; position: relative;
}
.sps-pulse { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.65); } }
.sps-cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,48px); color: var(--white); margin-bottom: 16px; position: relative; font-weight: 900; }
.sps-cta p { font-size: 17px; color: rgba(255,255,255,0.86); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.75; position: relative; }
.sps-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn-white { background: var(--white); color: var(--gold); font-weight: 800; font-size: 15px; padding: 14px 30px; border-radius: 10px; display: inline-block; transition: transform 0.15s; }
.btn-white:hover { transform: translateY(-2px); color: var(--gold); }
.btn-out-white { background: transparent; color: var(--white); font-weight: 600; font-size: 15px; padding: 14px 30px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.55); display: inline-block; transition: background 0.2s; }
.btn-out-white:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ─── FOOTER ─── */
.sps-footer { background: var(--navy); color: rgba(255,255,255,0.62); padding: 64px 5vw 32px; }
.sps-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.sps-foot-brand h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); margin-bottom: 6px; font-weight: 700; }
.sps-foot-brand .sps-ftag { font-size: 12px; color: var(--gold-lt); font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 16px; }
.sps-foot-brand p { font-size: 14px; line-height: 1.75; }
.sps-clink { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.07); padding: 9px 14px; border-radius: 9px; font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 12px; }
.sps-clink a { color: var(--gold-lt); }
.sps-clink svg { width: 14px; height: 14px; flex-shrink: 0; }
.sps-foot-col h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.sps-foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sps-foot-col ul li a { font-size: 14px; color: rgba(255,255,255,0.52); transition: color 0.2s; }
.sps-foot-col ul li a:hover { color: var(--gold-lt); }
.sps-foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; gap: 12px; flex-wrap: wrap; }
.sps-foot-bottom a { color: var(--gold-lt); }

/* ─── WORDPRESS WIDGETS ─── */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .sps-hero { grid-template-columns: 1fr; min-height: unset; padding: 60px 5vw 50px; }
  .sps-hero-vis { display: none; }
  .sps-about-grid { grid-template-columns: 1fr; gap: 36px; }
  .sps-prog-grid { grid-template-columns: 1fr; }
  .sps-camp-grid { grid-template-columns: 1fr; }
  .sps-foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .sps-why-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sps-topbar { font-size: 12px; flex-direction: column; gap: 4px; text-align: center; }
  .sps-nav-links a { padding: 6px 8px; font-size: 12px; }
  .sps-brand-text h1 { font-size: 17px; }
  .sps-why-cards { grid-template-columns: 1fr; }
  .sps-hero-stats { grid-template-columns: repeat(3,1fr); }
  .sps-cta-btns { flex-direction: column; align-items: center; }
}

/* ─── ANIMATIONS ─── */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeUp 0.65s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }
