/* ============================================
   JENNA CLECKLER INSURANCE — Design System
   Warm Editorial + Texas Panhandle Aesthetic
   ============================================ */

/* --- Google Fonts Import --- */
/* Fonts loaded via <link> tags in HTML for performance */

/* --- CSS Custom Properties --- */
:root {
  /* Color Palette — Warm, trust-building */
  --color-primary: #1e3a2f;        /* Deep forest green — trust, health */
  --color-primary-light: #2a5242;
  --color-primary-dark: #142a21;
  --color-accent: #c8813a;         /* Sunset amber — warmth, Texas */
  --color-accent-light: #daa06d;
  --color-accent-glow: rgba(200, 129, 58, 0.15);
  --color-sage: #7a9e7e;           /* Sage green — calm, health */
  --color-sage-light: #a8c4ab;
  --color-cream: #faf7f2;          /* Warm cream background */
  --color-cream-dark: #f0ebe3;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #5a5a5a;
  --color-text-muted: #8a8a7e;
  --color-border: #e5dfd6;
  --color-border-light: #f0ebe3;
  --color-success: #3d7a5a;
  --color-error: #c44b3f;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', -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;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: 1.5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 58, 47, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 58, 47, 0.08);
  --shadow-lg: 0 8px 30px rgba(30, 58, 47, 0.1);
  --shadow-xl: 0 16px 50px rgba(30, 58, 47, 0.12);
  --shadow-accent: 0 4px 20px rgba(200, 129, 58, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  font-variation-settings: 'opsz' 48;
}

h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
}

p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 65ch;
}

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

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

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

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

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

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

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-cream);
}

.section--dark p {
  color: rgba(250, 247, 242, 0.8);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-md) var(--container-padding);
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
  text-decoration: none;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.4rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.nav__cta:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile Navigation */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 360px);
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px var(--space-2xl) var(--space-2xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__cta {
    margin-top: var(--space-md);
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.6rem;
  }
}

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 999;
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(200, 129, 58, 0.25);
}

.btn--primary:hover {
  background: #b8732e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--secondary {
  padding: 0.85rem 2rem;
  background: var(--color-primary);
  color: var(--color-cream);
}

.btn--secondary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-cream);
  transform: translateY(-2px);
}

.btn--ghost {
  padding: 0.6rem 1rem;
  color: var(--color-accent);
  font-weight: 600;
}

.btn--ghost:hover {
  color: var(--color-primary);
}

.btn--ghost svg,
.btn--ghost .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn--ghost:hover svg,
.btn--ghost:hover .arrow {
  transform: translateX(4px);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn--white {
  padding: 0.85rem 2rem;
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.4rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* Feature Card with accent border */
.card--accent {
  border-top: 3px solid var(--color-accent);
}

/* Dark Card */
.card--dark {
  background: var(--color-primary);
  border-color: var(--color-primary-light);
}

.card--dark .card__title { color: var(--color-cream); }
.card--dark .card__text { color: rgba(250, 247, 242, 0.75); }

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a5a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

.comparison-table thead {
  background: var(--color-primary);
  color: var(--color-cream);
}

.comparison-table th {
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.comparison-table td {
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--color-cream);
}

.comparison-table .highlight {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-md);
  }
}

/* ============================================
   ACCORDION / FAQ
   ============================================ */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.accordion-trigger:hover {
  color: var(--color-accent);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform var(--duration-normal) var(--ease-out);
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.accordion-item.active .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.accordion-content__inner {
  padding-bottom: var(--space-xl);
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   STEPS / PROCESS
   ============================================ */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.step:last-child::before {
  display: none;
}

.step__number {
  counter-increment: step;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step__number::before {
  content: counter(step);
}

.step__content {
  flex: 1;
  padding-top: var(--space-sm);
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.step__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.step__list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.step__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.step__list li::before {
  content: '✓';
  color: var(--color-sage);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-light);
  position: relative;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-variation-settings: 'opsz' 24;
}

.testimonial__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-accent-light);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
}

.testimonial__author {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.testimonial__role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Star rating */
.stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
}

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

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

.footer__brand p {
  color: rgba(250, 247, 242, 0.65);
  font-size: 0.92rem;
  margin-top: var(--space-md);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.65);
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--color-accent-light);
}

.footer__bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.45);
}

.footer__disclaimer {
  max-width: 600px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.35);
  margin-top: var(--space-lg);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* Subtle background texture */
