/*
Theme Name: The Idaho Conservatives
Theme URI: https://theidahoconservatives.org
Author: Cedar Line Media
Author URI: https://cedarlinemedia.com
Description: Official theme for The Idaho Conservatives — a grassroots organization dedicated to advancing conservative principles across Idaho.
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-conservatives
*/

:root {
  --navy: #0B1D3A;
  --navy-deep: #06111F;
  --cream: #F5F0E8;
  --cream-light: #FAF7F2;
  --red: #9B2226;
  --red-hover: #7D1B1E;
  --gold: #C4953A;
  --gold-muted: #B8965A;
  --slate: #3A4A5C;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A4A;
  --border: #D6CFC3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  color: var(--text-dark); background: var(--cream-light);
  overflow-x: hidden;
}

/* NAV */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,29,58,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,149,58,0.2);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); cursor: pointer; }
.nav-brand span { font-family: 'Libre Baskerville', serif; font-size: 15px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.2; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: rgba(245,240,232,0.7); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: color 0.25s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold); border-radius: 1px;
}
.nav-cta {
  background: var(--red) !important; color: var(--cream) !important;
  padding: 8px 20px !important; border-radius: 4px !important;
  transition: background 0.25s !important;
}
.nav-cta:hover { background: var(--red-hover) !important; }
.nav-cta.active::after { display: none !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--cream); padding: 4px; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(11,29,58,0.98); backdrop-filter: blur(12px);
  padding: 24px; flex-direction: column; gap: 16px;
  border-bottom: 1px solid rgba(196,149,58,0.15);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(245,240,232,0.75); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 0; cursor: pointer;
}

/* PAGE */
.ic-page { display: none; background: var(--cream-light); }
.ic-page.active { display: block; }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(155,34,38,0.12), transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(196,149,58,0.06), transparent),
    linear-gradient(180deg, var(--navy-deep) 0%, #0D2240 40%, #0F2847 100%);
}
.hero-texture {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='white' stroke-width='0.5'/%3E%3C/svg%3E");
}
.hero-mountains {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%; opacity: 0.06;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 800px; padding: 100px 24px 80px;
}
.hero-flag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(196,149,58,0.1); border: 1px solid rgba(196,149,58,0.25);
  color: var(--gold); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 32px;
  animation: fadeDown 0.8s ease both;
}
.hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.15; color: var(--cream); font-weight: 700; margin-bottom: 24px;
  animation: fadeDown 0.8s 0.15s ease both;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.7;
  color: rgba(245,240,232,0.6); max-width: 560px; margin: 0 auto 40px;
  font-weight: 300; animation: fadeDown 0.8s 0.3s ease both;
}
.hero-form {
  display: flex; gap: 0; max-width: 480px; margin: 0 auto;
  animation: fadeDown 0.8s 0.45s ease both;
}
.hero-form input {
  flex: 1; padding: 14px 20px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-right: none; border-radius: 4px 0 0 4px;
  color: var(--cream); font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.hero-form input::placeholder { color: rgba(245,240,232,0.35); }
.hero-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.1); }
.hero-form button {
  padding: 14px 28px; background: var(--red); color: var(--cream);
  border: 1px solid var(--red); border-radius: 0 4px 4px 0;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
  transition: background 0.25s; white-space: nowrap;
}
.hero-form button:hover { background: var(--red-hover); }
.hero-disclaimer { margin-top: 14px; font-size: 12px; color: rgba(245,240,232,0.3); }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 56px;
  animation: fadeDown 0.8s 0.6s ease both;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Libre Baskerville', serif; font-size: 28px; color: var(--gold); font-weight: 700; }
.hero-stat .label { font-size: 12px; color: rgba(245,240,232,0.4); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

/* PAGE HEADER */
.page-header {
  background: var(--navy-deep); padding: 120px 24px 64px; text-align: center; position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}
.page-header .section-label { color: var(--gold); }
.page-header h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(28px, 4.5vw, 44px);
  color: var(--cream); line-height: 1.25; margin-bottom: 16px;
}
.page-header p { font-size: 17px; line-height: 1.7; color: rgba(245,240,232,0.55); max-width: 600px; margin: 0 auto; }

/* SHARED */
.section { padding: 80px 24px; background: var(--cream-light); }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-alt { background: white; }
.section-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-title { font-family: 'Libre Baskerville', serif; font-size: clamp(26px, 3.5vw, 36px); color: var(--navy); line-height: 1.3; margin-bottom: 16px; }
.section-desc { font-size: 16px; line-height: 1.8; color: var(--text-mid); max-width: 640px; margin-bottom: 48px; }
.prose { font-size: 15px; line-height: 1.8; color: var(--text-mid); margin-bottom: 24px; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  padding: 32px 24px; background: white; border-radius: 6px;
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(11,29,58,0.08); }
.card-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { font-family: 'Libre Baskerville', serif; font-size: 17px; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.7; color: var(--text-mid); }

