/* ============================================
   DealerPro - Contemporary Clean Design
   Color Palette: Black, Gold/Amber, White
   ============================================ */

/* CSS Variables */
:root {
  --black: #2d3a4a;
  --dark: #344255;
  --gold: #c9942e;
  --gold-light: #d4a84b;
  --gold-hover: #b8841f;
  --gold-bg: #f5e6c8;
  --gold-bg-light: #faf3e6;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #3d4a5c;
  --gray-800: #2d3a4a;
  --text: #333333;
  --text-light: #666666;
  --orange: #e8651a;
  --orange-light: #f28c28;
  --font-heading: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --black: #e5e5e5;
  --dark: #d4d4d4;
  --gold: #d4a84b;
  --gold-light: #e0bc6a;
  --gold-hover: #c9942e;
  --gold-bg: #2a2520;
  --gold-bg-light: #23201c;
  --white: #1a1a2e;
  --gray-50: #1e1e32;
  --gray-100: #141425;
  --gray-200: #2a2a40;
  --gray-300: #3d3d55;
  --gray-400: #8888a0;
  --gray-500: #a0a0b8;
  --gray-600: #c0c0d0;
  --gray-700: #2a2a40;
  --gray-800: #e0e0e8;
  --text: #e0e0e8;
  --text-light: #a8a8c0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.4), 0 10px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] body {
  background: var(--gray-100);
}

[data-theme="dark"] .header {
  background: #1a1a2e;
  border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .nav-links a {
  color: var(--gray-500);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--gold);
}

[data-theme="dark"] .dropdown {
  background: #1a1a2e;
  border-color: #2a2a40;
}

[data-theme="dark"] .dropdown li a {
  color: var(--gray-500);
}

[data-theme="dark"] .dropdown li a:hover {
  background: #252540;
  color: var(--gold);
}

[data-theme="dark"] .mobile-toggle span {
  background: var(--text);
}

[data-theme="dark"] .top-bar {
  background: #10101e;
  color: #d0d0e0;
}

[data-theme="dark"] .top-bar-location span,
[data-theme="dark"] .top-bar-location {
  color: #d0d0e0;
}

[data-theme="dark"] .top-bar-location .icon {
  color: var(--gold);
}

[data-theme="dark"] .top-bar-location a {
  color: var(--gold-light);
}

[data-theme="dark"] .social-links a {
  background: #2a2a40;
  color: #d0d0e0;
}

[data-theme="dark"] .panel > .panel-inner {
  background: #1e1e32;
}

[data-theme="dark"] .panel > .panel-inner.panel-dark {
  background: #10101e;
}

[data-theme="dark"] .panel > .panel-inner.panel-gold {
  background: var(--gold-bg);
}

[data-theme="dark"] .feature-card {
  background: #1e1e32;
  border-color: var(--gray-200);
}

[data-theme="dark"] .feature-card:hover {
  border-color: var(--gold);
}

[data-theme="dark"] .feature-icon {
  background: var(--gold-bg);
}

