/* ===================================================================
   GIBSON'S BARBER SCHOOL — /education page layout
   -------------------------------------------------------------------
   Page-specific styles only. All brand chrome (header, brand-pole,
   eyebrow/section-numbers, buttons, marquee, footer, .reveal, tokens)
   is inherited from ../styles.css so this page reads as a continuation
   of the storefront. Everything here is namespaced .edu-*.
   =================================================================== */

/* ── hero: abstract, no literal photo ─────────────────────────────── */
/* This section reads more serious/professional than the storefront, so the
   hero drops the marquee (see index.php) and reduces its photo to an
   extreme out-of-focus warm hue-wash melting into the navy — colour and
   atmosphere, not a picture. Flip to a flat navy hero later by hiding
   .hero-photo entirely. */
.hero-photo {
  overflow: hidden;   /* clip the scaled+blurred img to its panel — without this the scaled
                         image spills past the panel's left edge into the copy area, and since
                         the darkening scrim only covers the panel, that boundary reads as a
                         hard vertical seam. Clipping removes it on both desktop and mobile. */
}
.hero-photo img {
  /* The blur is BAKED into edu-hero-blur.jpg — it is NOT applied live. A CSS
     filter: blur(72px) on the 2MB source made iOS Safari re-compute a huge Gaussian
     every composite frame, which starved the GPU and made the rotating brand-pole skip.
     The static image renders as a plain composite (no per-frame filter), so the pole is
     smooth while the look is identical. scale(1.35) is kept for FRAMING ONLY — it crops
     the baked edges out of frame exactly as before so the tonal regions land unchanged.
     Regenerate (Pillow) if the source photo changes — sigma is element-blur ÷ cover-scale
     (72 ÷ 0.76 ≈ 95 native px):
       im = Image.open("../assets/hero-barber.png").convert("RGB")
       im = im.filter(ImageFilter.GaussianBlur(radius=95))
       im = ImageEnhance.Color(im).enhance(1.18)       # saturate(1.18)
       im = ImageEnhance.Brightness(im).enhance(1.04)  # brightness(1.04)
       im.save("edu-hero-blur.jpg", quality=90, optimize=True, progressive=True) */
  transform: scale(1.35);
}
/* The source photo is very dark (near-black walls/clothing/chair), so a blur of it alone gives
   almost no visible colour — and on mobile the top of the hero maps to the darkest part of the
   image. So we paint the "hue haze" ourselves: a soft brass glow layered ON TOP of the scrim
   (first in the stack = topmost), over the existing navy melt. On-brand, controllable, and
   identical desktop + mobile. */
.hero-photo::after {
  background:
    radial-gradient(62% 55% at 80% 44%, rgba(176, 137, 76, .28), rgba(176, 137, 76, .08) 46%, transparent 72%),
    linear-gradient(90deg, var(--navy-deep) 0%, rgba(13, 24, 32, .86) 16%, rgba(13, 24, 32, .12) 46%, transparent 62%),
    linear-gradient(0deg, rgba(13, 24, 32, .5), transparent 34%);
}
@media (max-width: 1024px) {
  /* full-width panel, copy is bottom-aligned: bloom the brass up top where it's visible, keep
     the bottom dark for legibility (replaces the storefront's near-opaque scrim that hid it). */
  .hero-photo::after {
    background:
      radial-gradient(95% 44% at 60% 24%, rgba(176, 137, 76, .26), rgba(176, 137, 76, .06) 52%, transparent 76%),
      linear-gradient(0deg,
        rgba(13, 24, 32, .94) 0%,
        rgba(13, 24, 32, .78) 30%,
        rgba(13, 24, 32, .5) 66%,
        rgba(13, 24, 32, .3) 100%);
  }
}

/* ── section shells (match the storefront's block rhythm) ─────────── */
.edu-section        { padding-block: clamp(4rem, 9vw, 7.5rem); }
.edu-section--light { background: var(--bone); }
.edu-section--alt   { background: var(--bone-card); border-block: 1px solid var(--line); }
.edu-section--dark  {
  background: var(--navy-deep); color: var(--on-navy);
  box-shadow: inset 0 1px 0 var(--brass);   /* brass hairline = the block seam, no layout shift */
}
.edu-section--dark .eyebrow  { color: var(--on-navy-soft); }
.edu-section--dark h2,
.edu-section--dark h3        { color: var(--on-navy); }
.edu-section--dark .sec-sub  { color: var(--on-navy-soft); }

