/* =========================================================
   [CANDIDATE NAME] FOR SCHOOL BOARD — campaign site styles
   Palette: hunter green + school bus yellow, warm paper ground
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root{
  /* color */
  --bg:        #F7F3E7;   /* warm paper */
  --bg-raised: #FFFEFA;   /* card / panel ground, barely lifted off bg */
  --ink:       #1E2A1E;   /* near-black, green-tinted */
  --ink-soft:  #4B5A4C;   /* secondary text */
  --green:     #2F4F32;   /* hunter green — primary */
  --green-dark:#1F3821;
  --green-tint:#E4EADF;   /* pale green wash for subtle fills */
  --yellow:    #FFC425;   /* school bus yellow — accent */
  --yellow-deep:#E6A800;
  --line:      #DAD3BE;   /* hairline rule */
  --line-strong:#C7BE9F;

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --max-w: 1100px;
  --max-w-text: 640px;
  --radius: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg{ max-width: 100%; display: block; }

a{ color: var(--green); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover{ color: var(--green-dark); }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3{ font-size: 1.25rem; font-weight: 600; }

p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* focus visibility, kept consistent everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 3px solid var(--yellow-deep);
  outline-offset: 2px;
}

/* ---------- masthead / nav ---------- */

.masthead{
  border-bottom: 3px solid var(--green);
  background: var(--bg-raised);
}

.masthead-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.wordmark{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark:hover{ color: var(--green); }

.wordmark .for-line{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: var(--green);
  margin-top: 2px;
}

.wordmark .mark-underline{
  display: inline-block;
  height: 4px;
  width: 46px;
  background: var(--yellow);
  margin-top: 6px;
  border-radius: 2px;
}

nav.primary-nav{
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.primary-nav a{
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius);
}

nav.primary-nav a:hover{
  color: var(--ink);
  background: var(--green-tint);
}

nav.primary-nav a[aria-current="page"]{
  color: var(--green-dark);
  background: var(--green-tint);
}

.nav-toggle{
  display: none;
  background: none;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  display: block;
  width: 20px; height: 2px;
  background: var(--green);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after{
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before{ top: -6px; }
.nav-toggle span::after{ top: 6px; }

@media (max-width: 760px){
  .nav-toggle{ display: block; }
  nav.primary-nav{
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-raised);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 3px solid var(--green);
    padding: 8px 20px 16px;
    gap: 0;
  }
  nav.primary-nav.open{ display: flex; }
  .masthead-bar{ position: relative; flex-wrap: wrap; }
  nav.primary-nav a{ padding: 12px 8px; border-bottom: 1px solid var(--line); }
}

/* ---------- buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.btn-primary{
  background: var(--yellow);
  color: var(--green-dark);
  border-color: var(--yellow);
}
.btn-primary:hover{
  background: var(--yellow-deep);
  border-color: var(--yellow-deep);
  color: var(--green-dark);
}

.btn-secondary{
  background: transparent;
  color: var(--bg-raised);
  border-color: currentColor;
}
.btn-secondary{ color: var(--green); border-color: var(--green); background: transparent; }
.btn-secondary:hover{ background: var(--green); color: #fff; }

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

/* ---------- hero ---------- */

.hero{
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; gap: 36px; }
  .hero-art{ order: -1; max-width: 320px; margin: 0 auto; }
}

.hero-eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-dark);
  background: var(--green-tint);
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.hero h1 em{
  font-style: italic;
  color: var(--green);
}

.hero-dek{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-photo{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line-strong);
}

.hero-photo-underline{
  display: block;
  height: 6px;
  width: 64px;
  background: var(--yellow);
  margin-top: 14px;
  border-radius: 2px;
}

/* ---------- sections ---------- */

section{ padding: 64px 0; }
section + section{ border-top: 1px solid var(--line); }

.section-head{
  max-width: var(--max-w-text);
  margin-bottom: 40px;
}

.section-head p{ color: var(--ink-soft); font-size: 1.05rem; }

/* issue / plank list — ballot-style, not cards */

.plank-list{
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}

.plank{
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.plank-mark{
  width: 14px; height: 14px;
  background: var(--yellow);
  margin-top: 6px;
  border-radius: 2px;
}

.plank h3{ margin-bottom: 6px; }
.plank p{ color: var(--ink-soft); max-width: 60ch; }

/* stat / fact row */

.fact-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}

@media (max-width: 700px){
  .fact-row{ grid-template-columns: 1fr; gap: 24px; }
}

.fact-num{
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.fact-label{ color: var(--ink-soft); font-size: 0.95rem; }

/* two column with rule */

.split{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 820px){
  .split{ grid-template-columns: 1fr; gap: 32px; }
}

/* callout / cta band */

.cta-band{
  background: var(--green);
  color: #fff;
}
.cta-band h2, .cta-band p{ color: #fff; }
.cta-band .section-head p{ color: #E6ECE2; }
.cta-band .btn-secondary{ color: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover{ background: #fff; color: var(--green-dark); }

/* pull quote */

.pull-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--green-dark);
  border-left: 4px solid var(--yellow);
  padding-left: 24px;
  margin: 0 0 24px;
}
.pull-quote cite{
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* forms */

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full{ grid-column: 1 / -1; }

@media (max-width: 600px){
  .form-grid{ grid-template-columns: 1fr; }
}

label{
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select{
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--ink);
}

input:focus, textarea:focus, select:focus{
  border-color: var(--green);
}

textarea{ resize: vertical; min-height: 120px; }

fieldset{
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
}
legend{ font-weight: 600; padding: 0 6px; }

.checkbox-row{
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400;
  margin-bottom: 8px;
}
.checkbox-row input{ width: auto; margin-top: 4px; }

.form-note{
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* endorsement / involvement list */

.option-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 760px){
  .option-grid{ grid-template-columns: 1fr; }
}

.option-card{
  background: var(--bg-raised);
  padding: 32px 28px;
}

.option-card h3{ margin-bottom: 10px; }
.option-card p{ color: var(--ink-soft); margin-bottom: 18px; }

/* footer */

footer.site-footer{
  border-top: 3px solid var(--green);
  background: var(--bg-raised);
  padding: 48px 0 32px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 700px){
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
}

.footer-grid h4{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.footer-grid li{ margin-bottom: 8px; }
.footer-grid a{ color: var(--ink); text-decoration: none; }
.footer-grid a:hover{ color: var(--green); text-decoration: underline; }

.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* full-bleed photo band */

.photo-band{
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.photo-band img{
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}
.photo-band figcaption{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 28px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* placeholder flags — remove once real content is in */
.placeholder-note{
  background: #FFF7DC;
  border: 1px dashed var(--yellow-deep);
  color: #6B5400;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