[data-theme="dark"] .highlight-section {
  background: linear-gradient(135deg, #10101e 0%, #1a1a2e 100%);
}

[data-theme="dark"] .highlight-image .eco-badge {
  background: #1e1e32;
}

[data-theme="dark"] .highlight-image .eco-badge h3 {
  color: #66bb6a;
}

[data-theme="dark"] .newsletter {
  background: var(--gold-bg);
}

[data-theme="dark"] .newsletter-form input {
  background: #1a1a2e;
  border-color: var(--gray-200);
  color: var(--text);
}

[data-theme="dark"] .footer {
  background: #10101e;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--gray-200);
}

[data-theme="dark"] .quick-links {
  background: #1e1e32;
}

[data-theme="dark"] .quick-links a {
  color: var(--text);
}

[data-theme="dark"] .about-image img {
  background: #2a2a40 !important;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #10101e 0%, #1a1a2e 100%);
}

[data-theme="dark"] .hero h1 {
  color: #d0d0e0;
}

[data-theme="dark"] .hero p {
  color: #9090a8;
}

[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, #10101e 0%, #1a1a2e 100%);
}

[data-theme="dark"] .service-card {
  background: #1e1e32;
  border-color: var(--gray-200);
}

[data-theme="dark"] .contact-info-card {
  background: #1a1a2e;
}

[data-theme="dark"] .contact-form {
  background: #1e1e32;
  border-color: var(--gray-200);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #1a1a2e;
  border-color: var(--gray-200);
  color: var(--text);
}

[data-theme="dark"] .product-card {
  background: #1e1e32;
  border-color: var(--gray-200);
}

[data-theme="dark"] .product-image {
  background: #1a1a2e;
}

[data-theme="dark"] .financing-card {
  background: #1e1e32;
  border-color: var(--gray-200);
}

[data-theme="dark"] .brand-card {
  background: #1e1e32;
  border-color: var(--gray-200);
}

[data-theme="dark"] .brand-logo {
  background: #1a1a2e;
}

[data-theme="dark"] .grid-card {
  background: #1e1e32;
}

[data-theme="dark"] .grid-card .card-icon {
  background: #1a1a2e;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
}

[data-theme="dark"] .cta-section h2,
[data-theme="dark"] .cta-section p {
  color: #1a1a2e;
}

[data-theme="dark"] .parts-filter select {
  background: #1a1a2e;
  border-color: var(--gray-200);
  color: var(--text);
}

[data-theme="dark"] #editorjs-content blockquote.ejs-quote {
  background: #1a1a2e;
}

[data-theme="dark"] #editorjs-content .ejs-table th {
  background: #1a1a2e;
}

[data-theme="dark"] #editorjs-content .ejs-table th,
[data-theme="dark"] #editorjs-content .ejs-table td {
  border-color: var(--gray-200);
}

[data-theme="dark"] #editorjs-content .ejs-warning {
  background: #2a2520;
  border-left-color: #d4a84b;
}

[data-theme="dark"] #editorjs-content pre.ejs-code {
  background: #10101e;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-700);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

[data-theme="dark"] .dark-mode-toggle {
  background: #2a2a40;
  color: #fbbf24;
}

[data-theme="dark"] .dark-mode-toggle:hover {
  background: #3d3d55;
}

.calc-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-700);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.calc-toggle:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

[data-theme="dark"] .calc-toggle {
  background: #2a2a40;
  color: #fbbf24;
}

[data-theme="dark"] .calc-toggle:hover {
  background: #3d3d55;
}

/* Smooth transition for theme switch */
html[data-theme="dark"] *,
html[data-theme="dark"] *::before,
html[data-theme="dark"] *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile nav dark mode */
[data-theme="dark"] .nav-links {
  background: #1a1a2e;
  border-top-color: var(--gray-200);
}