/* ── 01 · MISSION ─────────────────────────────────────────────────── */
.edu-mission { max-width: 54rem; }
.edu-mission h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; margin: 1.1rem 0 0; }
.edu-lede { color: var(--ink-soft); font-size: 1.12rem; max-width: 46rem; margin: 1.4rem 0 0; }
.edu-mission .chip-list { margin-top: 1.9rem; }

/* ── 02 · PROGRAM ─────────────────────────────────────────────────── */
.edu-program-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start;
}
.edu-prose p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 1.15rem; }
.edu-prose p:last-child { margin-bottom: 0; }

.edu-specs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.edu-specs li {
  background: var(--bone); padding: 1.3rem 1.25rem; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
}
.edu-section--alt .edu-specs li { background: var(--bone-card); }

.edu-spec-k    { font: 500 .64rem/1 var(--m); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.edu-spec-v    { font-family: var(--d); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 0.55vw, 1.85rem); line-height: 1; text-transform: uppercase; }
.edu-spec-note { font: 500 .72rem/1.35 var(--m); color: var(--ink-soft); }
.edu-spec-diploma .edu-spec-v { display: inline-flex; align-items: center; gap: .4rem; }
.edu-spec-badge {
  font-size: clamp(1.1rem, .85rem + .45vw, 1.35rem);
  color: var(--brass);
  font-variation-settings: "FILL" 1, "wght" 500;
  line-height: 1;
}

/* ── 03 · CURRICULUM ──────────────────────────────────────────────── */
.edu-curric {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 1.6rem 1.8rem;
}
.edu-group { border-top: 2px solid var(--brass); padding-top: 1rem; }
.edu-group h3 { font-family: var(--d); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; margin: 0 0 .7rem; letter-spacing: .01em; }
.edu-group ul { list-style: none; margin: 0; padding: 0; }
.edu-group li {
  position: relative; padding: .5rem 0 .5rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: .98rem; color: var(--ink-soft); line-height: 1.4;
}
.edu-group li:last-child { border-bottom: none; }
.edu-group li::before {
  content: ""; position: absolute; left: 0; top: .95rem;
  width: 6px; height: 6px; border-radius: 1px; background: var(--brass);
}

/* ── 04 · INSTRUCTORS (dark) ──────────────────────────────────────── */
.edu-instructor {
  background: var(--navy-card); border: 1px solid var(--navy-line);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 62rem; box-shadow: var(--shadow);
}
.edu-instructor-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.7rem; }
.edu-avatar {
  width: 74px; height: 74px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--d); font-weight: 700; font-size: 1.7rem; letter-spacing: .02em;
  color: var(--brass); background: var(--navy-deep); box-shadow: inset 0 0 0 2px var(--brass);
}
.edu-instructor-head h3 { font-family: var(--d); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; margin: 0; line-height: 1; }
.edu-instructor-role { font: 500 .74rem/1.35 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--brass); margin: .4rem 0 .35rem; }
.edu-instructor-years { font: 500 .66rem/1 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-faint); }
.edu-quote {
  font-family: var(--d); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  text-transform: uppercase; color: var(--on-navy); line-height: 1.05;
  margin: 0 0 1.5rem; padding-left: 1rem; border-left: 3px solid var(--brass);
}
.edu-instructor-bio p { color: var(--on-navy-soft); margin: 0 0 1rem; font-size: 1.02rem; }
.edu-instructor-bio p:last-child { margin-bottom: 0; }
.edu-instructor-note { color: var(--on-navy-soft); font: 500 .96rem/1.65 var(--b); margin: 1.7rem 0 0; max-width: 50rem; }

