/* Ace Auto Insure - Editorial Design System */
/* A sophisticated, magazine-inspired aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400;1,8..60,500&display=swap');

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core Palette - Warm, Editorial */
  --navy: #1a2332;
  --navy-light: #2d3a4d;
  --burgundy: #8b2635;
  --burgundy-light: #a83242;
  --amber: #d4a55c;
  --amber-light: #e4bb78;
  --amber-dark: #b8924d;

  /* Neutrals - Warm tones */
  --cream: #faf8f5;
  --cream-dark: #f0ebe3;
  --charcoal: #2d3748;
  --slate: #4a5568;
  --stone: #718096;
  --mist: #e8e4de;

  /* Functional */
  --white: #ffffff;
  --success: #2d6a4f;
  --error: #c1292e;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows - Subtle, refined */
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.1);
  --shadow-lg: 0 8px 24px rgba(26, 35, 50, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 35, 50, 0.15);

  /* Border Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition: 0.25s var(--ease-out);
  --transition-slow: 0.4s var(--ease-out);
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
}

/* Selection */
::selection {
  background: var(--amber);
  color: var(--navy);
}

/* Links */
a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--burgundy-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.25rem;
}

strong {
  font-weight: 600;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 720px;
}

/* ================================
   HEADER
   ================================ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  min-height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--navy);
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo-text span {
  color: var(--burgundy);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-ui);
  background: var(--navy);
  color: var(--cream) !important;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
  border: 2px solid var(--navy);
}

.nav-cta:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  width: 44px;
  height: 44px;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) { top: 14px; }
.mobile-menu-btn span:nth-child(2) { top: 21px; }
.mobile-menu-btn span:nth-child(3) { top: 28px; }

/* ================================
   HERO SECTION
   ================================ */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Decorative accent line */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy) 0%, var(--amber) 50%, var(--burgundy) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-tagline {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero-tagline::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--amber);
}

.hero h1 {
  color: var(--cream);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.85;
  margin-bottom: var(--space-xl);
  max-width: 560px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--amber);
  color: var(--navy) !important;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid var(--amber);
}

.hero-cta:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 165, 92, 0.3);
}

.hero-cta::after {
  content: '\2192';
  transition: transform var(--transition);
}

.hero-cta:hover::after {
  transform: translateX(4px);
}

/* ================================
   FEATURES SECTION
   ================================ */
.features-section {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--slate);
  font-size: 1.125rem;
  max-width: 560px;
}

/* Centered variant */
.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--cream);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-xl);
  right: var(--space-xl);
  height: 3px;
  background: var(--burgundy);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  color: var(--amber);
  font-family: var(--font-display);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--slate);
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ================================
   OPT-IN SECTION
   ================================ */
.optin-section {
  padding: var(--space-4xl) 0;
  background: var(--cream-dark);
  position: relative;
}

.optin-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mist), transparent);
}

.optin-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3xl);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.optin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy), var(--amber));
}

.optin-card h2 {
  color: var(--navy);
  margin-bottom: var(--space-sm);
  font-size: 1.75rem;
}

.optin-card .subheadline {
  color: var(--slate);
  font-size: 1.0625rem;
  margin-bottom: var(--space-xl);
}

.optin-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  color: var(--navy);
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--mist);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 35, 50, 0.1);
}

.form-group input::placeholder {
  color: var(--stone);
}

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
}

.consent-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--burgundy);
  cursor: pointer;
  flex-shrink: 0;
}

.consent-group label {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.5;
  cursor: pointer;
}

.consent-group a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons */
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: var(--space-sm);
}

.btn-primary:hover {
  background: var(--burgundy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 38, 53, 0.25);
}

.btn-primary:disabled {
  background: var(--stone);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-1px);
}

/* ================================
   CATEGORIES SECTION
   ================================ */
.categories-section {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mist);
  transition: all var(--transition);
  text-decoration: none;
}

.category-card:hover {
  border-color: var(--burgundy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 1.375rem;
  margin-bottom: var(--space-lg);
  font-family: var(--font-display);
}

.category-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.1875rem;
  color: var(--navy);
}

.category-card p {
  color: var(--slate);
  flex-grow: 1;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.category-count {
  font-family: var(--font-ui);
  color: var(--burgundy);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================
   BLOG SECTION
   ================================ */
.blog-section {
  padding: var(--space-4xl) 0;
  background: var(--cream-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.blog-card-image {
  height: 180px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 2.5rem;
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
}

/* Subtle pattern on card images */
.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(212, 165, 92, 0.1) 100%);
}

.blog-card-content {
  padding: var(--space-lg);
}

.blog-card-category {
  display: inline-block;
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--burgundy);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.blog-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--navy);
  transition: color var(--transition-fast);
}

