/* ===========================================================
   FCVC Landing Page Stylesheet
   Palette: navy #1a2e5a · gold #c9a227 · red #b22234 (buttons only)
   Rule: WHITE text on navy. GOLD for links/underlines/accents/rules.
         RED only for solid primary buttons (red bg + white text).
   Self-contained, no external fonts/CDNs (Tailscale-only safe).
   =========================================================== */
:root {
  --navy:    #1a2e5a;
  --navy-d:  #14234a;
  --navy-dd: #0f1b39;
  --red:     #b22234;
  --red-d:   #921b2b;
  --gold:    #c9a227;
  --gold-l:  #e2c869;
  --paper:   #f6f5f1;
  --ink:     #1d2433;
  --muted:   #5b6478;
  --line:    #e2e1da;
  --white:   #ffffff;
  --font:    "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif:   "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --shadow-sm: 0 2px 10px rgba(15,27,57,.08);
  --shadow-md: 0 12px 32px rgba(15,27,57,.14);
  --shadow-lg: 0 22px 54px rgba(15,27,57,.22);
  --radius:    14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75; font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { width: min(1040px, 92vw); margin: 0 auto; }
img { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 9px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--navy), var(--navy-d));
  color: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #fff; }
.brand-logo {
  border-radius: 50%; background: #fff; padding: 3px;
  box-shadow: 0 0 0 2px rgba(201,162,39,.7), 0 4px 12px rgba(0,0,0,.3);
  transition: transform .2s ease;
}
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.04); }
.brand-title {
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.18;
  display: block; letter-spacing: .2px; color: #fff;
}
.brand-sub { font-size: .8rem; color: #ffffff; opacity: .85; letter-spacing: .6px; text-transform: uppercase; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.topnav a {
  color: #ffffff; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 9px 14px; border-radius: 8px; transition: background .15s ease, color .15s ease;
}
.topnav a:hover, .topnav a:focus { background: rgba(255,255,255,.14); color: #fff; }
.topnav a.nav-login {
  border: 2px solid var(--gold); color: #fff; font-weight: 700;
}
.topnav a.nav-login:hover, .topnav a.nav-login:focus { background: var(--gold); color: var(--navy-dd); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(201,162,39,.18), transparent 62%),
    linear-gradient(135deg, #14234a 0%, #1a2e5a 58%, #1d3a72 100%);
  color: #fff; border-bottom: 3px solid var(--gold);
}
.hero-inner {
  display: grid; grid-template-columns: 1.55fr .95fr; gap: 42px; align-items: center;
  padding: 74px 0 78px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .88rem; font-weight: 700;
  color: #ffffff; margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--gold); border-radius: 2px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(2.1rem, 4.8vw, 3.3rem); margin: 0 0 18px; line-height: 1.12;
  letter-spacing: -0.4px; max-width: 17ch; text-wrap: balance;
}
.lede { font-size: 1.2rem; color: #ffffff; opacity: .92; max-width: 48ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700;
  text-decoration: none; font-size: .95rem; border: 2px solid transparent;
  transition: transform .14s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(178,34,52,.4); }
.btn-primary:hover { background: var(--red-d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(178,34,52,.5); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.10); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before {
  content: ""; position: absolute; z-index: 0;
  width: clamp(230px, 32vw, 340px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.28), transparent 68%);
  filter: blur(8px);
}
.hero-emblem {
  position: relative; z-index: 1;
  width: clamp(170px, 24vw, 240px); height: auto; border-radius: 50%;
  background: #fff; padding: 8px;
  box-shadow: 0 22px 54px rgba(0,0,0,.5), 0 0 0 3px rgba(201,162,39,.7);
}

/* ---------- Cards ---------- */
.cards { padding: 66px 0 70px; }
.section-title {
  font-family: var(--serif); font-size: 2.1rem; color: var(--navy); margin: 0 0 28px;
  display: inline-block; position: relative; padding-bottom: 12px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px;
  background: var(--gold); border-radius: 3px;
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: var(--radius); padding: 26px 24px 30px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card::after {
  content: "\2192"; position: absolute; right: 18px; bottom: 16px;
  font-size: 1.4rem; color: var(--gold); font-weight: 700;
  opacity: 0; transform: translateX(-6px); transition: opacity .16s ease, transform .16s ease;
}

.card-hero{ border:2px solid var(--gold,#c9a227); box-shadow:0 6px 18px rgba(26,46,90,.12); }
.card-hero h3{ color:var(--navy,#1a2e5a); }

.card:hover, .card:focus-visible {
  transform: translateY(-5px); box-shadow: var(--shadow-lg); border-top-color: var(--gold);
}
.card:hover::after, .card:focus-visible::after { opacity: 1; transform: translateX(0); }
.card h3 { margin: 6px 0 0; font-family: var(--serif); font-size: 1.22rem; color: var(--navy); line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; padding-right: 26px; }
.card-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; padding: 4px 10px; border-radius: 999px; color: #fff;
}
.tag-public { background: #2f7d4f; }
.tag-members { background: var(--gold); color: var(--navy-dd); }
.tag-staff { background: var(--navy); }

/* ---------- Member Login ---------- */
.login {
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.login-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  border-left: 5px solid var(--gold); padding: 18px 26px;
  background: var(--paper); border-radius: 0 12px 12px 0;
}
.login-copy h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); }
.login-copy p { margin: 0; color: var(--muted); max-width: 52ch; }
.login-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Info bar ---------- */
.info {
  background: linear-gradient(180deg, var(--navy-d), #10203f);
  color: #ffffff; padding: 46px 0; border-top: 3px solid var(--gold);
}
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info-block {
  border-top: 3px solid var(--gold);
  background: rgba(255,255,255,.04); border-radius: 0 0 10px 10px; padding: 18px 18px 16px;
}
.info-block h2 {
  font-size: .92rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: #ffffff; margin: 0 0 10px; font-family: var(--serif);
}
.info-block p { margin: 3px 0; font-size: 1.08rem; color: #ffffff; }
.info-block strong { color: #fff; font-size: 1.18rem; font-weight: 800; letter-spacing: .5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dd); color: #ffffff; padding: 30px 0; font-size: .95rem;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap;
}
.footer-emblem {
  border-radius: 50%; background: #fff; padding: 3px; width: 52px; height: 52px;
  box-shadow: 0 0 0 2px rgba(201,162,39,.7);
  flex-shrink: 0;
}
.footer-text { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 260px; }
.footer-brand {
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin: 0;
}
.footer-note { margin: 0; max-width: 74ch; color: #ffffff; opacity: .9; }
.footer-note strong { color: #fff; }
.footer-note a { color: var(--gold-l); text-decoration: underline; }
.footer-private { margin: 4px 0 0; color: var(--gold); font-weight: 600; }
.footer-crisis { margin: 4px 0 0; color: #ffffff; }
.footer-crisis strong { color: var(--gold-l); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 52px 0 58px; }
  .hero-art { order: -1; }
  .eyebrow { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero h1 { max-width: none; }
  .card-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .login-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  /* Fully center the top nav so links read as a clean group, not split left/right */
  .header-inner { justify-content: center; text-align: center; }
  .topnav {
    width: 100%;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 6px;
  }
  .topnav a { padding: 8px 12px; }
  .footer-inner { justify-content: center; text-align: center; }
}
/* Tighten header vertical rhythm on very small screens */
@media (max-width: 440px) {
  .header-inner { padding: 8px 0; }
  .brand-title { font-size: 1.08rem; }
}

/* ---------- Print ---------- */
@media print {
  /* Hide chrome that is not useful on paper */
  .site-header, .topnav, .skip-link, .hero-art, .hero-actions,
  .nav-login, .login { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  /* Hero + info collapse to plain black-on-white */
  .hero { background: none !important; color: #000 !important; border: none !important; }
  .hero h1, .eyebrow, .lede { color: #000 !important; }
  .card, .info { background: #fff !important; color: #000 !important; }
  .card { border: 1px solid #999 !important; box-shadow: none !important; }
  .info-block, .info-block h2, .info-block p, .info-block strong { color: #000 !important; background: none !important; }
  /* Links print black + underlined */
  a { color: #000 !important; text-decoration: underline !important; }
  /* Footer: navy bg + white/gold text would vanish on paper -> invert to black on white */
  .site-footer { background: #fff !important; color: #000 !important; border-top: 2px solid #000 !important; }
  .footer-brand { color: #000 !important; }
  .footer-note, .footer-note strong, .footer-note a,
  .footer-private, .footer-crisis, .footer-crisis strong { color: #000 !important; opacity: 1 !important; }
  /* Show the circular logo on paper */
  .footer-emblem { display: block !important; }
  img { max-width: 100% !important; }
  @page { margin: 1.4cm; }
}

/* Keyboard focus: gold outline */
a:focus-visible, .btn:focus-visible, .nav-login:focus-visible, button:focus-visible { outline:3px solid #c9a227 !important; outline-offset:2px !important; border-radius:4px; }

/* Mobile: shrink oversized hero logo, tighten nav */
@media (max-width: 600px) {
  .hero-emblem { width: 110px !important; height: 110px !important; }
  .topnav { gap: 5px !important; flex-wrap: wrap; justify-content: center; }
  .topnav a { font-size: 12px !important; padding: 5px 8px !important; }
  .hero h1 { font-size: 1.5rem !important; }
  .hero-actions .btn-ghost { display: none; }
}
