/* Edwards English School — Shared Styles */
@import url(https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap);
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #B8862B;
  --accent-dark: #8C6415;
  --navy: #122C4E;
  --forest: #1F5C48;
  --forest-light: #E4F0EA;
  --gold: #F3E3BE;
  --gold-light: #FBF3E2;
  --cream: #F7F2E7;
  --cream-soft: #FBF8F1;
  --text: #1c2430;
  --muted: #5c6979;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --border: #e7e9ee;
  --ff-head: 'Lora', Georgia, serif;
  --ff-body: 'Source Sans 3', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(18,44,78,0.06);
  --shadow-md: 0 8px 28px rgba(18,44,78,0.10);
  --shadow-lg: 0 18px 50px rgba(18,44,78,0.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Top utility bar ===== */
.topbar {
  background: linear-gradient(90deg, var(--navy), #1c3f6b);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
}
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 14px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 22px; }
.topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); transition: all .25s; }
.topbar-social a:hover { background: var(--accent); transform: translateY(-2px); }
.topbar-social svg { width: 13px; height: 13px; fill: #fff; }

/* ===== Header / Nav ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; }

/* Monogram crest — no external logo file, so the brand mark is a
   drawn crest with the school's initials rather than a placeholder image */
.brand-mark {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(155deg, var(--navy), #1c3f6b);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(243,227,190,0.55);
  border-radius: 7px;
}
.brand-mark span {
  font-family: var(--ff-head); font-weight: 700; font-size: 17px;
  color: var(--gold); letter-spacing: 0.02em;
}
.brand-text strong { font-family: var(--ff-head); font-size: 17px; color: var(--navy); display: block; line-height: 1.1; }
.brand-text span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
  padding: 10px 16px; border-radius: 8px;
  position: relative; transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.nav a:hover { color: var(--accent-dark); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent-dark); }

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

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px; border-bottom: 1px solid var(--border); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 8px; }
  .nav a::after { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(184,134,43,0.28), transparent 60%),
    linear-gradient(135deg, #0d2038 0%, var(--navy) 45%, #16406e 100%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero-inner { max-width: 820px; padding: 80px 24px 110px; position: relative; z-index: 2; animation: fadeUp .9s ease both; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); background: rgba(255,255,255,0.10);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(243,227,190,0.35);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--ff-head); font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15; margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero p { font-size: 17px; color: rgba(255,255,255,0.90); max-width: 640px; margin: 0 auto 26px; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  cursor: pointer; border: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary { background: var(--accent); color: #251902; box-shadow: 0 10px 24px rgba(184,134,43,0.35); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(140,100,21,0.4); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Wave divider */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; z-index: 3; }
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ===== Sections ===== */
section { padding: 70px 0; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-head); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy); margin-bottom: 14px; line-height: 1.25;
}
.section-lead { color: var(--muted); max-width: 720px; margin-bottom: 36px; font-size: 16.5px; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.alt-bg { background: var(--bg-soft); }
.gradient-bg { background: linear-gradient(180deg, #fff 0%, var(--cream-soft) 100%); }

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: -60px; position: relative; z-index: 4;
}
.stat-card {
  background: #fff; border-radius: 16px; padding: 26px 22px;
  text-align: center; box-shadow: var(--shadow-md);
  border-top: 3px solid var(--accent);
  transition: transform .35s, box-shadow .35s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-num { font-family: var(--ff-head); font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }

@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Cards grid ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; transition: transform .35s, box-shadow .35s, border-color .35s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--forest));
  transition: width .4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--forest-light), var(--gold));
  color: var(--navy); display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.card h4 { font-family: var(--ff-head); font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ===== Highlight band / mission ===== */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-card {
  border-radius: 16px; padding: 30px;
  background: linear-gradient(135deg, var(--forest-light), var(--forest-light));
  box-shadow: var(--shadow-sm);
  transition: transform .35s;
}
.mission-card:hover { transform: translateY(-4px); }
.mission-card.alt { background: linear-gradient(135deg, var(--gold-light), var(--gold-light)); }
.mission-card h3 { font-family: var(--ff-head); color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; }
.mission-card p { color: #3b4756; font-size: 15.5px; }

/* ===== Core Values ===== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.value-card {
  text-align: center; padding: 28px 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #1c3f6b);
  color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.value-card h4 { font-family: var(--ff-head); color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { color: var(--muted); font-size: 13.5px; }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.team-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 22px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--forest-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 1.4rem; color: var(--navy);
}
.team-card h4 { font-family: var(--ff-head); color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.team-role { color: var(--accent-dark); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; display: block; }
.team-card a { color: var(--muted); font-size: 13.5px; }
.team-card a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ===== Message / quote block ===== */
.message-block {
  display: grid; grid-template-columns: 130px 1fr; gap: 34px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) { .message-block { grid-template-columns: 1fr; text-align: center; } }
.message-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #1c3f6b);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 2.1rem; color: var(--gold);
  margin: 0 auto;
}
.message-body p { color: #3b4756; font-size: 15.5px; margin-bottom: 14px; }
.message-signoff { margin-top: 18px; }
.message-signoff strong { display: block; font-family: var(--ff-head); color: var(--navy); font-size: 1.1rem; }
.message-signoff span { color: var(--muted); font-size: 13.5px; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--forest)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-dot { position: absolute; left: -32px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(184,134,43,0.14); transition: transform .3s; }
.timeline-item:hover .timeline-dot { transform: scale(1.15); }
.timeline-year { font-family: var(--ff-head); font-weight: 700; color: var(--accent-dark); font-size: 1.05rem; margin-bottom: 4px; }
.timeline-text { color: var(--muted); font-size: 15.5px; }
.timeline-text strong { color: var(--navy); }

/* ===== Badges ===== */
.badges { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; background: var(--forest-light); color: #123b2c; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em; }
.badge-gold { background: var(--gold-light); color: #6b4c0f; }
.badge-navy { background: #e6ecf4; color: var(--navy); }

/* ===== Policy / legal pages ===== */
.legal { max-width: 880px; margin: 0 auto; }
.legal-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; padding: 10px 16px; background: var(--bg-soft); border-radius: 8px; display: inline-block; }
.legal-intro { color: var(--muted); margin-bottom: 36px; font-size: 16px; }
.policy-section { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.policy-section:last-child { border-bottom: 0; }
.policy-section h3 {
  font-family: var(--ff-head); font-size: 1.3rem; font-weight: 600;
  color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.policy-section h3 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold));
  color: #6b4c0f; font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.policy-section p, .policy-section li { color: #3b4756; font-size: 15.5px; line-height: 1.75; }
.policy-section p { margin-bottom: 10px; }
.policy-section ul { padding-left: 22px; margin: 8px 0 12px; }
.policy-section li { margin-bottom: 6px; }
.policy-section li strong { color: var(--navy); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 50px; }
.contact-card {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  border: 1px solid var(--border); transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--forest-light); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
  font-size: 22px;
}
.contact-card h3 { font-family: var(--ff-head); font-size: 1.15rem; color: var(--navy); margin-bottom: 14px; }
.contact-card p { color: var(--text); margin-bottom: 8px; font-size: 14.5px; }
.contact-card span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.contact-form-wrap {
  background: linear-gradient(135deg, var(--cream-soft), var(--cream-soft));
  border-radius: 20px; padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 { font-family: var(--ff-head); color: var(--navy); margin-bottom: 8px; font-size: 1.6rem; }
.contact-form-wrap > p { color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .contact-form-wrap { padding: 28px 22px; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-size: 15px;
  font-family: var(--ff-body); color: var(--text);
  transition: border-color .25s, box-shadow .25s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184,134,43,0.14);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ===== Footer ===== */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.78);
  padding: 56px 0 24px; margin-top: 60px;
  font-size: 14.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-family: var(--ff-head); font-size: 1.05rem; margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Floating accent */
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
