/* ==========================================================================
   JUDLAND UNIVERSITY — shared site design system
   Own identity: deep charcoal, oxblood burgundy, and gold — pulled from the
   crest, but pushed toward a bolder, more contemporary register than
   Zagaleta's classic black/gold/silver laurel look, matching the "free
   thinkers, not memorizers" positioning. Tied back to Isengaard only via a
   small footer badge, same as Zagaleta.

   Signature element: the "anchor mark" — a small anchor divider (echoing
   the anchor shared across every Judland-family crest: FC Judland, Judland
   Kidz, Judland University) used between sections instead of Isengaard's
   seal or Zagaleta's laurel. Industries are shown as a tag/pill field
   rather than a card grid — a deliberately looser, more modern texture
   that fits a "30+ industries, pick your own path" story better than a
   rigid grid would.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:         #171310;
  --ink-2:       #0d0b09;
  --charcoal:    #241f1a;
  --burgundy:    #6b1420;
  --burgundy-dark: #4a0e16;
  --burgundy-bright: #8f1c2a;
  --gold:        #bb9450;
  --gold-dim:    #8f7038;
  --gold-bright: #d9b56e;
  --silver:      #9a978f;
  --paper:       #f4f3f0;
  --off-white:   #f9f8f6;
  --border:      rgba(23,19,16,0.12);
  --border-strong: rgba(23,19,16,0.24);
  --text:        #1b1815;
  --text-mid:    #55504a;
  --text-muted:  #8a837a;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', sans-serif;
  --r:           6px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); line-height: 1.65; font-size: 15.5px; background: var(--off-white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
section { padding: 92px 0; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 18px; }
@media (max-width: 720px) { section { padding: 60px 0; } .wrap { padding: 0 22px; } }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100; background: rgba(23,19,16,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(187,148,80,0.2);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; max-width: 1140px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 15.5px; color: #fff; letter-spacing: 0.01em; }
.brand span em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--burgundy); color: #fff !important;
  padding: 10px 20px; border-radius: 3px; font-weight: 700; font-size: 12.5px; text-decoration: none;
  letter-spacing: 0.02em; transition: background 0.15s;
}
.nav-cta:hover { background: var(--burgundy-bright); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
@media (max-width: 940px) {
  .nav-links { position: fixed; top: 63px; left: 0; right: 0; background: var(--ink); flex-direction: column;
    align-items: flex-start; padding: 20px 22px 26px; gap: 18px; border-bottom: 1px solid rgba(187,148,80,0.2);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* ── STATUS RIBBON ── */
.status-bar { background: var(--gold); color: var(--ink); text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; padding: 9px 14px; }
.status-bar span { text-transform: uppercase; letter-spacing: 0.08em; }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  background: radial-gradient(ellipse 900px 520px at 50% -10%, rgba(187,148,80,0.16) 0%, transparent 60%), var(--ink);
  color: #fff; text-align: center; padding: 76px 0 60px;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.15; color: #fff; }
.page-hero p.lead { max-width: 580px; margin: 18px auto 0; font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.65); line-height: 1.8; }

/* ── ANCHOR MARK (signature divider) ── */
.anchor-rule { display: flex; align-items: center; gap: 18px; max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.anchor-rule::before, .anchor-rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.anchor-mark { flex-shrink: 0; width: 30px; height: 30px; color: var(--gold-dim); }

/* ── SECTION HEADERS ── */
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--ink); line-height: 1.2; }
.section-head p { margin-top: 14px; color: var(--text-mid); font-weight: 300; font-size: 15.5px; line-height: 1.75; }
.section-mark { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 14px; }

/* ── FACT GRID ── */
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.fact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 30px 26px; }
.fact-card .mark { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--burgundy); font-weight: 700; margin-bottom: 12px; }
.fact-card h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 8px; }
.fact-card p { font-size: 13.6px; color: var(--text-mid); font-weight: 300; line-height: 1.7; }
@media (max-width: 860px) { .fact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fact-grid { grid-template-columns: 1fr; } }

