/* ==========================================================================
   Kentuckiana Academy Grads — Stylesheet
   Edit the colors / fonts in the :root block below to re-theme the whole site.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy: #16294f;
  --navy-deep: #0d1a35;
  --navy-soft: #243b6b;
  --gold: #c9a24b;
  --gold-light: #e6cd8a;
  --gold-dark: #8f6f23;
  --red: #8c3b3b;          /* muted secondary accent */
  --gray: #5a6371;
  --gray-light: #e4e6ea;
  --paper: #f6f4ee;        /* warm off-white for alternating sections */
  --white: #ffffff;
  --ink: #1d2433;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

  /* Layout */
  --max: 1080px;
  --gutter: 1.25rem;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(13, 26, 53, 0.08);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--navy-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul { padding-left: 1.2rem; margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy-deep);
  padding: 0.6rem 1rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--navy-deep);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--white);
}
.brand:hover { color: var(--gold-light); }
.brand img { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.1rem; line-height: 1.15;
}

.nav-toggle {
  display: none;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.35); border-radius: 6px;
  padding: 0.45rem 0.8rem; font: inherit; font-size: 0.95rem; cursor: pointer;
}
@media (max-width: 820px) { .js .nav-toggle { display: inline-block; } }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem;
}
.site-nav a {
  display: block; padding: 0.55rem 0.8rem;
  color: var(--white); text-decoration: none;
  font-size: 0.97rem; border-radius: 6px;
}
.site-nav a:hover { background: rgba(255,255,255,0.1); color: var(--gold-light); }
.site-nav a[aria-current="page"] { color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 6px 6px 0 0; }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .site-nav { flex-basis: 100%; order: 3; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.4rem 0 0.8rem; }
  .site-nav a { padding: 0.8rem 0.6rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0; }
  /* Without JS the links simply wrap under the brand */
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0.2rem 0 0.6rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(201,162,75,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  color: var(--white);
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}
.hero .eyebrow {
  color: var(--gold-light); letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 1rem;
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { font-size: 1.2rem; max-width: 40rem; color: #dfe5f2; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.page-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: clamp(2.2rem, 6vw, 3.6rem) 0;
  border-bottom: 4px solid var(--gold);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: #d5dcec; max-width: 42rem; margin: 0; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.4rem; border-radius: 8px; border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.2rem) 0; }
.section.alt { background: var(--paper); }
.section-head { margin-bottom: 1.8rem; }
.section-head p { color: var(--gray); max-width: 40rem; }
.rule {
  width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1rem;
}

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card.link-card { text-decoration: none; color: inherit; display: block; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.card.link-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(13,26,53,0.14); color: inherit; }
.card .more { color: var(--red); font-weight: 700; font-size: 0.95rem; }

.academy-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.academy-row li {
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; color: var(--navy);
}

/* ---------- Events ---------- */
.event-list { display: grid; gap: 1rem; }
.event {
  display: grid; grid-template-columns: 76px 1fr; gap: 1.1rem;
  background: var(--white); border: 1px solid var(--gray-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.event-date {
  text-align: center; background: var(--navy); color: var(--white);
  border-radius: 8px; padding: 0.55rem 0.2rem; align-self: start;
}
.event-date .mon { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.event-date .day { display: block; font-family: var(--font-head); font-size: 1.85rem; line-height: 1.1; }
.event-date .yr { display: block; font-size: 0.72rem; color: #b9c3dc; }
.event h3 { margin-bottom: 0.2em; }
.event-meta { color: var(--gray); font-size: 0.93rem; margin-bottom: 0.5rem; }
.event-meta .m + .m::before { content: " · "; }
.event p { margin-bottom: 0.5rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; margin-top: 0.3rem; }
.event .rsvp-link { font-weight: 700; font-size: 0.95rem; }
.event .gcal {
  display: inline-block; font-size: 0.88rem; font-weight: 700; text-decoration: none;
  color: var(--navy); background: var(--paper); border: 1.5px solid var(--gold);
  border-radius: 999px; padding: 0.3rem 0.85rem;
}
.event .gcal:hover { background: var(--gold-light); color: var(--navy-deep); }
.event.past { border-left-color: var(--gray-light); box-shadow: none; }
.event.past .event-date { background: var(--gray); }
.tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--paper); color: var(--red); border: 1px solid var(--gray-light);
  border-radius: 4px; padding: 0.1rem 0.45rem; margin-right: 0.4rem; vertical-align: middle;
}
.empty-note { color: var(--gray); font-style: italic; }
.notice {
  background: var(--paper); border-left: 4px solid var(--gold);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}

@media (max-width: 480px) {
  .event { grid-template-columns: 1fr; }
  .event-date { display: flex; gap: 0.5rem; align-items: baseline; justify-content: flex-start; padding: 0.4rem 0.8rem; width: fit-content; }
  .event-date .day { font-size: 1.2rem; }
}

/* ---------- Leadership ---------- */
.people { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.person { text-align: center; background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 1.3rem 1rem; box-shadow: var(--shadow); }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 0.8rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light); display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.5rem; border: 3px solid var(--gold);
}
.person h3 { margin-bottom: 0.1em; font-size: 1.1rem; }
.person .role { color: var(--red); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.person .detail { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* ---------- Mission quote ---------- */
.mission {
  font-family: var(--font-head); font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  color: var(--navy); border-left: 4px solid var(--gold);
  padding: 0.3rem 0 0.3rem 1.2rem; margin: 0 0 1.5rem; line-height: 1.45;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; max-width: 620px; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; color: var(--navy); font-size: 0.97rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.7rem 0.8rem; border: 1.5px solid #b9bfca; border-radius: 8px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-soft); outline: 3px solid rgba(201,162,75,0.5); outline-offset: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--gray); margin-top: 0.25rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: #1f6b3a; }
.form-status.err { color: var(--red); }

.contact-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #cfd7ea; border-top: 4px solid var(--gold); padding: 2.6rem 0 1.6rem; font-size: 0.95rem; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 1.6rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.motto {
  font-family: var(--font-head); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--gold); margin-top: 0.6rem;
}
.disclaimer { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.1rem; font-size: 0.86rem; color: #aab4cc; }
.disclaimer p { margin-bottom: 0.5rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 1.6rem; }
.muted { color: var(--gray); }
.motto-inline { color: var(--gold-dark); font-family: var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card.link-card { transition: none; }
}

@media print {
  .site-header, .site-footer .footer-grid, .hero-actions, .nav-toggle { display: none; }
  body { font-size: 11pt; }
}