[data-theme="dark"] .nav-links a {
  border-bottom-color: var(--gray-200);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
  background: var(--black);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-locations {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.top-bar-location {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-location .icon {
  color: var(--gold);
  font-size: 0.9rem;
}

.top-bar-location a {
  color: var(--gold-light);
}

.top-bar-location a:hover {
  color: var(--white);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-700);
  color: var(--white);
  font-size: 0.85rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.login-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 48px;
  height: 48px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
}

.logo-line1 {
  font-size: 1.05rem;
  color: var(--black);
}

.logo-line2 {
  font-size: 1.35rem;
  color: #111111;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 20px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ── Dropdown Navigation ── */
.nav-links > li {
  position: relative;
}

.has-dropdown > a {
  gap: 6px;
}

.has-dropdown > a .dropdown-arrow {
  font-size: 0.55em;
  transition: transform 0.3s ease;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  z-index: 1001;
  padding: 4px 0;
  list-style: none;
}

.has-dropdown:hover > .dropdown {
  display: flex;
}

.has-dropdown:hover > a .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown li a {
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  white-space: nowrap;
  transition: var(--transition);
}

.dropdown li a:hover {
  background: var(--gray-50);
  color: var(--black);
}

.dropdown li a::after {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ============================================
   Home Panels - card-like sections on homepage
   ============================================ */
.home-panels {
  background: var(--gray-100);
  padding: 32px 0;
}

.home-panels > .panel {
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto 32px;
  padding: 0 24px;
}

.home-panels > .panel:last-child {
  margin-bottom: 0;
}

/* Dynamic homepage sections — full-width, break out of panel constraints */
#homepageSections:empty {
  display: none;
}

.panel > .panel-inner {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.panel > .panel-inner.panel-dark {
  background: var(--black);
}

.panel > .panel-inner.panel-gold {
  background: var(--gold-bg);
}

.panel > .panel-inner > .section {
  border-radius: 1rem;
}

.panel > .panel-inner > .section.section-gray {
  background: var(--white);
}

.panel > .panel-inner > .highlight-section {
  border-radius: 1rem;
}

.panel > .panel-inner > .newsletter {
  border-radius: 1rem;
}

.panel > .panel-inner > .quick-links {
  border-radius: 1rem;
}

.panel > .panel-inner > .hero {
  border-radius: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 36px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(201, 148, 46, 0.15);
  border: 1px solid rgba(201, 148, 46, 0.3);
  border-radius: 100px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-300);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gray-500);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

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

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 80px 0;
}

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

.section-gray {
  background: var(--gray-50);
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header .gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   Quick Links Bar
   ============================================ */
.quick-links {
  background: var(--white);
  padding: 20px 0;
}

.quick-links .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.quick-links a {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.quick-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================
   About / Intro Section
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.about-content .gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
  border-radius: 2px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content .btn {
  margin-top: 16px;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   Features / Services Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-align: center;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--gold-bg);
  color: var(--gold);
  border-radius: var(--radius-lg);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

/* Four-column features */
.features-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   Lithium/Highlight Section
   ============================================ */
.highlight-section {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  color: var(--white);
  padding: 80px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.highlight-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 24px;
}

.highlight-content .gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
  border-radius: 2px;
}

.highlight-content p {
  color: var(--gray-300);
  margin-bottom: 16px;
  line-height: 1.8;
}

.highlight-content .btn {
  margin-top: 16px;
}

.highlight-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-image .eco-badge {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.highlight-image .eco-badge h3 {
  font-size: 1.5rem;
  color: #4caf50;
  margin-top: 16px;
}

/* ============================================
   Feature Panel (split 2-col content + image)
   ============================================ */
.feature-panel {
  padding: 80px 0;
  background: var(--white);
  width: 100%;
}

.feature-panel.fp-dark {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  color: var(--white);
}

.feature-panel.fp-dark .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.feature-panel.fp-dark .btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.feature-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-panel-grid.fp-image-left {
  direction: rtl;
}

.feature-panel-grid.fp-image-left > * {
  direction: ltr;
}

.fp-content h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.fp-dark .fp-content h2 {
  color: var(--white);
}

.fp-content .gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
  border-radius: 2px;
}

.fp-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.fp-dark .fp-content p {
  color: var(--gray-300);
}

.fp-content .btn {
  margin-top: 16px;
}

.fp-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
}

.fp-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Generic section background classes — used on all section types */
.section-bg-dark {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  color: var(--white);
}
.section-bg-dark h2, .section-bg-dark h3, .section-bg-dark h4 { color: var(--white); }
.section-bg-dark p, .section-bg-dark li, .section-bg-dark td { color: var(--gray-300); }
.section-bg-dark a { color: var(--gold); }
.section-bg-dark .btn-outline { color: var(--white); border-color: var(--white); }
.section-bg-dark .btn-outline:hover { background: var(--white); color: var(--black); }

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

/* Dark mode adjustments for light-bg feature panel */
[data-theme="dark"] .feature-panel:not(.fp-dark):not(.section-bg-dark) {
  background: var(--gray-100);
}

[data-theme="dark"] .feature-panel:not(.fp-dark):not(.section-bg-dark) .fp-content h2 {
  color: var(--text);
}

[data-theme="dark"] .feature-panel:not(.fp-dark):not(.section-bg-dark) .fp-content p {
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .feature-panel {
    padding: 48px 0;
  }

  .feature-panel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-panel-grid.fp-image-left {
    direction: ltr;
  }

  .fp-content h2 {
    font-size: 1.5rem;
  }

  .fp-image img {
    max-width: 100%;
  }
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter {
  background: var(--gold-bg);
  padding: 60px 0;
}

.newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.newsletter-content {
  flex: 1;
  min-width: 250px;
}

.newsletter-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.newsletter-content p {
  color: var(--text-light);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 520px;
  min-width: 300px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: var(--transition);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.newsletter-form .btn {
  white-space: nowrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  /* Column count is controlled by --footer-cols (default 3).
     top-bar.js / index.html can override with style="--footer-cols: N"
     when multiple location-hour columns are shown. Using a CSS var instead
     of a direct grid-template-columns inline style lets the responsive
     media queries below still collapse the layout on smaller screens. */
  --footer-cols: 3;
  grid-template-columns: repeat(var(--footer-cols), 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

/* Social icons in the footer-bottom row (moved here from the removed About column) */
.footer-bottom .social-links {
  display: flex;
  gap: 14px;
}

.footer-bottom .social-links a {
  color: var(--gray-400);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-bottom .social-links a:hover {
  color: var(--gold);
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-about .social-links {
  margin-top: 16px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.footer-hours table {
  width: 100%;
  font-size: 0.85rem;
}

.footer-hours td {
  padding: 5px 0;
}

.footer-hours td:first-child {
  font-weight: 600;
  color: var(--gray-300);
}

.footer-hours td:last-child {
  text-align: right;
  color: var(--gray-400);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============================================
   Page Header (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.page-header .breadcrumb {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.page-header .breadcrumb a {
  color: var(--gold-light);
}

.page-header .breadcrumb a:hover {
  color: var(--white);
}

/* ============================================
   Services Page
   ============================================ */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.service-card .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.service-card .phone {
  color: var(--gold);
  font-weight: 600;
}

/* ============================================
   Parts Page - Product Grid
   ============================================ */
.parts-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.parts-filter label {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.parts-filter select {
  padding: 10px 40px 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23737373' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: var(--transition);
}

.parts-filter select:focus {
  outline: none;
  border-color: var(--gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

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

.product-image {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image .placeholder {
  color: var(--gray-300);
  font-size: 3rem;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-info .price {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-info .btn {
  width: 100%;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-card .icon {
  color: var(--gold);
}

.contact-info-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.contact-info-card a {
  color: var(--gold);
  font-weight: 600;
}

.contact-info-card a:hover {
  color: var(--gold-hover);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group label .required {
  color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 148, 46, 0.1);
}

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

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.form-check label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   Sell or Trade Page
   ============================================ */
.trade-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.trade-step {
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.trade-step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.trade-step p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Financing Page
   ============================================ */
.financing-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.financing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  transition: var(--transition);
}

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

.financing-card .rate {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.financing-card h3 {
  margin-bottom: 12px;
}

.financing-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   Brands Page
   ============================================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

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

.brand-logo {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  padding: 32px;
}

.brand-logo img {
  max-height: 80px;
  object-fit: contain;
}

.brand-logo .brand-placeholder {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-600);
  letter-spacing: 2px;
}

.brand-info {
  padding: 24px;
}

.brand-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.brand-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
  background: var(--gray-50);
  padding: 0;
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.map-placeholder {
  min-height: 400px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1.1rem;
}

.map-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-info h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.location-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.location-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.location-item h4 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.location-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

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

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

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

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

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

@media (max-width: 768px) {
  .top-bar-locations {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links a::after {
    display: none;
  }

  /* Mobile dropdown */
  .has-dropdown > a {
    justify-content: space-between;
  }

  .has-dropdown > a .dropdown-arrow {
    margin-left: auto;
    font-size: 0.65em;
  }

  .has-dropdown.open > a .dropdown-arrow {
    transform: rotate(180deg);
  }

  .has-dropdown:hover > .dropdown {
    display: none;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: unset;
    background: var(--gray-50);
  }

  .has-dropdown.open > .dropdown {
    display: flex;
  }

  .dropdown li a {
    padding: 14px 24px 14px 40px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--gray-100);
  }

  [data-theme="dark"] .dropdown {
    background: #15152a;
  }

  [data-theme="dark"] .dropdown li a {
    border-bottom-color: #1e1e32;
  }

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

  .hero-content {
    padding: 40px 0;
  }

  .about-grid,
  .highlight-grid,
  .contact-grid,
  .map-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .trade-steps,
  .financing-highlights {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .newsletter .container {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

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

  .section {
    padding: 48px 0;
  }

  .page-header {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

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

  .section-header h2 {
    font-size: 1.6rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================
   Editor.js Rendered Content
   ============================================ */
#editorjs-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
}

#editorjs-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

#editorjs-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

#editorjs-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 16px;
}

#editorjs-content ul,
#editorjs-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

#editorjs-content ul {
  list-style: disc;
}

#editorjs-content ol {
  list-style: decimal;
}

#editorjs-content li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 6px;
  padding-left: 4px;
}

#editorjs-content ul ul {
  list-style: circle;
  margin-top: 6px;
}

#editorjs-content blockquote.ejs-quote {
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--gray-100);
  border-radius: 0 8px 8px 0;
}

#editorjs-content blockquote.ejs-quote p {
  font-style: italic;
  margin-bottom: 8px;
}

#editorjs-content blockquote.ejs-quote cite {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-style: normal;
}

#editorjs-content hr.ejs-delimiter {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 32px 0;
}

#editorjs-content figure {
  margin: 20px 0;
}

#editorjs-content figure img {
  max-width: 100%;
  border-radius: 8px;
}

#editorjs-content figure figcaption {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 8px;
  text-align: center;
}

#editorjs-content .ejs-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

#editorjs-content .ejs-table {
  width: 100%;
  border-collapse: collapse;
}

#editorjs-content .ejs-table th,
#editorjs-content .ejs-table td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
}

#editorjs-content .ejs-table th {
  background: var(--gray-100);
  font-weight: 700;
  text-align: left;
}

#editorjs-content .ejs-warning {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

#editorjs-content .ejs-warning-title {
  font-weight: 700;
  margin-bottom: 4px;
}

#editorjs-content pre.ejs-code {
  background: var(--gray-800);
  color: #e5e5e5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

#editorjs-content .ejs-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
}

#editorjs-content .ejs-checklist-item.checked {
  text-decoration: line-through;
  opacity: 0.6;
}

/* ============================================
   Card Grid Sections
   ============================================ */
.card-grid-section {
  padding: 48px 0;
}

.card-grid-section .section-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.card-grid-section .section-subheading {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (min-width: 769px) and (max-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

.grid-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.card-grid.ratio-3-2 .grid-card .card-image { aspect-ratio: 3 / 2; }
.card-grid.ratio-1-1 .grid-card .card-image { aspect-ratio: 1 / 1; }
.card-grid.ratio-auto .grid-card .card-image { aspect-ratio: auto; }

.grid-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: var(--gray-50);
  font-size: 2.5rem;
  color: var(--gold);
}

.grid-card .card-body {
  padding: 20px;
}

.grid-card .card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.grid-card .card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Markdown Content
   ============================================ */
.markdown-content {
  padding: 8px 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  color: var(--black);
  margin-bottom: 12px;
}

.markdown-content h1 { font-size: 1.8rem; }
.markdown-content h2 { font-size: 1.5rem; }
.markdown-content h3 { font-size: 1.25rem; }
.markdown-content h4 { font-size: 1.1rem; }

.markdown-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 16px;
}

.markdown-content ul,
.markdown-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.markdown-content ul { list-style: disc; }
.markdown-content ol { list-style: decimal; }

.markdown-content li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 6px;
}

.markdown-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--gray-100);
  border-radius: 0 8px 8px 0;
}

.markdown-content blockquote p {
  font-style: italic;
  margin-bottom: 0;
}

.markdown-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.markdown-content pre {
  background: var(--gray-800);
  color: #e5e5e5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.markdown-content hr {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 32px 0;
}

.markdown-content a {
  color: var(--gold);
  font-weight: 600;
}

.markdown-content a:hover {
  color: var(--gold-hover);
}

.markdown-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.markdown-content th,
.markdown-content td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
}