/* ── PROGRAMS: subject tags + Foundation Stage callout ── */
.subject-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.subject-tag { background: #fff; border: 1px solid var(--border-strong); border-radius: 100px; padding: 8px 18px; font-size: 13px; color: var(--text-mid); font-weight: 500; }
.liberal-note { max-width: 620px; margin: 22px auto 0; text-align: center; font-size: 13.6px; color: var(--text-muted); font-weight: 300; line-height: 1.75; }
.foundation-callout {
  max-width: 780px; margin: 48px auto 0; background: #fff; border: 1px solid var(--border);
  border-left: 3px solid var(--burgundy); border-radius: var(--r); padding: 30px 32px; display: flex; gap: 20px;
}
.foundation-callout svg { flex-shrink: 0; width: 26px; height: 26px; stroke: var(--burgundy); margin-top: 3px; }
.foundation-callout h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 8px; }
.foundation-callout p { font-size: 13.8px; color: var(--text-mid); font-weight: 300; line-height: 1.75; }
.foundation-callout p + p { margin-top: 10px; }

/* ── STATEMENT (free-thinkers manifesto) ── */
.statement-section { background: var(--ink); color: #fff; text-align: center; }
.statement-section blockquote { max-width: 780px; margin: 0 auto; font-family: var(--serif); font-size: clamp(1.3rem, 2.7vw, 1.85rem); line-height: 1.55; font-weight: 600; color: rgba(255,255,255,0.94); }
.statement-section blockquote span { color: var(--gold); }
.statement-section .aside { margin-top: 22px; font-family: var(--sans); font-size: 13.5px; font-weight: 400; color: rgba(255,255,255,0.45); font-style: normal; }

/* ── INDUSTRY TAGS ── */
.tag-field { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.tag-pill {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 30px; padding: 9px 18px;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
}

/* ── TUITION HERO NUMBER ── */
.tuition-figure { text-align: center; }
.tuition-figure .amount { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; color: var(--ink); }
.tuition-figure .per { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 4px; }

/* ── STAT STRIP ── */
.stat-strip { background: var(--charcoal); color: #fff; padding: 52px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-grid .num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--gold-bright); }
.stat-grid .label { margin-top: 6px; font-size: 11.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; } }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; text-align: center; padding: 84px 0; }
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.cta-banner p { margin: 16px auto 32px; max-width: 480px; color: rgba(255,255,255,0.62); font-weight: 300; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-burgundy {
  display: inline-flex; align-items: center; gap: 10px; background: var(--burgundy); color: #fff;
  padding: 15px 32px; border-radius: 3px; text-decoration: none; font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em; transition: background 0.15s; border: none; cursor: pointer; font-family: var(--sans);
}
.btn-burgundy:hover { background: var(--burgundy-bright); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; background: transparent; color: #fff;
  padding: 14px 30px; border-radius: 3px; text-decoration: none; font-weight: 700; font-size: 14px;
  border: 1.5px solid rgba(255,255,255,0.3); transition: border-color 0.15s; letter-spacing: 0.02em;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ── FOOTER ── */
footer { background: var(--ink-2); color: rgba(255,255,255,0.5); padding: 52px 0 28px; font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.09); margin-bottom: 22px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; }
.footer-brand span { font-family: var(--serif); color: #fff; font-weight: 700; font-size: 14.5px; }
.footer-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-col h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-dim); margin-bottom: 12px; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.52); text-decoration: none; margin-bottom: 8px; font-size: 13px; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,0.32); font-size: 12px; align-items: center; }
.isengaard-badge { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.isengaard-badge img { width: 16px; height: 16px; opacity: 0.85; }
.isengaard-badge:hover { color: rgba(255,255,255,0.7); }

/* ── FORM ELEMENTS ── */
.field-group { margin-bottom: 20px; }
.field label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 7px; }
.field .req { color: var(--burgundy); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; background: #fff; border: 1.5px solid var(--border-strong); border-radius: 6px;
  padding: 13px 14px; font-size: 14.5px; font-family: var(--sans); color: var(--text); transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-dim); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { font-size: 11.5px; color: #a33a2c; margin-top: 5px; display: none; }
.field-error.show { display: block; }
.field input.error, .field textarea.error, .field select.error { border-color: #a33a2c; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 300; line-height: 1.6; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.confirm-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 2px 0; }
.confirm-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--burgundy); flex-shrink: 0; cursor: pointer; }
.confirm-check span { font-size: 12.8px; color: var(--text-mid); font-weight: 300; line-height: 1.55; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 36px; }
.btn-submit-full { width: 100%; padding: 15px; justify-content: center; }
.success-note { display: none; text-align: center; padding: 20px 0; }
.success-note.visible { display: block; }
.success-note h3 { font-family: var(--serif); color: var(--ink); font-size: 20px; margin-bottom: 10px; }
.success-note p { color: var(--text-mid); font-size: 14px; font-weight: 300; }

/* ── UTILITY ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 2px; }
