/* ===========================================================
   Shawn VanDiver — shawnvandiver.com
   Built to the Shawn VanDiver Personal Brand Guide:
   Navy / Gold / Ivory / White / Bronze / Hairline Gray
   Display + headline: Source Serif 4 (fallback Georgia)
   Body + UI: Inter (fallback -apple-system/Helvetica/Arial)
   =========================================================== */

:root {
  /* Brand palette, exact hex from brand guide */
  --navy: #0b1f3a;
  --navy-deep: #071527;   /* computed darker shade for gradients/footer, same hue family */
  --navy-mid: #123a63;    /* computed lighter shade for gradients/hover, same hue family */
  --gold: #c8992e;
  --gold-light: #ddb65b;  /* computed lighter tint, used only on navy per brand rule */
  --ivory: #f5f1e8;       /* primary site background */
  --white: #ffffff;       /* alternate background, cards, forms */
  --bronze: #6b5e3c;      /* captions/taglines/meta text on light backgrounds */
  --hairline: #d8d4c8;    /* borders, dividers, rules */

  /* legacy aliases so existing markup keeps working */
  --cream: var(--white);
  --paper: var(--white);
  --line: var(--hairline);
  --ink: #0b1f3a;
  --muted: #5b6372;
  --max: 1120px;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

/* Eyebrow labels default to bronze because gold text on ivory/white
   fails the brand guide's contrast rule. On navy backgrounds (hero,
   page-hero, navy-block, contact-card) it switches to gold below. */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 0.9em;
}
.hero .eyebrow,
.page-hero .eyebrow,
section.navy-block .eyebrow,
.contact-card .eyebrow { color: var(--gold); }

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 62ch;
}
@media (max-width: 600px) {
  .lede { font-size: 1.05rem; }
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 21, 39, 0.97);
  border-bottom: 1px solid rgba(200, 153, 46, 0.35);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img.logo-mark {
  height: 40px;
  width: auto;
  display: block;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

nav.primary-nav a {
  color: rgba(245, 241, 232, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: var(--gold-light);
  border-color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 9px 18px !important;
  border-radius: 3px;
  border: none !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light); border-color: transparent !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(245,241,232,0.3);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  color: var(--ivory);
  font-size: 1.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .nav-wrap { height: 68px; }
  nav.primary-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 6px 20px 20px;
    gap: 0;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    border-bottom: 1px solid rgba(200,153,46,0.35);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  nav.primary-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  nav.primary-nav a:not(.nav-cta) {
    width: 100%;
    padding: 15px 4px;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(245,241,232,0.1);
  }
  nav.primary-nav a:not(.nav-cta):last-of-type { border-bottom: none; }
  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 13px 18px !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 62%, var(--navy-mid) 100%);
  color: var(--ivory);
  padding: 76px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 18%, rgba(200,153,46,0.18), transparent 45%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero .lede { color: #c9d0dc; }

.hero-photo {
  border: 1px solid rgba(200,153,46,0.5);
  padding: 10px;
  background: rgba(255,255,255,0.03);
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}
.role-tags span {
  font-size: 0.82rem;
  border: 1px solid rgba(200,153,46,0.55);
  color: var(--gold-light);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all .15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(245,241,232,0.5); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-solid-navy { background: var(--navy); color: var(--white); }
.btn-solid-navy:hover { background: var(--navy-deep); }

@media (max-width: 820px) {
  .hero { padding: 48px 0 52px; }
  .hero .container { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { max-width: 260px; margin: 0 auto; order: -1; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 480px) {
  .hero { padding: 40px 0 44px; }
}

/* ---------- Sections ---------- */
section { padding: 78px 0; background: var(--ivory); }
section.alt { background: var(--white); }
@media (max-width: 820px) {
  section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
}
section.navy-block {
  background: var(--navy-deep);
  color: var(--ivory);
}
section.navy-block h2 { color: var(--white); }
section.navy-block .lede { color: #c9d0dc; }

.section-head { max-width: 720px; margin-bottom: 42px; }

hr.rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 3px 0 0;
  width: 64px;
  border-top-width: 3px;
  border-color: var(--gold);
}

/* ---------- Cards / Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; gap: 26px; }
}

.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 30px 28px;
  border-radius: 4px;
}
@media (max-width: 480px) {
  .card { padding: 24px 20px; }
}
.card h3 { margin-bottom: 0.5em; }
.card .muted { color: var(--muted); font-size: 0.95rem; }
.card a { color: var(--navy); font-weight: 600; text-decoration: none; }
.card a:hover { color: var(--bronze); }

.stat {
  text-align: left;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}
.stat .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.stat .label { color: var(--muted); font-size: 0.95rem; }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--hairline); margin-left: 6px; padding-left: 30px; }
.timeline-item { position: relative; padding-bottom: 38px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
}
.timeline-item .yr {
  font-family: var(--serif);
  color: var(--bronze);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  display: block;
}

/* ---------- Press list ---------- */
.press-list { border-top: 1px solid var(--hairline); }
.press-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}
.press-item:hover .press-title { color: var(--bronze); }
.press-item .press-date { color: var(--muted); font-size: 0.88rem; }
.press-item .press-outlet {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.press-item .press-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  transition: color .15s ease;
}
.press-item .press-medium {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  height: fit-content;
}
@media (max-width: 700px) {
  .press-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Quote block ---------- */
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--white);
  line-height: 1.45;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote::before { content: "\201C"; color: var(--gold); font-style: normal; }
.pull-quote::after { content: "\201D"; color: var(--gold); font-style: normal; }
.pull-cite {
  text-align: center;
  margin-top: 24px;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ---------- Lists ---------- */
ul.check-list { list-style: none; margin: 0; padding: 0; }
ul.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}
ul.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(245,241,232,0.65);
  padding: 54px 0 34px;
  font-size: 0.92rem;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
footer.site-footer .f-brand img.logo-mark {
  height: 34px;
  width: auto;
  margin-bottom: 12px;
}
footer.site-footer a { color: #c9d0dc; text-decoration: none; }
footer.site-footer a:hover { color: var(--gold-light); }
footer.site-footer .f-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
footer.site-footer .f-col div { margin-bottom: 8px; }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid rgba(245,241,232,0.08);
  font-size: 0.8rem;
  color: rgba(245,241,232,0.45);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 60px 0 56px;
}
.page-hero h1,
.page-hero h2 { color: var(--white); }
.page-hero .lede { color: #c9d0dc; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--navy-deep);
  color: var(--ivory);
  padding: 44px;
  border-radius: 4px;
}
.contact-card a.btn-primary { margin-top: 10px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,241,232,0.12);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .lbl {
  width: 130px;
  flex-shrink: 0;
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.contact-row a { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .contact-card { padding: 28px 22px; }
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }
  .contact-row .lbl { width: auto; }
}

form.simple-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 18px 0 6px;
  color: var(--navy);
}
form.simple-form input,
form.simple-form select,
form.simple-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
form.simple-form textarea { resize: vertical; min-height: 120px; }
form.simple-form input:focus,
form.simple-form select:focus,
form.simple-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.event-fields {
  margin: 22px 0 0;
  padding: 18px 18px 6px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--ivory);
}
.event-fields legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.event-fields .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 560px) {
  .event-fields .field-row { grid-template-columns: 1fr; }
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status { margin-top: 14px; font-size: 0.9rem; min-height: 1.2em; }
.form-status.success { color: #2e7d32; }
.form-status.error { color: #b3261e; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .media-grid { grid-template-columns: 1fr; }
}
.media-item {
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  transition: box-shadow 0.15s ease;
}
.media-item:hover { box-shadow: 0 6px 18px rgba(11,31,58,0.14); }
.media-item img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.media-caption {
  display: block;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

/* ---------- Captioned photos ---------- */
.photo-frame {
  margin: 0;
  border: 1px solid var(--hairline);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-frame figcaption {
  padding: 16px 20px 20px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.photo-frame figcaption .credit {
  display: block;
  margin-top: 6px;
  color: var(--bronze);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) {
  .photo-row { grid-template-columns: 1fr; gap: 24px; }
}

/* utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.88rem; color: var(--muted); }
