/* ============================================
   UTAH COMPACT — MAIN STYLESHEET
   ============================================ */

:root {
  --navy:      #1B2F4E;
  --navy-dark: #0F1E33;
  --red:       #C0392B;
  --red-light: #E74C3C;
  --cream:     #F5F1EA;
  --white:     #FFFFFF;
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-400:  #9CA3AF;
  --gray-600:  #4B5563;
  --gray-900:  #111827;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --max-w: 1200px;
  --section-pad: 100px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
  --radius-lg: 12px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* CONTAINERS */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

.section { padding: var(--section-pad) 0; }

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-label.light { color: rgba(255,255,255,0.6); }

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }

.section-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}
.btn-accent {
  background: var(--white);
  color: var(--navy-dark);
  border: 2px solid var(--white);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-200);
  border-color: var(--gray-200);
}
.site-header.scrolled .logo-text,
.site-header.scrolled .nav-links a:not(.nav-cta) { color: var(--navy-dark); }
.site-header.scrolled .nav-toggle span { background: var(--navy-dark); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 768px) { .nav-inner { padding: 0 24px; } }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.site-header.scrolled .nav-links a:hover { color: var(--navy-dark); background: var(--gray-100); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-left: 8px;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--red-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 48px 80px;
}
@media (max-width: 768px) { .hero { padding: 120px 24px 80px; } }

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy-dark) 0%, #1B3A5C 50%, #243B55 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(192,57,43,0.12) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: normal;
  color: var(--red);
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 48px; height: 1px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.6);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ============================================
   MISSION STRIP
   ============================================ */
.mission-strip {
  background: var(--cream);
  padding: 72px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.mission-text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-dark);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
}
.mission-text::before {
  content: '\201C';
  font-size: 5em;
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  left: -10px; top: -20px;
  line-height: 1;
  font-family: var(--font-serif);
}

/* ============================================
   PILLARS
   ============================================ */
.pillars { background: var(--white); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
  transition: background 0.3s;
}
.pillar-card:hover { background: var(--gray-50); }

.pillar-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 20px;
  opacity: 0.7;
}
.pillar-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin-bottom: 14px;
}
.pillar-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}
.pillar-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}
.pillar-link:hover { opacity: 0.75; }

/* ============================================
   ISSUES
   ============================================ */
.issues { background: var(--gray-50); }

.issues-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 768px) { .issues-header { flex-direction: column; gap: 20px; } }

.issues-intro {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 480px;
  padding-top: 24px;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .issues-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .issues-grid { grid-template-columns: 1fr; } }

.issue-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.issue-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.issue-icon {
  width: 52px; height: 52px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
  transition: background 0.2s, color 0.2s;
}
.issue-card:hover .issue-icon { background: var(--red); color: var(--white); }
.issue-card h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.issue-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ============================================
   IMPACT STATS
   ============================================ */
.impact {
  background: var(--navy-dark);
  padding: 80px 0;
}
.impact-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
@media (max-width: 768px) {
  .impact-grid { flex-direction: column; }
  .impact-divider { width: 60px; height: 1px !important; }
}
.impact-stat {
  text-align: center;
  padding: 0 60px;
  flex: 1;
}
.impact-number {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.impact-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.impact-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-text p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-text .btn { margin-top: 12px; }

.about-card {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 20px;
}
.about-card blockquote {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--white);
  position: relative;
}
.about-card-footer {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.about-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-detail {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-detail strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.about-detail span {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-dark);
}

/* ============================================
   JOIN / GET INVOLVED
   ============================================ */
.join {
  background: var(--navy);
  color: var(--white);
}
.join-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .join-inner { grid-template-columns: 1fr; gap: 48px; } }

.join-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 32px;
}
.join-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.join-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.join-list li svg { color: var(--red); flex-shrink: 0; }

.join-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: var(--gray-900);
}
@media (max-width: 480px) { .join-form-wrap { padding: 32px 24px; } }

.join-form h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,47,78,0.08);
}
.form-group input::placeholder { color: var(--gray-400); }

.form-note {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
}

.form-success {
  text-align: center;
  padding: 40px 0;
}
.success-icon {
  width: 60px; height: 60px;
  background: #22C55E;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.form-success p {
  font-size: 15px;
  color: var(--gray-600);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  padding: 72px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  margin-bottom: 12px;
}
.footer-legal {
  font-size: 12px !important;
  color: rgba(255,255,255,0.35) !important;
  max-width: 300px !important;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    border-top: 1px solid var(--gray-200);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    color: var(--navy-dark) !important;
    padding: 12px 16px;
    border-radius: var(--radius);
  }
  .nav-links a:hover { background: var(--gray-100) !important; }
  .nav-cta { margin-left: 0 !important; }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 600px) {
  :root { --section-pad: 64px; }
  .hero { padding: 100px 24px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-scroll-hint { display: none; }
  .mission-text { padding: 0; }
  .impact-stat { padding: 24px 20px; }
}
