
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --navy: #082636;
  --navy-2: #11394a;
  --teal: #0d6b66;
  --teal-dark: #07544f;
  --gold: #c79b48;
  --gold-soft: #ecd9aa;
  --cream: #f7f2e8;
  --cream-2: #fbf8f1;
  --ink: #102530;
  --muted: #61717a;
  --line: #d9dedb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(8, 38, 54, .13);
  --shadow-soft: 0 12px 30px rgba(8, 38, 54, .08);
  --radius: 24px;
  --radius-sm: 15px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-2);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link { position: fixed; left: 16px; top: -70px; z-index: 9999; background: var(--white); padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow-soft); }
.skip-link:focus { top: 16px; }

.announcement { background: var(--teal); color: white; font-size: .9rem; letter-spacing: .01em; }
.announcement .container { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.announcement-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 5px rgba(236,217,170,.15); }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(251,248,241,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(8,38,54,.08); }
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 245px; }
.brand img { width: 50px; height: 50px; }
.brand-text strong { display: block; font-family: 'Libre Baskerville', serif; font-size: 1.05rem; color: var(--navy); line-height: 1.1; }
.brand-text span { display: block; color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .15em; margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 25px; font-size: .95rem; font-weight: 600; }
.nav-links a { position: relative; padding: 31px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 22px; height: 2px; background: var(--gold); transition: .25s ease; }
.nav-links a:hover::after, .nav-links a[aria-current='page']::after { right: 0; }
.nav-cta { padding: 12px 18px !important; background: var(--navy); color: white; border-radius: 999px; }
.nav-cta::after { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: white; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: .25s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active span::after { transform: rotate(-45deg); top: 0; }

.hero { position: relative; overflow: hidden; background: var(--navy); color: white; }
.hero::before { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; left: -230px; top: -280px; }
.hero::after { content: ''; position: absolute; width: 430px; height: 430px; background: radial-gradient(circle, rgba(199,155,72,.18), transparent 68%); right: -100px; bottom: -210px; }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.03fr .97fr; gap: 70px; align-items: center; position: relative; z-index: 1; padding: 78px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-soft); }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.hero h1, .page-hero h1 { font-family: 'Libre Baskerville', serif; font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 24px 0; }
.hero h1 { font-size: clamp(3rem, 5.6vw, 5.2rem); max-width: 760px; }
.hero h1 em { color: var(--gold-soft); font-style: normal; }
.hero-copy { color: rgba(255,255,255,.78); font-size: 1.14rem; max-width: 640px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 28px rgba(199,155,72,.24); }
.btn-secondary { color: white; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.btn-dark { background: var(--navy); color: white; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: rgba(255,255,255,.62); font-size: .88rem; }
.hero-note svg { flex: 0 0 auto; }
.hero-visual { position: relative; }
.hero-photo { position: relative; overflow: hidden; border-radius: 36px 36px 120px 36px; aspect-ratio: 4 / 5; box-shadow: 0 35px 90px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,38,54,.45)); }
.floating-card { position: absolute; left: -52px; bottom: 54px; width: 240px; background: rgba(255,255,255,.95); color: var(--ink); padding: 22px; border-radius: 18px; box-shadow: var(--shadow); }
.floating-card strong { display: block; color: var(--navy); font-family: 'Libre Baskerville', serif; font-size: 1.35rem; }
.floating-card span { color: var(--muted); font-size: .9rem; }
.floating-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--teal); margin-bottom: 12px; }

.quick-facts { position: relative; z-index: 4; margin-top: -34px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 27px 30px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .66rem; }
.fact strong { display: block; color: var(--navy); margin-top: 6px; font-size: 1rem; }

