/* Landow Jewish Academy — replica of ljaonline.com (homepage)
   Colors/typography pulled from the live site's computed styles.
   Original fonts are Wix-uploaded serif faces + Avenir LT Light; Google Font
   substitutes are used here (Source Serif 4 / Nunito Sans). */

:root {
  --navy-deep: #090447;   /* header + footer */
  --navy-cta: #003569;    /* Book a Tour / Learn More / Career Pathways bars */
  --navy-head: #073561;   /* section headings */
  --indigo: #313381;      /* stats, CONTACT US, Let's Connect */
  --navy-text: #002e5d;   /* contact details */
  --gold: #c39a5b;        /* logo accent */
  --white: #ffffff;
  --black: #000000;
  --gray-icon: #9a9a9a;   /* header social icons */

  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-sans: "Nunito Sans", "Avenir Next", Avenir, Arial, sans-serif;

  --container: 1240px;
  --header-h: 136px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep);
  height: var(--header-h);
  transition: height .25s ease;
}
.site-header.is-compact { height: 68px; }
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 40px;
  width: min(1080px, 100% - 32px); margin-inline: auto;
}
.logo img { height: 89px; width: auto; transition: height .25s ease; }
.is-compact .logo img { height: 48px; }
.header-social { display: flex; gap: 18px; align-items: center; }
.header-social a { color: var(--gray-icon); display: grid; place-items: center; }
.header-social a:hover { color: #fff; }
.header-social svg { width: 32px; height: 32px; fill: currentColor; transition: width .25s, height .25s; }
.is-compact .header-social svg { width: 22px; height: 22px; }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.mobile-phone-link {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none;
}
.mobile-phone-link svg { width: 25px; height: 25px; fill: currentColor; }
.desktop-phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 5px;
  color: var(--white); text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s;
}
.desktop-phone-link:hover { background: var(--white); color: var(--navy-deep); }
.desktop-phone-link svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.desktop-phone-link .phone-label { font-size: 13px; opacity: .85; }
.desktop-phone-link .phone-number { font-size: 16px; font-weight: 700; }
.is-compact .desktop-phone-link { height: 34px; padding: 0 10px; }
.is-compact .desktop-phone-link .phone-label { display: none; }
.is-compact .desktop-phone-link .phone-number { font-size: 14px; }
.is-compact .desktop-phone-link svg { width: 16px; height: 16px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 108px; height: 40px; padding: 0 16px;
  border: 1.5px solid var(--white); border-radius: 5px;
  color: var(--white); text-decoration: none; font-size: 16px; font-weight: 400;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--white); color: var(--navy-deep); }
.btn-outline.tour { display: none; }
.is-compact .btn-outline { height: 34px; min-width: 64px; font-size: 13px; }
.is-compact .btn-outline.tour { display: inline-flex; }

