/* ===========================================================
   Osborne for Speaker — osborneforspeaker.com
   Brand matched to osborne4nh.com:
   White base · Red #c6312d accent · Navy #1e3557 headings · gray body
   Fonts: Montserrat (headings) + PT Sans (body)
   =========================================================== */

:root {
  --navy: #1e3557;
  --navy-deep: #152d51;
  --red: #c6312d;
  --red-dark: #a8261f;
  --white: #ffffff;
  --paper: #f7f8fa;
  --ink: #313131;
  --gray: #5a5a5a;
  --line: #e2e6ec;
  --maxw: 1140px;
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red-dark); }

h1,h2,h3,h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.center { text-align: center; }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 8px; }
.section-sub { color: var(--gray); font-size: 1.1rem; max-width: 720px; margin-bottom: 8px; }
.center .section-sub { margin-left: auto; margin-right: auto; }
.kicker {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; color: var(--red); margin-bottom: 12px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 13px 26px; border-radius: 3px; border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #f0f0f0; color: var(--navy); }

.readmore { font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.readmore::before { content: "›"; font-size: 1.3rem; line-height: 1; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav .logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links > li > a {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--navy); text-transform: capitalize;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--red); }
.nav-links .nav-cta { background: var(--red); color: #fff !important; padding: 11px 20px; border-radius: 3px; text-transform: uppercase; letter-spacing: .03em; font-size: .85rem; }
.nav-links .nav-cta:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero (photo + logo overlay + form card) ---------- */
.hero { position: relative; background: var(--navy); }
.hero-media { position: relative; height: 540px; overflow: hidden; }
.hero-media img.bg { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,22,42,.96) 0%, rgba(11,22,42,.82) 40%, rgba(11,22,42,.58) 70%, rgba(11,22,42,.4) 100%),
  linear-gradient(0deg, rgba(11,22,42,.55) 0%, rgba(11,22,42,.2) 55%, rgba(11,22,42,.3) 100%); }
