/*
Theme Name: Chef Business Training
Theme URI: https://chefbusinesstraining.com
Author: Benjamin Kelly
Author URI: https://westhavercoaching.com
Description: Custom WordPress theme for Chef Business Training — premium design system for private dinner business training.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cbt
Domain Path: /languages
*/

/* ============================================
   CHEF BUSINESS TRAINING — PREMIUM DESIGN 3.0
   $10,000+ Premium Aesthetic
   Mobile-first · WCAG AA Accessible
   ============================================ */

/* --- ROOT VARIABLES --- */
:root {
  /* TYPOGRAPHY */
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-fallback: 'Switzer', system-ui, sans-serif;

  /* COLOR PALETTE */
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F2ED;
  --color-surface-offset: #EDE9E3;
  --color-surface-dark: #0F1014;
  --color-header-bg: #0A0B0E;

  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-primary-dark: #1E40AF;

  --color-accent: #D97706;
  --color-accent-hover: #B45309;

  --color-text: #1A1714;
  --color-text-muted: #6B665E;
  --color-text-faint: #A9A49C;
  --color-text-light: #E8E5E0;

  --color-divider: #E0DCD6;
  --color-border: #D4CFC7;
  --color-success: #22C55E;
  --color-success-light: #DCFCE7;

  /* SPACING SCALE (4px base) */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* LAYOUT WIDTHS */
  --max-width-narrow: 640px;
  --max-width-default: 960px;
  --max-width-wide: 1200px;

  /* BORDER RADIUS */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* SHADOWS */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-blue-glow: 0 0 20px rgba(37, 99, 235, 0.3);

  /* TRANSITIONS */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 120ms var(--ease-standard);
  --transition-default: 180ms var(--ease-standard);
  --transition-slow: 300ms var(--ease-standard);

  /* TEXT SIZES */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* LINE HEIGHTS */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  max-width: 16ch;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

h4 {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

h5 {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

h6 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-6);
  max-width: 72ch;
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--color-primary-hover);
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

ul, ol {
  margin-bottom: var(--space-6);
  margin-left: var(--space-6);
}

li {
  margin-bottom: var(--space-3);
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 1.125rem;
}

code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background-color: var(--color-surface-offset);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

pre {
  background-color: var(--color-header-bg);
  color: #E8E5E0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 960px) {
  .container {
    max-width: 960px;
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-6);
}

@media (min-width: 768px) {
  .container-narrow {
    padding: var(--space-8);
  }
}

.container-wide {
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-6);
}

@media (min-width: 768px) {
  .container-wide {
    padding: var(--space-8);
  }
}

