/* ══════════════════════════════════════════
   WINDSOR SCHOOL OF EXCELLENCE — GLOBAL CSS
   Blue, Maroon & Gold Colour Scheme
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --blue: #1B3A6B;
  --blue-deep: #0F2444;
  --blue-light: #25508F;
  --blue-mid: #183260;
  --maroon: #7B1E3A;
  --maroon-deep: #5A1429;
  --maroon-light: #9E2E50;
  --maroon-pale: #F2D6DE;
  --gold: #C8943E;
  --gold-light: #E0B86E;
  --gold-pale: #F5E6C8;
  --cream: #FBF7F0;
  --white: #FFFFFF;
  --gray-200: #E8E4DC;
  --gray-300: #D4CFC5;
  --gray-400: #A09888;
  --gray-600: #6B6259;
  --text: #2A2520;
  --text-light: #7A7068;
  --shadow-sm: 0 1px 3px rgba(15,36,68,0.06);
  --shadow-md: 0 4px 16px rgba(15,36,68,0.08);
  --shadow-lg: 0 12px 40px rgba(15,36,68,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--cream); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.text-center { text-align: center; }

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: var(--blue); line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

.section-label { display: inline-block; font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--maroon); margin-bottom: 12px; }
.section-subtitle { max-width: 620px; margin: 16px auto 0; color: var(--text-light); font-size: 1.05rem; }

a { color: var(--maroon); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--maroon-light); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.03em; border-radius: var(--radius); border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--blue-deep); }
.btn-primary:hover { background: var(--gold-light); color: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-light); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; color: var(--blue); border: 1.5px solid var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-navy { background: var(--blue); color: var(--white); }
.btn-navy:hover { background: var(--blue-light); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(15,36,68,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(123,30,58,0.25); transition: all var(--transition); }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: 1280px; margin: 0 auto; padding: 0 28px; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--white); border: 2px solid var(--gold); }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.logo-text span { display: block; font-size: 0.68rem; font-weight: 400; color: var(--gold-light); letter-spacing: 0.08em; font-family: 'DM Sans', sans-serif; }

nav { display: flex; align-items: center; gap: 4px; }
nav a { padding: 8px 15px; font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.75); text-decoration: none; border-radius: var(--radius); transition: all var(--transition); }
nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
nav a.active { color: var(--gold-light); }
.nav-apply { margin-left: 8px; padding: 10px 22px; background: var(--maroon); color: var(--white) !important; font-weight: 600; border-radius: var(--radius); }
.nav-apply:hover { background: var(--maroon-light) !important; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

.mobile-nav { display: none; position: fixed; top: 76px; left: 0; right: 0; background: var(--blue-deep); padding: 24px; border-bottom: 1px solid rgba(123,30,58,0.2); z-index: 999; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; color: rgba(255,255,255,0.7); font-size: 1rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-nav a:last-child { border-bottom: none; }

/* PAGE HERO */
.page-hero { background: var(--blue-deep); padding: 140px 0 72px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 30% 80%, rgba(123,30,58,0.12) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 80% 20%, rgba(200,148,62,0.08) 0%, transparent 50%); }
.page-hero-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(200,148,62,0.5) 59px, rgba(200,148,62,0.5) 60px), repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(200,148,62,0.5) 59px, rgba(200,148,62,0.5) 60px); }
.page-hero .section-label { color: var(--gold-light); position: relative; }
.page-hero h1 { color: var(--white); position: relative; margin-bottom: 16px; animation: fadeInUp 0.7s ease both; }
.page-hero p { color: rgba(255,255,255,0.55); position: relative; max-width: 560px; margin: 0 auto; font-size: 1.05rem; animation: fadeInUp 0.7s ease 0.1s both; }

/* CTA BAND */
.cta-band { background: linear-gradient(135deg, var(--maroon-deep), var(--maroon)); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 50% at 20% 50%, rgba(200,148,62,0.1), transparent), radial-gradient(ellipse 40% 50% at 80% 50%, rgba(27,58,107,0.15), transparent); }
.cta-band h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 36px; position: relative; }
.cta-band .btn-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }

/* FOOTER */
.footer { background: var(--blue-deep); color: rgba(255,255,255,0.5); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; margin-top: 16px; max-width: 300px; }
.footer h4 { color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.88rem; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer ul a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.82rem; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); transition: all var(--transition); }
.social-link:hover { border-color: var(--maroon-light); background: rgba(123,30,58,0.15); }
.social-link svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.5); }

/* CARD */
.card { padding: 44px 36px; background: var(--cream); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); transition: all var(--transition); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--maroon), var(--gold)); opacity: 0; transition: opacity var(--transition); }
.card:hover { border-color: var(--gold-pale); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--blue), var(--blue-light)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.card-icon svg { width: 26px; height: 26px; color: var(--gold-light); }

/* FORMS */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); background: var(--cream); color: var(--text); transition: border-color var(--transition); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--maroon); }
.form-group textarea { resize: vertical; min-height: 100px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { nav { display: none; } .mobile-toggle { display: flex; } .section-pad { padding: 64px 0; } .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 16px; text-align: center; } .page-hero { padding: 120px 0 56px; } .form-row { grid-template-columns: 1fr; } }