/* ============================================================
   Affordable Arizona PAC — Stylesheet
   Neutral, non-partisan palette inspired by the Arizona landscape.
   Edit the variables below to re-theme the entire site at once.
   ============================================================ */

:root {
  /* Color palette — earthy neutrals, intentionally non-partisan */
  --color-bg: #ffffff;
  --color-surface: #f7f5f1;       /* warm off-white (sandstone) */
  --color-border: #e3ded5;
  --color-text: #2b2926;          /* near-black, slightly warm */
  --color-text-muted: #6b665e;
  --color-accent: #0e5b5b;        /* dark teal — primary / structural */
  --color-accent-dark: #073f3f;
  --color-accent-bright: #14938a; /* brighter teal — gradients / highlights */
  --color-accent-soft: #e1eeed;

  --color-secondary: #f4761b;     /* orange — energetic accent */
  --color-secondary-dark: #d35f0c;
  --color-secondary-soft: #fdeada;

  /* Typography */
  --font-heading: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1100px;
  --space: 1rem;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 1.05rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--color-text);
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--surface {
  background: var(--color-surface);
}

.section__intro {
  max-width: 680px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section__intro h1::after,
.section__intro h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin: 1.1rem auto 0;
  background: var(--color-secondary);
  border-radius: 3px;
}

.section__intro p {
  color: var(--color-text-muted);
  font-size: 1.12rem;
}

/* Eyebrow / kicker — small bold uppercase label above a heading */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.9rem;
}
.hero .kicker {
  color: #fff;
  background: var(--color-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  letter-spacing: 0.1em;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.nav__brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.nav__brand:hover {
  text-decoration: none;
}
.nav__brand span {
  color: var(--color-secondary);
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__links a {
  color: var(--color-text);
  font-size: 0.98rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover {
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}
.nav__links a.is-active {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent-dark);
}

/* Mobile nav: a simple details/summary disclosure (no JS required) */
.nav__toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}
.btn--accent {
  background: var(--color-secondary);
  color: #fff;
}
.btn--accent:hover {
  background: var(--color-secondary-dark);
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  color: #fff;
  overflow: hidden;
}

/* Hero background photo with a dark teal gradient overlay on top so the
   white headline text stays readable. To swap the photo, replace the
   url() below (an optimized ~2000px-wide JPG keeps load times fast). */
.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(7, 63, 63, 0.92) 0%, rgba(14, 91, 91, 0.62) 48%, rgba(8, 40, 40, 0.40) 100%),
    url('../images/hero.jpg');
  background-size: cover;
  background-position: center 45%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 3rem 0;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ---------- Image placeholders ---------- */
/* A labeled box that stands in for a stock photo until real images are added. */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  background:
    repeating-linear-gradient(45deg, #ece7dd, #ece7dd 12px, #e6e0d4 12px, #e6e0d4 24px);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* ---------- Framed photos (candidate page, etc.) ---------- */
.media-img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-img--cover {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
/* Portrait with a bold orange base bar — gives a candidate photo some punch */
.portrait-frame {
  border-bottom: 6px solid var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 420px;
}
.portrait-frame .media-img {
  border-radius: 0;
  box-shadow: none;
}

/* Checklist — bold points, each with an orange check badge */
.checklist {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-accent-dark);
}
.checklist li:last-child {
  margin-bottom: 0;
}
.checklist li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Left-aligned accent bar (the .section__intro bar is centered only) */
.title-rule {
  width: 64px;
  height: 5px;
  background: var(--color-secondary);
  border-radius: 3px;
  margin: 0.4rem 0 1.4rem;
}

/* ---------- Generic content blocks ---------- */
.lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split--narrow {
  gap: 3rem;
}

.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Cards (issues / values) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--color-text-muted);
  margin: 0;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}
.card__icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Call to action band ---------- */
.cta {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.cta .btn--primary {
  background: #fff;
  color: var(--color-accent-dark);
}
.cta .btn--primary:hover {
  background: var(--color-surface);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #232220;
  color: #cfcabf;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: #e7e2d8; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3a3935;
  font-size: 0.85rem;
  color: #948f85;
}
.footer-disclaimer {
  max-width: 720px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Collapse nav into a disclosure menu */
  .nav {
    flex-wrap: wrap;
    align-items: center;
  }
  .nav__toggle {
    display: block;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
  }
  .nav__links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    padding: 0.5rem 0 1rem;
    align-items: flex-start;
  }
  .nav__links.is-open {
    display: flex;
  }
}
