:root {
  --brand-dark: #1e3a8a;
  --brand-darker: #172554;
  --brand-primary: #1d4ed8;
  --brand-light: #eff6ff;
  --brand-yellow: #facc15;
  --brand-yellow-hover: #fde047;
  --text-muted-custom: #6b7280;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
}

.fw-extrabold {
  font-weight: 800;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

.text-brand-dark {
  color: var(--brand-dark) !important;
}

.text-brand-primary {
  color: var(--brand-primary) !important;
}

.text-brand-accent {
  color: #93c5fd !important;
}

.bg-brand-dark {
  background-color: var(--brand-dark) !important;
}

.bg-brand-light {
  background-color: var(--brand-light) !important;
}

.border-brand-light {
  border-color: #dbeafe !important;
}

.py-lg-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-subtitle {
  max-width: 42rem;
}

/* Logo badge */
.logo-badge {
  background-color: var(--brand-yellow);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* Navbar */
.navbar-dark .nav-link {
  color: rgba(219, 234, 254, 0.95);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
  color: #fff;
}

.navbar-dark .nav-link.active {
  color: var(--brand-yellow);
  font-weight: 600;
}

/* Buttons */
.btn-brand-yellow {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--brand-dark);
}

.btn-brand-yellow:hover,
.btn-brand-yellow:focus {
  background-color: var(--brand-yellow-hover);
  border-color: var(--brand-yellow-hover);
  color: var(--brand-dark);
}

.btn-brand-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.btn-brand-dark {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-brand-dark:hover,
.btn-brand-dark:focus {
  background-color: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.btn-outline-brand {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-brand:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
}

.hero-pattern {
  opacity: 0.1;
  background-image: radial-gradient(circle at 25% 50%, white 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.quote-card {
  animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-control-lg-custom,
.form-select.form-control-lg-custom {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border-color: #d1d5db;
}

.form-control-lg-custom:focus,
.form-select.form-control-lg-custom:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.15);
}

/* Stats */
.stat-item {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stats-bar.is-visible .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.stats-bar.is-visible .col:nth-child(1) .stat-item { transition-delay: 0.05s; }
.stats-bar.is-visible .col:nth-child(2) .stat-item { transition-delay: 0.15s; }
.stats-bar.is-visible .col:nth-child(3) .stat-item { transition-delay: 0.25s; }
.stats-bar.is-visible .col:nth-child(4) .stat-item { transition-delay: 0.35s; }

.stat-number {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 2.25rem;
}

.stat-number .stat-value {
  font-variant-numeric: tabular-nums;
}

.stat-star {
  font-size: 0.85em;
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  color: var(--text-muted-custom);
  margin-top: 0.25rem;
  line-height: 1.3;
  padding-inline: 0.25rem;
}

@media (max-width: 575.98px) {
  .stats-bar .row {
    --bs-gutter-x: 0.75rem;
  }

  .stat-item {
    padding: 0.5rem 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Service cards */
.service-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: #60a5fa !important;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.service-link {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--brand-dark);
}

/* Feature cards */
.feature-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.12) !important;
}

/* How It Works */
.process-step {
  position: relative;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.process-step:hover {
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
  border-color: #93c5fd !important;
  transform: translateY(-2px);
}

.process-step-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--brand-yellow);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.process-step-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-size: 1.35rem;
}

.process-trust-bar {
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 100%);
  border: 1px solid rgba(29, 78, 216, 0.12);
}

.process-trust-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
  color: var(--brand-primary);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

/* City pills */
.city-pill {
  display: inline-flex;
  align-items: center;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--brand-dark);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.city-pill:hover {
  background-color: #dbeafe;
}

/* CTA / Contact section */
.contact-section {
  background: linear-gradient(135deg, #fef9c3 0%, var(--brand-yellow) 45%, #fde047 100%);
}

.contact-form-card {
  border-top: 4px solid var(--brand-primary) !important;
}

.contact-form-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-size: 1.25rem;
}

.form-disclaimer {
  font-size: 0.75rem;
}

.form-disclaimer a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

.form-disclaimer a:hover {
  text-decoration: underline;
}

.hero-trust-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  max-width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-trust-panel:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .hero-trust-panel {
    max-width: 32rem;
    margin-inline: auto;
  }
}

/* Legacy CTA (kept for compatibility) */
.cta-section {
  background-color: var(--brand-yellow);
}

/* Footer */
.footer-section {
  background-color: var(--brand-darker);
}

.footer-links a {
  color: rgba(191, 219, 254, 0.85);
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .display-4 {
    font-size: 2rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }

  .contact-section .btn-brand-dark {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .display-4 {
    font-size: 3rem;
  }
}

@media (min-width: 1200px) {
  .display-4 {
    font-size: 3.5rem;
  }
}

/* Legal pages */
.page-hero .breadcrumb-item a {
  color: var(--brand-primary);
  text-decoration: none;
}

.page-hero .breadcrumb-item a:hover {
  text-decoration: underline;
}

.legal-content h2 {
  scroll-margin-top: 6rem;
}

.legal-content h3 {
  scroll-margin-top: 6rem;
}

.legal-content p,
.legal-content li {
  color: #374151;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--brand-primary);
}

.legal-content a:hover {
  color: var(--brand-dark);
}
