/* ==========================================================
   Rama Gayatri English Medium High School — shared styles
   Used by every page. Sections are in the order they appear.
   ========================================================== */

/* 1. Design tokens */
:root {
  --navy: #18274d;
  --navy-2: #25365f;
  --navy-deep: #111d3a;
  --red: #bd2433;
  --red-dark: #9f1d2b;
  --cream: #f8f5ef;
  --sand: #e9dfd0;
  --ink: #24283a;
  --muted: #62656f;
  --line: #e8e2d9;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); font-family: var(--sans); line-height: 1.7; background: #fff; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 700; }
h1, h2 { letter-spacing: -.04em; line-height: 1.22; }
em { font-style: normal; color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.container { width: min(1160px, calc(100% - 48px)); margin: auto; }
.section { padding: 96px 0; }
.section-alt { background: #f8f7f4; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* 3. Top bar + header */
.topbar { background: var(--navy); color: #f5f3ef; font-size: 12px; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { color: #fff; font-weight: 700; }
.site-header { background: rgba(255,253,249,.97); border-bottom: 1px solid #eee9e1; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: #fff; }
.brand strong { display: block; font-family: var(--serif); font-size: 16px; letter-spacing: -.03em; color: var(--navy); line-height: 1.2; }
.brand small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #6a6b75; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; color: #424657; }
.nav-links > a:not(.nav-cta) { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links > a:not(.nav-cta):hover { color: var(--red); }
.nav-links > a[aria-current="page"]:not(.nav-cta) { color: var(--navy); border-bottom-color: var(--red); }
.nav-cta { padding: 12px 18px; background: var(--red); color: #fff; border-radius: 3px; transition: background .2s; }
.nav-cta:hover { background: var(--red-dark); }
.nav-cta[aria-current="page"] { background: var(--navy); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 3px; font-size: 22px; padding: 5px 11px; color: var(--navy); cursor: pointer; }

/* 4. Buttons + links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 15px 22px; font: 700 14px var(--sans); border: 0; border-radius: 3px; cursor: pointer; transition: background .2s; }
.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: var(--red-dark); }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: #f4e9e3; }
.button-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.button-outline:hover { background: var(--navy); color: #fff; }
.text-link { font-size: 14px; font-weight: 700; color: var(--navy); border-bottom: 1px solid #c9b9a7; padding-bottom: 5px; }
.text-link:hover { color: var(--red); }

/* 5. Section headings */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.kicker-light { color: #f0a6ac; }
.kicker-light::before { background: #f0a6ac; }
.section h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { max-width: 380px; color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.lead { font-size: 18px; color: var(--navy); font-weight: 600; line-height: 1.7; }
.prose p { font-size: 16px; color: #4d5160; line-height: 1.95; max-width: 68ch; }

/* 6. Home hero */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(#d4c9b8 .8px, transparent .8px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%); mask-image: linear-gradient(90deg, #000, transparent 72%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 55px; padding: 76px 0 84px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); margin: 8px 0 22px; letter-spacing: -.05em; }
.hero-intro { font-size: 17px; line-height: 1.85; color: #565a6a; max-width: 540px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 32px; }
.hero-visual { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.visual-backdrop { position: absolute; width: 92%; height: 94%; left: 4%; top: 3%; background: var(--cream); border-radius: 50% 50% 6px 6px; }
.hero-logo { position: relative; display: block; width: min(350px, 76%); margin-bottom: 44px; height: auto; filter: drop-shadow(0 18px 28px rgba(24,39,77,.22)); }
.round-stamp { position: absolute; right: 8%; bottom: 4px; width: 88px; height: 88px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .08em; border: 5px solid var(--cream); outline: 1px solid var(--red); }

/* 7. Facts band (home + about) */
.facts { background: var(--navy); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 30px 28px; border-left: 1px solid #ffffff22; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.fact span { display: block; margin-top: 8px; font-size: 14px; color: #c8cede; }

/* 8. Inner-page hero */
.page-hero { background: var(--cream); padding: 64px 0 60px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(#d4c9b8 .8px, transparent .8px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.page-hero .container { position: relative; }
.crumbs { font-size: 13px; color: #7b7b83; margin-bottom: 18px; }
.crumbs a:hover { color: var(--red); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: #565a6a; max-width: 620px; margin: 0; }

/* 9. Two-column blocks, cards */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; }
.note-card { background: var(--cream); padding: 32px 30px; border-top: 3px solid var(--red); }
.note-card h3 { font-size: 20px; line-height: 1.6; margin-bottom: 14px; }
.note-card p { font-size: 14px; color: var(--muted); margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; padding: 30px 28px 32px; border: 1px solid #ece8e2; border-top: 3px solid var(--navy); }
.card-featured { background: var(--navy); border-color: var(--navy); border-top-color: var(--red); }
.card.card-featured h3 { color: #fff; }
.card.card-featured p { color: #d0d5e2; }
.card h3 { font-size: 18px; margin-bottom: 12px; line-height: 1.45; }
.card p { font-size: 14.5px; color: #656876; margin: 0; line-height: 1.85; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--red); background: #fbeeee; padding: 3px 10px; border-radius: 20px; margin-bottom: 14px; }
.card.card-featured .tag { background: #ffffff1a; color: #f4b9be; }

/* 10. Steps (admissions) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font: 700 15px var(--serif); }
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* 11. Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15px; color: #4d5160; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #218c4a; color: #fff; font-size: 12px; display: grid; place-items: center; line-height: 1; margin-top: 4px; }

/* 12. Call-to-action band */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -100px; top: -150px; width: 470px; height: 470px; border: 1px solid #ffffff13; border-radius: 50%; box-shadow: 0 0 0 50px #ffffff08, 0 0 0 100px #ffffff05; pointer-events: none; }
.cta-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: #f2a1a7; }
.cta-band p { color: #c8cede; font-size: 15px; max-width: 500px; margin-bottom: 28px; }
.cta-aside { border-left: 1px solid #ffffff2b; padding: 10px 0 10px 36px; }
.cta-aside h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.cta-aside p { font-size: 14px; margin-bottom: 14px; }
.cta-aside a { color: #fff; font-weight: 700; font-size: 14px; border-bottom: 1px solid #e78b92; padding-bottom: 4px; }

/* 13. Contact page */
.contact-list { display: grid; gap: 24px; margin-top: 30px; }
.contact-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { flex: none; width: 42px; height: 42px; border: 1px solid #e6ded4; display: grid; place-items: center; color: var(--red); font-size: 18px; border-radius: 50%; background: #fff; }
.contact-row small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #85828a; margin-bottom: 2px; }
.contact-row a, .contact-row strong { font-size: 16px; color: var(--navy); font-weight: 700; }
.contact-row p { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.map-frame { border: 1px solid var(--line); background: var(--cream); padding: 10px; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* 14. Enquiry form */
.form-card { background: var(--cream); padding: 34px 32px; border-top: 3px solid var(--red); }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font: 15px var(--sans); color: var(--ink); background: #fff; border: 1px solid #d9d2c6; border-radius: 3px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.form-card .button { width: 100%; margin-top: 6px; }
.form-hint { font-size: 12.5px; color: #85828a; margin: 14px 0 0; }

/* 15. Footer */
.footer { background: var(--navy-deep); color: #cbd0df; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding: 56px 0 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; background: #fff; }
.footer-brand strong { font-family: var(--serif); font-size: 17px; color: #fff; line-height: 1.25; }
.footer p { font-size: 14px; color: #aeb5c8; margin: 0 0 8px; max-width: 34ch; }
.footer h4 { font: 700 13px var(--sans); letter-spacing: .06em; color: #f0a1a8; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer ul a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 22px; border-top: 1px solid #ffffff1a; font-size: 13px; color: #9fa8c0; }

/* 16. Responsive */
@media (max-width: 900px) {
  .nav-links { gap: 16px; font-size: 13px; }
  .hero-grid, .split, .cta-wrap { gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 34px, 560px); }
  .topbar-inner { font-size: 11px; }
  .topbar-inner > span { max-width: 55%; line-height: 1.3; }
  .nav-wrap { min-height: 74px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 8.5px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fffdf9; padding: 10px 22px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px #18274d12; flex-direction: column; align-items: stretch; gap: 0; font-size: 15px; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 4px; border-bottom: 1px solid #f0ece6 !important; }
  .nav-links .nav-cta { text-align: center; margin-top: 14px; border: 0 !important; }
  .section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 50px; }
  .hero-visual { min-height: 390px; }
  .hero-logo { width: min(290px, 78%); margin-bottom: 36px; }
  .round-stamp { width: 74px; height: 74px; font-size: 9px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid #ffffff22; padding: 20px 0; }
  .fact:first-child { border-top: 0; }
  .page-hero { padding: 46px 0 44px; }
  .page-hero p, .lead { font-size: 16px; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head > p { margin-top: 16px; }
  .split, .split-even, .grid-3, .grid-2, .cta-wrap { grid-template-columns: 1fr; }
  .cta-aside { border-left: 0; border-top: 1px solid #ffffff2b; padding: 24px 0 0; }
  .map-frame iframe { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 30px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* 17. Added: chips and exam band */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 20px; background: #ffffff1a; color: #fff; border: 1px solid #ffffff33; }
.exam-band { margin-top: 24px; background: var(--navy); color: #fff; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-top: 3px solid var(--red); }
.exam-band h3 { color: #fff; font-size: 22px; margin: 0; }
.exam-band p { color: #c8cede; font-size: 14.5px; max-width: 380px; margin: 0; }
.exam-band .kicker { margin-bottom: 8px; }
@media (max-width: 720px) { .exam-band { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 22px; } }
