/* Reformation Lutheran School, San Diego. Built by Enrollment Genius, 2026. */
:root {
  --blue: #1e4299;
  --blue-deep: #163275;
  --navy: #0f1f3d;
  --gold: #ffcc29;
  --gold-deep: #e2b312;
  --gold-pale: #fff7d9;
  --paper: #fbfaf6;
  --white: #ffffff;
  --tint: #eef2fa;
  --ink: #1b2233;
  --muted: #5a6372;
  --line: #e2e6ee;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --hdr: 78px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; }
h2 { font-size: clamp(31px, 3.4vw, 44px); }
h3 { font-size: clamp(23px, 2.2vw, 27px); line-height: 1.2; }
h4 { font-size: 20px; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: #2a3346; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; }
.narrow { max-width: 760px; }
ul, ol { padding-left: 1.3em; }
li { margin: 0 0 .4em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: 17px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--navy); }
@media (min-width: 701px) { th { white-space: nowrap; padding-right: 28px; } }
dl { margin: 0; }
dt { font-weight: 600; color: var(--navy); margin-top: 14px; }
dd { margin: 2px 0 0; }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1; padding: 15px 24px; border-radius: 6px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--navy); }
.btn--blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white:hover { background: var(--gold); border-color: var(--gold); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: ' \2192'; }
.more:hover { text-decoration: underline; }

