/* ================================================
   Beyond Young Academy — 2026 Design System
   Community art-and-academics academy · Millburn, NJ
   ================================================ */

:root {
  /* Brand greens — extracted from awning, tablecloth, tinsel */
  --awning:       #1f5b3a;  /* primary green — buttons, headlines, accents */
  --awning-dark:  #14401f;  /* deep green — footer, hover, headlines on light */
  --tablecloth:   #2d7a4a;  /* mid green — gradients, secondary surfaces */
  --tinsel:       #4ea868;  /* bright green — small accents, highlights */

  /* Warm accents */
  --chair-yellow: #f4c842;  /* eyebrow rules, CTA accents, motto */
  --balloon-red:  #e74848;  /* alerts, special callouts (sparingly) */
  --plaza-brick:  #a85a3a;  /* tertiary warm — illustrations, photo treatments */
  --tan:          #c8a675;  /* muted warm neutral */

  /* Ivory / stone / ink neutrals (paper-based) */
  --ivory-50:   #fbf8f1;    /* page background */
  --ivory-100:  #f4efe3;    /* secondary surfaces, inset rows */
  --ivory-200:  #ece5d2;
  --stone-300:  #d9d2be;    /* borders, dividers */
  --stone-400:  #98917f;
  --stone-600:  #7a7363;    /* secondary text */
  --ink-800:    #2a2a24;    /* body text */
  --ink-900:    #15140f;

  /* Type families */
  --font-display: 'Playfair Display', 'Source Serif 4', Georgia, serif;
  --font-serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius — restrained, slightly architectural */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* Shadows — warm-cast, subtle */
  --shadow-sm: 0 1px 2px rgba(20, 64, 31, 0.06);
  --shadow-md: 0 2px 6px rgba(20, 64, 31, 0.08), 0 1px 2px rgba(20, 64, 31, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 64, 31, 0.15);

  --maxw: 1180px;
  --gutter: 48px;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory-50);
  color: var(--ink-800);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--awning-dark);
  margin: 0 0 0.4em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--awning); }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.65rem; line-height: 1.1; }
h4 { font-size: 1.2rem; line-height: 1.2; }

p { margin: 0 0 1em; color: var(--ink-800); }

a { color: var(--awning); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--awning-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Eyebrow with horizontal yellow rules ============ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--awning);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow.with-rules::before,
.eyebrow.with-rules::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--chair-yellow);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--awning);
  color: #fff;
}
.btn-primary:hover {
  background: var(--awning-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--awning-dark);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--ink-900);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--awning-dark);
  border-color: var(--awning-dark);
}
.btn-ghost:hover {
  background: var(--awning-dark);
  color: #fff;
}
.btn-arrow::after { content: "→"; transition: transform 0.18s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============ Top bar ============ */
.topbar {
  background: var(--awning);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 12px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a {
  color: var(--chair-yellow);
  text-decoration: none;
}
.topbar a:hover { color: #fff; }

/* ============ Nav ============ */
.nav {
  background: var(--ivory-50);
  border-bottom: 2px solid var(--awning);
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--awning-dark);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.nav-brand-name small {
  display: block;
  font-style: italic;
  font-size: 11px;
  color: var(--stone-600);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-800);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--awning); }
.nav-links .nav-cta {
  background: var(--awning);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s;
}
.nav-links .nav-cta:hover { background: var(--awning-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--awning-dark);
}

/* ============ Hero (home — full-bleed photo with overlaid text) ============ */
.hero-photo {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
  color: #fff;
  border-bottom: 4px solid var(--awning);
  background:
    linear-gradient(180deg, rgba(10, 30, 15, 0.40) 0%, rgba(10, 30, 15, 0.65) 100%),
    url('photo-storefront.jpg') center/cover no-repeat,
    var(--awning-dark);
}
.hero-photo-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-photo .eyebrow {
  color: var(--chair-yellow);
}
.hero-photo .eyebrow.with-rules::before,
.hero-photo .eyebrow.with-rules::after {
  background: var(--chair-yellow);
}
.hero-photo h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 22px auto 18px;
  max-width: 16ch;
  text-shadow: 0 2px 16px rgba(20, 64, 31, 0.45);
}
.hero-photo h1 em {
  font-style: italic;
  color: var(--chair-yellow);
}
.hero-photo p.lead {
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(20, 64, 31, 0.5);
}