/* Section padding — fluid responsive */
.section-padding {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.section-padding-top {
  padding-top: clamp(3rem, 8vw, 6rem);
}

.section-padding-bottom {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

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

.text-faint {
  color: var(--color-text-faint);
}

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

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

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.font-serif {
  font-family: var(--font-heading);
}

.font-bold {
  font-weight: 600;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.line-tight {
  line-height: var(--leading-tight);
}

.line-snug {
  line-height: var(--leading-snug);
}

.line-normal {
  line-height: var(--leading-normal);
}

.line-loose {
  line-height: var(--leading-loose);
}

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.py-4 { padding: var(--space-4) 0; }
.py-6 { padding: var(--space-6) 0; }
.py-8 { padding: var(--space-8) 0; }
.py-12 { padding: var(--space-12) 0; }

.px-4 { padding: 0 var(--space-4); }
.px-6 { padding: 0 var(--space-6); }
.px-8 { padding: 0 var(--space-8); }

/* --- BUTTONS --- */
.btn,
button,
input[type="button"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-default);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary button — blue fill */
.btn-primary,
button.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover,
button.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline button — white border on dark */
.btn-outline {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-outline:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Outline button — neutral on cream */
.btn-outline-dark {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline-dark:hover {
  background-color: var(--color-surface-2);
  border-color: var(--color-text);
  transform: translateY(-1px);
}

.btn-outline-dark:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Ghost button — no border, blue text */
.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-ghost:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Large button */
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

/* Small button */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Full width button */
.btn-full {
  width: 100%;
}

/* Accent button */
.btn-accent {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* --- FORMS --- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-default);
  line-height: var(--leading-normal);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563EB' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group:last-child {
  margin-bottom: 0;
}

input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: var(--space-2);
}

/* --- HEADER & NAVIGATION --- */
header.site-header {
  background-color: var(--color-header-bg);
  backdrop-filter: blur(10px);
  background-image: linear-gradient(180deg, rgba(10, 11, 14, 0.98) 0%, rgba(10, 11, 14, 0.95) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .site-header-inner {
    padding: var(--space-6) var(--space-8);
  }
}

.site-logo {
  display: block;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: white;
  z-index: 1001;
  line-height: 1.3;
}

.site-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: 2px;
}

.site-logo:hover {
  color: var(--color-primary-light);
}

.site-logo img {
  height: 40px;
  width: auto;
}

/* Desktop navigation — see Premium Upgrade section for 1024px breakpoint */
.site-nav.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.site-nav a {
  color: white;
  text-decoration: none;
  transition: color var(--transition-default);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary-light);
}

/* Mobile navigation */
#mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--color-header-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
}

#mobile-nav.active {
  display: flex;
}

/* Mobile nav hidden at 1024px+ — see Premium Upgrade section */

#mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-6);
  color: white;
  text-decoration: none;
  font-weight: 500;
}

#mobile-nav a:hover {
  color: var(--color-primary-light);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all var(--transition-default);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* --- HERO SECTIONS --- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero {
    background-attachment: scroll;
  }
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 11, 14, 0.94) 0%, rgba(10, 11, 14, 0.80) 50%, rgba(10, 11, 14, 0.60) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: var(--space-12) var(--space-6);
  max-width: 1000px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: var(--space-12) var(--space-8);
  }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  color: var(--color-primary-light);
}

.hero-content h1 {
  color: white;
  margin-bottom: var(--space-6);
  animation: fadeUpIn 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUpIn 0.8s ease-out 0.4s both;
  line-height: var(--leading-relaxed);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
  animation: fadeUpIn 0.8s ease-out 0.6s both;
}

@media (min-width: 768px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

/* Shorter hero sections for subpages */
.page-hero.hero-sm {
  min-height: 50vh;
}

.page-hero.hero-xs {
  min-height: 35vh;
}

/* --- SECTION STYLES --- */
section {
  position: relative;
  z-index: 1;
}

.section {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

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

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

.section-alt {
  background-color: var(--color-surface-2);
}

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

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: white;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

.section-dark .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

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

.section-header .subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

/* --- CARDS --- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-default);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), var(--shadow-blue-glow);
  border-top: 3px solid var(--color-primary);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.card-description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.card-footer {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Card grid */
.card-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- PROOF/STATS SECTION --- */
.stats-bar {
  background-color: var(--color-surface-2);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-12) 0;
}

@media (min-width: 768px) {
  .stats-bar {
    padding: var(--space-10) var(--space-8);
  }
}

.stats-grid {
  display: grid;
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.stat-item {
  padding: var(--space-4) var(--space-2);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--color-surface);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-default);
  display: flex;
  flex-direction: column;
}

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

.quote-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  opacity: 0.6;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: var(--leading-loose);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-surface-2);
}

.testimonial-author-info {
  flex-grow: 1;
}

