/* ============================================================
   Iowa AT PAC — site styles
   Palette and type are centralized here. To match an exact
   brand color, change the hex values in :root below.
   ============================================================ */

:root {
  --navy:        #0e2a47;
  --navy-deep:   #091d33;
  --navy-soft:   #1b3a5c;
  --red:         #b3122b;
  --red-dark:    #8e0f22;
  --gold:        #c89b3c;
  --cream:       #f8f6f0;
  --paper:       #ffffff;
  --ink:         #182230;
  --slate:       #52607a;
  --line:        #e4ddcf;
  --line-dark:   rgba(255,255,255,.16);

  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,32,55,.06), 0 10px 30px rgba(16,32,55,.08);
  --shadow-lg: 0 20px 55px rgba(16,32,55,.16);

  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ============================================================
   Header + navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.22rem; color: var(--navy); letter-spacing: -.01em; }
.brand-text span { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.brand-logo { height: 50px; width: auto; display: block; }
.footer-logo-chip { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); }
.footer-logo-chip img { height: 42px; width: auto; display: block; }

.nav-toggle {
  display: none; align-items: center; gap: .5em;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  padding: .6em 1em; border-radius: 10px;
}

.site-nav .nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .98rem; }
.site-nav > .nav-list > li { position: relative; }
.site-nav > .nav-list > li > a {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .6em .85em; border-radius: 9px;
}
.site-nav > .nav-list > li > a:hover,
.site-nav > .nav-list > li.is-current > a { background: var(--cream); color: var(--navy-deep); }

.has-sub > a::after {
  content: ""; width: 7px; height: 7px; margin-left: .15em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6;
}

.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  list-style: none; margin: 0; padding: 8px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: block; padding: .6em .7em; border-radius: 8px; color: var(--ink); font-weight: 600; }
.sub a:hover { background: var(--cream); color: var(--navy); }

.nav-cta { background: var(--red); color: #fff !important; padding: .62em 1.15em !important; border-radius: 999px; }
/* Keep the Contribute pill red and legible in every state: hover, focus,
   and on the Contribute page itself. These selectors are scoped to the nav so
   they outrank the generic nav-link hover/current styles. */
.site-nav > .nav-list > li > a.nav-cta:hover,
.site-nav > .nav-list > li > a.nav-cta:focus,
.site-nav > .nav-list > li.is-current > a.nav-cta {
  background: var(--red-dark);
  color: #fff !important;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(90deg, rgba(9,29,51,.94) 0%, rgba(11,34,56,.82) 48%, rgba(11,34,56,.55) 100%),
    url("../images/capitol.jpg");
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.hero-inner { position: relative; z-index: 1; padding: 86px 0 94px; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin-bottom: .35em; }
.hero p.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ============================================================
   Sections + layout helpers
   ============================================================ */
.section { padding: 76px 0; }
.section.tight { padding: 56px 0; }
.section.cream { background: var(--cream); }
.section.paper { background: var(--paper); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h1, .section.navy h2, .section.navy h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display:inline-block; font-size:.76rem; font-weight:700; letter-spacing:.13em;
  text-transform:uppercase; color: var(--red); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--slate); font-size: 1.1rem; margin: 0; }

.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 22px; border-radius: 3px; }
.center .rule { margin-left: auto; margin-right: auto; }