/* ============ Hero (inner pages — ivory text + photo strip below) ============ */
.hero {
  padding: 72px var(--gutter) 56px;
  background: var(--ivory-50);
  text-align: center;
}
.hero h1 {
  font-weight: 500;
  margin: 20px auto 16px;
  max-width: 18ch;
}
.hero p.lead {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-800);
  max-width: 56ch;
  margin: 0 auto;
}
.hero-band {
  height: 480px;
  background: url('photo-art-class.jpg') center/cover no-repeat;
  border-top: 1px solid var(--stone-300);
  border-bottom: 4px solid var(--awning);
  position: relative;
}
.hero-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 64, 31, 0.25));
  pointer-events: none;
}

/* ============ Announcement banner (e.g. school bus, open house) ============ */
.announce {
  background: var(--awning-dark);
  color: #fff;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  border-bottom: 4px solid var(--chair-yellow);
}
.announce-icon {
  font-size: 32px;
  line-height: 1;
}
.announce-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.announce-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chair-yellow);
}
.announce-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}
.announce-title em { font-style: italic; color: var(--chair-yellow); }
.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chair-yellow);
  color: var(--awning-dark);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  white-space: nowrap;
}
.announce-cta:hover {
  background: #fff;
  color: var(--awning-dark);
  transform: translateY(-1px);
}

/* ============ Pathways (home — Tryout / Fall / Summer) ============ */
.pathways {
  padding: 64px var(--gutter) 80px;
  background: var(--ivory-50);
}
.path-header {
  text-align: center;
  margin-bottom: 48px;
}
.path-header h2 {
  margin-top: 12px;
  letter-spacing: -0.012em;
}

.path {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stone-300);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.path:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.path-banner {
  padding: 32px 28px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.path-banner::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.15;
}
.path-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
  position: relative;
}
.path-banner h3 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}
.path-banner h3 em { font-style: italic; }
.path-banner .when {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.9;
  position: relative;
}

.path-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.path-desc {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone-600);
  margin: 0 0 18px;
}
.path-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--awning);
  color: #fff;
  text-align: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: auto;
  transition: background 0.18s;
}
.path-action:hover { background: var(--awning-dark); color: #fff; }

/* Tryout (feature row) */
.path-feature {
  max-width: var(--maxw);
  margin: 0 auto 24px;
  flex-direction: row;
}
.path-feature .path-banner {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  background:
    linear-gradient(to right, rgba(20, 64, 31, 0.85) 0%, rgba(20, 64, 31, 0.55) 100%),
    url('photo-tryout.jpg') center/cover no-repeat,
    var(--awning-dark);
}
.path-feature .path-banner h3 { font-size: 40px; }
.path-feature .path-body {
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 28px 36px;
}
.path-feature .path-desc {
  margin: 0;
  flex: 1;
  font-size: 16px;
  color: var(--ink-800);
}
.path-feature .path-action {
  margin: 0;
  white-space: nowrap;
  padding: 16px 28px;
  flex: 0 0 auto;
  align-self: center;
}

/* Fall + Summer grid */
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: start;
}
.path-fall .path-banner {
  background:
    linear-gradient(to right, rgba(20, 64, 31, 0.78) 0%, rgba(31, 91, 58, 0.55) 100%),
    url('photo-fall-classes.jpg') center/cover no-repeat,
    var(--awning-dark);
}
.path-summer .path-banner {
  background:
    linear-gradient(to right, rgba(244, 200, 66, 0.85) 0%, rgba(244, 200, 66, 0.55) 100%),
    url('photo-summer-camp.jpg') top center/cover no-repeat,
    var(--chair-yellow);
  color: var(--awning-dark);
}
.path-summer .path-banner h3 { color: var(--awning-dark); }
.path-summer .path-action { background: var(--awning-dark); }
.path-summer .path-action:hover { background: var(--ink-900); color: #fff; }

/* Italic emphasis on banner headlines pops as warm gold against green washes */
.path-banner em { color: var(--chair-yellow); font-style: italic; }
/* Summer (yellow wash) keeps em in awning-dark for contrast */
.path-summer .path-banner em { color: var(--awning-dark); }

/* Class row list (used inside Fall + Summer) */
.class-list {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.class-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--ivory-100);
  color: var(--ink-800);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.class-row:hover {
  background: var(--ivory-50);
  border-color: var(--awning);
  color: var(--awning-dark);
}
.class-row .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.class-row .arrow {
  font-size: 14px;
  color: var(--awning);
  font-weight: 600;
}
.badge-new {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--awning);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -1px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--awning-dark);
  color: #fff;
  padding: 48px var(--gutter);
  text-align: center;
}
.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--chair-yellow);
  margin-bottom: 8px;
}
.footer-addr {
  font-family: var(--font-serif);
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 4px;
}
.footer-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 16px;
}
.footer-meta a { color: var(--chair-yellow); }
.footer-meta a:hover { color: #fff; }

/* ============ Inner page hero (about/programs/enrollment/contact) ============ */
.page-hero {
  padding: 64px var(--gutter) 40px;
  background: var(--ivory-50);
  text-align: center;
}
.page-hero .breadcrumb {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: var(--stone-600); }
.page-hero .breadcrumb a:hover { color: var(--awning); }
.page-hero h1 {
  margin: 0 auto 16px;
  max-width: 22ch;
}
.page-hero p.lead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-800);
  max-width: 60ch;
  margin: 0 auto;
}
/* Photo hero variant — used on About page */
.page-hero--photo {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
  color: #fff;
  border-bottom: 4px solid var(--awning);
  background:
    linear-gradient(180deg, rgba(10, 30, 15, 0.40) 0%, rgba(10, 30, 15, 0.65) 100%),
    url('photo-storefront.jpg') center / cover no-repeat,
    var(--awning-dark);
}
.page-hero--photo .inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero--photo .eyebrow { color: var(--chair-yellow); }
.page-hero--photo .eyebrow.with-rules::before,
.page-hero--photo .eyebrow.with-rules::after { background: var(--chair-yellow); }
.page-hero--photo h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 22px auto 18px;
  max-width: 16ch;
  text-shadow: 0 2px 16px rgba(20, 64, 31, 0.45);
}
.page-hero--photo h1 em { font-style: italic; color: var(--chair-yellow); }
.page-hero--photo p.lead {
  color: rgba(255,255,255,0.96);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(20, 64, 31, 0.5);
}

