/* ==========================================================================
   Little Rock Montessori School — design system
   Tokens below are THE source. Change a value here, not at a call site.
   --------------------------------------------------------------------------
   COMPONENT INVENTORY — what depends on this file
     .btn / .btn--ghost / .btn--tile ... buttons across header, hero, CTAs
     .card / .card--program / .card--faq ... program cards, FAQ hub cards
     .wj-hero / .wj-hero--arch ......... page + home heroes
     .arch-photo / .quarter / .chevron .. geometric photo-mask motifs
     .wj-visit-tabs ..................... sticky Visit/Apply side tabs
     .wj-site-footer .................... footer + shape motif
   Regenerate the inventory with:
     grep -rho 'class="[^"]*"' --include=*.php . | tr ' ' '\n' | sort | uniq -c | sort -rn
   A count is not decoration: it is what makes deleting a rule visibly
   expensive to whoever is about to.
   ========================================================================== */

:root {
  /* Neutrals */
  --navy:        #16233F;   /* headings, footer, primary dark ground */
  --navy-2:      #223258;   /* secondary dark panel */
  --ink:         #1B2438;   /* body copy */
  --muted:       #55607A;   /* secondary copy on light bg, AA @ 4.5:1 */
  --muted-dark:  #C4CCDE;   /* secondary copy on dark bg */
  --line:        #E2E8F3;   /* hairlines on light bg */
  --line-dark:   rgba(255,255,255,.16);
  --paper:       #FFFFFF;
  --cloud:       #F5F8FC;   /* light section background */
  --cream:       #FEF9F0;

  /* Brand brights — from the school logo. Bright = large text/dark bg only.
     "-ink" = deep variant for small text on light backgrounds (AA 4.5:1+). */
  --sky:         #2E97D4;
  --sky-ink:     #175E82;
  --coral:       #F1592C;
  --coral-ink:   #B23E17;
  --leaf:        #3FA35B;
  --leaf-ink:    #24793E;
  --sun:         #F2B705;
  --sun-ink:     #8A6400;
  --grape:       #8B5FBF;
  --grape-ink:   #5F3E8C;

  --accent:      var(--coral);
  --accent-ink:  var(--coral-ink);

  --radius-sm:   10px;
  --radius:      18px;
  --radius-lg:   32px;
  --shadow:      0 20px 45px -20px rgba(22,35,63,.35);
  --shadow-sm:   0 8px 20px -10px rgba(22,35,63,.25);

  --nav-h: 88px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

html, body { margin: 0; }
* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--cloud { background: var(--cloud); }
.section--navy  { background: var(--navy); color: var(--muted-dark); }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .78rem; color: var(--coral-ink); margin-bottom: .6em;
}
.section--navy .eyebrow { color: var(--sun); }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

