/* AutoPolicyNavigator - Editorial Design System
   Inspired by premium publications, built with intentional craft */

/* ============================================
   CUSTOM FONTS - Distinctive, not generic
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Color Palette - Warm, sophisticated, not typical insurance */
  --ink: #1a1a1a;
  --ink-light: #2d2d2d;
  --ink-muted: #4a4a4a;
  --slate: #6b6b6b;
  --pewter: #8a8a8a;
  --silver: #b8b8b8;
  --fog: #e8e6e1;
  --cream: #f5f3ef;
  --paper: #faf9f7;
  --white: #ffffff;

  /* Accent - Warm amber that feels editorial */
  --amber: #c9a227;
  --amber-dark: #a88820;
  --amber-glow: #e8c547;

  /* Signal colors */
  --rust: #b85c38;
  --sage: #5a7c65;
  --navy: #2c3e50;

  /* Typography */
  --font-display: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing Scale */
  --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;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --content-width: 720px;
  --sidebar-width: 340px;

  /* Effects */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders */
  --border-thin: 1px solid var(--fog);
  --border-medium: 2px solid var(--ink);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
  background: var(--paper);
  min-height: 100vh;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.015;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 9999;
}

::selection {
  background: var(--amber);
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

h5 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
}

p {
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--slate);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--amber-dark);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--content-width);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--border-thin);
  transition: var(--transition-base);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
}

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

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-mark svg {
  height: 32px;
  width: auto;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-wordmark .highlight {
  color: var(--amber-dark);
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
  padding: var(--space-xs) 0;
  position: relative;
}

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

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: var(--transition-fast);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

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

/* Geometric pattern background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 25%, var(--ink-light) 25%, var(--ink-light) 50%, transparent 50%, transparent 75%, var(--ink-light) 75%);
  background-size: 40px 40px;
  opacity: 0.3;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 80px solid var(--amber);
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--amber);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-xl);
  font-weight: 700;
}

.hero .tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--silver);
  margin-bottom: var(--space-2xl);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--amber-glow);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--ink);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--ink-light);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}

.btn--outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: var(--space-sm) 0;
  border-bottom: 2px solid var(--ink);
}

.btn--ghost:hover {
  color: var(--amber-dark);
  border-color: var(--amber-dark);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-5xl) 0;
}

.section--cream {
  background: var(--cream);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--white);
}

.section--ink p {
  color: var(--silver);
}

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

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber-dark);
  margin-bottom: var(--space-md);
}

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

/* ============================================
   FEATURE CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card {
  background: var(--white);
  padding: var(--space-2xl);
  border: var(--border-thin);
  position: relative;
  transition: var(--transition-base);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--fog);
  transition: var(--transition-base);
}

.card:hover {
  border-color: var(--pewter);
}

.card:hover::before {
  background: var(--amber);
}

.card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--fog);
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.card h3 {
  margin-bottom: var(--space-md);
  font-size: 1.35rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-link::after {
  content: '→';
  transition: var(--transition-fast);
}

.card-link:hover {
  color: var(--amber-dark);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl) var(--space-3xl);
}

.feature-item {
  display: flex;
  gap: var(--space-lg);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: var(--border-thin);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
}

.feature-content h4 {
  margin-bottom: var(--space-xs);
}

.feature-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================
   OPT-IN SECTION
   ============================================ */
.opt-in-section {
  background: var(--ink);
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

.opt-in-section::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border: 2px solid var(--ink-light);
  opacity: 0.5;
}

.opt-in-section::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border: 2px solid var(--amber);
  opacity: 0.3;
}

.opt-in-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.opt-in-content h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.opt-in-content p {
  color: var(--silver);
  font-size: 1.1rem;
  max-width: 420px;
}

.opt-in-form-wrapper {
  background: var(--white);
  padding: var(--space-2xl);
}

.opt-in-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 {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--fog);
  background: var(--paper);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}

.checkbox-group {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-top: var(--space-sm);
}

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

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
}

.checkbox-group a {
  color: var(--ink);
}

.opt-in-form .btn {
  width: 100%;
  padding: var(--space-lg);
  margin-top: var(--space-sm);
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background: var(--white);
  border: var(--border-thin);
  transition: var(--transition-base);
}