.page-band {
  height: 200px;
  background: var(--awning) center/cover no-repeat;
  border-top: 1px solid var(--stone-300);
  border-bottom: 4px solid var(--awning);
  position: relative;
}
.page-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 64, 31, 0.30));
  pointer-events: none;
}

/* ============ Generic content section ============ */
.section {
  padding: 72px var(--gutter);
}
.section--inset {
  background: var(--ivory-100);
  border-top: 1px solid var(--stone-300);
  border-bottom: 1px solid var(--stone-300);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 { margin-top: 12px; }
.section-head p {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--stone-600);
}

/* ============ About — story / values ============ */
.story {
  max-width: 720px;
  margin: 0 auto;
}
.story p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-800);
  margin-bottom: 1.2em;
}
.story p.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--awning-dark);
  font-style: italic;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.value-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
}
.value-card h3 {
  font-size: 1.25rem;
  color: var(--awning-dark);
  margin-bottom: 8px;
}
.value-card p {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone-600);
  margin: 0;
}

/* ============ Programs — photo wall + studio cards ============ */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ivory-100);
  cursor: zoom-in;
  display: block;
  text-decoration: none;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, filter 0.2s;
}
.photo-tile:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}
.photo-tile .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20, 64, 31, 0.88));
  color: var(--ivory-100);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  padding: 28px 14px 10px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.photo-tile:hover .caption,
.photo-tile:focus-visible .caption { opacity: 1; }
.photo-tile:focus-visible {
  outline: 2px solid var(--awning);
  outline-offset: 2px;
}

.gallery-section { margin-bottom: 56px; }
.gallery-section:last-child { margin-bottom: 0; }
.gallery-section-head {
  text-align: center;
  margin-bottom: 24px;
}
.gallery-section-head h3 {
  font-size: 1.6rem;
  color: var(--awning-dark);
  margin: 6px 0 4px;
}
.gallery-section-head h3 em { font-style: italic; color: var(--awning); }
.gallery-section-head .meta {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--stone-600);
  font-size: 14px;
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 64, 31, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px 80px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--chair-yellow);
  font-size: 14px;
  background: rgba(20, 64, 31, 0.85);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  max-width: 80%;
  text-align: center;
}
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
  font-family: var(--font-sans);
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 540px) {
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.studio-card {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.studio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--awning);
}
.studio-card .pill {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ivory-100);
  color: var(--awning);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.studio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--awning-dark);
}
.studio-card p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-600);
  flex-grow: 1;
  margin-bottom: 16px;
}
.studio-card .ages {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awning);
  font-weight: 600;
}

