/* Wake Vocational Center — design system
   Palette: Deep Navy #123E6F (dominant), Golden Yellow #FDBE3C (main action),
   White. Tints/shades are derived from navy only — no new hues.
   No gradients, no shadows. Depth from spacing, borders, colour blocks. */

:root {
  --navy: #123E6F;
  --navy-dark: #0E2F55;
  --navy-deep: #0A2340;
  --navy-tint: #EAF1F9;
  --navy-line: #C9D8EC;
  --gold: #FDBE3C;
  --gold-soft: #FEF3DC;
  --ink: #1C2B3C;
  --muted: #4A5C70;
  --white: #FFFFFF;

  /* Image slot aspect ratios — adjust each in ONE place when real
     photography arrives. Images crop with object-fit: cover. */
  --ar-hero: 4 / 3;
  --ar-card: 3 / 2;
  --ar-gallery: 4 / 3;
  --ar-avatar: 1 / 1;
  --ar-news: 16 / 10;

  --maxw: 1140px;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
p + p { margin-top: 0.9em; }

a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; }
.prose p { max-width: 68ch; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px; border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-white-line { background: transparent; color: var(--white); border-color: var(--white); }
.btn-white-line:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Signature mark — figure with raised arms, echoes the logo icon */
.mark { width: 33px; height: 26px; flex: none; }
.mark-lg { width: 51px; height: 40px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 2px solid var(--navy);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-logo { width: auto; height: 42px; max-width: 62vw; object-fit: contain; object-position: left center; display: block; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--navy); border-radius: var(--radius);
  background: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--navy); }
.main-nav { display: none; }
.main-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 2px solid var(--navy); padding: 8px 20px 16px;
}
.main-nav a {
  display: block; padding: 12px 4px; min-height: 44px;
  color: var(--navy); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--navy-line);
}
.main-nav a:last-child { border-bottom: 0; }
.main-nav a[aria-current] { font-weight: 800; }
.main-nav a:hover { color: var(--navy-dark); text-decoration: underline; }
.header-cta { display: none; }

/* Photo hero band — background image under a solid navy veil */
.hero-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: var(--navy-deep); /* fallback while image loads */
}
.hero-band .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.hero-band::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(10, 35, 64, 0.72);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 72px 0; color: var(--white); max-width: 44rem;
}
.hero-band.slim .hero-inner { padding: 52px 0; }
.hero-band.tall .hero-inner { padding: 96px 0; }
.hero-inner h1 { color: var(--white); margin-bottom: 14px; }
.hero-inner .lede { font-size: 1.08rem; color: #DCE8F5; max-width: 52ch; margin-bottom: 22px; }
.hero-inner .crumb { color: #B9CBE2; margin-bottom: 10px; }
.hero-inner .crumb a { color: var(--white); }
.hero-band .kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-deep); background: var(--gold);
  padding: 6px 12px; margin-bottom: 16px;
}
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: var(--gold-soft);
  border-left: 4px solid var(--gold); padding: 6px 12px; margin-bottom: 16px;
}
.status-hero { margin-bottom: 12px; }

