/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; }

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #052e6e;
  --primary-light: #0a4da8;
  --secondary: #27a89a;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --background: #f8fafc;
  --card: #ffffff;
  --foreground: #0f172a;
  --muted: #e8edf2;
  --muted-fg: #64748b;
  --border: #e2e8f0;
  --destructive: #ef4444;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --hero-gradient: linear-gradient(135deg, #052e6e 0%, #0a4da8 50%, #27a89a 100%);
  --max-width: 1200px;
}

/* ===== UTILITY CLASSES ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-fg); }
.text-white { color: #fff; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: calc(var(--radius) + 0.25rem); }
.rounded-full { border-radius: 9999px; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--hero-gradient);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--foreground);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.btn-get-financed {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-get-financed:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.5rem 0; }
  .btn-get-financed { width: 100%; justify-content: center; }
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.hero h1, .hero h2, .hero h3, .hero p, .hero span {
  color: #fff;
}
.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}
.hero .subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}
.hero .description {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
  font-size: 0.95rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  animation: pulseSoft 2s ease-in-out infinite;
}
.btn-hero-primary:hover { opacity: 0.9; }
.btn-hero-secondary {
  border: 2px solid #fff;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-hero-secondary:hover { background: #fff; color: var(--primary); }

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@media (max-width: 640px) {
  .hero { padding: 2rem 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ===== CALCULATOR CARD (inline on homepage) ===== */
.calc-section {
  padding: 2rem 0;
}
.calc-card {
  background: var(--card);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.calc-header {
  background: var(--hero-gradient);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.calc-header .calc-icon {
  font-size: 1.75rem;
}
.calc-header h1,
.calc-header h2 {
  font-size: 1.25rem;
  color: #fff;
}
.calc-header p {
  font-size: 0.85rem;
  opacity: 0.85;
  color: #fff;
}
.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}
@media (max-width: 768px) {
  .calc-body { grid-template-columns: 1fr; }
}

/* ===== MODE TOGGLE (Loan / Lease) ===== */
.mode-toggle {
  display: flex;
  border-radius: var(--radius);
  background: var(--muted);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}
.mode-toggle button {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  background: transparent;
  color: var(--muted-fg);
  transition: all 0.2s;
}
.mode-toggle button.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* ===== FORM FIELDS ===== */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5,46,110,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-helper {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}
.condition-toggle {
  display: flex;
  border-radius: var(--radius);
  background: var(--muted);
  padding: 0.2rem;
}
.condition-toggle button {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--muted-fg);
  transition: all 0.2s;
}
.condition-toggle button.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ===== RESULTS PANEL ===== */
.result-display {
  background: var(--hero-gradient);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.result-display p,
.result-display span,
.result-display h3,
.result-display h4 {
  color: #fff;
}
.result-label {
  font-size: 0.85rem;
  opacity: 0.85;
  color: #fff;
}
.result-amount {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0.25rem 0;
  animation: pulseSoft 2s ease-in-out infinite;
  color: #fff;
}
.result-sub { font-size: 0.8rem; opacity: 0.75; color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.stat-card {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
}
.stat-card .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
}
.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ===== CTA BANNERS ===== */
.cta-banner {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.cta-green {
  background: linear-gradient(to right, #16a34a, #22c55e);
  color: #fff;
}
.cta-orange {
  background: linear-gradient(to right, #f97316, #ea580c);
  color: #fff;
}
.cta-primary {
  background: var(--hero-gradient);
  color: #fff;
}
.cta-banner h3,
.cta-banner .cta-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}
.cta-banner p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
  color: #fff;
}
.cta-banner * {
  color: #fff;
}
.cta-banner .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cta-banner .btn-cta:hover { opacity: 0.9; }
.cta-green .btn-cta { background: #fff; color: #16a34a !important; }
.cta-orange .btn-cta { background: #fff; color: #ea580c !important; }
.cta-primary .btn-cta { background: var(--accent); color: #fff !important; }

/* Force white text in all CTA banners even when nested inside .content-card */
.content-card .cta-banner,
.content-card .cta-banner h3,
.content-card .cta-banner p,
.content-card .cta-banner span,
.content-card .cta-banner a,
article .cta-banner,
article .cta-banner h3,
article .cta-banner p,
article .cta-banner span,
article .cta-banner a {
  color: #fff;
}
.content-card .cta-green .btn-cta,
article .cta-green .btn-cta { color: #16a34a !important; }
.content-card .cta-orange .btn-cta,
article .cta-orange .btn-cta { color: #ea580c !important; }

.trust-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ===== INDUSTRY CATEGORY GRID ===== */
.category-section { padding: 2rem 0; }
.category-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.category-tab {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--card);
  color: var(--muted-fg);
  transition: all 0.2s;
}
.category-tab:hover, .category-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.calc-grid-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-align: center;
}
.calc-grid-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.calc-grid-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.calc-grid-card .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
}
.calc-grid-card .card-desc {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}

/* ===== HOW IT WORKS SECTION ===== */
.features-section { padding: 2.5rem 0; background: var(--card); }
.features-section h2 { text-align: center; font-size: 1.5rem; margin-bottom: 2rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  text-align: center;
  padding: 1.5rem;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
}
.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--muted-fg);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--muted-fg);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ===== PAGE CONTENT CARDS ===== */
.content-card {
  background: var(--card);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 769px) {
  .content-card { padding: 2rem; }
}
.content-card h2 {
  font-size: 1.35rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.content-card h3 {
  font-size: 1.1rem;
  color: var(--foreground);
  margin: 1.25rem 0 0.5rem;
}
.content-card p {
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.content-card ul, .content-card ol {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
}
.content-card li {
  font-size: 0.9rem;
  color: var(--muted-fg);
  margin-bottom: 0.35rem;
  list-style: disc;
}
.content-card ol li { list-style: decimal; }

/* ===== CATEGORY HERO IMAGE ===== */
.category-hero {
  position: relative;
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  margin-bottom: 1.5rem;
  height: 200px;
}
.category-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,46,110,0.8), rgba(5,46,110,0.3));
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
}
.category-hero-overlay h1,
.category-hero-overlay h2 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}
@media (min-width: 769px) {
  .category-hero { height: 260px; }
}

