/* ============================================
   ENRIQUE TAX PRO EA - Design System
   ============================================ */

:root {
  /* Brand Colors - Blue Palette (Primary UI) */
  --brand-blue: #1f5aa6;
  --brand-blue-dark: #0f3d73;
  --brand-blue-soft: #e8f1fb;
  
  /* Brand Colors - Gold Palette (Accent) */
  --brand-gold: #9f710c;
  --brand-gold-dark: #7f5001;
  --brand-gold-bright: #bf9512;
  
  /* Neutrals */
  --ink: #111111;
  --muted: #4b5563;
  --bg: #fafafa;
  --card: #ffffff;
  --border: rgba(17, 17, 17, 0.10);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Layout */
  --max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 4px 20px rgba(159, 113, 12, 0.2);
  
  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-blue-dark);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-5xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-6xl);
    letter-spacing: -0.03em;
  }
}

/* Eyebrow text utility */
.eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--muted);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-blue-dark);
}

a:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   COMPONENTS - CARD
   ============================================ */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
  transform: translateY(-2px);
}

/* Card variants */
.card-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-feature {
  text-align: center;
  padding: var(--space-xl);
}

.card-feature svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--brand-blue);
}

.card-quote {
  position: relative;
  padding: var(--space-xl);
}

.card-quote::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 4rem;
  line-height: 1;
  color: var(--brand-blue);
  opacity: 0.15;
  font-family: Georgia, serif;
}

.card-quote p {
  font-style: italic;
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.card-quote .quote-author {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ink);
  font-style: normal;
}

.card-stat {
  text-align: center;
  padding: var(--space-xl);
}

.card-stat .stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.card-stat .stat-label {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================
   COMPONENTS - BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: var(--space-xs);
}

.btn:focus {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.btn-primary,
a.btn-primary {
  background: var(--brand-gold);
  color: white !important;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover,
a.btn-primary:hover {
  background: var(--brand-gold-dark);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(159, 113, 12, 0.4);
}

.btn-primary:focus {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(159, 113, 12, 0.2);
}

.btn-secondary-blue {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.btn-secondary-blue:hover {
  background: var(--brand-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 90, 166, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-gold);
  border: 2px solid var(--brand-gold);
}

.btn-secondary:hover {
  background: var(--brand-gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

/* ============================================
   COMPONENTS - BADGE
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

.badge-gold {
  background: rgba(159, 113, 12, 0.1);
  color: var(--brand-gold);
}

/* ============================================
   COMPONENTS - FORM ELEMENTS
   ============================================ */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--ink);
  font-size: var(--font-size-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--card);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(31, 90, 166, 0.1);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: var(--font-size-xs);
  color: #dc2626;
  margin-top: var(--space-xs);
}

/* ============================================
   COMPONENTS - ACCORDION
   ============================================ */

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--card);
  cursor: pointer;
  transition: background var(--transition);
}

.accordion-header:hover {
  background: var(--bg);
}

.accordion-title {
  font-weight: 600;
  color: var(--brand-blue-dark);
}

.accordion-toggle {
  font-size: var(--font-size-xl);
  color: var(--brand-blue);
  font-weight: 700;
  transition: transform var(--transition);
}

.accordion.open .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg);
}

.accordion.open .accordion-body {
  max-height: 5000px;
}

.accordion-content {
  padding: var(--space-md);
}

/* ============================================
   COMPONENTS - CTA BAND
   ============================================ */

.cta-band {
  background: linear-gradient(135deg, rgba(159, 113, 12, 0.05), rgba(191, 149, 18, 0.05));
  border-top: 2px solid var(--brand-gold);
  border-bottom: 2px solid var(--brand-gold);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: var(--space-md);
}

