/* =============================================
   Bishop England High School - Improved Site
   Colors: Navy #1a3a6e | Gold #c9a227 | White #fff
   ============================================= */

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

:root {
  --navy: #1a5d3a;           /* BE forest green */
  --navy-dark: #0f3d24;       /* Deep green */
  --gold: #ffffff;            /* White (swapped for gold accents) */
  --gold-light: #f5fbf7;      /* Off-white / pale green */
  --accent: #d4a84b;          /* Subtle gold accent, used sparingly */
  --white: #ffffff;
  --gray-50: #f5faf7;
  --gray-100: #edf5ef;
  --gray-200: #dfe9e2;
  --gray-600: #5c6b60;
  --gray-800: #2d3631;
  --font-main: 'Georgia', serif;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 4px 24px rgba(15,61,36,0.10);
  --shadow-lg: 0 8px 48px rgba(15,61,36,0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ---- UTILITY ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-1px); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-lg { padding: 18px 36px; font-size: 18px; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a:hover { color: var(--gold); }

/* ---- HEADER / NAV ---- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 18px; color: var(--navy); font-family: var(--font-main); }
.logo-text span { font-size: 12px; color: var(--gray-600); letter-spacing: 0.05em; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  transition: color var(--transition);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav-ctas { display: flex; gap: 10px; }
.nav-ctas .btn { padding: 10px 20px; font-size: 14px; }

.mobile-toggle { display: none; background: none; border: none; padding: 8px; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: var(--transition);
}

/* ---- URGENT BANNER ---- */
.urgent-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  text-align: center;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 3px solid var(--accent);
}
.urgent-banner a { text-decoration: underline; color: var(--accent); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a7a4f 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- LEAD CAPTURE CARD ---- */
.lead-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  color: var(--gray-800);
}
.lead-card h3 {
  font-family: var(--font-main);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}
.lead-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form input, .lead-form select {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  width: 100%;
  background: var(--white);
}
.lead-form input:focus, .lead-form select:focus {
  outline: none;
  border-color: var(--navy);
}
.lead-form .btn { width: 100%; justify-content: center; }
.lead-card .privacy { font-size: 12px; color: var(--gray-600); text-align: center; margin-top: 8px; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide: var(--white);
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 42px;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ---- SECTION HEADERS ---- */
.section-header { margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-header p { font-size: 18px; color: var(--gray-600); max-width: 600px; }
.section-header.text-center p { margin: 0 auto; }

/* ---- OPEN HOUSE ---- */
.open-house-section { background: var(--navy); color: var(--white); }
.open-house-section .section-header h2 { color: var(--white); }
.open-house-section .section-header p { color: rgba(255,255,255,0.8); }
.open-house-section .text-center p { color: rgba(255,255,255,0.9) !important; }
.open-house-section .text-center p a { color: var(--accent) !important; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.event-date {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
}
.event-month { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.event-day { font-size: 30px; font-weight: 700; line-height: 1; font-family: var(--font-main); }
.event-info h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.event-info p { font-size: 14px; color: var(--gray-600); }
.event-info .btn { margin-top: 12px; padding: 8px 18px; font-size: 13px; }
.open-house-section .text-center { margin-top: 8px; }

/* ---- WHY BEHS ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border-top: 4px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.why-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}
.why-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; font-family: var(--font-main); }
.why-card p { font-size: 15px; color: var(--gray-600); line-height: 1.65; }

/* ---- PROGRAMS ---- */
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.program-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}
.program-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.program-content {
  position: relative;
  background: linear-gradient(to top, rgba(16,37,72,0.95) 0%, rgba(16,37,72,0.6) 70%, transparent 100%);
  padding: 28px;
  width: 100%;
}
.program-card h3 { font-size: 22px; font-family: var(--font-main); color: var(--white); margin-bottom: 4px; }
.program-card p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.program-card .btn { padding: 8px 18px; font-size: 13px; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { background: var(--navy-dark); color: var(--white); }
.testimonials-section .section-header h2 { color: var(--white); }
.testimonials-section .section-header p { color: rgba(255,255,255,0.7); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.10);
}
.stars { color: var(--gold); font-size: 18px; margin-bottom: 14px; }
.testimonial-card blockquote {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.author-info strong { display: block; font-size: 15px; color: var(--white); }
.author-info span { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---- TUITION SNAPSHOT ---- */
.tuition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tuition-card-main {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  text-align: center;
}
.tuition-card-main .price {
  font-size: 56px;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.tuition-card-main .price-label { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.tuition-breakdown { text-align: left; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; }
.tuition-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
}
.tuition-row:last-child { border-bottom: none; }
.tuition-row .label { color: rgba(255,255,255,0.75); }
.tuition-row .value { font-weight: 700; color: var(--gold); }

.tuition-benefits { display: flex; flex-direction: column; gap: 20px; }
.benefit-item { display: flex; gap: 16px; align-items: flex-start; }
.benefit-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.benefit-item h4 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.benefit-item p { font-size: 14px; color: var(--gray-600); }

/* ---- VIRTUAL TOUR ---- */
.virtual-tour-section { background: var(--gray-50); }
.tour-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}
.tour-visual {
  background: linear-gradient(135deg, var(--navy-dark), #2a7a4f);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  position: relative;
}
.play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--navy-dark);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: absolute;
}
.play-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(201,162,39,0.5); }
.tour-content { padding: 48px 40px; color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.tour-content h3 { font-family: var(--font-main); font-size: 28px; margin-bottom: 12px; }
.tour-content p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 28px; }
.tour-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.tour-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,0.85); }
.tour-features li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ---- CTA SECTION ---- */
.cta-section { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); text-align: center; }
.cta-section h2 { font-family: var(--font-main); font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.78); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.site-footer { background: var(--gray-800); color: rgba(255,255,255,0.75); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-mark { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy-dark); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lead-card { max-width: 480px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tuition-grid { grid-template-columns: 1fr; }
  .tour-card { grid-template-columns: 1fr; }
  .tour-visual { min-height: 220px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-actions { flex-direction: column; }
  .nav-links, .nav-ctas { display: none; }
  .mobile-toggle { display: block; }
  .why-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp 0.6s ease forwards; }

/* ---- NOTIFICATION TOAST ---- */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast strong { color: var(--gold); }