.menu-toggle {
  width: 44px; height: 44px; margin-left: 10px;
  background: none; border: 0; cursor: pointer; padding: 6px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.menu-toggle span { display: block; height: 3px; background: var(--white); border-radius: 2px; }

.mobile-call-bar { display: none; }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy-deep); color: var(--white);
  overflow-y: auto; padding: 40px 16px 60px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer;
}
.menu-grid {
  width: min(1080px, 100%); margin: 60px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.menu-grid h3 {
  font-family: var(--font-serif); font-weight: 700; font-size: 22px;
  color: var(--gold); margin: 0 0 14px; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 8px;
}
.menu-grid ul { list-style: none; margin: 0; padding: 0; }
.menu-grid li { margin: 0 0 10px; }
.menu-grid a { text-decoration: none; font-size: 17px; }
.menu-grid a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 647px; overflow: hidden; background: #3d4d4a; }
.hero video, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA bars ---------- */
.cta-bars { padding: 0 0 5px; }
.cta-bar {
  display: flex; align-items: center; justify-content: center;
  height: 89px; margin-top: 25px;
  background: var(--navy-cta); color: var(--white);
  font-size: 42px; font-weight: 300; text-decoration: none;
  transition: background .2s;
}
.cta-bar:first-child { margin-top: 0; }
.cta-bar:hover { background: #0b4a8a; }

/* ---------- Section headings ---------- */
.heading-serif {
  font-family: var(--font-serif); font-weight: 700; color: var(--navy-head);
  text-align: center; margin: 0;
}
.heading-sm { font-size: 30px; font-weight: 500; }

/* ---------- Colleges marquee ---------- */
.colleges { padding: 50px 0 40px; overflow: hidden; }
.colleges .heading-serif { margin-bottom: 30px; }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex; gap: 24px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { width: 270px; height: 360px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Video sections ---------- */
.video-section {
  position: relative; padding: 60px 16px;
  background: url("../assets/img/video-bg.jpg") center/cover no-repeat;
}
.video-section.dark { background-color: #000; }
.video-frame {
  width: min(970px, 100%); margin-inline: auto;
  aspect-ratio: 16 / 9; background: #000;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Science gallery ---------- */
.gallery { padding: 0 0 40px; }
.gallery-grid {
  width: min(1210px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
}
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Welcome Home / At a Glance ---------- */
.welcome { padding: 40px 0 70px; text-align: center; }
.divider-v { width: 1px; height: 90px; background: #bbb; margin: 0 auto 40px; }
.welcome h2 { font-size: 71px; line-height: 1.2; }
.welcome .sub {
  font-family: var(--font-serif); font-size: 30px; color: var(--navy-head); margin: 4px 0 70px;
}
.welcome .sub strong { font-weight: 700; }
.glance {
  display: grid; grid-template-columns: repeat(4, 278px); justify-content: center; gap: 70px;
}
.glance-card { position: relative; }
.glance-card .arch {
  position: relative; height: 506px; border-radius: 139px 139px 139px 139px / 139px 139px 139px 139px;
  overflow: hidden; color: #fff;
}
.glance-card .arch img { width: 100%; height: 100%; object-fit: cover; }
.glance-card .arch::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(49, 51, 129, .55);
}
.glance-card .label {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-serif); padding: 0 16px; color: #fff;
}
.glance-card .label small { font-size: 22px; font-weight: 400; letter-spacing: .02em; }
.glance-card .label b { font-size: 66px; font-weight: 700; line-height: 1.05; }
.glance-card .icon {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 146px; height: 146px; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
}
.glance-card .icon img { width: 100px; height: 100px; object-fit: contain; }
.glance-card .icon.top { top: -38px; }
.glance-card .icon.bottom { bottom: -38px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  min-height: 467px; padding: 50px 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-serif); background-size: cover; background-position: center;
}
.stat.navy { background-image: linear-gradient(rgba(49,51,129,.82), rgba(49,51,129,.82)), url("../assets/img/stat-navy.jpg"); color: #fff; }
.stat.light { background-image: url("../assets/img/stat-light.jpg"); color: var(--indigo); }
.stat .big { font-size: 84px; line-height: 1.15; margin: 0; }
.stat .big.md { font-size: 49px; }
.stat p { font-size: 30px; line-height: 1.15; margin: 10px 0 0; text-transform: uppercase; }
.stat.navy p { font-weight: 600; }

/* ---------- Faculty ---------- */
.faculty { padding: 70px 0 30px; }
.faculty .heading-serif { margin-bottom: 36px; }
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 34px;
}
.logo-row img { height: auto; }
.faculty .logo-row { width: min(1300px, 100% - 32px); gap: 20px 26px; }
.accred { padding: 20px 0 0; }
.accred .logo-row { gap: 40px 180px; }
.accred img { width: 190px; height: 190px; object-fit: contain; }
.accred img.msa { width: 268px; height: 154px; }

/* ---------- Contact ---------- */
.contact { padding: 0 0 50px; text-align: center; }
.contact h2 {
  font-family: var(--font-serif); font-weight: 400; color: var(--indigo);
  font-size: 70px; margin: 0 0 40px; letter-spacing: .02em;
}
.contact address {
  font-style: normal; font-family: var(--font-serif); font-size: 20px; line-height: 1.4; color: var(--navy-text);
}
.contact address a { color: inherit; text-decoration: none; }
.contact-social { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.contact-social a { width: 29px; height: 29px; border-radius: 4px; display: grid; place-items: center; }
.contact-social .fb { background: #1877f2; }
.contact-social .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.contact-social svg { width: 18px; height: 18px; fill: #fff; }

.connect { padding: 20px 0 70px; text-align: center; }
.connect h2 { font-family: var(--font-serif); font-weight: 700; color: var(--indigo); font-size: 50px; margin: 0 0 10px; }
.connect .lead { font-size: 17px; margin: 0 0 50px; }
.connect-form { width: min(310px, 100%); margin-inline: auto; text-align: left; font-family: Arial, sans-serif; }
.connect-form label { display: block; font-size: 14px; margin: 0 0 4px; }
.connect-form label span { color: #c0392b; }
.connect-form input, .connect-form textarea {
  width: 100%; margin: 0 0 16px; padding: 6px 8px; font: inherit; font-size: 14px;
  border: 1px solid #999; border-radius: 2px;
}
.connect-form textarea { min-height: 90px; resize: vertical; }
.connect-form button {
  display: block; margin: 8px auto 0; padding: 10px 28px;
  background: var(--indigo); color: #fff; border: 0; border-radius: 4px; font-size: 15px; cursor: pointer;
}
.connect-form button:hover { background: var(--navy-deep); }
.form-note { text-align: center; font-size: 14px; color: var(--indigo); min-height: 1em; }

/* ---------- Map ---------- */
.map iframe { width: 100%; height: 450px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; font-family: var(--font-serif); padding: 40px 0; }
.footer-inner {
  width: min(1180px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 30px; align-items: center; text-align: center;
}
.site-footer h4 { font-size: 20px; font-weight: 700; margin: 0 0 18px; }
.site-footer p { font-size: 16px; line-height: 1.4; margin: 0; }
.site-footer .addr p { font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer a[href^="tel"] { text-decoration: none; }
.footer-social { display: flex; gap: 36px; justify-content: center; font-size: 14px; }
.footer-social a { text-decoration: none; }
.footer-logos { display: flex; gap: 10px; align-items: center; }
.footer-logos img { height: 72px; width: auto; background: #fff; }
.footer-logos img.round { height: 104px; background: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .glance { grid-template-columns: repeat(2, 278px); row-gap: 110px; }
}
@media (max-width: 1000px) {
  :root { --header-h: 90px; }
  .logo img { height: 60px; }
  .header-social, .header-actions .btn-outline { display: none !important; }
  .mobile-phone-link { display: inline-flex; }
  .desktop-phone-link { display: none; }
  .cta-bar { font-size: 30px; height: 70px; }
  .welcome h2 { font-size: 48px; }
  .welcome .sub, .heading-sm { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .contact h2 { font-size: 46px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logos { justify-content: center; }
  .accred .logo-row { gap: 30px 60px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 0; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 2px; }
  .menu-toggle { margin-left: 0; }
  .mobile-call-bar {
    position: fixed; left: 50%; bottom: 14px; z-index: 9998;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: min(310px, calc(100% - 92px)); min-height: 56px; padding: 8px 18px;
    color: var(--white); background: var(--navy-cta); border: 2px solid var(--white);
    border-radius: 7px; box-shadow: 0 8px 24px rgba(0,0,0,.3); text-decoration: none;
    opacity: 0; visibility: hidden; transform: translate(-50%, 20px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .mobile-call-bar.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .mobile-call-bar svg { width: 23px; height: 23px; fill: currentColor; flex: 0 0 auto; }
  .mobile-call-bar span { display: grid; font-size: 14px; line-height: 1.25; }
  .mobile-call-bar strong { font-size: 12px; text-transform: uppercase; }
  .hero { height: 260px; }
  .glance { grid-template-columns: 278px; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 320px; }
  .stat .big { font-size: 64px; }
  .stat p { font-size: 22px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .marquee-track img { width: 160px; height: 214px; }
  .menu-grid { grid-template-columns: 1fr; }
  .cta-bar { font-size: 24px; height: 60px; margin-top: 12px; }
}

/* =====================================================================
   Subpages
   ===================================================================== */
.footer-legal {
  width: min(1180px, 100% - 32px); margin: 28px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: 13px; opacity: .75;
}
.site-footer .addr a { font-size: 14px; }

/* Page banner */
.page-hero {
  position: relative; min-height: 380px; display: grid; place-items: center; text-align: center;
  color: #fff; background: var(--navy-deep) center/cover no-repeat; padding: 60px 16px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(9,4,71,.5), rgba(9,4,71,.72)); }
.page-hero > * { position: relative; }
.page-hero .eyebrow { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; font-weight: 700; }
.page-hero h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(38px, 6vw, 66px); line-height: 1.08; margin: 0; }
.page-hero .lede { max-width: 720px; margin: 16px auto 0; font-size: 20px; line-height: 1.5; }
.page-hero.short { min-height: 260px; }

/* Sub navigation (academics) */
.subnav { background: var(--navy-cta); }
.subnav ul { list-style: none; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; max-width: 1200px; }
.subnav a { display: block; padding: 14px; color: #fff; text-decoration: none; font-size: 15px; border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Generic sections */
.section { padding: 72px 0; }
.section.tint { background: #f4f5fb; }
.section.navy { background: var(--indigo); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.section h2 { font-family: var(--font-serif); color: var(--navy-head); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; margin: 0 0 18px; }
.section h3 { font-family: var(--font-serif); color: var(--navy-head); font-size: 24px; margin: 0 0 10px; }
.section p, .section li { font-size: 18px; line-height: 1.65; }
.center { text-align: center; }
.kicker { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 8px; }
.pull { font-family: var(--font-serif); font-size: 26px; line-height: 1.4; color: var(--indigo); border-left: 4px solid var(--gold); padding-left: 22px; margin: 30px 0; }

/* Split: image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 72px; }
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; border-radius: 6px; box-shadow: 0 14px 40px rgba(9,4,71,.18); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border-radius: 5px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .2s, color .2s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--navy-cta); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: var(--gold); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center .btn-row { justify-content: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(9,4,71,.09); overflow: hidden; display: flex; flex-direction: column; }
.card > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card > img.contain { object-fit: contain; padding: 18px; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 22px; margin: 0; }
.card p { font-size: 16px; line-height: 1.55; margin: 0; }
.card .meta { font-size: 14px; color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Numbered points / steps */
.points { display: grid; gap: 22px; counter-reset: pt; }
.point { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 4px 18px rgba(9,4,71,.07); }
.point::before { counter-increment: pt; content: counter(pt); width: 56px; height: 56px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 26px; font-weight: 700; }
.point p { margin: 0; font-size: 17px; }
.point .btn { margin-top: 14px; }

/* Stats strip */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.stat-strip div { padding: 24px 12px; border-radius: 8px; background: rgba(255,255,255,.08); }
.stat-strip b { display: block; font-family: var(--font-serif); font-size: 50px; line-height: 1.1; }
.stat-strip span { font-size: 16px; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 36px 24px; }
.person { text-align: center; }
.person img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 14px; box-shadow: 0 6px 20px rgba(9,4,71,.18); }
.person h3 { font-size: 20px; margin: 0 0 4px; }
.section .person p { font-size: 15px; line-height: 1.45; margin: 0; color: #444; }
.profile-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.profile-cards img { width: 100%; border-radius: 8px; box-shadow: 0 8px 26px rgba(9,4,71,.14); }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.photo-grid.square img { aspect-ratio: 1; }
.facility h3 { margin: 44px 0 16px; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 20px; height: 20px; border-radius: 50%; background-color: var(--gold); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: calc(.42em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Resource tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.tile { position: relative; display: block; border-radius: 8px; overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4/3; background: var(--navy-deep); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(9,4,71,.9)); }
.tile span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-family: var(--font-serif); font-size: 21px; font-weight: 700; line-height: 1.2; }
.tile:hover img { transform: scale(1.05); }

/* Link list */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 8px; background: #fff; box-shadow: 0 4px 16px rgba(9,4,71,.08); text-decoration: none; font-size: 18px; color: var(--navy-head); font-weight: 700; }
.link-list a::after { content: "\2192"; color: var(--gold); font-size: 22px; }
.link-list a:hover { background: var(--navy-cta); color: #fff; }

/* Timeline */
.timeline { border-left: 3px solid var(--gold); padding-left: 30px; display: grid; gap: 34px; margin-left: 10px; }
.timeline > div { position: relative; }
.timeline > div::before { content: ""; position: absolute; left: -42px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--indigo); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }

/* Info boxes */
.info-box { background: #fff; border-top: 5px solid var(--gold); border-radius: 8px; padding: 28px; box-shadow: 0 8px 28px rgba(9,4,71,.1); }
.info-box p { margin: 0 0 8px; font-size: 17px; }
.info-box a { color: var(--navy-cta); font-weight: 700; }
.notice { background: #fff6e6; border-left: 5px solid var(--gold); padding: 18px 22px; border-radius: 6px; font-size: 17px; margin: 24px 0; }

/* Tuition */
.tuition-tables { display: grid; gap: 28px; }
.tuition-tables figure { margin: 0; background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 6px 22px rgba(9,4,71,.1); }
.tuition-tables figcaption { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--navy-head); margin-bottom: 12px; }

/* Embedded forms */
.embed-form iframe { width: 100%; min-height: 1150px; border: 0; background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(9,4,71,.09); }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.tour-grid .connect-form { width: 100%; }

/* Visit CTA band */
.visit-cta { background: var(--navy-cta); color: #fff; text-align: center; padding: 60px 0; }
.visit-cta h2 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 42px); margin: 0 0 10px; }
.visit-cta p { margin: 0; font-size: 17px; opacity: .92; }
.visit-cta a { color: #fff; }
.visit-cta .btn-row { justify-content: center; }
.visit-cta .btn-light { color: var(--navy-deep); }

@media (max-width: 900px) {
  .split, .tour-grid { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > :first-child { order: 0; }
  .section { padding: 52px 0; }
  .page-hero { min-height: 280px; }
}

/* Book a Tour */
.page-book-a-tour > .visit-cta { display: none; }
.tour-hero { min-height: 570px; position: relative; display: flex; align-items: center; color: var(--white); background-color: var(--navy-deep); background-position: center 42%; background-size: cover; }
.tour-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,4,71,.9) 0%, rgba(9,4,71,.64) 48%, rgba(9,4,71,.15) 78%); }
.tour-hero-content { position: relative; padding-block: 78px; }
.tour-hero .eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.tour-hero h1 { max-width: 760px; margin: 0; font-family: var(--font-serif); font-size: clamp(46px, 6vw, 76px); line-height: 1.02; }
.tour-hero p:not(.eyebrow) { max-width: 660px; margin: 22px 0 0; font-size: 20px; line-height: 1.55; }
.tour-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.tour-phone-link { display: flex; flex-direction: column; color: var(--white); text-decoration: none; font-size: 14px; }
.tour-phone-link strong { font-size: 20px; }
.tour-help { background: var(--gold); color: var(--navy-deep); }
.tour-help-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 20px; }
.tour-help-inner > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.tour-help-inner span { font-size: 15px; }
.tour-help-inner strong { font-family: var(--font-serif); font-size: 22px; }
.tour-help-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tour-help-links a { padding: 11px 17px; border: 1px solid var(--navy-deep); border-radius: 5px; color: var(--navy-deep); font-weight: 700; text-decoration: none; }
.tour-help-links a:first-child { background: var(--navy-deep); color: var(--white); }
.tour-visit { padding: 88px 0; background: #f4f5fb; }
.tour-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: start; }
.tour-details h2, .tour-form-heading h2, .tour-map-heading h2 { margin: 0; color: var(--navy-head); font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.12; }
.tour-intro { margin: 20px 0 32px; font-size: 18px; line-height: 1.65; }
.tour-contact-list { border-top: 1px solid #d7d8e2; }
.tour-contact-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid #d7d8e2; }
.tour-contact-list a, .tour-contact-list p { margin: 0; color: var(--navy-text); font-size: 17px; line-height: 1.5; }
.tour-contact-list div:nth-child(2) { grid-template-columns: 140px 1fr; }
.tour-contact-list div:nth-child(2) a:last-child { grid-column: 2; }
.tour-contact-label { color: var(--indigo); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tour-next-step { margin-top: 26px; padding-left: 18px; border-left: 4px solid var(--gold); display: flex; flex-direction: column; gap: 3px; }
.tour-next-step a { color: var(--navy-cta); font-weight: 700; }
.tour-form-wrap { background: var(--white); border-radius: 8px; padding: 40px; box-shadow: 0 16px 50px rgba(9,4,71,.12); }
.tour-form-heading { margin-bottom: 28px; }
.tour-form-heading h2 { font-size: 34px; }
.tour-form-heading > p:last-child { margin: 9px 0 0; color: #555; font-size: 14px; }
.tour-form { display: flex; flex-direction: column; }
.tour-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tour-form label { margin: 0 0 6px; color: var(--navy-deep); font-size: 14px; font-weight: 700; }
.tour-form label span { color: #a52b27; }
.tour-form input, .tour-form textarea { width: 100%; margin: 0 0 18px; padding: 12px 13px; border: 1px solid #aeb2c2; border-radius: 4px; background: var(--white); color: var(--black); font: inherit; font-size: 16px; }
.tour-form input:focus, .tour-form textarea:focus { outline: 3px solid rgba(195,154,91,.34); border-color: var(--navy-cta); }
.tour-form textarea { resize: vertical; }
.tour-form .btn { width: 100%; min-height: 52px; margin-top: 4px; }
.tour-form-assurance, .tour-form .form-note { margin: 11px 0 0; text-align: center; font-size: 13px; line-height: 1.4; color: #555; }
.tour-form .form-note { color: var(--indigo); font-weight: 700; }
.tour-map { padding-top: 62px; }
.tour-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.tour-map iframe { width: 100%; height: 430px; border: 0; display: block; }
@media (max-width: 900px) {
  .tour-hero { min-height: 500px; background-position: 62% center; }
  .tour-hero::before { background: rgba(9,4,71,.7); }
  .tour-help-inner, .tour-map-heading { align-items: flex-start; flex-direction: column; }
  .tour-layout { grid-template-columns: 1fr; gap: 46px; }
}
@media (max-width: 560px) {
  .tour-hero { min-height: 520px; }
  .tour-hero-content { padding-block: 54px; }
  .tour-hero h1 { font-size: 44px; }
  .tour-hero p:not(.eyebrow) { font-size: 17px; }
  .tour-help-links, .tour-help-links a { width: 100%; text-align: center; }
  .tour-visit { padding: 58px 0; }
  .tour-form-wrap { padding: 28px 20px; }
  .tour-form-row { grid-template-columns: 1fr; gap: 0; }
  .tour-contact-list > div, .tour-contact-list div:nth-child(2) { grid-template-columns: 1fr; gap: 5px; }
  .tour-contact-list div:nth-child(2) a:last-child { grid-column: 1; }
}

/* Accessibility (ADA) widget */
.a11y-widget { position: fixed; right: 18px; bottom: 88px; z-index: 9999; font-family: Arial, Helvetica, sans-serif; }
.a11y-toggle { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--navy, #1b2a4a); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.a11y-toggle:hover, .a11y-toggle:focus-visible { background: var(--navy-deep, #0d1538); outline: 3px solid #f5c542; outline-offset: 2px; }
.a11y-panel { position: absolute; right: 0; bottom: 68px; width: 240px; background: #fff; border-radius: 10px; box-shadow: 0 10px 32px rgba(0,0,0,.28); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.a11y-panel[hidden] { display: none; }
.a11y-title { margin: 0 0 4px; font-weight: 700; font-size: 15px; color: #111; }
.a11y-row { display: flex; align-items: center; gap: 8px; }
.a11y-size-label { flex: 1; font-size: 14px; color: #333; text-align: center; }
.a11y-option { border: 1px solid #c9cede; background: #f4f6fb; color: #111; border-radius: 6px; padding: 8px 10px; font-size: 14px; cursor: pointer; text-align: left; }
.a11y-option:hover, .a11y-option:focus-visible { background: #e3e9f7; outline: 2px solid #1b2a6b; outline-offset: 1px; }
.a11y-option[aria-pressed="true"] { background: #1b2a6b; color: #fff; border-color: #1b2a6b; }
.a11y-reset { text-align: center; font-weight: 700; }

/* Accessibility modes */
html.a11y-contrast { filter: contrast(1.4); }
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-contrast.a11y-grayscale { filter: contrast(1.4) grayscale(1); }
html.a11y-links a { outline: 2px solid #f5c542 !important; outline-offset: 1px; text-decoration: underline !important; }
html.a11y-readable-font body, html.a11y-readable-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .02em; }
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
  .mobile-call-bar { transition: none; }
}

/* ===== Chat widget ===== */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1200; font-family: inherit; }
.chat-fab { width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy, #1b2a4a); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s ease; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; fill: currentColor; }
.chat-panel { position: absolute; right: 0; bottom: 70px; width: 340px; max-width: calc(100vw - 36px);
  height: 460px; max-height: calc(100vh - 120px); background: #fff; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.3); border: 1px solid rgba(0,0,0,.08); }
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--navy, #1b2a4a); color: #fff; padding: 12px 14px; display: flex; flex-direction: column; position: relative; }
.chat-head strong { font-size: 15px; }
.chat-head span { font-size: 12px; opacity: .8; }
.chat-close { position: absolute; top: 6px; right: 8px; background: none; border: none; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f6f7f9; }
.chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.chat-msg.bot { background: #fff; border: 1px solid rgba(0,0,0,.08); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy, #1b2a4a); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg a { color: inherit; font-weight: 600; }
.chat-msg .chat-link { display: inline-block; margin-top: 6px; padding: 5px 10px; border-radius: 8px;
  background: var(--navy, #1b2a4a); color: #fff; text-decoration: none; font-size: 13px; }
.chat-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px 0; }
.chat-chip { border: 1px solid var(--navy, #1b2a4a); background: #fff; color: var(--navy, #1b2a4a);
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.chat-chip:hover { background: var(--navy, #1b2a4a); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px; }
.chat-form input { flex: 1; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; padding: 9px 10px; font-size: 14px; }
.chat-send { border: none; border-radius: 8px; background: var(--navy, #1b2a4a); color: #fff;
  padding: 0 16px; font-size: 14px; cursor: pointer; }
@media (max-width: 640px) {
  .chat-widget { right: 12px; bottom: 76px; } /* sit above the mobile call bar */
  .chat-panel { bottom: 66px; height: min(480px, calc(100vh - 170px)); }
  .a11y-widget { right: 12px; bottom: 146px; } /* stack above the chat bubble */
  .a11y-panel { width: min(240px, calc(100vw - 24px)); }
}

/* Blog */
.blog-post { max-width: 820px; }
.blog-crumbs { font-size: .9rem; margin-bottom: 4px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.blog-nap { margin-top: 40px; padding: 24px; border-radius: 12px; background: var(--tint, #f4f1ea); }
.blog-more { margin-top: 24px; }
.page-blog a.card { color: inherit; text-decoration: none; display: block; }
.card .h3 { font-size: 1.25rem; }

/* Inquiry page */
.inquiry-page{padding:56px 0 72px}
.inquiry-wrap{max-width:980px}
.inquiry-wrap h1{text-align:center;margin-bottom:12px}
.inquiry-lead{text-align:center;max-width:640px;margin:0 auto 28px}
.inquiry-frame{background:#fff;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.08);overflow:hidden}
.inquiry-frame iframe{display:block;width:100%;height:1500px;border:0}
.page-inquiry .visit-cta{display:none}