.cta-band p {
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xs) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header-logo img {
  height: 140px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.header-nav-link {
  color: var(--muted);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  transition: all var(--transition);
}

.header-nav-link:hover {
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.header-ctas {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  color: var(--muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.language-toggle:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.language-toggle svg {
  flex-shrink: 0;
}

.language-toggle-label {
  display: inline-block;
}

.header-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--ink);
  padding: var(--space-xs);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  z-index: 200;
  padding: var(--space-lg);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--ink);
}

.mobile-menu-links {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.mobile-menu-link {
  display: block;
  padding: var(--space-md);
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-link:hover {
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--ink);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
}

.footer-section a:hover {
  color: var(--brand-gold-bright);
}

.footer-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.footer-badge img {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   MOBILE CTA BAR
   ============================================ */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: var(--space-sm);
  z-index: 99;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-cta-bar-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  max-width: var(--max-width);
  margin: 0 auto;
}

.mobile-cta-bar .btn {
  width: 100%;
  padding: var(--space-sm);
  font-size: var(--font-size-sm);
}

.mobile-cta-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-cta-icon-btn svg {
  flex-shrink: 0;
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

.trust-badge {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.trust-badge:hover {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .header-container {
    width: 100%;
  }
  
  .header {
    width: 100%;
  }
  
  .header-container .header-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
  }
  
  .header-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }
  
  .header-nav-links,
  .header-ctas {
    display: none;
  }
  
  .header-menu-toggle {
    display: block;
    margin: 0 auto;
  }
  
  .header-logo img {
    height: 100px;
  }
  
  .mobile-menu {
    text-align: center;
  }
  
  .mobile-menu-links {
    text-align: center;
  }
  
  .mobile-menu-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .mobile-menu-ctas .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .footer-badge img {
    height: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .pricing-estimator-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .pricing-estimator-item-price,
  .pricing-estimator-item-qty {
    text-align: left;
  }
  
  .hero-portrait {
    max-width: 200px;
    margin: 0 auto;
  }
  
  .hero-portrait-card {
    padding: var(--space-sm);
  }
  
  /* Mobile Centering */
  .container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  
  /* Center all content except form inputs */
  .container > *:not(form):not(input):not(textarea):not(select) {
    text-align: center !important;
  }
  
  /* Center hero content */
  .hero-grid {
    justify-items: center !important;
    text-align: center !important;
  }
  
  .hero-content {
    text-align: center !important;
  }
  
  /* Center headings and text */
  h1, h2, h3, h4, .hero-subhead, .eyebrow,
  section h1, section h2, section h3,
  section p, .section p {
    text-align: center !important;
  }
  
  /* Center hero CTAs */
  .hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
  }
  
  /* Center chip row */
  .chip-row {
    justify-content: center !important;
  }
  
  /* Center cards in grid */
  .card {
    text-align: center !important;
    margin: 0 auto;
  }
  
  /* Center how it works steps */
  .how-it-works-grid {
    justify-items: center !important;
  }
  
  /* Center trust badges */
  .hero-trust-row {
    justify-content: center !important;
    flex-wrap: wrap;
  }
  
  /* Form inputs should remain left-aligned for readability */
  form input,
  form textarea,
  form select {
    text-align: left !important;
  }
  
  /* Center buttons */
  .btn {
    margin: 0 auto;
  }
  
  /* Center sections */
  section {
    text-align: center !important;
  }
  
  section > .container {
    text-align: center !important;
  }
  
  /* Center text utilities */
  .text-center {
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .header-container {
    padding: var(--space-sm);
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .hero-portrait {
    max-width: 180px;
  }
  
  .footer-badge img {
    height: 32px;
  }
}

/* ============================================
   CHIP COMPONENT
   ============================================ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  border: 1px solid rgba(31, 90, 166, 0.2);
  transition: all var(--transition);
}

.chip:hover {
  background: rgba(31, 90, 166, 0.15);
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ============================================
   SECTION DIVIDERS & BANDS
   ============================================ */

.section-band {
  background: linear-gradient(135deg, 
    var(--brand-blue-soft) 0%,
    rgba(31, 90, 166, 0.05) 50%,
    var(--brand-blue-soft) 100%);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.section-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    var(--brand-blue) 20%,
    var(--brand-blue) 80%,
    transparent);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xl) 0;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 2px;
  background: var(--brand-gold);
}

/* ============================================
   PREMIUM BACKGROUND TEXTURES
   ============================================ */

.bg-premium {
  background: 
    radial-gradient(circle at 20% 50%, rgba(159, 113, 12, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(191, 149, 18, 0.03) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.01) 2px,
      rgba(0, 0, 0, 0.01) 4px
    ),
    var(--bg);
}

.hero-bg {
  background: 
    radial-gradient(ellipse at top left, rgba(31, 90, 166, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(159, 113, 12, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, var(--brand-blue-soft) 0%, rgba(191, 149, 18, 0.02) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.008) 10px,
      rgba(0, 0, 0, 0.008) 20px
    ),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 90, 166, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: slowGlow 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(159, 113, 12, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: slowGlow 10s ease-in-out infinite;
  animation-delay: -2s;
  pointer-events: none;
}

@keyframes slowGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before {
    animation: none;
    opacity: 0.3;
  }
  
  .btn-primary::before {
    transition: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover,
  .card:hover,
  .chip:hover {
    transform: none;
  }
}

/* ============================================
   HERO LAYOUT
   ============================================ */

.hero {
  padding: var(--space-2xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.hero-content h1 {
  margin-bottom: var(--space-md);
}

.hero-subhead {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-portrait {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.hero-portrait-card {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--card);
  padding: var(--space-md);
}

.hero-portrait-card img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  display: block;
}

.hero-portrait-badge {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gold);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.hero-trust-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  margin-right: var(--space-xs);
}

.hero-trust-badges {
  display: flex;
  gap: var(--space-xs);
}

.hero-trust-badges img {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  padding: var(--space-2xl) 0;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.how-it-works-step {
  text-align: center;
  position: relative;
}

.how-it-works-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: white;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.how-it-works-step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--brand-blue);
}

.how-it-works-step h3 {
  margin-bottom: var(--space-sm);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--brand-gold);
}

.text-blue {
  color: var(--brand-blue);
}

/* Pricing Estimator Tool UI Styles */
.pricing-estimator-wrapper {
  background: var(--card);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: var(--space-xl);
}

.pricing-estimator-header {
  background: var(--brand-blue);
  color: white;
  padding: var(--space-lg);
  text-align: center;
}

.pricing-estimator-header h2 {
  color: white;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-estimator-header p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.pricing-estimator-tabs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  overflow-x: auto;
}

.pricing-estimator-tab {
  padding: var(--space-sm) var(--space-md);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.pricing-estimator-tab:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.pricing-estimator-tab.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
}

.pricing-estimator-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-lg);
}

@media (min-width: 1024px) {
  .pricing-estimator-content {
    grid-template-columns: 2fr 1fr;
  }
}

.pricing-estimator-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pricing-estimator-section {
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--card);
}

