/*
Theme Name:  Hector2A
Theme URI:   https://hectorforcpsboard2a.org/
Author:      Hector Morales Campaign
Description: Official campaign theme for Hector Morales, CPS Board of Education — District 2A
Version:     1.0.0
License:     GNU General Public License v2 or later
Tags:        campaign, political, one-page, custom-colors, custom-menu, full-width-template
Text Domain: hector2a
*/

/* ─── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:     #1B3A6B;
  --blue-mid: #2A5298;
  --gold:     #E8A020;
  --gold-lt:  #F5C860;
  --white:    #FFFFFF;
  --cream:    #F7F4EE;
  --charcoal: #222222;
  --gray:     #6B7280;
  --gray-lt:  #E5E7EB;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; }

/* ─── NAVIGATION ─────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.site-branding a {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-branding span { color: var(--gold); }

/* WordPress nav menu */
#primary-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-menu li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

#primary-menu li a:hover { color: var(--gold); }

#primary-menu li.menu-cta a {
  background: var(--gold);
  color: var(--blue);
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-weight: 700;
}

#primary-menu li.menu-cta a:hover {
  background: var(--gold-lt);
  color: var(--blue);
}

/* ─── SHARED SECTION UTILITIES ───────────────────────── */
.section-container { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  background: var(--blue);
  color: var(--white);
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 55%; height: 130%;
  background: var(--blue-mid);
  transform: skewX(-8deg);
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  top: -10%; right: 2%;
  width: 4px; height: 130%;
  background: var(--gold);
  transform: skewX(-8deg);
  z-index: 1;
}

.hero-text {
  padding: 5rem 3rem 5rem 5rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.hero-name em {
  font-style: normal;
  color: var(--gold);
}

.hero-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 2.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gold);
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--blue);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); color: var(--blue); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.hero-photo-area {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 4rem 4rem 2rem;
}

.hero-photo-area img {
  width: 280px;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

/* ─── ABOUT ───────────────────────────────────────────── */
#about { background: var(--cream); padding: 6rem 2rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo-box {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
}

.about-photo-box img { width: 100%; height: 100%; object-fit: cover; }

.about-body p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.pillar {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1.1rem;
  border-radius: 0 4px 4px 0;
}

.pillar-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.pillar-desc { font-size: 0.8rem; color: var(--gray); }

/* ─── ISSUES / PLATFORM ───────────────────────────────── */
#issues { background: var(--white); padding: 6rem 2rem; }

.issues-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.issue-card {
  background: var(--cream);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.issue-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gold);
}

.issue-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.issue-icon { font-size: 2rem; margin-bottom: 1rem; }

.issue-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.issue-body { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

.issue-points { margin-top: 1rem; padding-left: 0; list-style: none; }

.issue-points li {
  font-size: 0.82rem;
  color: var(--charcoal);
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
}

.issue-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ─── GET INVOLVED ────────────────────────────────────── */
#involved { background: var(--cream); padding: 6rem 2rem; }

.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.involved-card {
  background: var(--white);
  border-radius: 6px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.involved-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.involved-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.involved-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.65; margin-bottom: 1.5rem; }

.btn-blue {
  background: var(--blue);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-block;
  transition: background 0.2s;
}
.btn-blue:hover { background: var(--blue-mid); color: var(--white); }

.donate-highlight {
  background: var(--gold);
  margin-top: 3rem;
  border-radius: 6px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.donate-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.donate-text p { color: rgba(27,58,107,0.75); font-size: 0.92rem; }

.donate-amounts { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.donate-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.donate-btn:hover { background: var(--blue-mid); }

/* ─── CONTACT ─────────────────────────────────────────── */
#contact { background: var(--white); padding: 6rem 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-form-group { margin-bottom: 1.25rem; }

.contact-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-lt);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  transition: border-color 0.2s;
  background: var(--white);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form-group textarea { min-height: 120px; resize: vertical; }

.contact-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.contact-submit:hover { background: var(--blue-mid); }

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.contact-info p { color: var(--gray); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.75rem; }

.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-detail-icon { font-size: 1.2rem; margin-top: 0.1rem; }
.contact-detail-text strong { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 0.2rem; }
.contact-detail-text a, .contact-detail-text span { font-size: 0.92rem; color: var(--gray); }
.contact-detail-text a:hover { color: var(--blue); }

.social-row { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.social-btn {
  background: var(--cream);
  color: var(--blue);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s;
  display: inline-block;
}
.social-btn:hover { background: var(--gold); color: var(--blue); }

/* ─── FOOTER ───────────────────────────────────────────── */
#site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.8;
}

#site-footer strong { color: var(--white); }
#site-footer a { color: var(--gold); }

/* ─── WORDPRESS DEFAULTS ─────────────────────────────── */
.wp-block-image img { border-radius: 6px; }
.alignleft  { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left:  1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--gray); margin-top: 0.4rem; }

/* ─── MOBILE ───────────────────────────────────────────── */
@media (max-width: 800px) {
  #site-header { padding: 0 1.25rem; }
  #primary-menu { display: none; }

  #hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 3rem; }
  #hero::before, #hero::after { display: none; }
  .hero-text { padding: 3rem 1.5rem 1.5rem; order: 1; }
  .hero-photo-area { order: 0; padding: 2rem 1.5rem 0; }
  .hero-photo-area img { width: 180px; }
  .hero-stats { gap: 1.5rem; justify-content: center; margin-top: 1.5rem; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-box { aspect-ratio: 16/9; }
  .issues-intro { grid-template-columns: 1fr; gap: 2rem; }
  .issues-grid, .involved-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }

  #about, #issues, #involved, #contact { padding: 4rem 1.25rem; }

  .donate-highlight { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