.testimonial-author-name {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.testimonial-author-title {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.star-rating {
  color: #FCD34D;
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

/* --- FEATURES/BENEFITS --- */
.feature-item {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .feature-item {
    gap: var(--space-8);
    margin-bottom: var(--space-12);
  }
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-content h3 {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.feature-content p {
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--leading-relaxed);
}

/* --- CALL-TO-ACTION SECTION --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-surface-dark) 0%, rgba(15, 16, 20, 0.95) 100%);
  color: white;
  padding: clamp(3rem, 8vw, 6rem) var(--space-6);
  border-radius: var(--radius-xl);
  text-align: center;
  margin: var(--space-12) 0;
}

@media (min-width: 768px) {
  .cta-section {
    padding: clamp(3rem, 8vw, 6rem) var(--space-8);
  }
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.cta-section .subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  margin-top: var(--space-6);
}

/* --- BADGE SYSTEM --- */
.badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.badge-primary {
  background-color: rgba(37, 99, 235, 0.12);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.badge-success {
  background-color: var(--color-success-light);
  color: var(--color-success);
  border-color: var(--color-success);
}

.badge-accent {
  background-color: rgba(217, 119, 6, 0.12);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* --- FOOTER --- */
footer.site-footer {
  background-color: var(--color-header-bg);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-16) var(--space-6) var(--space-8);
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  footer.site-footer {
    padding: var(--space-16) var(--space-8) var(--space-8);
  }
}

.footer-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
  }
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-6);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  font-weight: 600;
}

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

.footer-section li {
  margin-bottom: var(--space-3);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-default);
}

.footer-section a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-social {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-start;
  }
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-default);
}

.footer-social a:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- ANIMATIONS --- */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-up {
  animation: fadeUpIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

/* Stagger animation for lists */
.fade-up-stagger > * {
  animation: fadeUpIn 0.6s ease-out both;
}

.fade-up-stagger > :nth-child(1) { animation-delay: 0ms; }
.fade-up-stagger > :nth-child(2) { animation-delay: 100ms; }
.fade-up-stagger > :nth-child(3) { animation-delay: 200ms; }
.fade-up-stagger > :nth-child(4) { animation-delay: 300ms; }
.fade-up-stagger > :nth-child(5) { animation-delay: 400ms; }
.fade-up-stagger > :nth-child(6) { animation-delay: 500ms; }

/* --- BLOG STYLES --- */
.blog-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-default);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.blog-featured-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.blog-card-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

.blog-card-excerpt {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-grow: 1;
  line-height: var(--leading-relaxed);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition-default);
}

.blog-card-link:hover {
  gap: var(--space-3);
}

/* Single blog post styles */
.blog-post-header {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  background-color: var(--color-surface-2);
}

.blog-post-title {
  max-width: 70ch;
  margin-bottom: var(--space-6);
}

.blog-post-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-6);
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.blog-post-content {
  max-width: 72ch;
  margin: var(--space-12) auto;
}

.blog-post-content > h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

.blog-post-content > h3 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

/* --- PRICING TABLE --- */
.pricing-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.pricing-card {
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-default);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lg);
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .pricing-card.featured {
    transform: scale(1.05);
  }
}

.pricing-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  min-height: 60px;
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-8);
  text-align: left;
}

.pricing-features li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: var(--space-6);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

/* --- ACCESSIBILITY & FOCUS STATES --- */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- SKIP TO MAIN CONTENT --- */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* --- PRINT STYLES --- */
@media print {
  body {
    background-color: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  header.site-header,
  footer.site-footer,
  .mobile-menu-toggle,
  .btn {
    display: none !important;
  }

  .page-hero {
    page-break-after: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* --- RESPONSIVE IMAGE HANDLING --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

figure {
  margin: var(--space-8) 0;
}

figcaption {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  font-style: italic;
}

/* --- TABLE STYLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-8);
}

th {
  background-color: var(--color-surface-2);
  padding: var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
}

td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

tbody tr:hover {
  background-color: var(--color-surface-2);
}

/* --- MODALS & OVERLAYS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-default), visibility var(--transition-default);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.95);
  transition: transform var(--transition-default);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-default);
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body {
  margin-bottom: var(--space-8);
}

.modal-footer {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-end;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--color-text-muted);
}

/* --- DIVIDER --- */
.divider {
  height: 1px;
  background-color: var(--color-divider);
  margin: var(--space-8) 0;
}

.divider-light {
  background-color: rgba(37, 99, 235, 0.1);
}

/* --- LOADING STATES --- */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-2) 0%, var(--color-surface-offset) 50%, var(--color-surface-2) 100%);
  background-size: 200% 100%;
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* --- RESPONSIVE TEXT SIZES --- */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* --- DARK MODE PREPARATION --- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1A1714;
    --color-surface: #2A2622;
    --color-surface-2: #3A362E;
    --color-surface-offset: #4A4238;
    --color-text: #F5F3F0;
    --color-text-muted: #B8B0A6;
    --color-text-faint: #8B837A;
    --color-divider: #4A4238;
    --color-border: #544A40;
  }

  body {
    background-color: var(--color-bg);
    color: var(--color-text);
  }

  .card {
    background-color: var(--color-surface);
    border-color: var(--color-border);
  }

  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  textarea,
  select {
    background-color: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
  }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- CONTAINER QUERIES (optional enhancement) --- */