.pricing-estimator-section-header {
  background: var(--brand-blue-soft);
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.pricing-estimator-section-header:hover {
  background: rgba(31, 90, 166, 0.2);
}

.pricing-estimator-section-header h3 {
  color: var(--brand-blue-dark);
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.pricing-estimator-section-toggle {
  color: var(--brand-blue);
  font-size: var(--font-size-xl);
  font-weight: 700;
  transition: transform var(--transition);
}

.pricing-estimator-section.open .pricing-estimator-section-toggle {
  transform: rotate(180deg);
}

.pricing-estimator-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.pricing-estimator-section.open .pricing-estimator-section-body {
  max-height: 5000px;
}

.pricing-estimator-items {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pricing-estimator-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.pricing-estimator-item:last-child {
  border-bottom: none;
}

.pricing-estimator-item-info {
  min-width: 0;
}

.pricing-estimator-item-name {
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: var(--space-xs);
}

.pricing-estimator-item-name.highlight {
  color: var(--brand-gold);
}

.pricing-estimator-item-description {
  font-size: var(--font-size-sm);
  color: var(--muted);
  line-height: 1.5;
}

.pricing-estimator-item-price {
  font-weight: 700;
  color: var(--brand-blue-dark);
  text-align: right;
  white-space: nowrap;
  min-width: 80px;
}

.pricing-estimator-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pricing-estimator-item-qty input {
  width: 70px;
  padding: var(--space-xs);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  text-align: center;
  font-size: var(--font-size-sm);
}

.pricing-estimator-item-check {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-blue);
}

.pricing-estimator-summary {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--card);
  border: 2px solid var(--brand-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.pricing-estimator-summary-title {
  color: var(--brand-blue-dark);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-estimator-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--ink);
}

.pricing-estimator-summary-row:last-of-type {
  border-bottom: 2px solid var(--brand-blue);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.pricing-estimator-summary-total {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--brand-gold);
}

.pricing-estimator-summary-note {
  font-size: var(--font-size-xs);
  color: var(--muted);
  margin-top: var(--space-md);
  line-height: 1.5;
  font-style: italic;
}

/* Mobile pricing summary (fixed bottom pill) */
@media (max-width: 1023px) {
  .pricing-estimator-content {
    grid-template-columns: 1fr;
  }
  
  .pricing-estimator-summary {
    position: fixed;
    bottom: 80px;
    left: var(--space-md);
    right: var(--space-md);
    top: auto;
    z-index: 90;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
  }
}

/* Page Hero Pattern */
.page-hero {
  background: linear-gradient(135deg, var(--brand-blue-soft) 0%, rgba(191, 149, 18, 0.02) 100%);
  padding: var(--space-2xl) 0;
  border-bottom: 2px solid var(--border);
}

.page-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
}

.page-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-md) 0;
}

.page-hero-cta {
  margin-top: var(--space-lg);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