.markdown-content th {
  background: var(--gray-100);
  font-weight: 700;
  text-align: left;
}

[data-theme="dark"] .markdown-content pre {
  background: #10101e;
}

[data-theme="dark"] .markdown-content code {
  background: #2a2a40;
}

[data-theme="dark"] .markdown-content blockquote {
  background: #1a1a2e;
}

[data-theme="dark"] .markdown-content th {
  background: #1a1a2e;
}

/* ============================================
   Embed Content
   ============================================ */
.embed-content {
  padding: 8px 0;
}

.embed-content iframe {
  max-width: 100%;
  border-radius: 8px;
}

[data-theme="dark"] .embed-content iframe {
  /* no color inversion — let embeds use their native colors */
}

/* ============================================
   Native Forms
   ============================================ */
.dp-form-container {
  padding: 8px 0;
}

.dp-form {
  max-width: 700px;
}

.dp-form-field {
  margin-bottom: 20px;
}

.dp-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.dp-form-required {
  color: #dc2626;
  margin-left: 2px;
}

.dp-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.dp-form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199,167,75,0.15);
}

.dp-form-input.dp-form-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

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

.dp-form-select {
  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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.dp-form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dp-form-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.dp-form-option input[type="radio"],
.dp-form-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.dp-form-actions {
  margin-top: 24px;
}

.dp-form-submit {
  min-width: 160px;
}

.dp-form-success {
  padding: 24px;
  background: var(--gold-bg);
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Form field format styles */
.dp-fmt-uppercase {
  text-transform: uppercase;
}
.dp-fmt-uppercase::placeholder {
  text-transform: none;
}

/* Toggle switches for form checkboxes */
.dp-form-toggles {
  flex-direction: column;
  gap: 10px;
}
.dp-form-toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}
.dp-form-toggle-option .toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.dp-form-toggle-option .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.dp-form-toggle-option .toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: 22px;
  transition: 0.25s;
}
.dp-form-toggle-option .toggle-switch .slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.25s;
}
.dp-form-toggle-option .toggle-switch input:checked + .slider {
  background: var(--gold);
}
.dp-form-toggle-option .toggle-switch input:checked + .slider::before {
  transform: translateX(16px);
}