/* Skip link */
.wj-skip {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 600;
}
.wj-skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  min-height: 24px;
}
.btn--coral   { background: var(--coral); color: #fff; }
.btn--coral:hover   { background: #d94a22; transform: translateY(-1px); }
.btn--navy    { background: var(--navy); color: #fff; }
.btn--navy:hover    { background: #0f1830; transform: translateY(-1px); }
.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover   { background: rgba(255,255,255,.12); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block   { width: 100%; }
.btn--sm      { padding: 10px 18px; font-size: .88rem; }

/* ---- Header / mega nav ---- */
#wj-mega-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h);
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(6px);
}
#wj-mega-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; max-width: 1400px; }
.wj-nav-primary > li > a { white-space: nowrap; font-size: clamp(.8rem, .35rem + .72vw, .96rem); }
@media (max-width: 1240px) { .wj-nav-cta .wj-phone-wrap { display: none; } }
.wj-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.wj-logo img { height: 67px; width: auto; }
.wj-logo__text { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.wj-nav-primary { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 28px); list-style: none; margin: 0; padding: 0; }
.wj-nav-primary a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: .96rem; padding: 8px 2px;
  border-bottom: 3px solid transparent;
}
.wj-nav-primary a:hover, .wj-nav-primary a[aria-current="page"] { border-bottom-color: var(--coral); }
.wj-nav-primary .has-dropdown { position: relative; }
.wj-dropdown {
  position: absolute; top: 100%; left: 0; background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 10px; min-width: 280px; list-style: none; margin: 8px 0 0;
  display: none;
}
.has-dropdown:hover .wj-dropdown, .has-dropdown:focus-within .wj-dropdown { display: block; }
.wj-dropdown li a { display: block; padding: 10px 12px; border-radius: 8px; border-bottom: none; font-weight: 500; }
.wj-dropdown li a:hover { background: var(--cloud); }
.wj-nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wj-nav-cta .wj-phone { font-weight: 700; color: var(--sky-ink); text-decoration: none; font-size: .92rem; white-space: nowrap; }
#wj-menu-toggle { display: none; }
.wj-hamburger {
  display: none; background: none; border: 2px solid var(--navy); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.wj-hamburger span, .wj-hamburger span::before, .wj-hamburger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); position: relative;
}
.wj-hamburger span::before { position: absolute; top: -6px; }
.wj-hamburger span::after  { position: absolute; top: 6px; }

.wj-mobile-menu { display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: #fff; z-index: 190; overflow-y: auto; }
.wj-mobile-menu .wrap { padding: 24px; }
.wj-mobile-menu ul { list-style: none; margin: 0 0 20px; padding: 0; }
.wj-mobile-menu > .wrap > ul > li { border-bottom: 1px solid var(--line); }
.wj-mobile-menu a { display: block; padding: 16px 4px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 1.05rem; }
.wj-mobile-menu .wj-mobile-sub { padding-left: 16px; }
.wj-mobile-menu .wj-mobile-sub a { font-weight: 500; font-size: .96rem; padding: 12px 4px; }

@media (max-width: 1023px) {
  .wj-nav-primary, .wj-nav-cta .wj-phone-wrap { display: none; }
  .wj-hamburger { display: flex; }
  #wj-menu-toggle:checked ~ .wj-mobile-menu { display: block; }
}
@media (max-width: 780px) {
  .wj-nav-cta .btn { display: none; } /* bottom bar carries Schedule a Tour on mobile */
}

/* ---- Hero ---- */
.wj-hero { position: relative; margin-top: var(--nav-h); min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.wj-hero__media { position: absolute; inset: 0; }
.wj-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.wj-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,45,.35) 0%, rgba(15,23,45,.55) 55%, rgba(15,23,45,.86) 100%); }
.wj-hero__body { position: relative; z-index: 2; width: 100%; padding: 72px 0 64px; }
.wj-hero__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end; }
.wj-hero h1 { color: #fff; margin-bottom: .3em; }
.wj-hero__tagline { font-size: 1.3rem; font-weight: 600; color: var(--sun); margin-bottom: .4em; }
.wj-hero__sub { font-size: 1.08rem; color: #EAF0FB; max-width: 52ch; }
.wj-hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.wj-hero__tiles { display: flex; flex-direction: column; gap: 14px; }
.wj-tile {
  display: block; text-decoration: none; padding: 20px 22px; border-radius: var(--radius); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.wj-tile:hover { transform: translateY(-3px); }
.wj-tile span { display: block; font-family: var(--font-body); font-weight: 400; font-size: .85rem; margin-top: 4px; opacity: .92; }
.wj-tile--coral { background: var(--coral); }
.wj-tile--sky { background: var(--sky); }

/* Page (non-home) hero — shorter */
.wj-page-hero { position: relative; margin-top: 0; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 56px; color: #fff; background: var(--navy); overflow: hidden; }
.wj-page-hero__shapes { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.wj-page-hero .wrap { position: relative; z-index: 2; }
.wj-page-hero h1 { color: #fff; max-width: 46ch; }
.wj-page-hero p { color: var(--muted-dark); max-width: 60ch; font-size: 1.05rem; }

/* ---- Breadcrumb ---- */
.wj-bc { display: block; }

/* ---- Shape motifs ---- */
.shape-arch { border-radius: 50% 50% 0 0 / 60% 60% 0 0; overflow: hidden; }
.shape-circle { border-radius: 50%; overflow: hidden; }
.shape-quarter-tl { border-radius: 100% 0 0 0; }
svg.wj-shape { position: absolute; z-index: 0; }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body .btn { margin-top: auto; align-self: flex-start; }
.card--faq { padding: 22px 24px; }
.card--faq a { color: var(--navy); font-weight: 700; text-decoration: none; }
.card--faq a:hover { color: var(--coral-ink); }

/* ---- Stat / award strip ---- */
.award-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; }
.award-strip img { height: 84px; width: auto; }

/* ---- Campus cards ---- */
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.campus-card { background: var(--cloud); border-radius: var(--radius); padding: 30px; }
.campus-card h3 { color: var(--navy); }
.campus-card .campus-tag { color: var(--sky-ink); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.campus-card iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius-sm); margin-top: 16px; }

/* ---- Tables ---- */
table.wj-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
table.wj-table th, table.wj-table td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
table.wj-table thead th { background: var(--navy); color: #fff; }
table.wj-table tbody tr:nth-child(even) { background: var(--cloud); }
.fee-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin: 1.5em 0; }
.fee-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fee-card h3 { margin-bottom: .2em; }
.fee-card .price { font-family: var(--font-head); font-size: 1.7rem; color: var(--coral-ink); font-weight: 700; }
.fee-card .time { color: var(--muted); font-size: .92rem; margin-bottom: .6em; }

/* ---- Forms ---- */
.wj-form { display: grid; gap: 18px; }
.wj-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0; }
.wj-form legend { font-family: var(--font-head); font-weight: 700; color: var(--navy); padding: 0 8px; }
.wj-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wj-form-row.wj-form-row--name3 { grid-template-columns: 1fr 1fr 100px; }
.wj-form-row.wj-form-row--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.wj-form-row.wj-form-row--sibling { grid-template-columns: 1.4fr .6fr 1fr; }
.wj-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.wj-form input[type=text], .wj-form input[type=email], .wj-form input[type=tel],
.wj-form input[type=date], .wj-form select, .wj-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .98rem; background: #fff; color: var(--ink);
}
.wj-form textarea { min-height: 120px; }
.wj-form .wj-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.wj-form .wj-check input { margin-top: 5px; }
.wj-form small.hint { color: var(--muted); display: block; margin-top: 4px; font-weight: 400; }
.wj-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wj-form-msg { padding: 14px 18px; border-radius: var(--radius-sm); background: #FDECEA; color: #7A1F0E; font-weight: 600; }

/* ---- Visit tabs (sticky, desktop) ---- */
.wj-visit-tabs { position: fixed; right: 0; top: 45%; transform: translateY(-50%); z-index: 150; display: flex; flex-direction: column; }
.wj-visit-tabs a {
  writing-mode: vertical-rl; text-orientation: mixed; text-decoration: none; color: #fff;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; padding: 18px 10px;
  font-size: .88rem;
}
.wj-visit-tabs a:first-child { background: var(--coral); border-radius: 10px 0 0 0; }
.wj-visit-tabs a:last-child { background: var(--navy); border-radius: 0 0 0 10px; }
.wj-visit-bar { display: none; }
@media (max-width: 780px) {
  .wj-visit-tabs { display: none; }
  .wj-visit-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  }
  .wj-visit-bar a { flex: 1; text-align: center; padding: 14px 8px; color: #fff; font-weight: 700; text-decoration: none; font-family: var(--font-head); }
  .wj-visit-bar a:first-child { background: var(--coral); }
  .wj-visit-bar a:last-child { background: var(--navy); }
  body { padding-bottom: 54px; }
}

/* ---- Footer ---- */
.wj-site-footer { background: var(--navy); color: var(--muted-dark); padding: 64px 0 28px; position: relative; overflow: hidden; }
.wj-site-footer a { color: #fff; text-decoration: none; }
.wj-site-footer a:hover { color: var(--sun); }
.wj-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; position: relative; z-index: 1; }
.wj-footer-grid .wj-foot-h { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1em; font-family: var(--font-head); font-weight: 700; }
.wj-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.wj-footer-grid li { margin-bottom: 10px; font-size: .94rem; }
.wj-footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted-dark); position: relative; z-index: 1; }
.wj-footer-shapes { position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; opacity: .12; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--leaf-ink); font-weight: 700; }

@media (max-width: 900px) {
  .wj-hero__grid { grid-template-columns: 1fr; }
  .wj-hero__tiles { flex-direction: row; }
  .card-grid { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; }
  .wj-footer-grid { grid-template-columns: 1fr 1fr; }
  .fee-cards { grid-template-columns: 1fr; }
  .wj-form-row,
  .wj-form-row.wj-form-row--name3,
  .wj-form-row.wj-form-row--3,
  .wj-form-row.wj-form-row--sibling { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wj-footer-grid { grid-template-columns: 1fr; }
  .wj-hero { min-height: 560px; }
}

/* Inline grid-template-columns (set in page markup, and by the editor) must still stack on
   phones: an inline style outranks this sheet, so !important is required here. */
@media (max-width: 900px) {
  .wrap[style*="grid-template-columns"],
  .card-grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
