/*
Theme Name: Bentley for Senate
Theme URI: https://bentleyforsenate.com/
Author: Bentley for Senate
Description: A fast, accessible custom campaign theme for Bentley for U.S. Senate.
Version: 1.3.8
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bentley-campaign
*/

:root {
  --navy: #071b33;
  --red: #c9182b;
  --red-dark: #9e1020;
  --cream: #f7f3ea;
  --white: #ffffff;
  --ink: #142238;
  --muted: #5c6878;
  --line: #d9dee5;
  --max: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.08; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.8rem, 7vw, 6.7rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: .75rem 1rem; margin: 0; background: #fff; z-index: 9999; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 .8rem; color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.lead { max-width: 720px; color: #33445a; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .78rem 1.35rem; border: 2px solid var(--red); border-radius: 3px; background: var(--red); color: #fff; font-size: .88rem; font-weight: 850; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: .2s ease; }
.button:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.button-outline { border-color: rgba(255,255,255,.75); background: transparent; color: #fff; }
.button-outline:hover { border-color: #fff; background: #fff; color: var(--navy); }
.button-light { border-color: #fff; background: #fff; color: var(--navy); }
.button-light:hover { border-color: var(--cream); background: var(--cream); color: var(--red-dark); }

.topline { background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.topline .wrap { padding: .45rem 0; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(7,27,51,.12); background: rgba(255,255,255,.97); }
.header-inner { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex-direction: column; align-items: center; color: var(--navy); font-family: var(--serif); font-size: 1.35rem; font-weight: 800; line-height: 1; text-align: center; text-decoration: none; text-transform: uppercase; }
.brand strong { display: block; margin-top: .38rem; color: var(--red); font-family: var(--sans); font-size: .64rem; letter-spacing: .2em; }
.brand-tagline { display: block; margin-top: .3rem; color: #42546a; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .035em; line-height: 1.2; text-transform: none; }
.primary-nav { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--navy); font-size: .79rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--red); }
.nav-donate { padding: .6rem .85rem; border: 2px solid var(--red); color: var(--red) !important; }
.menu-toggle { display: none; padding: .5rem; border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 800; }

.hero { position: relative; overflow: hidden; background: #b9a193; color: #fff; }
.hero::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to top, rgba(7,27,51,.24), transparent 38%); pointer-events: none; }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.hero-inner { position: relative; z-index: 2; display: flex; min-height: clamp(600px, 66.667vw, 1024px); align-items: flex-end; padding: 4rem 0 1.25rem; }
.hero-copy { width: 100%; }
.hero-mobile-copy { display: none; }
.hero h1 { max-width: 820px; color: #fff; }
.hero h1 span { color: #fff; }
.hero .eyebrow { color: #ffcc70; }
.hero-deck { max-width: 650px; margin-bottom: 2rem; color: rgba(255,255,255,.9); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero .button-outline { border-color: var(--navy); background: rgba(255,255,255,.88); color: var(--navy); }
.hero .button-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--cream); }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 1.35rem 1rem; color: var(--navy); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.trust-item + .trust-item { border-left: 1px solid #d7cdbd; }
.trust-item::before { content: '★'; margin-right: .55rem; color: var(--red); }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.portrait-photo { position: relative; min-height: 460px; overflow: hidden; margin: 0; background: #b9c1ca; box-shadow: 20px 20px 0 var(--red); }
.portrait-photo img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; object-position: center; }
.text-link { font-weight: 850; letter-spacing: .04em; text-decoration-thickness: 2px; text-transform: uppercase; }

.priorities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.priority-card { position: relative; min-height: 300px; padding: 2rem; border-top: 5px solid var(--red); background: #fff; box-shadow: 0 14px 45px rgba(7,27,51,.09); }
.priority-number { display: block; margin-bottom: 3.5rem; color: var(--red); font-family: var(--serif); font-size: 2.5rem; font-weight: 800; }
.priority-card p { color: var(--muted); }

.statement { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 4rem; }
.statement blockquote { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 700; line-height: 1.18; }
.statement-mark { color: rgba(255,255,255,.09); font-family: var(--serif); font-size: 15rem; font-weight: 800; line-height: .8; text-align: center; }

.action-band { background: var(--red); color: #fff; }
.action-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.2rem 0; }
.action-copy { max-width: 720px; }
.action-inner h2 { margin: 0 0 .4em; color: #fff; font-size: clamp(1.8rem, 3vw, 3rem); }
.action-copy p { margin: 0; color: rgba(255,255,255,.92); }
.action-buttons { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: .8rem; }

.page-hero { padding: 5.5rem 0 4rem; background: var(--navy); color: #fff; }
.page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(2.7rem, 6vw, 5rem); }
.content-wrap { width: min(calc(100% - 40px), 850px); margin-inline: auto; padding: 4.5rem 0 6rem; }
.meet-page-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; padding: 4.5rem 0 6rem; }
.meet-page-portrait { position: sticky; top: 2rem; overflow: hidden; margin: 0; box-shadow: 18px 18px 0 var(--red); }
.meet-page-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.meet-page-layout .entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; font-size: 2.4rem; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 5px solid var(--red); color: var(--navy); font-family: var(--serif); font-size: 1.5rem; }
.post-card { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 2rem; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--red); }
.post-meta { color: var(--muted); font-size: .82rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.donate-coming { padding: 2.5rem; border: 1px solid #ccb980; background: #fffaf0; text-align: center; }

.volunteer-form { position: relative; margin-top: 2rem; padding: clamp(1.4rem, 4vw, 2.5rem); border-top: 5px solid var(--red); background: var(--cream); box-shadow: 0 14px 45px rgba(7,27,51,.09); }
.volunteer-form p { margin: 0 0 1.25rem; }
.volunteer-form label, .volunteer-fieldset legend { color: var(--navy); font-weight: 800; }
.volunteer-form input[type="text"], .volunteer-form input[type="email"], .volunteer-form input[type="tel"], .volunteer-form textarea { display: block; width: 100%; margin-top: .4rem; padding: .78rem .85rem; border: 1px solid #aeb7c3; border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.volunteer-form textarea { resize: vertical; }
.volunteer-form input:focus, .volunteer-form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(201,24,43,.22); outline-offset: 1px; }
.volunteer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.volunteer-fieldset { margin: .25rem 0 1.5rem; padding: 0; border: 0; }
.volunteer-fieldset legend { margin-bottom: .8rem; }
.volunteer-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.25rem; }
.volunteer-options label { display: flex; align-items: flex-start; gap: .55rem; font-weight: 650; line-height: 1.35; }
.volunteer-options input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .16rem; accent-color: var(--red); }
.volunteer-required-note { color: var(--muted); font-size: .85rem; }
.volunteer-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.volunteer-notice { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 5px solid var(--navy); background: #eef4f8; }
.volunteer-notice ul { margin-bottom: 0; }
.volunteer-success { border-color: #2b6d45; background: #edf7f0; }
.volunteer-error { border-color: var(--red); background: #fff1f2; }

.site-footer { background: #041325; color: rgba(255,255,255,.74); }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 4rem; padding: 4.5rem 0 3.5rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: rgba(255,255,255,.84); }
.site-footer a:hover { color: #fff; }
.disclaimer { display: inline-block; margin-top: 1rem; padding: .6rem .8rem; border: 1px solid rgba(255,255,255,.65); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom { padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.13); font-size: .76rem; text-align: center; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 1.25rem 20px 1.5rem; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 14px 25px rgba(7,27,51,.12); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li { margin: .8rem 0; }
  .primary-nav a { display: block; }
  .nav-donate { display: inline-block !important; }
  .hero { background: var(--navy); }
  .hero::before { display: none; }
  .hero-art { position: relative; inset: auto; }
  .hero-art img { display: block; width: 100%; height: clamp(440px, 125vw, 680px); object-fit: cover; object-position: center top; }
  .hero-inner { min-height: 0; align-items: stretch; padding: 0; }
  .hero-copy { padding-bottom: 3rem; }
  .hero-mobile-copy { display: block; padding: 2.75rem 0 1.75rem; }
  .hero h1 { max-width: 600px; font-size: clamp(3.1rem, 12vw, 5rem); }
  .hero-deck { max-width: 570px; }
  .hero .button-outline { border-color: rgba(255,255,255,.85); background: transparent; color: #fff; }
  .hero .button-outline:hover { border-color: #fff; background: #fff; color: var(--navy); }
  .split, .statement { grid-template-columns: 1fr; }
  .portrait-photo, .portrait-photo img { min-height: 360px; }
  .priorities-grid { grid-template-columns: 1fr; }
  .priority-card { min-height: auto; }
  .priority-number { margin-bottom: 1.5rem; }
  .statement-mark { display: none; }
  .meet-page-layout { grid-template-columns: 1fr; }
  .meet-page-portrait { position: static; width: min(100%, 520px); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .content-wrap { width: min(calc(100% - 30px), var(--max)); }
  .header-inner { min-height: 74px; }
  .brand { font-size: 1.08rem; }
  .brand-tagline { font-size: .57rem; }
  .hero-inner { min-height: 0; padding: 0; }
  .hero-copy { padding-bottom: 2.75rem; }
  .hero-mobile-copy { padding: 2.35rem 0 1.5rem; }
  .hero-actions .button { width: 100%; }
  .trust-strip .wrap { grid-template-columns: 1fr; padding: .5rem 0; }
  .trust-item { padding: .65rem; }
  .trust-item + .trust-item { border-left: 0; }
  .action-inner { display: block; }
  .action-inner .button { margin-top: 1.25rem; }
  .volunteer-grid, .volunteer-options { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