/* Programs filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid var(--stone-300);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-800);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover {
  border-color: var(--awning);
  color: var(--awning);
}
.filter-btn.active {
  background: var(--awning);
  color: #fff;
  border-color: var(--awning);
}

/* ============ Programs — values with photos ============ */
.values-photo-section { padding: 80px var(--gutter); background: var(--ivory-50, #faf9f6); }
.values-photo-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.values-photo-left { padding-top: 8px; }
.values-photo-left h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-top: 12px; }
.values-photo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-photo-card {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value-photo-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.value-photo-body { padding: 20px 22px 24px; }
.value-photo-body h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--awning-dark);
  margin-bottom: 8px;
}
.value-photo-body p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-600);
  margin: 0;
}

/* ============ Programs — classes sidebar layout ============ */
.classes-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.classes-sidebar { position: sticky; top: 100px; }
.classes-sidebar h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin-bottom: 28px;
  line-height: 1.25;
}
.filter-bar--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 0;
}
.filter-bar--stacked .filter-btn {
  text-align: left;
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

/* Studio cards with photos */
.studio-grid--photo {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
}
.studio-card--photo {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-direction: column;
}
.studio-card-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.studio-card-img .pill {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  background: rgba(255,255,255,0.92);
  color: var(--awning-dark);
  backdrop-filter: blur(4px);
}
.studio-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.studio-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--awning-dark);
}
.studio-card-body p {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--stone-600);
  flex-grow: 1;
  margin-bottom: 14px;
}
.studio-card-body .ages {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awning);
  font-weight: 600;
  margin-top: auto;
}

/* Policy grid */
.policy-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.policy-card {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  padding: 28px 28px 30px;
}
.policy-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--awning-dark);
  margin-bottom: 12px;
}
.policy-card p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-600);
  margin-bottom: 12px;
}
.policy-card ul {
  padding-left: 18px;
  margin: 0;
}
.policy-card ul li {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-800);
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .policy-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============ Programs — enrollment steps section ============ */
.enroll-steps-section { background: var(--ivory-50, #faf9f6); border-top: 1px solid var(--stone-300); }
.enroll-steps-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 320px;
  gap: 48px;
  align-items: start;
}
.enroll-steps-left { padding-top: 8px; }
.enroll-steps-left h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 12px; margin-bottom: 16px; }
.enroll-steps-left p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone-600);
}
.enroll-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: start;
}
.enroll-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.enroll-step-num {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--awning);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
}
.enroll-step-body h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--awning-dark);
  margin-bottom: 4px;
}
.enroll-step-body p {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--stone-600);
  margin: 0;
}
.enroll-steps-cta {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.enroll-steps-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
}

/* btn-outline variant */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--awning);
  color: var(--awning);
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--awning); color: #fff; }

/* ============ Enrollment — grade + week pickers ============ */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.grade-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--ink-800);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.grade-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--awning);
  color: var(--awning-dark);
}
.grade-card::after {
  content: "→";
  position: absolute;
  bottom: 22px;
  right: 24px;
  font-size: 1.3rem;
  color: var(--awning);
  font-weight: 600;
  transition: transform 0.2s;
}
.grade-card:hover::after { transform: translateX(3px); }
.grade-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--awning);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.grade-card:nth-child(1) .grade-badge { background: var(--awning); }
.grade-card:nth-child(2) .grade-badge { background: var(--tablecloth); }
.grade-card:nth-child(3) .grade-badge { background: var(--tinsel); color: var(--awning-dark); }
.grade-card:nth-child(4) .grade-badge { background: var(--awning-dark); }
.grade-card:nth-child(5) .grade-badge { background: var(--chair-yellow); color: var(--awning-dark); }
.grade-card:nth-child(6) .grade-badge { background: var(--plaza-brick); }
.grade-card h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--awning-dark);
}
.grade-card .ages {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--stone-600);
  margin-bottom: 8px;
}
.grade-card .reg {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--awning);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.week-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory-100);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-decoration: none;
  color: var(--ink-800);
  text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.2s;
}
.week-card:hover {
  background: var(--ivory-50);
  border-color: var(--awning);
  color: var(--awning-dark);
  transform: translateY(-2px);
}
.week-card .wknum {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--awning);
  margin-bottom: 6px;
}
.week-card .wkdates {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--awning-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}
.week-card .reg {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awning);
  margin-top: auto;
}