/* Sections */
.section { padding: 44px 0; }
.section-tint { background: var(--navy-tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #DDE8F5; }
.section-head { margin-bottom: 26px; }
.section-head .mark { margin-bottom: 10px; }
.section-head p.lede { color: var(--muted); max-width: 60ch; margin-top: 8px; }
.section-navy .section-head p.lede { color: #DDE8F5; }

/* Pillar list — alternating rows */
.pillars { display: grid; gap: 18px; }
.pillar {
  display: grid; gap: 16px; background: var(--white);
  border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 20px;
}
.pillar-img { aspect-ratio: var(--ar-card); width: 100%; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.pillar h3 { margin-bottom: 6px; }
.pillar p { color: var(--muted); }
.pillar-foot { margin-top: 10px; }
.status {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; margin-bottom: 8px;
}
.status-starting { background: var(--gold); color: var(--navy-deep); }
.status-planned { background: var(--navy-tint); color: var(--navy); border: 1px solid var(--navy-line); }

/* Story block */
.story {
  border-left: 6px solid var(--gold); padding: 4px 0 4px 20px;
}
.story p { font-size: 1.05rem; }
.story .note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* Roadmap timeline */
.timeline { list-style: none; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 26px 30px;
  border-left: 2px solid var(--navy-line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--navy);
}
.timeline .period { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { color: var(--muted); }

/* Cards */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--navy-line);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.icon-tile {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--navy-tint); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.icon-tile svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.8; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-item { position: relative; border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; background: var(--navy-tint); }
.gallery-item img { aspect-ratio: var(--ar-gallery); width: 100%; object-fit: cover; }
.gallery-cap {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; font-size: 0.85rem; font-weight: 600; color: var(--navy);
  background: var(--white);
}
.badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px; white-space: nowrap;
  background: var(--gold-soft); color: var(--navy); border: 1px solid var(--gold);
}
.badge-real { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* News */
.news-list { display: grid; gap: 18px; }
.news-card {
  display: grid; gap: 14px; border: 1px solid var(--navy-line);
  border-radius: var(--radius); overflow: hidden; background: var(--white);
}
.news-card img { aspect-ratio: var(--ar-news); width: 100%; object-fit: cover; }
.news-body { padding: 0 18px 18px; }
.news-meta { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.news-meta .cat { color: var(--navy); }
.news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }

/* Forms */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 400 1rem/1.4 var(--font);
  color: var(--ink); background: var(--white);
  border: 2px solid var(--navy-line); border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: 0.85rem; font-weight: 700; color: #B3261E; margin-top: 4px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.checks { display: grid; gap: 8px; }
.checks.two { grid-template-columns: 1fr 1fr; }
.check {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 8px 12px; border: 2px solid var(--navy-line); border-radius: var(--radius);
  font-weight: 600; font-size: 0.92rem; cursor: pointer;
}
.check input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.check:has(input:checked) { border-color: var(--navy); background: var(--navy-tint); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 14px 16px; border-radius: var(--radius); font-weight: 600;
  border: 2px solid; margin-bottom: 18px;
}
.alert-ok { background: var(--gold-soft); border-color: var(--gold); color: var(--navy-deep); }
.alert-err { background: #FBEBE9; border-color: #B3261E; color: #7A1B15; }

/* Split layout (form + info column) */
.split { display: grid; gap: 28px; }
.info-block { border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.info-block h3 { margin-bottom: 10px; }
.info-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.info-list a { font-weight: 700; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.slot {
  font-size: 0.85rem; color: var(--muted); font-style: italic;
}

/* Wish list table */
.wish-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wish-table th, .wish-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--navy-line);
  vertical-align: top;
}
.wish-table th { color: var(--navy); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.wish-table td:first-child { font-weight: 700; color: var(--navy); }

/* Values */
.values { display: grid; gap: 16px; }
.value { border-top: 3px solid var(--gold); background: var(--white); padding: 16px 0 4px; }
.section-tint .value { background: transparent; }
.value h3 { margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 0.95rem; }

/* Team */
.team { display: grid; gap: 16px; }
.member { border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.member img { aspect-ratio: var(--ar-avatar); width: 100%; object-fit: cover; }
.member-body { padding: 14px 16px; }
.member-body .role { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); }
.member-body p { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* Policy page */
.policy-body h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.policy-body .updated { font-size: 0.85rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); padding: 44px 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: #DDE8F5; max-width: 56ch; margin: 0 auto 22px; }
.cta-band .btn-row { justify-content: center; }

/* Floating contact buttons */
.float-contact {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy); text-decoration: none;
}
.float-btn svg { width: 26px; height: 26px; }
.float-wa { background: var(--gold); }
.float-wa svg { fill: var(--navy-deep); }
.float-call { background: var(--navy); }
.float-call svg { fill: var(--white); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D8EC; padding: 44px 0 24px; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h3 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #C9D8EC; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.footer-logo-tile {
  display: inline-block; background: var(--white); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 14px;
}
.brand-logo-footer { width: auto; height: 40px; object-fit: contain; display: block; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-reg { font-size: 0.82rem; margin-top: 10px; font-style: italic; }
.footer-bottom {
  border-top: 1px solid #1E4A7E; margin-top: 32px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 0.82rem;
}

/* Admin */
.admin-shell { display: grid; gap: 24px; }
.admin-menu { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-menu a, .admin-menu button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--navy-line); border-radius: var(--radius);
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer;
}
.admin-menu a:hover { background: var(--navy-tint); }
.admin-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.admin-card { border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 18px; }
.admin-card h3 { margin-bottom: 4px; }
.admin-card p { color: var(--muted); font-size: 0.9rem; }
.admin-card .count { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--navy-line); vertical-align: top; }
.admin-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.admin-table textarea { width: 100%; min-height: 420px; font: 400 0.88rem/1.5 ui-monospace, Consolas, monospace; padding: 12px; border: 2px solid var(--navy-line); border-radius: var(--radius); }
.inline-form { display: inline; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }
.login-box { max-width: 400px; margin: 48px auto; }

/* Empty state */
.empty {
  border: 2px dashed var(--navy-line); border-radius: var(--radius);
  padding: 36px 24px; text-align: center; color: var(--muted);
}
.empty h3 { margin-bottom: 6px; }

/* Breadcrumb */
.crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--navy); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

main { min-height: 50vh; }
#form { scroll-margin-top: 90px; }
[id] { scroll-margin-top: 80px; }

/* ------------------------- Tablet (>=600px) ------------------------- */
@media (min-width: 600px) {
  body { font-size: 16.5px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .hero-img { max-width: 560px; }
}

/* ------------------------- Laptop (>=900px) ------------------------- */
@media (min-width: 900px) {
  body { font-size: 17px; }
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 4px; }
  .main-nav a { border: 0; padding: 8px 10px; min-height: 0; font-size: 0.92rem; }
  .main-nav a[aria-current] { border-bottom: 3px solid var(--gold); }
  .header-cta { display: inline-flex; min-height: 40px; padding: 8px 16px; font-size: 0.9rem; margin-left: 8px; }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
  .pillar { grid-template-columns: 220px 1fr; align-items: center; padding: 0; overflow: hidden; }
  .pillar-img { height: 100%; aspect-ratio: auto; }
  .pillar-text { padding: 24px 24px 24px 4px; }
  .split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.two-col { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: repeat(3, 1fr); }
  .news-card.article-index { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .admin-cards { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { gap: 16px; }
  .values { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------- Desktop (>=1200px) ------------------------ */
@media (min-width: 1200px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 1.95rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------- Wide (>=1600px) --------------------------- */
@media (min-width: 1600px) {
  :root { --maxw: 1220px; }
  body { font-size: 17.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