.section { padding: 104px 0; }
.section-sm { padding: 74px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: white; }
.section-teal { background: var(--teal-dark); color: white; }
.section-head { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: end; margin-bottom: 52px; }
.section-head.centered { display: block; max-width: 760px; text-align: center; margin: 0 auto 52px; }
.kicker { color: var(--teal); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; }
.section-navy .kicker, .section-teal .kicker { color: var(--gold-soft); }
h2 { font-family: 'Libre Baskerville', serif; color: var(--navy); font-size: clamp(2.2rem, 4.1vw, 3.7rem); line-height: 1.15; letter-spacing: -.025em; margin: 14px 0 0; }
.section-navy h2, .section-teal h2 { color: white; }
h3 { color: var(--navy); margin: 0 0 12px; font-size: 1.2rem; }
p { margin: 0 0 18px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section-navy .lead, .section-teal .lead { color: rgba(255,255,255,.72); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.image-composition { position: relative; min-height: 550px; }
.image-main { position: absolute; inset: 0 62px 40px 0; overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); }
.image-main img { width: 100%; height: 100%; object-fit: cover; }
.image-accent { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1/1; border: 10px solid var(--cream-2); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); }
.image-accent img { width: 100%; height: 100%; object-fit: cover; }
.quote-card { background: white; border-left: 4px solid var(--gold); padding: 26px 28px; border-radius: 0 16px 16px 0; box-shadow: var(--shadow-soft); margin-top: 30px; }
.quote-card strong { color: var(--navy); display: block; font-family: 'Libre Baskerville', serif; font-size: 1.1rem; margin-bottom: 6px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.path-card { position: relative; background: white; border: 1px solid rgba(8,38,54,.08); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.path-card::before { content: attr(data-grade); position: absolute; right: -10px; top: -20px; font-family: 'Libre Baskerville', serif; font-size: 5.5rem; font-weight: 700; color: rgba(13,107,102,.05); }
.icon-box { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--teal); background: rgba(13,107,102,.09); margin-bottom: 25px; }
.card-label { color: var(--gold); text-transform: uppercase; font-size: .7rem; letter-spacing: .14em; font-weight: 800; }
.path-card h3 { font-family: 'Libre Baskerville', serif; font-size: 1.45rem; margin-top: 9px; }
.path-card p { color: var(--muted); }
.text-link { color: var(--teal); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }

.dual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.curriculum-panel { border-radius: 30px; padding: 48px; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.curriculum-panel.torah { background: linear-gradient(145deg, #0b3c4d, #082636); color: white; }
.curriculum-panel.general { background: #ece2ca; color: var(--navy); }
.curriculum-panel::after { content: ''; position: absolute; width: 270px; height: 270px; border-radius: 50%; right: -90px; bottom: -110px; border: 50px solid rgba(255,255,255,.05); }
.curriculum-panel.general::after { border-color: rgba(8,38,54,.05); }
.curriculum-panel h3 { color: inherit; font-family: 'Libre Baskerville', serif; font-size: 2rem; }
.curriculum-panel p { max-width: 520px; opacity: .8; }
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.pill { border: 1px solid currentColor; border-radius: 999px; padding: 8px 12px; font-size: .78rem; opacity: .75; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(236,217,170,.12); color: var(--gold-soft); }
.feature h3 { color: white; }
.feature p { color: rgba(255,255,255,.65); margin: 0; }

.founding { background: var(--cream); border: 1px solid rgba(199,155,72,.35); border-radius: 34px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; position: relative; overflow: hidden; }
.founding::after { content: 'תורה'; position: absolute; right: 140px; top: -38px; font-family: serif; font-size: 10rem; color: rgba(199,155,72,.08); }
.founding h2 { font-size: clamp(2rem, 3.6vw, 3rem); position: relative; z-index: 1; }
.founding p { max-width: 730px; color: var(--muted); position: relative; z-index: 1; }

.faq { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: none; border: 0; color: var(--navy); text-align: left; padding: 25px 0; font-weight: 800; font-size: 1.04rem; }
.faq-question svg { transition: transform .25s ease; flex: 0 0 auto; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { color: var(--muted); padding: 0 44px 22px 0; }

.page-hero { background: var(--navy); color: white; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 100px solid rgba(199,155,72,.07); right: -250px; top: -230px; }
.page-hero .container { min-height: 430px; display: grid; align-content: center; position: relative; z-index: 1; padding: 75px 0; }
.page-hero h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); max-width: 900px; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.72); font-size: 1.13rem; }
.breadcrumbs { color: var(--gold-soft); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { padding: 29px; border: 1px solid var(--line); background: white; border-radius: 20px; }
.value-number { font-family: 'Libre Baskerville', serif; color: var(--gold); font-size: 1.5rem; margin-bottom: 18px; }
.value-card p { color: var(--muted); margin: 0; }

.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 18px; bottom: 18px; left: 18px; width: 2px; background: var(--gold-soft); }
.timeline-item { display: grid; grid-template-columns: 38px 1fr; gap: 24px; padding-bottom: 36px; }
.timeline-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: white; border: 7px solid var(--cream); display: grid; place-items: center; position: relative; z-index: 1; }
.timeline-content { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px 27px; }
.timeline-content small { color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.timeline-content p { color: var(--muted); margin: 8px 0 0; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card { border-radius: 24px; padding: 34px; background: white; border: 1px solid var(--line); }
.program-card .grade-band { display: inline-block; padding: 6px 11px; border-radius: 999px; background: var(--cream); color: var(--teal); font-weight: 800; font-size: .75rem; }
.program-card h3 { font-family: 'Libre Baskerville', serif; font-size: 1.45rem; margin: 18px 0 12px; }
.program-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.program-card li { position: relative; color: var(--muted); padding: 6px 0 6px 21px; }
.program-card li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); position: absolute; left: 0; top: 15px; }

.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.form-card { background: white; border-radius: 26px; padding: 38px; box-shadow: var(--shadow-soft); border: 1px solid rgba(8,38,54,.08); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cdd5d7; background: #fcfdfd; border-radius: 12px; padding: 13px 14px; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,107,102,.1); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: .82rem; margin-top: 14px; }
.contact-card { padding: 25px 0; border-bottom: 1px solid var(--line); }
.contact-card:last-child { border-bottom: 0; }
.contact-card strong { display: block; color: var(--navy); }
.contact-card span { color: var(--muted); }

.notice { display: flex; gap: 15px; padding: 22px 24px; border-radius: 16px; background: #fff7e3; border: 1px solid #ead6a5; color: #5a4825; }
.notice svg { flex: 0 0 auto; margin-top: 2px; }

.photo-strip { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; }
.photo-strip figure { margin: 0; overflow: hidden; border-radius: 22px; min-height: 390px; position: relative; }
.photo-strip figure:nth-child(2), .photo-strip figure:nth-child(3) { min-height: 300px; align-self: end; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 38px 20px 18px; color: white; background: linear-gradient(transparent, rgba(8,38,54,.8)); font-size: .78rem; }

.site-footer { background: #061d29; color: rgba(255,255,255,.68); }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; padding: 72px 0 50px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; margin-bottom: 20px; }
.footer-brand img { width: 52px; }
.footer-brand strong { font-family: 'Libre Baskerville', serif; }
.footer-main h4 { color: white; margin: 0 0 17px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin: 9px 0; }
.footer-main a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 23px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 20px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .nav-links { position: fixed; left: 20px; right: 20px; top: 112px; background: white; border-radius: 20px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 0; transform: translateY(-20px); opacity: 0; pointer-events: none; transition: .25s ease; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 12px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero-grid, .split, .form-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 50px; }
  .hero-visual { max-width: 650px; margin: 0 auto; width: 100%; }
  .hero-photo { aspect-ratio: 5/4; border-radius: 30px 30px 80px 30px; }
  .floating-card { left: 24px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .cards-3, .program-grid { grid-template-columns: 1fr; }
  .dual-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-main > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .brand-text span { display: none; }
  .brand { min-width: 0; }
  .brand-text strong { font-size: .9rem; }
  .announcement .container { padding: 8px 0; }
  .hero-grid { min-height: auto; padding: 64px 0 90px; }
  .hero h1 { font-size: 2.7rem; }
  .hero-photo { aspect-ratio: 4/5; }
  .floating-card { width: 210px; left: 14px; bottom: 24px; }
  .quick-facts { margin-top: -25px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 24px; }
  .fact:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .image-composition { min-height: 430px; }
  .image-main { inset: 0 35px 35px 0; }
  .image-accent { width: 46%; }
  .curriculum-panel { padding: 34px; min-height: 390px; }
  .features { grid-template-columns: 1fr; }
  .founding { grid-template-columns: 1fr; padding: 38px 28px; }
  .founding::after { right: -15px; }
  .values-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-card { padding: 25px; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip figure, .photo-strip figure:nth-child(2), .photo-strip figure:nth-child(3) { min-height: 320px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-main > div:first-child, .footer-main > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