/* Enrollment steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto 40px;
}
.step {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-300);
  position: relative;
}
.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: var(--awning);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.step h4 {
  margin: 8px 0 8px;
  font-size: 1.05rem;
  color: var(--awning-dark);
}
.step p {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--stone-600);
  margin: 0;
}

/* ============ Contact — address card + form + map ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.contact-info dt {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-top: 24px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--awning-dark);
}
.contact-info dd a {
  color: var(--awning-dark);
  text-decoration: none;
}
.contact-info dd a:hover { color: var(--awning); }

.form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-300);
}
.form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--stone-600);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  font: inherit;
  font-family: var(--font-serif);
  background: var(--ivory-50);
  margin-bottom: 16px;
  color: var(--ink-800);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--awning);
  outline-offset: 1px;
  background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; margin-top: 4px; }

.map-embed {
  margin-top: 40px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stone-300);
}
.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .path-feature .path-banner { flex: 0 0 30%; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .topbar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 11px;
  }

  .nav { padding: 14px var(--gutter); }
  .nav-links {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ivory-50);
    padding: 20px;
    border-bottom: 2px solid var(--awning);
    box-shadow: 0 6px 20px rgba(20, 64, 31, 0.12);
    gap: 16px;
    align-items: stretch;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links .nav-cta { text-align: center; justify-content: center; }

  .hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
  .hero p.lead { font-size: 17px; }
  .hero-band { height: 360px; }

  .hero-photo { min-height: 70vh; padding: 60px var(--gutter); }
  .hero-photo h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
  .hero-photo p.lead { font-size: 17px; }

  .announce {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px var(--gutter);
  }
  .announce-text { text-align: center; align-items: center; }
  .announce-title { font-size: 18px; }

  .path-feature {
    flex-direction: column;
  }
  .path-feature .path-banner {
    flex: none;
    min-height: 200px;
  }
  .path-fall .path-banner,
  .path-summer .path-banner { min-height: 200px; }
  .path-feature .path-body {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px 28px 28px;
  }
  .path-feature .path-action { width: 100%; }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .grade-grid { grid-template-columns: 1fr 1fr; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .studio-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .photo-wall { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  /* Programs — stack values + classes layouts on tablet/mobile */
  .values-photo-section { padding: 56px var(--gutter); }
  .values-photo-layout { grid-template-columns: 1fr; gap: 28px; }
  .values-photo-cards { grid-template-columns: 1fr 1fr; }
  .classes-layout { grid-template-columns: 1fr; gap: 32px; }
  .classes-sidebar { position: static; top: auto; }
  .studio-grid--photo { grid-template-columns: 1fr 1fr; }

  /* Programs — stack enrollment-steps 3-col layout on tablet/mobile */
  .enroll-steps-layout { grid-template-columns: 1fr; gap: 32px; }
  .enroll-steps-photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 540px) {
  /* ── Spacing ── */
  .section { padding: 44px var(--gutter); }
  .section--inset { padding: 44px var(--gutter); }
  .site-footer { padding: 36px var(--gutter); }

  /* ── Sections & heads ── */
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15px; }
  .path-header { margin-bottom: 28px; }
  .gallery-section { margin-bottom: 36px; }
  .gallery-section-head h3 { font-size: 1.35rem; }

  /* ── Headings ── */
  h3 { font-size: 1.45rem; }
  .path-banner h3 { font-size: 26px; }
  .path-feature .path-banner h3 { font-size: 30px; }

  /* ── Hero ── */
  .hero { padding: 48px var(--gutter) 40px; }
  .hero-band { height: 260px; }
  .hero-photo { min-height: 60vh; padding: 48px var(--gutter); }
  .hero-photo h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }

  /* ── Page hero (inner pages) ── */
  .page-hero { padding: 40px var(--gutter) 24px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .page-hero p.lead { font-size: 17px; line-height: 1.55; }

  /* ── Pathways / home cards ── */
  .pathways { padding: 44px var(--gutter) 56px; }
  .path-feature .path-banner,
  .path-fall .path-banner,
  .path-summer .path-banner { min-height: 160px; }

  /* ── Grids ── */
  .grade-grid, .values-grid, .studio-grid, .steps {
    grid-template-columns: 1fr;
  }
  /* Keep week-grid at 2 cols — 10 items in 1 col is too long */
  .week-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Class rows ── */
  .class-row .label { font-size: 13px; }

  /* ── Nav brand ── */
  .nav-brand-name { font-size: 16px; }
  .nav-brand-name small { font-size: 10px; }

  /* ── Photo wall ── */
  .photo-wall { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* ── Contact form ── */
  .form { padding: 20px 16px; }

  /* ── Programs ── */
  .values-photo-cards { grid-template-columns: 1fr; }
  .studio-grid--photo { grid-template-columns: 1fr; }
  .enroll-steps-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