/* Header */
/* No backdrop-filter here: it would become the containing block for the fixed mobile menu panel. */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr__in { width: min(1320px, 100% - 2 * var(--gutter)); margin: 0 auto; height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.hdr__logo img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__item { position: relative; margin: 0; }
.nav__top { font: 600 17px/1 var(--sans); color: var(--navy); background: none; border: 0; padding: 14px 14px; cursor: pointer; border-radius: 6px; }
.nav__top::after { content: ''; display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 8px; opacity: .7; }
.nav__item:hover .nav__top, .nav__item:focus-within .nav__top, .nav__item.open .nav__top { background: var(--tint); }
.nav__sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(15, 31, 61, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub, .nav__item.open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub li { margin: 0; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 16.5px; }
.nav__sub a:hover { background: var(--tint); color: var(--blue-deep); }
.nav__foot { display: none; }
.hdr__right { display: flex; align-items: center; gap: 18px; }
.hdr__phone { text-decoration: none; font-weight: 600; color: var(--navy); white-space: nowrap; }
.hdr__cta { padding: 13px 20px; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; font: 600 17px/1 var(--sans); color: var(--navy); cursor: pointer; padding: 10px 0; }
.menu-btn i { width: 24px; height: 2px; background: currentColor; position: relative; display: block; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-btn i::before { top: -7px; } .menu-btn i::after { top: 7px; }
body.nav-open .menu-btn i { background: transparent; }
body.nav-open .menu-btn i::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-btn i::after { transform: translateY(-7px) rotate(-45deg); }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #aab2c0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

/* Sections */
section { padding: clamp(56px, 7vw, 100px) 0; }
.band { background: var(--tint); }
.band--gold { background: var(--gold-pale); }
.band--navy { background: var(--navy); color: #d9e0ee; }
.band--navy h2, .band--navy h3 { color: var(--white); }
.band--navy a { color: var(--white); }
.band--white { background: var(--white); }
.sect__head { max-width: 760px; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
.photo { border-radius: 10px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.arch { border-radius: 1000px 1000px 10px 10px; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-wide { aspect-ratio: 16 / 7; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.rule { border-top: 1px solid var(--line); }

/* Home hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 560px; margin-bottom: 28px; }
.hero__photo { aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: 100%; }
.facts { padding: 0; }
.facts__row { display: flex; flex-wrap: wrap; gap: 10px 36px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); font-size: 17px; color: var(--navy); font-weight: 600; }
.facts__row span { white-space: nowrap; }

/* Classroom list (home + multi-grade page) */
.rooms { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rooms li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rooms b { font-family: var(--serif); font-weight: 500; font-size: 23px; color: var(--navy); }
.rooms span { display: block; color: var(--muted); font-size: 16px; }

/* Photo strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.strip figure { margin: 0; }
.strip .photo { aspect-ratio: 4 / 5; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quote { border-top: 2px solid var(--navy); padding-top: 22px; }
.quote blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--navy); }
.quote blockquote::before { content: '\201C'; }
.quote blockquote::after { content: '\201D'; }
.quote figcaption { font-size: 15px; color: var(--muted); }

/* Visit */
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.visit__map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; background: var(--tint); display: block; }
.visit__map p { font-size: 15px; margin: 10px 0 0; }
.visit dl { margin: 20px 0 26px; }

/* Inner pages */
.pagehead { background: var(--tint); padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); }
.pagehead h1 { font-size: clamp(36px, 4.4vw, 56px); max-width: 860px; }
.pagehead .lede { max-width: 720px; margin-bottom: 0; }
.pagehead .btns { margin-top: 26px; }
.pagehead--photo { padding-bottom: 0; }
.pagehead__photo { margin-top: clamp(28px, 4vw, 48px); aspect-ratio: 16 / 7; border-radius: 10px 10px 0 0; overflow: hidden; }
.pagehead__photo img { width: 100%; height: 100%; object-fit: cover; }
.inner { padding: clamp(48px, 6vw, 80px) 0; }
.inner__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 6vw, 88px); align-items: start; }
.content > h2 { margin-top: 1.6em; }
.content > h2:first-child { margin-top: 0; }
.content > h3 { margin-top: 1.4em; }
.content .photo, .content figure { margin: 28px 0 32px; }
.content .lede { margin-bottom: 1.4em; }
.side { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 20px; }
.side__card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.side__card h3 { margin-bottom: 8px; }
.side__card p { font-size: 16.5px; color: var(--muted); }
.side__card .btn { width: 100%; }
.side__link { display: block; text-align: center; margin-top: 12px; font-size: 16px; }
.side__facts { background: var(--gold-pale); border-radius: 10px; padding: 22px 26px; font-size: 16.5px; }
.side__facts dt:first-child { margin-top: 0; }
.steps { list-style: none; padding: 0; margin: 0 0 1.5em; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--blue); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 22px; color: var(--navy); padding: 16px 36px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__a { padding: 0 0 18px; max-width: 700px; }
.faq__a p:last-child { margin-bottom: 0; }
.callout { background: var(--tint); border-radius: 10px; padding: 26px 28px; margin: 28px 0; }
.callout--gold { background: var(--gold-pale); }
.callout p:last-child { margin-bottom: 0; }
.price { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); color: var(--navy); line-height: 1; margin: 6px 0 4px; }
.price small { font-family: var(--sans); font-size: 17px; line-height: 1.45; color: var(--muted); display: block; margin-top: 10px; max-width: 520px; }
.tuition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0 32px; }
.tuition-grid > div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.tuition-grid h3 { font-size: 21px; margin-bottom: 6px; }
.tuition-grid p { margin: 0; font-size: 16.5px; }

/* Staff */
.staff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.staff article .arch { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.staff h3 { margin-bottom: 2px; }
.staff .role { color: var(--muted); margin-bottom: 10px; font-size: 16px; }
.staff p { font-size: 16.5px; }
.staff a { font-size: 16px; }

/* Forms */
.form label { display: block; font-weight: 600; font-size: 15.5px; color: var(--navy); margin-bottom: 16px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; font: 400 17px/1.4 var(--sans); padding: 12px 14px; border: 1px solid #c9d0dc; border-radius: 6px; background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form__note { font-size: 15px; color: var(--muted); margin: 12px 0 0; }
.calendly-inline-widget { min-width: 320px; height: 760px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }

/* Closing call */
.close { background: var(--navy); color: #d9e0ee; padding: clamp(56px, 7vw, 96px) 0; }
.close h2 { color: var(--white); max-width: 760px; }
.close p { max-width: 640px; color: #c3cce0; }

/* Footer */
.ftr { background: var(--navy); color: #c8d1e3; padding: 64px 0 28px; font-size: 16px; }
.ftr a { color: var(--white); text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ftr__brand img { height: 52px; width: auto; margin-bottom: 22px; }
.ftr__brand p { max-width: 420px; }
.ftr__contact { line-height: 1.7; }
.ftr__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ftr h3 { color: var(--white); font-family: var(--sans); font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin: 0 0 8px; }
.ftr__notice { font-size: 14px; color: #93a0ba; margin: 28px 0; max-width: 980px; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14.5px; color: #93a0ba; }
.mbar { display: none; }

/* Reveal animation (GSAP sets the final state; no JS = visible) */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); }
html.js .revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1180px) {
  .hdr__phone { display: none; }
}
@media (max-width: 1000px) {
  :root { --hdr: 68px; }
  .hdr__logo img { height: 40px; }
  .menu-btn { display: flex; }
  .hdr__cta { display: none; }
  .nav { position: fixed; inset: var(--hdr) 0 0 0; z-index: 60; background: var(--paper); overflow-y: auto; padding: 16px var(--gutter) 40px; margin: 0; display: none; }
  body.nav-open .nav { display: block; }
  body.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__top { width: 100%; text-align: left; font-size: 19px; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__top::after { float: right; margin-top: 8px; }
  .nav__item:hover .nav__top, .nav__item:focus-within .nav__top { background: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 6px 0 10px 14px; display: none; }
  .nav__item.open .nav__sub { display: block; }
  .nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { display: none; }
  .nav__item.open:hover .nav__sub, .nav__item.open:focus-within .nav__sub { display: block; }
  .nav__foot { display: grid; gap: 12px; margin-top: 24px; font-weight: 600; }
  .nav__foot .btn { justify-self: start; }
  .split, .hero__grid, .visit__grid, .ftr__top { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .hero__photo { max-height: none; justify-self: stretch; aspect-ratio: 5 / 4; }
  .inner__grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .staff { grid-template-columns: repeat(2, 1fr); }
  .ftr__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .strip, .quotes { grid-template-columns: 1fr; gap: 22px; }
  .strip .photo { aspect-ratio: 4 / 3; }
  .rooms li { grid-template-columns: 1fr; gap: 4px; }
  .tuition-grid, .form__row { grid-template-columns: 1fr; }
  .staff { grid-template-columns: 1fr; }
  .pagehead__photo { aspect-ratio: 4 / 3; }
  .ratio-wide { aspect-ratio: 4 / 3; }
  .btn { width: 100%; }
  .btns { flex-direction: column; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); }
  .mbar a { text-align: center; padding: 15px 10px; font-weight: 600; text-decoration: none; color: var(--navy); }
  .mbar a:last-child { background: var(--gold); }
  .ftr { padding-bottom: 90px; }
  .hdr__in { gap: 14px; }
}