/* ISSUES */
.issue-item {
  display: flex; gap: 24px; padding: 32px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.issue-item:first-child { border-top: 1px solid var(--border); }
.issue-num { font-family: 'Libre Baskerville', serif; font-size: 32px; color: var(--gold); font-weight: 700; line-height: 1; min-width: 48px; padding-top: 4px; }
.issue-content h3 { font-family: 'Libre Baskerville', serif; font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.issue-content p { font-size: 15px; line-height: 1.75; color: var(--text-mid); }

/* QUOTE BAR */
.quote-bar {
  background: var(--navy); padding: 64px 24px; text-align: center; position: relative; overflow: hidden;
}
.quote-bar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(196,149,58,0.06), transparent 70%);
}
.quote-bar blockquote {
  position: relative; max-width: 680px; margin: 0 auto;
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(17px, 2.2vw, 22px); line-height: 1.65;
  color: var(--cream); font-style: italic;
}
.quote-bar cite {
  display: block; margin-top: 20px; font-family: 'Source Sans 3', sans-serif;
  font-style: normal; font-size: 13px; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
}

/* VALUES */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.value-card {
  padding: 28px; background: var(--cream-light); border-radius: 6px;
  border-left: 3px solid var(--red);
}
.value-card h3 { font-family: 'Libre Baskerville', serif; font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.value-card p { font-size: 14px; line-height: 1.7; color: var(--text-mid); }

/* LEADERS */
.leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.leader-card { text-align: center; }
.leader-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Baskerville', serif; font-size: 28px; color: var(--gold); font-weight: 700;
}
.leader-card h3 { font-family: 'Libre Baskerville', serif; font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.leader-card .role { font-size: 13px; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.leader-card p { font-size: 13px; line-height: 1.6; color: var(--text-mid); }

/* TIMELINE */
.timeline-item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.timeline-date { min-width: 90px; font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; padding-top: 2px; }
.timeline-item h3 { font-size: 16px; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.timeline-item p { font-size: 14px; line-height: 1.65; color: var(--text-mid); }

/* FORMS */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-text h3 { font-family: 'Libre Baskerville', serif; font-size: 20px; color: var(--navy); margin-bottom: 16px; margin-top: 32px; }
.contact-text h3:first-child { margin-top: 0; }
.contact-text p { font-size: 15px; line-height: 1.75; color: var(--text-mid); margin-bottom: 12px; }
.contact-text ul { list-style: none; }
.contact-text li { padding: 8px 0; font-size: 14px; color: var(--text-mid); display: flex; align-items: center; gap: 10px; }
.contact-text li svg { color: var(--red); flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }
.contact-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 15px; font-family: inherit; color: var(--text-dark);
  background: var(--cream-light); outline: none; transition: border-color 0.25s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--navy); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.btn-primary {
  padding: 14px 32px; background: var(--red); color: var(--cream);
  border: none; border-radius: 4px; font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  font-family: inherit; transition: background 0.25s; align-self: flex-start;
}
.btn-primary:hover { background: var(--red-hover); }

/* CTA */
.cta-banner { background: var(--navy); padding: 64px 24px; text-align: center; }
.cta-banner h2 { font-family: 'Libre Baskerville', serif; font-size: clamp(22px, 3vw, 32px); color: var(--cream); margin-bottom: 16px; }
.cta-banner p { font-size: 16px; color: rgba(245,240,232,0.55); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { display: inline-block; }

/* FOOTER */
.site-footer { background: var(--navy-deep); padding: 48px 24px 32px; border-top: 3px solid var(--red); }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 32px; }
.footer-brand { font-family: 'Libre Baskerville', serif; font-size: 15px; color: var(--cream); font-weight: 700; margin-bottom: 8px; }
.footer-brand-sub { font-size: 13px; color: rgba(245,240,232,0.4); max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; }
.footer-links div h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-muted); margin-bottom: 12px; font-weight: 600; }
.footer-links a { display: block; color: rgba(245,240,232,0.5); text-decoration: none; font-size: 14px; margin-bottom: 8px; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { max-width: 1000px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-size: 12px; color: rgba(245,240,232,0.25); }

/* LEGAL PAGES */
.legal-content h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px; color: var(--navy); margin: 40px 0 16px; line-height: 1.3;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px; color: var(--navy); margin: 28px 0 12px;
}
.legal-content p {
  font-size: 15px; line-height: 1.8; color: var(--text-mid); margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 20px 24px; padding: 0;
}
.legal-content li {
  font-size: 14.5px; line-height: 1.75; color: var(--text-mid);
  margin-bottom: 8px; list-style-type: disc;
}
.legal-content li strong { color: var(--text-dark); }
.legal-updated {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--slate); background: rgba(11,29,58,0.04);
  padding: 6px 14px; border-radius: 4px; margin-bottom: 32px;
  letter-spacing: 0.3px;
}

/* TOAST */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--navy); color: var(--cream); padding: 16px 32px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3); z-index: 999; opacity: 0;
  transition: all 0.4s ease; pointer-events: none; border-left: 4px solid var(--gold);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes fadeDown { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .cards-grid, .leadership-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .hero-form { flex-direction: column; }
  .hero-form input { border-right: 1px solid rgba(255,255,255,0.15); border-radius: 4px; }
  .hero-form button { border-radius: 4px; }
  .hero-stats { gap: 24px; }
  .hero-stats .num { font-size: 22px; }
  .issue-item { flex-direction: column; gap: 8px; }
  .timeline-item { flex-direction: column; gap: 4px; }
}
