:root {
  /* Colors - Political Modern Palette (Updated High-End) */
  --color-primary: #001C5A;
  /* Deep Navy Blue */
  --color-primary-dark: #00123A;
  /* Darker Navy */
  --color-accent: #C1133D;
  /* Campaign Red */
  --color-accent-hover: #A00F32;
  /* Darker Red */

  --color-text-main: #1F2937;
  /* Softer Black */
  --color-text-muted: #6B7280;
  /* Muted Grey */
  --color-text-light: #F9FAFB;
  /* Off-white text */

  --color-bg-body: #FFFFFF;
  --color-bg-subtle: #F3F4F6;
  /* Very light grey for contrast */
  --color-bg-surface: #FFFFFF;

  --color-border: #E5E7EB;

  /* Modern Shadows (Diffuse & Soft) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(193, 19, 61, 0.25);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Roboto', system-ui, sans-serif;

  /* Layout */
  --container-width: 1100px;
  /* Slightly tighter for better reading measure */
  --header-height: 80px;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 9999px;

  /* Spacing */
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-bg {
  background-color: var(--color-bg-subtle);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  /* Pill shape for modern look */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(193, 19, 61, 0.3), 0 2px 4px -1px rgba(193, 19, 61, 0.15);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(193, 19, 61, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  /* slight tint on hover */
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  /* Translucent */
  backdrop-filter: blur(12px);
  /* Glassmorphism */
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  padding: var(--space-24) 0 var(--space-16) 0;
  background: radial-gradient(80% 80% at 50% -20%, #F5F7FB 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(193, 19, 61, 0.1);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto var(--space-8) auto;
}

/* Trust Bar */
.trust-bar {
  background: var(--color-primary);
  padding: var(--space-4) 0;
  color: white;
}

.trust-flex {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}

/* Cards (Modern) */
.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #D1D5DB;
}

.card h3,
.card h4 {
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* Week Grid */
.week-grid {
  display: grid;
  gap: var(--space-4);
}

.week-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.week-card:hover {
  box-shadow: var(--shadow-md);
}

.week-header {
  background-color: var(--color-bg-subtle);
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.week-body {
  padding: var(--space-4);
}

/* Accordion Optimized */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  background: white;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: var(--space-6);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

.accordion-header:hover {
  background-color: var(--color-bg-subtle);
}

.accordion-content {
  display: none;
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-bg-subtle);
  animation: slideDown 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tables */
.table-wrapper {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-bg-subtle);
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

/* Metrics */
#metrics .card {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

#metrics h3 {
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

/* Form Styles */
input,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 28, 90, 0.1);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--color-primary-dark);
  color: white;
  padding: var(--space-24) 0;
}

/* Cleaned Deliverables Section */
.phase-deliverables {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px dashed var(--color-border);
}

.phase-deliverables h4 {
  font-size: 1rem;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.phase-deliverables ul {
  list-style: none;
  padding-left: 0;
}

.phase-deliverables ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.phase-deliverables ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* Issues Grid */
.issues-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.issue-tag {
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.issue-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Footer Form */
.proposal-form {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  color: var(--color-text-main);
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: var(--space-4);
  text-align: left;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-16: 3rem;
    --space-24: 4rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    color: var(--color-primary);
  }
}