/*
 * ═══════════════════════════════════════════════════════════
 * SHARED CSS — Montessori Academy
 * public_site/partials/shared.css
 *
 * Contains all design tokens, nav, mobile overlay, and
 * footer styles shared across every page.
 *
 * Link this in <head> on every page that uses loader.js:
 *   <link rel="stylesheet" href="/partials/shared.css" />
 * ═══════════════════════════════════════════════════════════
 */

/* ── GOOGLE FONTS ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --canvas-night: #201F5B;
  --canvas-night-el: #2a2968;
  --canvas-light: #ffffff;
  --canvas-cream: #fbfbf5;
  --surface-dark: #1e2c31;

  --aloe: #c1fbd4;
  --pistachio: #d4f9e0;
  --forest: #1a5c3a;

  --brand-red: #FC4753;
  --brand-red-soft: rgba(252,71,83,0.12);

  --shade-30: #d4d4d8;
  --shade-40: #a1a1aa;
  --shade-50: #71717a;
  --shade-60: #52525b;
  --shade-70: #3f3f46;

  --hairline-lt: #e4e4e7;
  --hairline-dk: #1e2c31;

  --ink: #000000;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255,255,255,0.65);
  --link-cool: #9dabad;
  --navy: #201F5B;

  --r-xs: 4px;  --r-sm: 5px;  --r-md: 8px;
  --r-lg: 12px; --r-xl: 20px; --r-pill: 9999px;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 16px; --sp-4: 24px;
  --sp-5: 32px; --sp-6: 40px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  --shadow-1: 0 1px 2px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.04);
  --shadow-3: 0 8px 8px rgba(0,0,0,0.1), 0 4px 4px rgba(0,0,0,0.1), 0 2px 2px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.1);
  --shadow-4: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; font-weight: 420; line-height: 1.5;
  font-feature-settings: "ss03";
  color: var(--ink); background: var(--canvas-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, .display-xxl, .display-xl, .display-lg, .display-md {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 400; line-height: 1.2;
  letter-spacing: 0.72px; text-transform: uppercase;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--hairline-lt);
  height: 72px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1440px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-5); height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 600; color: var(--on-dark);
  flex-shrink: 0; letter-spacing: 0.3px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--aloe), #88e8a8);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.nav-logo .logo-icon svg { width: 20px; height: 20px; }

.nav-menu {
  display: flex; align-items: center; gap: 18px;
  flex: 1; justify-content: center;
}


/* Nav items + dropdowns */
.nav-item {
  position: relative;
  align-self: stretch; /* stretch to full 72px nav height */
  display: flex;
  align-items: center;
}
.nav-item > a,
.nav-item > button {
  display: flex; align-items: center; gap: 4px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px; font-weight: 600; color: #555;
  padding: 10px 0; border-radius: 0;
  transition: color 0.15s;
  white-space: nowrap; letter-spacing: 1px;
  text-transform: uppercase;
  background: none;
}
.nav-item > a:hover,
.nav-item > button:hover {
  color: var(--navy);
  background: none;
}
.nav-item.active > a,
.nav-item.active > button {
  color: var(--navy);
  font-weight: 700;
  background: none;
}
.nav-item > a.active { color: var(--navy); font-weight: 700; }
.nav-item > button svg { width: 14px; height: 14px; opacity: 0.35; transition: transform 0.2s; }
.nav-item.open > button svg { transform: rotate(180deg); }

/* Dropdown panels — white, matches mega menu style */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 8px 0;
  min-width: 260px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 1000;
}
/* Invisible hover bridge */
.dropdown::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
/* Upward caret — white to match */
.dropdown::after {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #fff;
  border-top: 1px solid #e4e4e7;
  border-left: 1px solid #e4e4e7;
  z-index: -1;
}

.nav-item.open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; font-size: 13px; font-weight: 500;
  color: #52525b;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}
