/* ==========================================================
   SHVOEA — Shri Halari Visa Oshwal English Academy
   Design tokens
   Navy = institutional trust · Gold = the CBSE braid/seal accent
   Maroon = warmth, used sparingly for calls to action
   ========================================================== */
:root{
  --navy:        #0d2848;
  --navy-deep:   #081b32;
  --navy-soft:   #16385f;
  --gold:        #c69214;
  --gold-soft:   #e4c467;
  --maroon:      #7a1f2b;
  --cream:       #f7f4ee;
  --cream-dark:  #efe9db;
  --ink:         #262420;
  --ink-muted:   #5b5646;
  --line:        #ded5bd;
  --white:       #ffffff;
  --radius:      6px;
  --shadow:      0 10px 30px rgba(13,40,72,.12);
  --shadow-sm:   0 4px 14px rgba(13,40,72,.08);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --container:   1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy);
  line-height:1.2;
  margin:0 0 .5em;
}
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; }
.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}
.section{ padding:64px 0; }
.section--tight{ padding:40px 0; }
.section--alt{ background:var(--cream-dark); }
.section--navy{ background:var(--navy); color:#dfe6ee; }
.section--navy h2, .section--navy h3{ color:var(--white); }

.eyebrow{
  display:inline-block;
  font-family:var(--font-body);
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--maroon);
  font-weight:700;
  margin-bottom:10px;
}
.section-head{ max-width:720px; margin:0 0 34px; }
.section-head h2{ font-size:clamp(1.6rem,3vw,2.3rem); }
.section-head p{ color:var(--ink-muted); font-size:1.02rem; }
.section-head--center{ margin-left:auto; margin-right:auto; text-align:center; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 26px;
  border-radius:3px;
  font-weight:700;
  font-size:.92rem;
  letter-spacing:.02em;
  border:2px solid transparent;
  cursor:pointer;
  transition:all .2s ease;
}
.btn-gold{ background:var(--gold); color:var(--navy-deep); border-color:var(--gold); }
.btn-gold:hover{ background:transparent; color:var(--gold); border-color:var(--gold); }
.btn-outline{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.6); }
.btn-outline:hover{ background:rgba(255,255,255,.12); border-color:var(--white); }
.btn-navy{ background:var(--navy); color:var(--white); border-color:var(--navy); }
.btn-navy:hover{ background:var(--navy-soft); }

/* ---------- Top utility bar ---------- */
.topbar{
  background:var(--navy-deep);
  color:#c9d3de;
  font-size:.82rem;
}
.topbar .container{
  display:flex; flex-wrap:wrap; gap:6px 22px;
  justify-content:space-between; align-items:center;
  padding-top:7px; padding-bottom:7px;
}
.topbar a{ color:#c9d3de; }
.topbar a:hover{ color:var(--gold-soft); }
.topbar__item{ display:inline-flex; align-items:center; gap:6px; }
.topbar__links{ display:flex; gap:16px; }

/* ---------- Header / Nav ---------- */
.site-header{
  background:var(--white);
  box-shadow:var(--shadow-sm);
  position:sticky; top:0; z-index:100;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 0;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ width:56px; height:56px; border-radius:50%; }
.brand__text{ line-height:1.25; }
.brand__text .school-name{
  font-family:var(--font-display);
  font-weight:700; font-size:1.15rem; color:var(--navy);
  display:block;
}
.brand__text .school-sub{
  font-size:.72rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--maroon); font-weight:700;
}

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:42px; height:42px; position:relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; height:2px; width:26px; background:var(--navy);
  position:absolute; left:8px; transition:.25s;
}
.nav-toggle span{ top:20px; }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }
.nav-toggle.is-open span{ background:transparent; }
.nav-toggle.is-open span::before{ transform:rotate(45deg); top:0; }
.nav-toggle.is-open span::after{ transform:rotate(-45deg); top:0; }