@supports (container-type: inline-size) {
  .card {
    container-type: inline-size;
  }

  @container (min-width: 400px) {
    .card-body {
      padding: var(--space-6);
    }
  }
}

/* --- FINAL UTILITY CLASSES --- */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

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

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

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

.bg-light {
  background-color: var(--color-bg);
}

.bg-dark {
  background-color: var(--color-surface-dark);
}

.border {
  border: 1px solid var(--color-border);
}

.border-t {
  border-top: 1px solid var(--color-border);
}

.border-b {
  border-bottom: 1px solid var(--color-border);
}

/* --- ADDITIONAL COMPONENT STYLES --- */

/* Generic eyebrow (outside hero) */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

.section-dark .eyebrow {
  color: var(--color-primary-light);
}

/* Nav CTA in header */
.nav-cta {
  margin-left: var(--space-4);
}

@media (max-width: 1023px) {
  .nav-cta {
    display: none;
  }
}

/* Mobile nav sub-links */
.mobile-nav-sub {
  padding-left: var(--space-6);
}

.mobile-nav-sub a {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Mobile CTA in nav */
.mobile-cta {
  padding: var(--space-4) var(--space-6);
}

/* Nav dropdown for desktop */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-header-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  min-width: 220px;
  padding: var(--space-2) 0;
  z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-6);
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: background-color var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-primary-light);
}

.nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-default);
  vertical-align: middle;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

/* Card price styling */
.card-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  font-weight: 400;
}

/* Hero proof line */
.hero-proof-line {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: fadeUpIn 0.8s ease-out 0.8s both;
}

/* Card dark background variant */
.section-dark .card {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
}

.section-dark .card-title {
  color: white;
}

.section-dark .card-description {
  color: rgba(255, 255, 255, 0.8);
}

.section-dark .card-price {
  color: var(--color-primary-light);
}

/* Intro text for problem sections */
.intro-text {
  font-size: 1.125rem;
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
}

/* Guarantee badge */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-success-light);
  color: var(--color-success);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Skip nav */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  z-index: 10000;
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-nav:focus {
  top: 0;
}

/* Fade-up animation */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================================
   PREMIUM VISUAL UPGRADE v3.1
   Fixes: nav layout, missing styles, visual depth
   ============================================ */

/* --- NAV: Single row on desktop (1024px+) --- */
.site-nav.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .site-nav.desktop-nav {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .site-nav.desktop-nav {
    display: none !important;
  }
}

.mobile-menu-toggle {
  display: flex;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  #mobile-nav {
    display: none !important;
  }
}

/* --- HERO: Premium visual treatment --- */
.page-hero {
  background-color: var(--color-surface-dark);
}

.page-hero::before {
  background: linear-gradient(
    160deg,
    rgba(10, 11, 14, 0.96) 0%,
    rgba(10, 11, 14, 0.85) 40%,
    rgba(37, 99, 235, 0.15) 100%
  );
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-surface-dark) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  padding: var(--space-20) var(--space-6) var(--space-16);
}