.blog-card h3 a:hover {
  color: var(--burgundy);
}

.blog-card-excerpt {
  color: var(--slate);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  line-height: 1.55;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--stone);
  padding-top: var(--space-md);
  border-top: 1px solid var(--mist);
}

.read-more {
  color: var(--burgundy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.read-more:hover {
  gap: 0.5rem;
}

/* ================================
   BLOG LIST PAGE
   ================================ */
.blog-header {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-3xl) 0;
  position: relative;
}

.blog-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy), var(--amber));
}

.blog-header h1 {
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.blog-header p {
  opacity: 0.8;
  font-size: 1.1875rem;
  max-width: 520px;
}

.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}

.filter-btn {
  font-family: var(--font-ui);
  background: transparent;
  color: var(--slate);
  border: 2px solid var(--mist);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.blog-list-section {
  padding: var(--space-3xl) 0;
  background: var(--cream);
}

/* ================================
   ARTICLE PAGE
   ================================ */
.article-header {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-3xl) 0;
  position: relative;
}

.article-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy), var(--amber));
}

.article-header .container {
  max-width: 760px;
}

.article-category {
  display: inline-block;
  font-family: var(--font-ui);
  background: rgba(255, 255, 255, 0.15);
  color: var(--cream);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.article-header h1 {
  color: var(--cream);
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.article-meta {
  display: flex;
  gap: var(--space-xl);
  font-family: var(--font-ui);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.article-content {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.article-content .container {
  max-width: 720px;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.85;
}

.article-body h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--navy);
  font-size: 1.75rem;
  position: relative;
  padding-left: var(--space-lg);
}

.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  background: var(--burgundy);
  border-radius: 2px;
}

.article-body h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--navy);
}

.article-body p {
  margin-bottom: var(--space-lg);
  color: var(--charcoal);
}

.article-body ul, .article-body ol {
  margin-bottom: var(--space-lg);
}

.article-body li {
  margin-bottom: 0.625rem;
}

.article-body strong {
  color: var(--navy);
  font-weight: 600;
}

.article-body blockquote {
  border-left: 4px solid var(--amber);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--slate);
  background: var(--cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Article CTA */
.article-cta {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-3xl);
  text-align: center;
  border: 1px solid var(--mist);
}

.article-cta h3 {
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.article-cta p {
  color: var(--slate);
  margin-bottom: var(--space-lg);
}

/* Related Articles */
.related-articles {
  background: var(--cream-dark);
  padding: var(--space-3xl) 0;
}

.related-articles h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-lg);
}

.footer-brand .logo-text {
  color: var(--cream);
}

.footer-brand .logo-text span {
  color: var(--amber);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
  font-size: 0.9375rem;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-ui);
  color: var(--cream);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-xl);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal a:hover {
  color: var(--amber);
}

/* ================================
   LEGAL PAGES
   ================================ */
.legal-header {
  background: var(--cream-dark);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--mist);
}

.legal-header h1 {
  margin-bottom: var(--space-sm);
}

.legal-header p {
  color: var(--slate);
}

.legal-content {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.legal-content .container {
  max-width: 720px;
}

.legal-content h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  color: var(--navy);
  font-size: 1.5rem;
}

.legal-content p, .legal-content ul {
  color: var(--slate);
}

/* ================================
   FORM SUCCESS STATE
   ================================ */
.form-success {
  background: var(--success);
  color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-center { text-align: center; }
.text-primary { color: var(--burgundy); }
.text-secondary { color: var(--amber); }
.text-muted { color: var(--slate); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 992px) {
  html {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    order: 3;
    border-top: 1px solid var(--mist);
    margin-top: var(--space-md);
  }

  .nav.active {
    display: flex;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 0.8125rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .optin-card {
    padding: var(--space-xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    padding-left: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .optin-card {
    padding: var(--space-lg);
  }

  .btn-primary {
    width: 100%;
  }

  .category-filter {
    padding: var(--space-md);
    gap: var(--space-xs);
  }

  .filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
  .header, .footer, .optin-section, .article-cta, .related-articles {
    display: none;
  }

  .article-header {
    background: none;
    color: var(--charcoal);
    padding: var(--space-xl) 0;
  }

  .article-header h1, .article-category {
    color: var(--charcoal);
  }

  .article-header::after {
    display: none;
  }
}