.main-nav ul{ display:flex; gap:2px; list-style:none; }
.main-nav a{
  display:block; padding:12px 16px;
  font-weight:600; font-size:.92rem; color:var(--navy);
  border-bottom:3px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active{
  color:var(--maroon); border-bottom-color:var(--gold);
}

/* ---------- Notice ribbon ---------- */
.notice-bar{
  background:var(--gold); color:var(--navy-deep);
  font-weight:600; font-size:.86rem;
  overflow:hidden; white-space:nowrap;
}
.notice-bar__track{
  display:inline-block; padding-left:100%;
  animation:ticker 28s linear infinite;
}
.notice-bar__track span{ padding:8px 40px; display:inline-block; }
@keyframes ticker{ from{ transform:translateX(0);} to{ transform:translateX(-100%);} }
@media (prefers-reduced-motion: reduce){
  .notice-bar__track{ animation:none; padding-left:0; white-space:normal; }
}

/* ---------- Hero / slider ---------- */
.hero{
  position:relative; overflow:hidden;
  height:min(78vh,560px); min-height:340px;
  background:var(--navy-deep);
}
.hero__slide{
  position:absolute; inset:0; opacity:0; transition:opacity 1s ease;
}
.hero__slide.is-active{ opacity:1; }
.hero__slide img{
  width:100%; height:100%; object-fit:cover; opacity:.55;
}
.hero__overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,27,50,.55) 0%, rgba(8,27,50,.78) 100%);
}
.hero__content{
  position:relative; z-index:2; height:100%;
  display:flex; flex-direction:column; justify-content:center;
  color:var(--white); max-width:760px;
  padding:0 20px; margin:0 auto;
}
.hero__content .eyebrow{ color:var(--gold-soft); }
.hero__content h1{
  color:var(--white); font-size:clamp(1.9rem,4.4vw,3.1rem);
  margin-bottom:.4em;
}
.hero__content p{ color:#dfe6ee; font-size:1.08rem; max-width:560px; }
.hero__cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:14px; }
.hero__dots{
  position:absolute; z-index:3; bottom:18px; left:0; right:0;
  display:flex; justify-content:center; gap:8px;
}
.hero__dots button{
  width:9px; height:9px; border-radius:50%; border:none;
  background:rgba(255,255,255,.45); cursor:pointer; padding:0;
}
.hero__dots button.is-active{ background:var(--gold); }

/* ---------- Stat / timeline strip (signature element) ---------- */
.timeline{
  display:flex; overflow-x:auto; gap:0;
  padding:8px 0 18px;
  scrollbar-width:thin;
}
.timeline::-webkit-scrollbar{ height:6px; }
.timeline::-webkit-scrollbar-thumb{ background:var(--line); border-radius:4px; }
.timeline__item{
  flex:0 0 220px; position:relative;
  padding:26px 22px 0; border-top:3px solid var(--gold);
  margin-right:18px;
}
.timeline__year{
  font-family:var(--font-display); font-weight:700;
  color:var(--maroon); font-size:1.35rem;
}
.timeline__item::before{
  content:""; position:absolute; top:-8px; left:0;
  width:12px; height:12px; border-radius:50%; background:var(--gold);
}
.timeline__item p{ color:var(--ink-muted); font-size:.92rem; margin-top:6px; }

/* ---------- Cards ---------- */
.grid{ display:grid; gap:26px; }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }
.grid--2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:900px){
  .grid--3, .grid--4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .grid--2, .grid--3, .grid--4{ grid-template-columns:1fr; }
}

.card{
  background:var(--white); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); overflow:hidden;
  border:1px solid var(--line);
}
.card__img{ aspect-ratio:4/3; overflow:hidden; background:var(--cream-dark); }
.card__img img{ width:100%; height:100%; object-fit:cover; }
.card__body{ padding:20px; }
.card__body h3{ font-size:1.08rem; margin-bottom:8px; }
.card__body p{ color:var(--ink-muted); font-size:.94rem; margin-bottom:0; }

.value-card{
  border-top:4px solid var(--gold);
  background:var(--white); padding:24px 20px;
  box-shadow:var(--shadow-sm);
}
.value-card .letter{
  font-family:var(--font-display); font-size:2rem; color:var(--maroon);
  font-weight:700; display:block; margin-bottom:6px;
}

/* ---------- Person / message blocks ---------- */
.person{
  display:grid; grid-template-columns:240px 1fr; gap:34px; align-items:start;
}
@media (max-width:720px){ .person{ grid-template-columns:1fr; } }
.person__photo{
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm);
  border:6px solid var(--white); outline:1px solid var(--line);
}
.person__photo img{ aspect-ratio:3/4; object-fit:cover; }
.person__name{ font-family:var(--font-display); color:var(--navy); font-weight:700; margin-top:14px; }
.person__role{ color:var(--maroon); font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700; }
blockquote.quote{
  font-family:var(--font-display); font-style:italic; color:var(--navy);
  font-size:1.15rem; border-left:4px solid var(--gold); padding-left:18px; margin:0 0 20px;
}

/* ---------- Tables ---------- */
.table-wrap{ overflow-x:auto; }
table.data{ width:100%; border-collapse:collapse; background:var(--white); }
table.data th, table.data td{
  padding:12px 14px; border:1px solid var(--line); text-align:left; font-size:.92rem;
}
table.data th{ background:var(--navy); color:var(--white); font-weight:600; }
table.data tr:nth-child(even) td{ background:var(--cream-dark); }

