/* =====================================================================
   Islahiya English Medium Higher Secondary School – website styles
   Colours: navy from the school letterhead, gold from the logo.
   ===================================================================== */
:root {
  --navy: #1D3155;
  --navy-2: #2A4373;
  --navy-deep: #13223F;
  --gold: #E8B020;
  --gold-soft: #FFF4D6;
  --blue: #2B6CD4;
  --ink: #1D3155;
  --text: #3A4252;
  --muted: #6B7385;
  --line: #E3E8F0;
  --bg-soft: #F6F8FC;
  --bg-tint: #EEF3FA;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 49, 85, .10);
  --shadow-sm: 0 2px 10px rgba(29, 49, 85, .08);
  --head: "Plus Jakarta Sans", Inter, Arial, Helvetica, sans-serif;
  --body: Inter, Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: #fff; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; transition: .2s;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #F2C24A; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-line { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-line:hover { background: var(--bg-tint); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------------- top bar ---------------- */
.topbar { background: var(--navy-deep); color: #C9D3E8; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }

/* ---------------- header ---------------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 54px; height: 54px; }
.brand b { display: block; font: 800 21px/1.05 var(--head); color: var(--navy); letter-spacing: .4px; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.brand .short { display: none; }
.nav { flex: 1; display: flex; justify-content: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg-tint); }
.nav a.active { color: var(--blue); }
.header-cta { display: flex; gap: 10px; flex: 0 0 auto; }
.menu-btn { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px; cursor: pointer; color: var(--navy); -webkit-tap-highlight-color: transparent; }
.menu-btn svg { width: 24px; height: 24px; display: block; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(19, 34, 63, .94) 0%, rgba(29, 49, 85, .82) 48%, rgba(29, 49, 85, .45) 100%),
    var(--hero-img, radial-gradient(circle at 80% 30%, #3B5F99 0, #1D3155 55%, #13223F 100%));
  background-size: cover; background-position: center;
}
.hero::after { /* soft globe lines, echoing the logo */
  content: ""; position: absolute; right: -160px; top: -120px; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(232, 176, 32, .25); box-shadow: inset 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 60px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 150px; }
.hero .eyebrow { display: inline-block; background: rgba(232, 176, 32, .16); color: var(--gold); border: 1px solid rgba(232, 176, 32, .5); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; letter-spacing: -1px; max-width: 760px; margin: 18px 0 14px; min-height: 2.4em; }
.hero h1 .rot { display: inline; transition: opacity .45s; }
.hero h1 .rot.fade { opacity: 0; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 19px; color: #D9E1F0; max-width: 620px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------------- admission strip ---------------- */
.strip { background: var(--gold); color: var(--navy-deep); }
.strip .container { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; font-weight: 700; text-align: center; }
.strip a:not(.btn) { color: var(--navy-deep); }

/* ---------------- feature cards (overlap the hero) ---------------- */
.features { position: relative; z-index: 2; margin-top: -92px; }
.features .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; border-top: 4px solid var(--gold); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); color: var(--navy); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------------- sections ---------------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.label { display: inline-block; color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.6px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* photo slots: show the photo if the file exists, otherwise a tinted panel with an icon */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--bg-tint), #DCE5F1); }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9DB0D0; }
.photo .ph svg { width: 54px; height: 54px; }
.photo .ph img { position: static; width: 46%; height: auto; opacity: .9; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about .photo { aspect-ratio: 4 / 4.2; }
.about .badge { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 700; color: var(--navy); max-width: 75%; }
.about .badge small { display: block; color: var(--muted); font-weight: 500; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 28px; padding: 0; list-style: none; }
.pillars li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.pillars svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }

/* principal */
.principal { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 44px; }
.principal .photo { aspect-ratio: 4 / 5; }
.principal blockquote { margin: 0; font: 600 22px/1.5 var(--head); color: var(--ink); position: relative; padding-left: 22px; border-left: 4px solid var(--gold); }
.principal .msg { margin-top: 18px; color: var(--text); }
.principal .sign { margin-top: 18px; font-weight: 800; color: var(--navy); }
.principal .sign small { display: block; font-weight: 500; color: var(--muted); }

/* academics */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.stage:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stage .photo { aspect-ratio: 4 / 3; border-radius: 0; }
.stage .body { padding: 18px 18px 22px; }
.stage .tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--navy); background: var(--gold-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.stage h3 { font-size: 18px; margin-bottom: 6px; }
.stage p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* campus */
.campus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.place { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.place .photo { aspect-ratio: 16 / 10; border-radius: 0; }
.place .body { padding: 18px 20px 22px; }
.place h3 { font-size: 19px; margin-bottom: 6px; }
.place p { font-size: 15px; color: var(--muted); margin: 0; }

/* call-to-action band */
.band { background: linear-gradient(110deg, var(--navy-deep), var(--navy) 60%, var(--navy-2)); color: #fff; }
.band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin: 0 0 6px; }
.band p { color: #C9D3E8; margin: 0; font-size: 17px; }

/* admission steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step .num { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 22px var(--head); box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line); position: relative; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* news */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.news-item .date { font-weight: 800; color: var(--gold); font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.news-item h3 { font-size: 18px; margin: 8px 0; }
.news-item p { color: var(--muted); font-size: 15px; flex: 1; }
.news-item a { font-weight: 700; text-decoration: none; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 17px var(--head); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text); padding-bottom: 18px; margin: 0; }

/* contact block on the home page */
.reach { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; }
.reach-cards { display: grid; gap: 14px; }
.reach-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--text); }
.reach-card .ic { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.reach-card .ic svg { width: 22px; height: 22px; }
.reach-card b { display: block; color: var(--ink); font-size: 16px; }
.reach-card span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.reach > *, .reach-card > span { min-width: 0; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--bg-tint); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* page banner (inner pages) */
.page-hero { background: linear-gradient(110deg, var(--navy-deep), var(--navy) 65%, var(--navy-2)); color: #fff; text-align: center; padding: 64px 24px 72px; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -1px; margin: 0; }
.page-hero p { color: #C9D3E8; margin: 10px 0 0; font-size: 17px; }

/* ---------------- footer ---------------- */
.footer { background: var(--navy-deep); color: #B9C5DC; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 64px 0 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer a { color: #DCE4F2; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .fbrand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer .fbrand img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 2px; }
.footer .fbrand b { color: #fff; font: 800 18px/1.15 var(--head); }
.footer .motto { font-style: italic; color: var(--gold); }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* floating enquire button */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 40; box-shadow: 0 8px 24px rgba(19, 34, 63, .3);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }

/* gentle reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .rot { transition: none; }
}

/* ---------------- tablet ---------------- */
/* desktop header: the Staff login link sits in the top bar; the button shows in the phone menu */
.header-cta .btn-line { display: none; }
.nav { min-width: 0; flex-wrap: wrap; }
.nav a { padding: 9px 10px; }
@media (min-width: 1181px) and (max-width: 1360px) {
  .nav a { padding: 9px 8px; }
  .brand .long { display: none; }
  .brand .short { display: inline; }
}
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .header .container { flex-wrap: wrap; }
  .nav, .header-cta { display: none; flex: 0 0 100%; }
  .header.open .nav { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .header.open .nav a { padding: 13px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header.open .header-cta { display: flex; padding: 10px 0 4px; }
  .header.open .header-cta .btn { flex: 1; }
  .header.open .header-cta .btn-line { display: inline-flex; }
}
@media (max-width: 1100px) {
  .nav a { padding: 9px 8px; font-size: 14.5px; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .features .grid { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .header .container { flex-wrap: wrap; }
  .nav, .header-cta { display: none; flex: 0 0 100%; }
  .header.open .nav { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .header.open .nav a { padding: 13px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header.open .header-cta { display: flex; padding: 10px 0 4px; }
  .header.open .header-cta .btn { flex: 1; }
  .about, .reach { grid-template-columns: 1fr; gap: 36px; }
  .principal { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .principal .photo { max-width: 300px; }
  .campus, .news { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
/* ---------------- phone ---------------- */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar .tb-right, .topbar .tb-email { display: none; }
  .topbar .container { justify-content: center; }
  .brand img { width: 46px; height: 46px; }
  .brand b { font-size: 18px; }
  .brand small { font-size: 10.5px; }
  .brand .long { display: none; }
  .brand .short { display: inline; }
  .hero .container { padding-top: 56px; padding-bottom: 120px; }
  .hero p.lead { font-size: 17px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .features { margin-top: -72px; }
  .features .grid, .stages, .campus, .news, .steps, .pillars { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .principal blockquote { font-size: 19px; }
  .band .container { padding-top: 44px; padding-bottom: 44px; }
  .band .btn { width: 100%; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .float-cta { right: 12px; bottom: 12px; padding: 12px 18px; }
}