/* Dark mode form adjustments */
[data-theme="dark"] .dp-form-input {
  background: var(--gray-50) !important;
  border-color: var(--gray-300);
  color: var(--text) !important;
}

[data-theme="dark"] .dp-form-input:focus {
  background: var(--gray-50) !important;
  border-color: var(--gold);
  color: var(--text) !important;
  box-shadow: 0 0 0 3px rgba(212,168,75,0.2);
}

[data-theme="dark"] .dp-form-input:-webkit-autofill,
[data-theme="dark"] .dp-form-input:-webkit-autofill:hover,
[data-theme="dark"] .dp-form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px #1e1e32 inset !important;
  box-shadow: 0 0 0 1000px #1e1e32 inset !important;
  background-color: #1e1e32 !important;
}

[data-theme="dark"] .dp-form-select {
  background-color: var(--gray-50) !important;
  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='%23a0a0b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .dp-form-toggle-option .toggle-switch .slider {
  background: var(--gray-300);
}

/* Submit modal */
.dp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.dp-modal {
  background: var(--white, #fff);
  border-radius: var(--radius-lg, 12px);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.dp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200, #e5e5e5);
  font-weight: 600;
  font-size: 1rem;
}
.dp-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500, #888);
  line-height: 1;
  padding: 0 4px;
}
.dp-modal-close:hover {
  color: var(--text, #333);
}
.dp-modal-body {
  flex: 1;
  overflow: hidden;
}
.dp-modal-iframe {
  width: 100%;
  height: 300px;
  border: none;
}
.dp-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dp-modal-hint {
  font-size: 0.85rem;
  color: var(--gray-500, #888);
  margin: 0;
}
.dp-modal-done {
  padding: 10px 28px;
}
[data-theme="dark"] .dp-modal {
  background: var(--gray-50, #1a1a2e);
  border: 1px solid var(--gray-300, #333);
}
[data-theme="dark"] .dp-modal-header {
  border-color: var(--gray-300, #333);
}
[data-theme="dark"] .dp-modal-footer {
  border-color: var(--gray-300, #333);
}
[data-theme="dark"] .dp-modal-iframe {
  /* no color inversion — let embeds use their native colors */
}

/* ============================================
   Popup Overlay System
   ============================================ */
.dp-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 16px 16px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  pointer-events: none;
}

.dp-popup-overlay.active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.75);
  pointer-events: auto;
}

.dp-popup-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(12px);
  transition: transform 0.3s ease;
}

.dp-popup-overlay.active .dp-popup-modal {
  transform: translateY(0);
}

.dp-popup-modal ul { list-style: disc; padding-left: 24px; }
.dp-popup-modal ol { list-style: decimal; padding-left: 24px; }
.dp-popup-modal li { margin-bottom: 4px; }

.dp-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.dp-popup-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.dp-popup-img {
  width: 100%;
  display: block;
}

.dp-popup-placeholder {
  padding: 48px;
  text-align: center;
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .dp-popup-overlay {
    padding: 60px 12px 12px;
  }
  .dp-popup-modal {
    max-width: 100%;
    border-radius: 12px;
  }
}

/* ============================================
   Rates Table
   ============================================ */
.rates-table-container {
  padding: 8px 0;
}

.rates-table-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.rates-product-group {
  margin-bottom: 24px;
}

.rates-product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rates-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.rates-table thead {
  background: var(--black);
  color: var(--white);
}

.rates-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.rates-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

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

.rates-table tbody tr:hover {
  background: rgba(212, 145, 42, 0.06);
}

.rates-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.rates-table tbody tr:nth-child(even):hover {
  background: rgba(212, 145, 42, 0.08);
}

.rates-note {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 8px;
  font-style: italic;
}

.rates-fineprint {
  font-size: 0.7rem !important;
  color: var(--gray-400);
  margin-top: 16px;
  line-height: 1.5;
}
.rates-fineprint * {
  font-size: 0.7rem !important;
  color: var(--gray-400);
  line-height: 1.5;
}
.rates-fineprint p { margin: 0 0 4px 0; }
.rates-fineprint a { color: var(--gray-400); text-decoration: underline; }
.rates-fineprint blockquote {
  border-left: 3px solid var(--gray-300);
  margin: 0;
  padding: 4px 0 4px 12px;
  font-style: italic;
}

/* Dark mode rates table */
[data-theme="dark"] .rates-table-wrap {
  border-color: var(--gray-300);
}

[data-theme="dark"] .rates-table thead {
  background: #1a1a2e;
}

[data-theme="dark"] .rates-table td {
  border-color: var(--gray-300);
}

[data-theme="dark"] .rates-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .rates-table tbody tr:hover {
  background: rgba(212, 145, 42, 0.1);
}

@media (max-width: 768px) {
  .rates-table {
    font-size: 0.78rem;
  }
  .rates-table th,
  .rates-table td {
    padding: 8px 10px;
  }
}