.bg-texture {
  position: relative;
}

.bg-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231e3a2f' fill-opacity='0.03'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0V0h2v14h16V0h2v14h16V0h2v14H22v2h16v2H22v2.5z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.bg-texture > * {
  position: relative;
  z-index: 1;
}

/* Gradient overlays */
.gradient-warm {
  background: linear-gradient(135deg, var(--color-cream) 0%, #f5ebe0 50%, var(--color-cream-dark) 100%);
}

.gradient-hero {
  background: linear-gradient(160deg, var(--color-cream) 0%, #f0e8db 40%, #e8dfd0 100%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.hidden { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}

/* ============================================
   BADGE / TAG
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-accent-glow);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--green {
  background: rgba(122, 158, 126, 0.15);
  color: var(--color-success);
}

/* ============================================
   STATE MAP (Coverage states)
   ============================================ */
.states-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.state-tag {
  padding: 0.3rem 0.7rem;
  background: rgba(122, 158, 126, 0.1);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(122, 158, 126, 0.2);
}

/* ============================================
   REFERRAL BANNER
   ============================================ */
.referral-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #b8732e 100%);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.referral-banner h3 {
  color: var(--color-white);
  font-size: 1.3rem;
}

.referral-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  padding: calc(72px + var(--space-4xl)) 0 var(--space-3xl);
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 129, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.page-header p {
  color: rgba(250, 247, 242, 0.75);
  font-size: 1.15rem;
  max-width: 600px;
}

.page-header .section-label {
  color: var(--color-accent-light);
}

.page-header .section-label::before {
  background: var(--color-accent-light);
}

/* ============================================
   BLOG / ARTICLE CARDS
   ============================================ */
.article-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

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

.article-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  font-size: 2.5rem;
}

.article-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.article-card__excerpt {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-accent);
  margin-top: var(--space-lg);
  transition: gap var(--duration-fast) var(--ease-out);
}

.article-card__link:hover {
  gap: 10px;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 100;
  cursor: pointer;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* ============================================
   QUICK BENEFITS STRIP
   ============================================ */
.benefits-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--duration-fast) var(--ease-out);
}

.benefit-pill:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.benefit-pill__icon {
  font-size: 1rem;
}

/* ============================================
   WHO WE HELP
   ============================================ */
.audience-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.audience-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.6rem;
}

.audience-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.audience-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 750px;
}

.hero__title {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero__trust {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* --- Trust Badges --- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  background: rgba(30, 58, 47, 0.06);
  border: 1px solid rgba(30, 58, 47, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--color-primary);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 129, 58, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.cta-section__text {
  font-size: 1.1rem;
  color: rgba(250, 247, 242, 0.75);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  max-width: 100%;
}

.cta-section__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Outline Light Button --- */
.btn--outline-light {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(250, 247, 242, 0.35);
}

.btn--outline-light:hover {
  background: rgba(250, 247, 242, 0.1);
  border-color: var(--color-cream);
  transform: translateY(-2px);
}

/* ============================================
   TESTIMONIALS (additional classes)
   ============================================ */
.testimonial__stars {
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-variation-settings: 'opsz' 24;
}

.testimonial__placeholder {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  opacity: 0.6;
}

/* ============================================
   SECTION VARIANTS
   ============================================ */
.section--alt {
  background-color: var(--color-cream-dark);
}

.section--green {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-cream);
}

.section--green h2,
.section--green h3 {
  color: var(--color-cream);
}

.section--green p {
  color: rgba(250, 247, 242, 0.8);
}

/* ============================================
   CHECK LIST (Plans page)
   ============================================ */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.check-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.check-list__icon {
  flex-shrink: 0;
  color: var(--color-sage);
}

/* --- Transparent Card --- */
.card--transparent {
  background: rgba(200, 129, 58, 0.06);
  border: 1px dashed var(--color-accent-light);
}

.card--transparent:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================
   ARTICLE FULL (Resources page)
   ============================================ */
.article-full {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.article-full:last-of-type {
  border-bottom: none;
}

.article-full h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.article-full h4 {
  font-size: 1.15rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-full p {
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.article-full ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.article-full ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.article-full ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.article-full__cta {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

/* --- Article Divider --- */
.article-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ============================================
   CONTACT PAGE LAYOUT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border-light);
}

/* Form row for side-by-side fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