/* ===== EQUIPMENT PILLS ===== */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--secondary);
  color: #fff;
}

/* ===== CREDIT TIERS ===== */
.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.credit-card {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.credit-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.credit-card p {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

/* ===== TIPS LIST ===== */
.tips-list { counter-reset: tip; }
.tip-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.tip-number {
  counter-increment: tip;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.tip-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.tip-content p {
  font-size: 0.85rem;
  color: var(--muted-fg);
}

/* ===== COMPARISON GRID (New vs Used) ===== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr; }
}
.compare-card {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1rem;
}
.compare-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.compare-card li {
  font-size: 0.8rem;
  list-style: none !important;
  padding-left: 0;
}

/* ===== RELATED CALCULATORS ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.related-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--muted);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.related-link:hover {
  background: var(--primary);
  color: #fff;
}
.related-link .rel-icon { font-size: 1.25rem; }

/* ===== DISCLAIMER BOX ===== */
.disclaimer {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted-fg);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 1rem 0;
}
.disclaimer-icon { font-size: 1rem; flex-shrink: 0; }

/* ===== INFO HELP BOX (in calc form) ===== */
.info-box {
  background: rgba(5,46,110,0.05);
  border: 1px solid rgba(5,46,110,0.15);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}
.info-box h4,
.info-box .info-box-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.info-box p {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.btn-info {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-info:hover { opacity: 0.9; }

/* ===== FINANCING TERMS TABLE ===== */
.terms-table {
  width: 100%;
  margin: 0.75rem 0;
}
.terms-table dt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--foreground);
  padding: 0.5rem 0 0.1rem;
}
.terms-table dd {
  font-size: 0.85rem;
  color: var(--muted-fg);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  color: #fff;
  margin-top: auto;
}
.site-footer h3, .site-footer h4, .site-footer p, .site-footer span, .site-footer a {
  color: #fff;
}
.footer-cta {
  background: linear-gradient(to right, #16a34a, #22c55e);
  padding: 2rem 0;
  text-align: center;
}
.footer-cta h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: #fff; }
.footer-cta p { opacity: 0.9; font-size: 0.9rem; margin-bottom: 1rem; color: #fff; }
.footer-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  color: #16a34a;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.footer-cta .btn-cta { color: #16a34a !important; }
.footer-cta .btn-cta:hover { opacity: 0.9; }
.footer-cta-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.85;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding: 2.5rem 0;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4,
.footer-col .footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  opacity: 1;
}
.footer-col p, .footer-col a {
  font-size: 0.85rem;
  opacity: 0.8;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}
.btn-footer-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}
.btn-footer-apply:hover { opacity: 0.9; }

/* ===== ABOUT / CONTACT / LEGAL PAGES ===== */
.page-section { padding: 2rem 0; flex: 1; }
.page-section h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

/* ===== CONTACT FORM SPECIFICS ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-sidebar {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-sidebar h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--foreground); }
.contact-sidebar p { font-size: 0.85rem; color: var(--muted-fg); }
.contact-sidebar ul { margin-top: 0.75rem; }
.contact-sidebar li {
  list-style: none;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--primary-light); }

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  z-index: 100;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #16a34a; }
.toast.error { background: var(--destructive); }

/* ===== SPECIALTY CALC UNIQUE STYLES ===== */
.tax-result {
  background: #16a34a;
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.tax-result p,
.tax-result span,
.tax-result h3,
.tax-result h4 {
  color: #fff;
}
.tax-result .tax-amount {
  font-size: 2.25rem;
  font-weight: 700;
  animation: pulseSoft 2s ease-in-out infinite;
  color: #fff;
}
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}
.breakdown-table tr { border-bottom: 1px solid var(--border); }
.breakdown-table td {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.breakdown-table td:last-child { text-align: right; font-weight: 600; }
.breakdown-table tr.total td {
  font-weight: 700;
  border-top: 2px solid var(--foreground);
  padding-top: 0.75rem;
}

/* ===== VIEW ALL LINK ===== */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: gap 0.2s;
}
.view-all-link:hover { gap: 0.5rem; text-decoration: underline; }

/* ===== SECTION 179 & SPECIALTY TABS ===== */
.info-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.info-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--card);
  color: var(--muted-fg);
  transition: all 0.2s;
}
.info-tab:hover, .info-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== PRINT / ACCESSIBILITY ===== */
@media print {
  .site-header, .site-footer, .cta-banner, .btn-get-financed, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .content-card { box-shadow: none; border: 1px solid #ccc; }
}

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

/* ===== WHITE TEXT ENFORCEMENT ON DARK BACKGROUNDS ===== */
/* Master override for all dark-background containers to guarantee text visibility */
.hero h1, .hero h2, .hero h3, .hero h4, .hero p, .hero span, .hero a:not(.btn-hero-primary):not(.btn-hero-secondary) { color: #fff !important; }
.calc-header h1, .calc-header h2, .calc-header h3, .calc-header p, .calc-header span { color: #fff !important; }
.result-display p, .result-display span, .result-display h3 { color: #fff !important; }
.tax-result p, .tax-result span, .tax-result h3 { color: #fff !important; }
.cta-banner h3, .cta-banner .cta-heading, .cta-banner p, .cta-banner span, .cta-banner a:not(.btn-cta) { color: #fff !important; }
.cta-primary h3, .cta-primary p, .cta-primary span { color: #fff !important; }
.cta-green h3, .cta-green p, .cta-green span { color: #fff !important; }
.cta-orange h3, .cta-orange p, .cta-orange span { color: #fff !important; }
.site-footer h3, .site-footer h4, .site-footer p, .site-footer span, .site-footer a { color: #fff !important; }
.footer-cta .btn-cta { color: #16a34a !important; }
.cta-green .btn-cta { color: #16a34a !important; }
.cta-orange .btn-cta { color: #ea580c !important; }
.cta-primary .btn-cta { color: #fff !important; }
.category-hero-overlay h1, .category-hero-overlay h2 { color: #fff !important; }
.btn-get-financed, .btn-get-financed:hover, .btn-get-financed:visited { color: #fff !important; }