/* ── 05 · TUITION & SCHEDULE ──────────────────────────────────────── */
.edu-tuition-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.edu-fee-list { list-style: none; margin: 0 0 1.4rem; padding: 0; border-top: 1px solid var(--line); }
.edu-fee-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.edu-fee-list > li > span { font: 500 .84rem/1.2 var(--b); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.edu-fee-list strong { font-family: var(--d); font-weight: 700; font-size: 1.9rem; line-height: 1; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: right; }
.edu-fee-list small { font: 500 .64rem/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.edu-fee-note { font-size: .93rem; color: var(--ink-soft); margin: .5rem 0 0; }
.edu-fee-note strong { font-weight: 600; color: var(--ink); }
.edu-next { margin-top: 2.2rem; padding: 1.4rem 1.6rem; border-left: 3px solid var(--brass); background: var(--bone); border-radius: 0 var(--r) var(--r) 0; }
.edu-section--alt .edu-next { background: var(--bone); }
.edu-next p { margin: 0; color: var(--ink-soft); }
.edu-next strong { color: var(--ink); }

/* ── 06 · ADMISSIONS ──────────────────────────────────────────────── */
.edu-admit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.edu-req h3, .edu-steps h3 { font-family: var(--d); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; margin: 0 0 1rem; }
.edu-check { list-style: none; margin: 0; padding: 0; }
.edu-check li { position: relative; padding: .65rem 0 .65rem 1.9rem; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.edu-check li:last-child { border-bottom: none; }
.edu-check li::before { content: ""; position: absolute; left: .35rem; top: 1.05rem; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.edu-step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.edu-step-list li { position: relative; padding: .75rem 0 .75rem 2.7rem; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); counter-increment: step; }
.edu-step-list li:last-child { border-bottom: none; }
.edu-step-list li::before {
  content: counter(step); position: absolute; left: 0; top: .7rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--brass-soft); color: var(--brass-deep);
  font: 600 .82rem/1.75rem var(--m); text-align: center;
}
.edu-location { display: flex; align-items: center; gap: .6rem; margin: 2.1rem 0 0; font: 500 .96rem/1.4 var(--m); color: var(--ink-soft); }
.edu-location .material-symbols-outlined { color: var(--brass); font-size: 1.3rem; }
.edu-location em { color: var(--ink-faint); font-style: italic; }
.edu-admit-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

/* ── 07 · CONTACT (dark) ──────────────────────────────────────────── */
.edu-contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.field textarea {
  font: 400 1rem/1.5 var(--b); color: var(--on-navy); padding: .85rem .9rem; border-radius: var(--r);
  background: var(--navy-card); border: 1.5px solid var(--navy-line); transition: border-color .2s;
  resize: vertical; min-height: 118px; width: 100%;
}
.field textarea::placeholder { color: var(--on-navy-faint); }
.field textarea:focus { outline: none; border-color: var(--brass); }
.edu-form .field-row { margin-bottom: 1.2rem; }
.edu-form-message { margin-bottom: 1rem; }
.edu-form .toggles { margin-bottom: 1.45rem; }
.edu-form-fine { margin: .95rem 0 0; font: 500 .78rem/1.55 var(--m); color: var(--on-navy-faint); }
.edu-form-done { text-align: center; padding: 2.4rem 0; }
.edu-done-mark { font-size: 2.9rem; color: #211a0e; background: var(--brass); width: 74px; height: 74px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; box-shadow: var(--shadow); }
.edu-form-done h3 { font-family: var(--d); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; color: var(--on-navy); margin: 0 0 .6rem; }
.edu-form-done p { color: var(--on-navy-soft); margin: 0; max-width: 34rem; margin-inline: auto; }

.edu-contact-methods h3 { font-family: var(--d); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; color: var(--on-navy); margin: 0 0 1.3rem; }
.edu-method-list { display: flex; flex-direction: column; gap: 1.05rem; margin-bottom: 1.7rem; }
.edu-method-list a, .edu-method { display: flex; align-items: flex-start; gap: .8rem; color: var(--on-navy-soft); font: 500 .96rem/1.35 var(--m); transition: color .2s; }
.edu-method-list a:hover { color: var(--on-navy); }
.edu-method-list .material-symbols-outlined { color: var(--brass); font-size: 1.35rem; }
.edu-method-list small { display: block; font: 500 .6rem/1 var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-faint); margin-bottom: .3rem; }
.edu-method-list em { font-style: italic; color: var(--on-navy-faint); }

/* disabled placeholder buttons (PDF / links not wired yet) */
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ── footer brand (mirror header stack on dark) ───────────────────── */
.site-footer .brand-name { color: var(--on-navy); }
.site-footer .brand-kicker { color: var(--on-navy-soft); }

@media (max-width: 760px) {
  .site-footer .footer-inner { width: 100%; }
  .site-footer .footer-brand,
  .site-footer .footer-nav,
  .site-footer .socials { max-width: 100%; min-width: 0; }
  .site-footer .footer-nav {
    flex-wrap: nowrap;
    gap: .55rem .7rem;
  }
  .site-footer .footer-nav a {
    font-size: .68rem;
    letter-spacing: .03em;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-base small {
    font-size: .64rem;
    line-height: 1.45;
  }
}

/* ── header shop link (matches footer-nav “The shop ↗”) ───────────── */
.header-actions .ph.shop-link {
  font: 600 .8rem/1 var(--b);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mobile-nav a[href="../"] {
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .edu-program-grid,
  .edu-tuition-grid,
  .edu-admit-grid,
  .edu-contact-grid { grid-template-columns: 1fr; }
  .edu-tuition-grid .visit-hours { max-width: 34rem; }
}
@media (max-width: 480px) {
  .edu-fee-list strong { font-size: 1.6rem; }
  .edu-admit-cta .btn { width: 100%; }
}
