/*
Theme Name: Idaho Libertarians
Theme URI: https://idaholibertarians.org
Author: Idaho Libertarians
Author URI: https://idaholibertarians.org
Description: Official theme for Idaho Libertarians — an independent grassroots organization. Features data capture forms, institutional design, and mobile-responsive layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: idaho-libertarians
Tags: one-column, custom-colors, featured-images, full-width-template, theme-options
*/

/* ═══════════════════════════════════════
   IDAHO LIBERTARIANS WORDPRESS THEME
   ═══════════════════════════════════════ */

:root {
  --navy: #0B1D3A;
  --navy-deep: #071428;
  --gold: #C5972C;
  --gold-light: #D4AA4F;
  --gold-pale: #F5E6C8;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --slate: #3A4A5C;
  --slate-light: #6B7D8D;
  --border: #D6D1C9;
  --success: #2D6A4F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── ANNOUNCEMENT BAR ─── */
.announce-bar {
  background: var(--navy-deep);
  color: var(--gold-pale);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.announce-bar a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── TOP NAV ─── */
.top-nav {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-emblem {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--gold);
}
.logo-emblem::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text .name {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.logo-text .tagline {
  font-size: 11px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 10px 24px;
  border-radius: 3px;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ─── HERO — STACKED ─── */
.hero {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(197,151,44,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(197,151,44,0.05) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%23FAF7F2' d='M0,160L48,154.7C96,149,192,139,288,122.7C384,107,480,85,576,90.7C672,96,768,128,864,138.7C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,200L0,200Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

.hero-stars {
  position: absolute;
  top: 40px;
  right: 60px;
  display: flex;
  gap: 8px;
  opacity: 0.15;
}
.hero-stars span { font-size: 28px; color: var(--gold); }

.hero-geo {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border: 1px solid rgba(197,151,44,0.08);
  border-radius: 50%;
}
.hero-geo::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(197,151,44,0.06);
  border-radius: 50%;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 40px 140px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  margin-bottom: 48px;
  animation: fadeUp 0.7s ease-out;
}
.hero-content h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 50px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-content p {
  font-size: 19px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── HERO SIGNUP CARD ─── */
.hero-card {
  background: var(--white);
  border-radius: 6px;
  padding: 40px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  width: 100%;
  max-width: 560px;
  text-align: left;
  animation: fadeUp 0.7s 0.2s ease-out both;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 6px 6px 0 0;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.card-badge svg { width: 14px; height: 14px; }

.hero-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}
.hero-card .card-sub {
  font-size: 14px;
  color: var(--slate-light);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ─── FORM STYLES ─── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,151,44,0.15);
}
.form-group input::placeholder { color: var(--slate-light); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  margin-top: 8px;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.form-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--slate-light);
}
.form-trust svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }

/* ─── SECTIONS ─── */
.section { padding: 80px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 38px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-text {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.8;
  max-width: 700px;
}

/* Mission Grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.mission-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  transition: box-shadow 0.3s, transform 0.3s;
}
.mission-card:hover {
  box-shadow: 0 12px 40px rgba(11,29,58,0.08);
  transform: translateY(-4px);
}
.mission-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.mission-icon svg { width: 24px; height: 24px; color: var(--gold); }
.mission-card h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 12px;
}
.mission-card p {
  font-size: 15px;
  color: var(--slate-light);
  line-height: 1.65;
}

/* ─── ISSUES ─── */
.issues-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.issues-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(197,151,44,0.06) 0%, transparent 60%);
}
.issues-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.issues-header {
  text-align: center;
  margin-bottom: 56px;
}
.issues-header .section-title { color: var(--white); }
.issues-header .section-text { color: rgba(255,255,255,0.6); margin: 0 auto; }

.issues-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.issue-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  transition: background 0.2s;
}
.issue-item:hover { background: rgba(255,255,255,0.07); }
.issue-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}
.issue-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.issue-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ─── QUOTE ─── */
.quote-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.quote-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-family: 'Libre Baskerville', serif;
  font-size: 72px;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 24px;
}
.quote-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 26px;
  line-height: 1.5;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 24px;
}
.quote-attr {
  font-size: 14px;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ─── SECONDARY SIGNUP ─── */
.signup-section {
  background: linear-gradient(135deg, #F0EAE0 0%, var(--cream) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.signup-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.signup-content .section-title { margin-bottom: 20px; }
.signup-content .section-text { margin-bottom: 32px; }

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--slate);
}
.benefit-list svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.signup-form-full {
  background: var(--white);
  padding: 44px 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(11,29,58,0.06);
}
.signup-form-full h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
}
.signup-form-full .card-sub {
  font-size: 14px;
  color: var(--slate-light);
  margin-bottom: 28px;
}

/* ─── FINAL CTA ─── */
.final-cta {
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(197,151,44,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 0%, rgba(197,151,44,0.05) 0%, transparent 50%);
}
.final-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.final-cta .section-title {
  color: var(--white);
  font-size: 42px;
  margin-bottom: 16px;
}
.final-cta .section-text {
  color: rgba(255,255,255,0.65);
  margin: 0 auto 40px;
}

.final-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.final-form input {
  flex: 1;
  padding: 16px 20px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  outline: none;
  transition: border-color 0.2s;
}
.final-form input:focus { border-color: var(--gold); }
.final-form input::placeholder { color: rgba(255,255,255,0.4); }
.final-form .btn-primary {
  width: auto;
  padding: 16px 32px;
  white-space: nowrap;
  margin-top: 0;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy-deep);
  padding: 60px 40px 32px;
  border-top: 3px solid var(--gold);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .name {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ─── SUCCESS STATE ─── */
.form-success {
  display: none;
  text-align: center;
  padding: 32px 20px;
}
.form-success.active { display: block; }
.form-success svg { width: 48px; height: 48px; color: var(--success); margin-bottom: 16px; }
.form-success h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-success p { font-size: 14px; color: var(--slate-light); }

/* ─── WP ADMIN BAR FIX ─── */
.admin-bar .top-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .top-nav { top: 46px; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .signup-inner { grid-template-columns: 1fr; gap: 40px; }
  .issues-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .top-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .section { padding: 56px 20px; }
  .hero-inner { padding: 48px 20px 100px; }
  .hero-content h1 { font-size: 32px; }
  .hero-card { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .final-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .announce-bar { font-size: 11px; padding: 8px 16px; }
}