.blog-card:hover {
  border-color: var(--pewter);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Geometric pattern for blog card images */
.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 40%, var(--amber) 40%, var(--amber) 45%, transparent 45%),
    linear-gradient(-45deg, transparent 40%, var(--amber) 40%, var(--amber) 45%, transparent 45%);
  background-size: 30px 30px;
  opacity: 0.15;
}

.blog-card-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

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

.blog-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber-dark);
  margin-bottom: var(--space-md);
}

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

.blog-card p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  color: var(--slate);
}

.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.read-more::after {
  content: '→';
  transition: var(--transition-fast);
}

.read-more:hover {
  color: var(--amber-dark);
}

.read-more:hover::after {
  transform: translateX(4px);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--ink-light);
}

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

.footer-brand p {
  color: var(--pewter);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--pewter);
  text-decoration: none;
}

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

.footer-bottom {
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-4xl) 0;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 25%, var(--ink-light) 25%, var(--ink-light) 50%, transparent 50%);
  background-size: 20px 20px;
  opacity: 0.2;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

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

.page-header p {
  color: var(--silver);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  border-bottom: var(--border-thin);
}

.breadcrumbs a {
  color: var(--slate);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs span {
  margin: 0 var(--space-sm);
  color: var(--pewter);
}

/* ============================================
   ARTICLE STYLES
   ============================================ */
.article-header {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-4xl) 0;
  position: relative;
}

.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 25%, var(--ink-light) 25%, var(--ink-light) 50%, transparent 50%);
  background-size: 30px 30px;
  opacity: 0.15;
}

.article-header .container {
  position: relative;
  z-index: 1;
}

.article-header h1 {
  color: var(--white);
  max-width: 800px;
  margin-bottom: var(--space-lg);
}

.article-meta {
  display: flex;
  gap: var(--space-xl);
  color: var(--pewter);
  font-size: 0.9rem;
}

.article-content {
  padding: var(--space-4xl) 0;
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-body h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: var(--border-thin);
}

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

.article-body ul,
.article-body ol {
  margin: var(--space-lg) 0;
  padding-left: var(--space-xl);
}

.article-body li {
  margin-bottom: var(--space-sm);
  color: var(--ink-muted);
}

.article-body blockquote {
  border-left: 3px solid var(--amber);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}

/* ============================================
   CATEGORY & RESOURCE PAGES
   ============================================ */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.category-pill {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--slate);
  border: 2px solid var(--fog);
  transition: var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--white);
}

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

.resource-card {
  background: var(--white);
  border: var(--border-thin);
  padding: var(--space-2xl);
  text-align: center;
  transition: var(--transition-base);
}

.resource-card:hover {
  border-color: var(--amber);
}

.resource-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

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

.resource-card p {
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  padding: var(--space-4xl) 0;
}

.legal-content .container {
  max-width: var(--content-width);
}

.legal-content h2 {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: var(--border-thin);
}

.legal-content h3 {
  margin-top: var(--space-2xl);
}

/* ============================================
   WELCOME PAGE
   ============================================ */
.welcome-hero {
  background: var(--sage);
  color: var(--white);
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, var(--amber) 0%, transparent 50%);
  opacity: 0.1;
}

.welcome-hero h1 {
  color: var(--white);
}

.welcome-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
}

.download-box {
  background: var(--white);
  padding: var(--space-2xl);
  max-width: 480px;
  margin: var(--space-2xl) auto 0;
  position: relative;
  z-index: 1;
}

.download-box h3 {
  margin-bottom: var(--space-sm);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-lg); }
.mt-3 { margin-top: var(--space-xl); }
.mt-4 { margin-top: var(--space-2xl); }

.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-lg); }
.mb-3 { margin-bottom: var(--space-xl); }
.mb-4 { margin-bottom: var(--space-2xl); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .opt-in-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-5xl: 5rem;
    --space-4xl: 4rem;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    display: none;
    z-index: 99;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 1.5rem;
    font-family: var(--font-display);
  }

  .nav-toggle {
    display: block;
    z-index: 100;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

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

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

  .opt-in-form-wrapper {
    padding: var(--space-lg);
  }

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