.dropdown a:hover { color: #FC4753; background: rgba(252,71,83,0.04); }
.dropdown a svg { width: 14px; height: 14px; stroke: currentColor; opacity: 0.6; flex-shrink: 0; }
.dropdown-divider { height: 1px; background: #e4e4e7; margin: 6px 0; }

/* Nav CTA — brand red */
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--brand-red); padding: 9px 20px;
  border-radius: var(--r-pill); flex-shrink: 0;
  transition: background 0.15s, transform 0.2s;
  letter-spacing: 0.1px;
}
.nav-cta:hover { background: #e03340; }
.nav-cta:active { transform: scale(0.96); }
.nav-cta svg { width: 16px; height: 16px; }

/* Hamburger */
.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--r-md);
  cursor: pointer; transition: background 0.15s;
}
.nav-ham:hover { background: rgba(0,0,0,0.06); }
.nav-ham span {
  display: block; width: 22px; height: 2.5px;
  background-color: #201F5B;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE OVERLAY ─────────────────────────────────────── */
.mob-overlay {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(32,31,91,0.97); z-index: 999;
  overflow-y: auto; padding: var(--sp-4) var(--sp-5) var(--sp-8);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-overlay.open { transform: translateX(0); }

.mob-group { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mob-group-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 0;
  font-size: 16px; font-weight: 500; color: var(--on-dark);
}
.mob-group-btn svg { width: 18px; height: 18px; opacity: 0.4; transition: transform 0.25s; }
.mob-group.open .mob-group-btn svg { transform: rotate(180deg); }
.mob-sub { display: none; padding: 0 0 12px var(--sp-3); }
.mob-group.open .mob-sub { display: block; }
.mob-sub a {
  display: block; padding: 10px 0;
  font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.6);
  transition: color 0.12s;
}
.mob-sub a:hover { color: var(--on-dark); }
.mob-simple {
  display: block; padding: 16px 0;
  font-size: 16px; font-weight: 500; color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mob-tour-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: var(--sp-5);
  font-size: 16px; font-weight: 600; color: #fff;
  background: var(--brand-red); padding: 14px 24px;
  border-radius: var(--r-pill);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #0f0e2e;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-5); }

/* Brand row */
.footer-brand-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
  padding: var(--sp-7) 0 var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-logo img { height: 48px; width: auto; border-radius: 6px; }
.footer-est-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; color: var(--aloe);
  letter-spacing: 1px; text-transform: uppercase;
  margin-top: 6px;
}
.footer-brand-tagline {
  font-size: 13px; color: rgba(255,255,255,0.45);
  max-width: 320px; line-height: 1.6;
}
/* footer-brand-cta — brand red */
.footer-brand-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-red); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--r-pill);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.footer-brand-cta:hover { background: #e03340; transform: translateY(-1px); }
.footer-brand-cta svg { width: 15px; height: 15px; }

/* Campus grid */
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--sp-4); padding: var(--sp-7) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: stretch;
}
/* Campus card — Shopify surface-elevated-dark: hairline-dk border, rounded.lg (12px) */
.campus-col {
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-lg); /* 12px — rounded.lg */
  border: 1px solid var(--hairline-dk); /* #1e2c31 hairline-dark */
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  display: flex; flex-direction: column;
}
.campus-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.30);
  border-color: rgba(255,255,255,0.12);
}
.campus-col-body {
  padding: 20px 20px 22px;
  display: flex; flex-direction: column;
  flex: 1;
}
/* heading-xl: Inter Tight 500 */
.campus-col h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px; font-weight: 500; color: #fff;
  margin-bottom: 10px; letter-spacing: 0;
  display: flex; align-items: center; gap: 7px;
  font-feature-settings: "ss03";
}
.campus-col h4 svg { width: 14px; height: 14px; color: var(--brand-red); flex-shrink: 0; }
.campus-col .campus-addr {
  font-size: 13px; color: var(--on-dark-soft);
  line-height: 1.65; margin-bottom: 14px;
}
/* campus phone — Shopify hairline pill on dark */
.campus-col .campus-phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline-dk);
  padding: 6px 13px; border-radius: var(--r-pill);
  margin-bottom: 14px;
  transition: background 0.15s;
}
.campus-col .campus-phone:hover { background: rgba(255,255,255,0.10); }
.campus-col .campus-phone svg { width: 13px; height: 13px; color: var(--brand-red); flex-shrink: 0; }
.campus-col .campus-meta {
  font-size: 11px; color: rgba(255,255,255,0.25);
  line-height: 1.65; margin-bottom: 18px;
}
.campus-col .campus-areas {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.campus-col .campus-areas strong {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.campus-col .campus-areas a {
  color: inherit;
  transition: color 0.15s;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.1);
  text-underline-offset: 2px;
}
.campus-col .campus-areas a:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.5);
}
/* campus tour button — brand red pill */
.campus-col .campus-tour-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--brand-red);
  padding: 9px 0; border-radius: var(--r-pill); /* pill shape */
  width: 100%;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.2px;
}
.campus-col .campus-tour-btn:hover { background: #e03340; transform: translateY(-1px); }
.campus-col .campus-tour-btn svg { width: 13px; height: 13px; }

/* Quick links column — eyebrow-cap heading */
.quick-col { padding: var(--sp-4) 0; }
.quick-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 400; color: var(--shade-40);
  margin-bottom: var(--sp-4); letter-spacing: 0.72px; text-transform: uppercase;
}
.quick-col ul { display: flex; flex-direction: column; gap: 10px; }
.quick-col a {
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.6);
  transition: color 0.12s; display: flex; align-items: center; gap: 6px;
}
.quick-col a:hover { color: #fff; }
.quick-col a::before {
  content: '';
  display: inline-block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--brand-red);
  flex-shrink: 0;
}
.quick-col .est-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--sp-5);
  font-size: 11px; font-weight: 600; color: var(--aloe);
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(193,251,212,0.2);
  letter-spacing: 0.8px; text-transform: uppercase;
}

/* Trust badges row */
.footer-trust {
  display: flex; align-items: center; gap: var(--sp-6);
  flex-wrap: wrap;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.trust-badge svg { width: 16px; height: 16px; color: var(--aloe); flex-shrink: 0; }
.trust-badge strong { color: rgba(255,255,255,0.7); font-weight: 600; }

/* Footer legal */
.footer-legal {
  padding: var(--sp-4) 0 var(--sp-5);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-3);
}
.footer-legal p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-legal-links { display: flex; gap: var(--sp-5); }
.footer-legal-links a {
  font-size: 12px; color: rgba(255,255,255,0.25);
  transition: color 0.12s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.6); }

/* ── REVEAL ANIMATION ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nav-menu { display: none; }
  .nav-cta  { display: none; }
  .nav-ham  { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-trust { flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
  .footer-legal { flex-direction: column; text-align: center; padding-bottom: 80px; }
  .footer-legal-links { justify-content: center; }
}