/* ---------- Info / facility blocks ---------- */
.facility{
  display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--line);
}
.facility__icon{
  flex:0 0 auto; width:46px; height:46px; border-radius:50%;
  background:var(--navy); color:var(--gold-soft);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700;
}
.facility h3{ font-size:1rem; margin-bottom:4px; }
.facility p{ color:var(--ink-muted); font-size:.92rem; margin:0; }

/* ---------- Gallery ---------- */
.gallery-filter{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px; }
.gallery-filter button{
  padding:8px 16px; border-radius:20px; border:1px solid var(--line);
  background:var(--white); font-size:.85rem; font-weight:600; cursor:pointer; color:var(--ink-muted);
}
.gallery-filter button.is-active{ background:var(--navy); border-color:var(--navy); color:var(--white); }
.gallery-item{ display:none; }
.gallery-item.is-visible{ display:block; }
.gallery-item .card__img{ aspect-ratio:1/1; }
.video-wrap{ position:relative; aspect-ratio:16/9; background:#000; }
.video-wrap video{ width:100%; height:100%; object-fit:cover; }

/* ---------- Forms ---------- */
.form-grid{ display:grid; gap:16px; grid-template-columns:1fr 1fr; }
@media (max-width:600px){ .form-grid{ grid-template-columns:1fr; } }
.form-grid .full{ grid-column:1/-1; }
label{ display:block; font-weight:600; font-size:.86rem; margin-bottom:6px; color:var(--navy); }
input, textarea, select{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:4px;
  font-family:var(--font-body); font-size:.94rem; background:var(--white); color:var(--ink);
}
input:focus, textarea:focus, select:focus{
  outline:2px solid var(--gold); outline-offset:1px; border-color:var(--gold);
}
.alert{ padding:14px 16px; border-radius:4px; margin-bottom:20px; font-size:.92rem; }
.alert-success{ background:#e6f3e8; color:#20602f; border:1px solid #b6ddba; }
.alert-error{ background:#fbe8e8; color:#8a1f1f; border:1px solid #f1c2c2; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-deep); color:#c9d3de; }
.footer-top{ padding:56px 0 34px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:34px; }
@media (max-width:900px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-top{ grid-template-columns:1fr; } }
.site-footer h4{ color:var(--gold-soft); font-size:1rem; margin-bottom:16px; }
.site-footer a{ color:#c9d3de; }
.site-footer a:hover{ color:var(--gold-soft); }
.footer-links li{ list-style:none; margin-bottom:9px; font-size:.9rem; }
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.footer-brand img{ width:48px; height:48px; border-radius:50%; }
.footer-brand strong{ font-family:var(--font-display); color:var(--white); font-size:1.05rem; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:16px 0; font-size:.82rem; text-align:center; color:#93a1b2;
}
.footer-bottom a{ color:#93a1b2; }

/* ---------- Breadcrumb / page header ---------- */
.page-hero{
  background:linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color:var(--white); padding:52px 0 34px; text-align:center;
}
.page-hero .eyebrow{ color:var(--gold-soft); }
.page-hero h1{ color:var(--white); margin-bottom:6px; }
.page-hero p{ color:#c9d3de; max-width:640px; margin:0 auto; }
.breadcrumb{ font-size:.82rem; color:#aeb9c6; margin-top:10px; }
.breadcrumb a{ color:var(--gold-soft); }

/* ---------- Responsive nav ---------- */
@media (max-width:900px){
  .nav-toggle{ display:block; }
  .main-nav{
    position:fixed; top:0; right:-320px; width:300px; height:100vh;
    background:var(--navy); padding:80px 0 20px; transition:right .3s ease;
    box-shadow:-6px 0 20px rgba(0,0,0,.25); z-index:99; overflow-y:auto;
  }
  .main-nav.is-open{ right:0; }
  .main-nav ul{ flex-direction:column; }
  .main-nav a{ color:#dfe6ee; padding:14px 26px; border-bottom:1px solid rgba(255,255,255,.08); }
  .main-nav a:hover, .main-nav a.is-active{ color:var(--gold-soft); background:rgba(255,255,255,.05); }
  .nav-scrim{ display:none; position:fixed; inset:0; background:rgba(8,27,50,.5); z-index:98; }
  .nav-scrim.is-open{ display:block; }
}

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--gold); color:var(--navy-deep);
  padding:10px 16px; z-index:200; font-weight:700;
}
.skip-link:focus{ left:10px; top:10px; }

::selection{ background:var(--gold-soft); color:var(--navy-deep); }