@media (min-width: 768px) {
  .hero-content {
    padding: var(--space-24) var(--space-8) var(--space-20);
  }
}

.hero-proof-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.hero-proof-line::before,
.hero-proof-line::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

/* --- SECTION-ALT: Visible warm distinction --- */
.section-alt {
  background-color: var(--color-bg);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border-radius: 2px;
}

/* --- SECTION-DARK: Premium glass effect --- */
.section-dark {
  background: linear-gradient(
    180deg,
    var(--color-surface-dark) 0%,
    #141519 50%,
    var(--color-surface-dark) 100%
  );
  position: relative;
}

/* --- CARDS: Premium glass cards on dark bg --- */
.section-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.section-dark .card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 99, 235, 0.15);
  transform: translateY(-6px);
}

/* Card image placeholder treatment when no real image */
.card-image {
  position: relative;
  background-color: rgba(37, 99, 235, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-dark .card .card-image {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(37, 99, 235, 0.04) 50%,
    rgba(217, 119, 6, 0.08) 100%
  ) !important;
}

.card-body {
  padding: var(--space-8) var(--space-6);
}

@media (min-width: 768px) {
  .card-body {
    padding: var(--space-8);
  }
}

.section-dark .card .eyebrow {
  background-color: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: #93C5FD;
  font-size: 0.65rem;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: var(--space-6);
  font-weight: 400;
}

.section-dark .card-price {
  color: white;
}

/* --- STATS BAR: Premium visual treatment --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin: var(--space-12) 0;
}

@media (min-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
    padding: var(--space-10) var(--space-8);
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  position: relative;
}

@media (min-width: 768px) {
  .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--color-divider);
  }
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.stat-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- TESTIMONIALS: Fix class name + premium styling --- */
/* Template uses .testimonials-grid (with s) and .testimonial */
.testimonials-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: all var(--transition-default);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  position: relative;
  z-index: 1;
}

/* --- LEAD MAGNET FORM: Premium styling --- */
.lead-magnet {
  text-align: center;
}

.lead-magnet h2 {
  color: white;
}

.lead-magnet p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.lead-magnet-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 520px;
  margin: var(--space-8) auto 0;
}

@media (min-width: 640px) {
  .lead-magnet-form {
    flex-direction: row;
  }
}

.lead-magnet-form input[type="email"] {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all var(--transition-default);
  backdrop-filter: blur(8px);
}

.lead-magnet-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.lead-magnet-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.lead-magnet-form .btn {
  white-space: nowrap;
  padding: var(--space-4) var(--space-8);
}

/* --- CTA BANNER: Premium full-width treatment --- */
.cta-banner {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) var(--space-6);
  text-align: center;
  background-color: var(--color-surface-dark);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.12) 0%,
    transparent 70%
  );
  z-index: 1;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: var(--space-6);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 55ch;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.cta-banner .btn-primary {
  font-size: 1.125rem;
  padding: var(--space-5) var(--space-10);
}

/* --- BUTTONS: Extra polish --- */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  border: none;
  color: white;
  font-weight: 600;
  transition: all var(--transition-default);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #1a3fa0 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
  color: white;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
  transition: all var(--transition-default);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* All buttons base reset */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-default);
  line-height: 1.4;
}

/* --- INTRO TEXT: Problem section emphasis --- */
.section-alt .container-narrow {
  max-width: 720px;
}

.section-alt h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.section-alt p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.section-alt p strong {
  color: var(--color-text);
}

/* --- FOOTER POLISH --- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- MOBILE HAMBURGER: Visible styling --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all var(--transition-default);
}

/* --- VISUALLY HIDDEN (for form labels) --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- SPACING HELPERS --- */
.mt-12 {
  margin-top: var(--space-12);
}

.mb-lg {
  margin-bottom: var(--space-8);
}

/* --- END OF STYLESHEET --- */
