/* Lords Convent School — static site stylesheet */
:root {
  --navy: #0d0b78;
  --navy-deep: #07064a;
  --navy-soft: #eceafa;
  --gold: #ffcd57;
  --gold-deep: #e0a920;
  --ink: #1e293b;
  --muted: #56627a;
  --line: #e3e5ee;
  --bg: #ffffff;
  --bg-soft: #f7f6fc;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 11, 120, 0.08);
  --wrap: 1160px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", "Noto Serif", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-deep); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #d9d8f5; font-size: 0.86rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .contacts { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar .affil { color: var(--gold); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Header / navigation ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(7, 6, 74, 0.05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-deep); }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.74rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { margin: 0; position: relative; }
.main-nav a, .main-nav .sub-toggle {
  display: block; padding: 10px 12px; font-size: 0.93rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-radius: 6px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .sub-toggle:hover, .main-nav li.open > .sub-toggle { color: var(--navy); background: var(--navy-soft); }
.main-nav a[aria-current="page"], .main-nav li.current > .sub-toggle { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 6px 6px 0 0; }
.main-nav .sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.main-nav .submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none;
}
.main-nav .submenu a { font-weight: 500; padding: 8px 12px; }
.main-nav .submenu a[aria-current="page"] { box-shadow: none; background: var(--navy-soft); border-radius: 6px; }
.main-nav li.open > .submenu { display: block; }
@media (hover: hover) and (min-width: 1041px) {
  .main-nav li.has-sub:hover > .submenu { display: block; }
}
.main-nav .nav-cta { background: var(--navy); color: #fff; margin-left: 6px; }
.main-nav .nav-cta:hover { background: var(--navy-deep); color: #fff; }
.main-nav .nav-cta[aria-current="page"] { box-shadow: none; border-radius: 6px; color: var(--gold); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; color: var(--navy-deep); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 76px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 16px 18px; }
  .main-nav a, .main-nav .sub-toggle { width: 100%; text-align: left; padding: 12px 10px; font-size: 1rem; }
  .main-nav .sub-toggle::after { float: right; margin-top: 8px; }
  .main-nav .submenu { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--navy-soft); border-radius: 0; margin-left: 10px; padding: 0 0 6px 8px; min-width: 0; }
  .main-nav a[aria-current="page"], .main-nav li.current > .sub-toggle { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0; }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 480px) {
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.12rem; }
  .topbar .affil { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; font-size: 0.98rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ffd978; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    linear-gradient(100deg, rgba(7,6,74,.94) 0%, rgba(13,11,120,.86) 55%, rgba(13,11,120,.70) 100%),
    url("../img/page-hero.jpg") center / cover no-repeat;
  color: #fff; padding: 56px 0 50px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { font-size: 0.9rem; color: #cfcdf3; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 8px; opacity: .6; }

/* ---------- Inner page layout ---------- */
.page-body { padding: 52px 0 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.layout.no-side { grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--navy-deep); }
.prose blockquote { margin: 0 0 1.4em; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-size: 1.1rem; font-style: italic; color: var(--navy-deep); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .signoff { font-weight: 600; color: var(--navy-deep); }
.prose figure { margin: 0 0 1.6em; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); }

.side-nav { position: sticky; top: 100px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-nav h2 { font-size: 1.05rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0; }
.side-nav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.side-nav a:hover { background: #fff; color: var(--navy); }
.side-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.side-card { margin-top: 18px; background: var(--navy-deep); color: #e7e6fb; border-radius: var(--radius); padding: 20px; font-size: 0.95rem; }
.side-card h3 { color: #fff; font-size: 1.1rem; }
.side-card a { color: var(--gold); }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .side-nav { position: static; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--navy); color: #fff; font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: var(--bg-soft); }
.table-wrap td p { margin: 0; }
.doc-table td:first-child { width: 38px; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-table td:last-child { white-space: nowrap; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.doc-link svg { width: 16px; height: 16px; }
.doc-missing { color: var(--muted); font-style: italic; }
@media (max-width: 600px) {
  .table-wrap table { min-width: 0; font-size: 0.9rem; }
  .table-wrap th, .table-wrap td { padding: 9px 10px; }
  .doc-table td:last-child { white-space: normal; }
  .table-wrap td { overflow-wrap: anywhere; }
  .co-table table { min-width: 520px; }
}
.co-table tr:first-child td { background: var(--navy); color: #fff; font-weight: 600; }
.co-table tr:first-child td strong { color: #fff; }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); margin-bottom: 1.6em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Home ---------- */
.hero {
  position: relative; color: #fff; padding: 110px 0 120px;
  background:
    linear-gradient(90deg, rgba(7,6,74,.93) 0%, rgba(7,6,74,.78) 50%, rgba(7,6,74,.45) 100%),
    url("../img/hero-library.jpg") center / cover no-repeat;
}
.hero .eyebrow { display: inline-block; background: rgba(255,205,87,.16); color: var(--gold); border: 1px solid rgba(255,205,87,.45); padding: 5px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 15ch; margin-bottom: 18px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { font-size: 1.18rem; max-width: 56ch; color: #e4e3fa; margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.quick-facts { background: #fff; margin-top: -54px; position: relative; z-index: 2; }
.quick-facts .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.quick-facts .fact { padding: 22px 24px; border-right: 1px solid var(--line); }
.quick-facts .fact:last-child { border-right: 0; }
.quick-facts .label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.quick-facts .value { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy-deep); font-weight: 700; margin-top: 4px; }
@media (max-width: 860px) {
  .quick-facts .grid { grid-template-columns: repeat(2, 1fr); }
  .quick-facts .fact:nth-child(2) { border-right: 0; }
  .quick-facts .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; color: var(--gold-deep); font-weight: 700; font-size: 0.84rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: 14px; box-shadow: var(--shadow); }
.split .photo-tall { max-height: 520px; width: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}

.quote-band { background: var(--navy-deep); color: #e7e6fb; padding: 76px 0; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; text-align: center; }
.quote-band blockquote p { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.75rem); font-style: italic; line-height: 1.5; color: #fff; margin-bottom: 16px; }
.quote-band cite { font-style: normal; color: var(--gold); font-weight: 600; }
.quote-band .motto { margin: 30px auto 0; max-width: 680px; text-align: center; color: #cfcdf3; }
.quote-band .motto strong { color: var(--gold); }
.quote-band a { color: var(--gold); font-weight: 600; }
.quote-band a:hover { color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd2f0; color: var(--ink); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.card .more { display: inline-block; margin-top: 12px; color: var(--navy); font-weight: 600; font-size: 0.92rem; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.strip a { scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 1 / 1; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.strip a:hover img { transform: scale(1.04); }
.strip-foot { margin-top: 22px; }

/* ---------- Achievements band (was the Elementor footer block) ---------- */
.stats { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 56px 0; }
.stats h2 { color: #fff; text-align: center; font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 30px; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats .num { display: block; font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; color: var(--gold); line-height: 1.1; }
.stats .lbl { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; color: #d9d8f5; margin-top: 6px; }
@media (max-width: 640px) { .stats .grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* ---------- Gallery + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-grid a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: var(--bg-soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(4, 3, 30, .93); display: none; align-items: center; justify-content: center; z-index: 200; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfcdf3; font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 40px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.contact-card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.contact-card p { margin-bottom: 14px; color: var(--muted); }
.contact-card .big { font-size: 1.15rem; font-weight: 700; color: var(--navy-deep); display: block; margin-bottom: 4px; text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-weight: 600; color: var(--navy-deep); text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: #05043a; color: #bdbce0; font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 60px 16px 40px; }
.site-footer h2 { color: #fff; font-family: var(--font-body); font-size: 0.86rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e2e1f8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .f-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.site-footer .f-brand img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.site-footer .f-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.2rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.85rem; color: #8f8ec0; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Floating call / WhatsApp ---------- */
.float-actions { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-actions a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .15s; }
.float-actions a:hover { transform: scale(1.07); color: #fff; }
.float-actions svg { width: 26px; height: 26px; }
.float-actions .fa-wa { background: #1fa855; }
.float-actions .fa-call { background: var(--navy); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 100px 16px; }
.notfound .code { font-family: var(--font-head); font-size: 5rem; color: var(--gold-deep); line-height: 1; margin-bottom: 10px; }

@media print {
  .topbar, .site-header, .float-actions, .stats, .side-nav, .site-footer .cols { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; }
  .page-hero h1 { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