.lede { font-size: 1.22rem; line-height: 1.6; color: var(--navy-soft); }
.prose { max-width: 70ch; }
.prose p { color: #33404f; }

/* ---------- cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
  text-decoration: none; color: inherit;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .photo { aspect-ratio: 16 / 10; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin-bottom: .35em; }
.card-body p { color: var(--slate); margin: 0 0 1.1em; }
.card-link { margin-top: auto; font-weight: 700; color: var(--red-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.card-link::after { content: "\2192"; transition: transform .15s ease; }
a.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- photo placeholder system ----------
   <img> loads a real photo when present in /images.
   If the file is missing, JS adds .is-empty and a styled
   placeholder shows instead. Drop real photos in /images
   with the documented names and they appear automatically. */
.photo { position: relative; background: linear-gradient(150deg, var(--navy-soft), var(--navy-deep)); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-empty { display: grid; place-items: center; }
.photo.is-empty::before {
  content: attr(data-label); color: rgba(255,255,255,.85); font-family: var(--font-body);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 14px 18px; max-width: 90%;
}
.photo.is-empty::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background: radial-gradient(400px 200px at 30% 20%, rgba(200,155,60,.6), transparent 60%);
}

/* ---------- split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }

/* ---------- statement blocks ---------- */
.statement { max-width: 72ch; }
.statement + .statement { margin-top: 48px; }

/* ---------- priorities / feature list ---------- */
.stack { display: grid; gap: 20px; }
.feature {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.feature .num {
  width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
}
.feature h3 { margin-bottom: .3em; font-size: 1.22rem; }
.feature p { margin: 0; color: var(--slate); }

/* ---------- board grid ---------- */
.board { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px; max-width: 760px; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.member .photo { aspect-ratio: 1 / 1; }
.member-body { padding: 22px; }
.member-body h3 { margin: 0 0 .15em; font-size: 1.3rem; }
.member-body .role { color: var(--red-dark); font-weight: 700; font-size: .92rem; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- event list ---------- */
.events { display: grid; gap: 18px; max-width: 820px; }
.event {
  display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow);
}
.event .date { text-align: center; }
.event .date .m { display:block; font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--red-dark); }
.event .date .d { display:block; font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1; }
.event .date .y { display:block; font-size:.82rem; color: var(--slate); }
.event h3 { margin: 0 0 .2em; font-size: 1.22rem; }
.event p { margin: 0; color: var(--slate); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(155deg, var(--navy), var(--navy-deep)); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 56ch; margin: 0 auto 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- forms / embeds / notices ---------- */
.form-embed { max-width: 760px; margin: 0 auto; }
.form-embed iframe { width: 100%; min-height: 1100px; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-placeholder { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper); padding: 54px 28px; text-align: center; color: var(--slate); }
.form-placeholder p { margin: 0 0 .6em; }
.notice { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }

/* ============================================================
   Silent auction (interactive)
   ============================================================ */
.muted { color: var(--slate); }
.linklike { background: none; border: 0; color: var(--red-dark); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

.auction-status { margin-bottom: 22px; }
.auc-banner { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; padding: .7em 1.2em; border-radius: 999px; font-size: .98rem; }
.auc-banner.open { background: #e7f4ea; color: #1c6b36; }
.auc-banner.soon { background: #fff4df; color: #8a6414; }
.auc-banner.closed { background: #f6e3e3; color: var(--red-dark); }
.auc-banner.draft { background: #eef1f6; color: #44506a; }
.auc-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ea05a; box-shadow: 0 0 0 0 rgba(46,160,90,.6); animation: aucpulse 2s infinite; }
@keyframes aucpulse { 70% { box-shadow: 0 0 0 7px rgba(46,160,90,0); } 100% { box-shadow: 0 0 0 0 rgba(46,160,90,0); } }

.auction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.auction-signin { margin-top: 22px; text-align: center; color: var(--slate); }

.auc-item { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.auc-photo { aspect-ratio: 4 / 3; background: linear-gradient(150deg, var(--navy-soft), var(--navy-deep)); position: relative; }
.auc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auc-photo.is-empty { display: grid; place-items: center; }
.auc-photo.is-empty::before { content: attr(data-label); color: rgba(255,255,255,.9); font-weight: 700; font-size: .95rem; text-align: center; padding: 16px; }
.auc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.auc-body h3 { font-size: 1.2rem; margin: 0 0 .3em; }
.auc-desc { color: var(--slate); font-size: .95rem; margin: 0 0 1em; }
.auc-high { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-top: auto; }
.auc-sub { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--slate); font-weight: 600; }
.auc-lead { display: inline-block; margin: 8px 0; font-size: .8rem; font-weight: 700; color: #1c6b36; background: #e7f4ea; padding: .25em .7em; border-radius: 999px; }
.auc-item .btn { margin-top: 14px; justify-content: center; }

/* modal */
.auc-modal-backdrop { position: fixed; inset: 0; background: rgba(9,20,35,.55); display: grid; place-items: center; padding: 20px; z-index: 1000; }
.auc-modal { position: relative; background: var(--paper); width: 100%; max-width: 420px; border-radius: 16px; padding: 30px 28px 26px; box-shadow: var(--shadow-lg); }
.auc-modal h3 { margin: 0 0 .4em; font-size: 1.35rem; }
.auc-modal label { display: block; font-size: .8rem; font-weight: 700; color: var(--slate); margin: 14px 0 5px; }
.auc-modal input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff; }
.auc-modal-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--slate); cursor: pointer; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-msg { min-height: 1.2em; margin: 12px 0 0; font-size: .9rem; color: var(--red-dark); }
.btn-ghost-dark { background: #eef0f4; color: var(--ink); }
.btn-ghost-dark:hover { background: #e3e7ee; }

.auc-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 1100; max-width: 90vw; text-align: center; }
.auc-toast.show { opacity: 1; }

@media (max-width: 900px) { .auction-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .auction-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 60px 24px 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer p { color: rgba(255,255,255,.72); }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: rgba(255,255,255,.6); }
.footer-brand p { margin-top: 16px; max-width: 42ch; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 20px 24px 30px; border-top: 1px solid var(--line-dark); font-size: .86rem; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.6); }
.footer-bottom .disclaimer { font-weight: 700; color: rgba(255,255,255,.8); }

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-head { background: linear-gradient(155deg, var(--navy), var(--navy-deep)); color: #fff; padding: 64px 0 56px; }
.page-head .eyebrow { color: var(--gold); }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: 0; }
.page-head p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 14px 0 0; font-size: 1.1rem; }
.breadcrumb { font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .28s ease; padding: 0;
  }
  .site-nav.open { max-height: 80vh; overflow-y: auto; }
  .site-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; }
  .site-nav > .nav-list > li > a { padding: .85em .6em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-sub > a::after { display: none; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 4px 0 10px 14px; min-width: 0;
  }
  .sub a { padding: .55em .6em; color: var(--slate); }
  .nav-cta { margin-top: 12px; text-align: center; justify-content: center; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 22px; }
  .event { grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; }
  .brand-text span { display: none; }
  .brand-logo { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