.hero-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-overlay .wrap { width: 100%; }
.hero-overlay .logo-mark { max-width: 440px; margin-bottom: 22px; }
.hero-overlay h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 560px; margin-bottom: 10px; }
.hero-overlay p { color: #e7ecf5; font-size: 1.15rem; max-width: 520px; }

/* form card overlapping hero bottom */
.hero-form { position: relative; z-index: 3; margin-top: -70px; }
.form-card { background: #fff; border-radius: 6px; box-shadow: 0 18px 50px rgba(16,36,68,.18); padding: 30px 34px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.form-card .field { display: flex; flex-direction: column; gap: 6px; }
.form-card label { font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.form-card input { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #cdd4df; border-radius: 3px; font-family: var(--font-body); font-size: 1rem; }
.form-card input:focus { outline: none; border-color: var(--red); }
.form-card .btn { height: 46px; }

.signup-thanks { grid-column: 1 / -1; text-align: center; padding: 6px 4px; }
.signup-thanks .check { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.endorse-check { display: flex; gap: 13px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; cursor: pointer; }
.endorse-check input[type="checkbox"] { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--red); cursor: pointer; }
.endorse-check span { color: var(--ink); line-height: 1.5; }
.endorse-check small { color: var(--gray); font-size: .86rem; }
.signup-thanks h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 6px; }
.signup-thanks p { color: var(--gray); font-size: 1rem; margin: 0; }

/* ---------- Intro / two-column ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: .85fr 1.15fr; }
.split.reverse .col-img { order: -1; }
.col-img img { border-radius: 6px; box-shadow: 0 12px 34px rgba(16,36,68,.14); }
.prose p { margin-bottom: 16px; font-size: 1.06rem; }
.prose .lead-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.prose .lead-name small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--gray); font-size: .9rem; }

/* ---------- Record list ---------- */
.record-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 28px; }
.record-item { padding-left: 26px; position: relative; }
.record-item::before { content: "›"; position: absolute; left: 0; top: -2px; color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.record-item strong { color: var(--navy); font-family: var(--font-head); }

/* ---------- Red "Join the Effort" band ---------- */
.band { background: var(--red); color: #fff; padding: 58px 0; }
.band.tight { padding: 58px 0; }
.band h2 { color: #fff; }
.band-head { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-transform: uppercase; letter-spacing: .03em; }
.band-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 26px; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost-white:hover { background: #fff; color: var(--red); }
.tiers { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.tier {
  background: #fff; color: var(--red);
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  text-transform: uppercase; letter-spacing: .03em;
  padding: 14px 26px; border-radius: 4px; line-height: 1;
  border: 2px solid #fff;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.tier:hover { background: transparent; color: #fff; transform: translateY(-2px); }

/* ---------- Vision planks (clean editorial list, no cards) ---------- */
.planks { margin-top: 36px; border-top: 1px solid var(--line); }
.plank { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: baseline; padding: 30px 4px; border-bottom: 1px solid var(--line); }
.plank .n { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; color: var(--red); line-height: 1; }
.plank h3 { font-size: 1.3rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .02em; }
.plank p { font-size: 1.06rem; }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.news-card:hover { box-shadow: 0 14px 34px rgba(16,36,68,.13); transform: translateY(-4px); }
.news-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { font-family: var(--font-head); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 10px; }
.news-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.news-card p { font-size: .98rem; margin-bottom: 16px; }
.news-card .readmore { margin-top: auto; }

/* page hero (interior pages) — photo visible up top, title on a dark base */
.page-hero { position: relative; min-height: 400px; display: flex; align-items: flex-end;
  background-color: var(--navy); background-size: cover; background-position: center 20%;
  color: #fff; text-align: center; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(13,26,48,.10) 0%, rgba(13,26,48,.18) 35%, rgba(13,26,48,.72) 80%, rgba(13,26,48,.88) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 38px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.page-hero p { color: #f0f3f9; margin-top: 8px; font-size: 1.1rem; text-shadow: 0 1px 10px rgba(0,0,0,.6); }

/* article */
.article { max-width: 760px; margin: 0 auto; }
.article .meta { color: var(--red); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: 12px; }
.article h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.article img.lead { border-radius: 6px; margin: 8px 0 26px; }
.article img.lead-sq { width: 300px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; float: left; margin: 6px 24px 14px 0; }
.article p { font-size: 1.08rem; margin-bottom: 18px; }
.note-box { background: var(--paper); border-left: 4px solid var(--red); padding: 16px 20px; font-size: .95rem; border-radius: 4px; margin: 8px 0 26px; }

/* ---------- Footer ---------- */
.foot-band { background: var(--red); color: #fff; padding: 40px 0; }
.foot-band .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-band .flogo img { height: 56px; }
.foot-info { text-align: right; }
.foot-info .paidfor { font-size: .9rem; line-height: 1.6; color: #ffe2e0; }
.foot-info .contact { margin-top: 10px; font-family: var(--font-head); font-weight: 700; }
.foot-info .contact a { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 6px; justify-content: flex-end; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.social a:hover { background: rgba(255,255,255,.32); color: #fff; }
.social a svg { width: 17px; height: 17px; fill: #fff; display: block; }
.nav-links .nav-donate { color: var(--navy) !important; border: 2px solid var(--red); padding: 9px 18px; border-radius: 3px; text-transform: uppercase; letter-spacing: .03em; font-size: .85rem; }
.nav-links .nav-donate:hover { background: var(--red); color: #fff !important; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.subfoot { background: #fff; border-top: 1px solid var(--line); padding: 18px 0; }
.subfoot .wrap { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--gray); flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
  .nav-links.open { max-height: 420px; }
  .nav-links > li { width: 100%; text-align: center; border-top: 1px solid var(--line); }
  .nav-links > li > a { display: block; padding: 16px; }
  .nav-links .nav-cta { border-radius: 0; }
  .nav-toggle { display: flex; }
  /* Mobile hero: let content define height; image becomes a full background */
  .hero { position: relative; }
  .hero-media { position: absolute; inset: 0; height: 100%; }
  .hero-overlay { position: relative; padding: 34px 0 40px; }
  .hero-overlay .logo-mark { max-width: 250px; margin-bottom: 16px; }
  .hero-overlay h1 { font-size: 1.85rem; }
  .hero-overlay p { font-size: 1.02rem; }
  .hero-cta .btn { padding: 13px 22px; font-size: .88rem; }
  /* on phones the card sits BELOW the hero (no overlap) with breathing room */
  .hero-form { margin-top: 24px; }
  .form-card { grid-template-columns: 1fr; margin-top: 0; padding: 26px 22px; gap: 16px; align-items: stretch; }
  .form-card .field { gap: 7px; }
  .article img.lead-sq { float: none; width: min(300px, 100%); margin: 8px auto 22px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .col-img { order: 0; }
  .record-list, .news-grid { grid-template-columns: 1fr; }
  .foot-band .wrap { flex-direction: column; text-align: center; }
  .foot-info { text-align: center; }
  .social { justify-content: center; }
  .section { padding: 56px 0; }
}
