/* ============================================================
   FRONT-END VISUAL THEME — Light Grey + Crisp Black + Dark Red + Orange
   Safe version: does NOT override dark section backgrounds or text colors
   ============================================================ */

/* Only light sections get grey background — NOT dark/red sections */
section.section-light { background-color: #f8fafc; }
section.section-white { background-color: #ffffff !important; }
section.section-grey  { background-color: #f1f5f9 !important; }

/* BIG BOLD STAT NUMBERS — matches reference screenshot */
.stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}
.stat-num.orange { color: #ea580c !important; }
.stat-num.red    { color: #dc2626 !important; }
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

/* Section label badges */
.section-badge-red {
  background: rgba(220, 38, 38, 0.09);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.section-badge-orange {
  background: rgba(234, 88, 12, 0.09);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Glass cards — solid white */
.glass-card {
  background: #ffffff !important;
  border: 1px solid #e8eef6 !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: none !important;
}
.glass-card:hover {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09) !important;
}

/* CTA white pill button inside red banner */
.btn-cta-white {
  background: #ffffff;
  color: #dc2626;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-cta-white:hover {
  background: #fef2f2;
  transform: translateY(-2px);
  color: #b91c1c;
}

/* Orange outline button for CTA secondary */
.btn-cta-orange-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 50px;
  font-weight: 700;
  padding: 0.7rem 1.75rem;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-cta-orange-outline:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

/* FAQ accordion — red active state */
.accordion-button:not(.collapsed) {
  color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: none !important;
}
.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
  outline: none;
}

/* Form fields — red focus ring */
.form-control:focus,
.form-select:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Utility classes */
.text-orange   { color: #ea580c !important; }
.text-black    { color: #0f172a !important; }
.bg-orange-soft  { background-color: #fff7ed !important; }
.border-orange   { border-color: #ea580c !important; }

/* About feature boxes */
.about-feature-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
}
.about-feature-box:hover {
  border-color: #fca5a5;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-feature-icon.orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Mobile responsive */
@media (max-width: 767.98px) {
  .stat-num { font-size: 2.2rem; }
}

/* ============================================================
   FRONT-END UTILITY CLASSES (used across public pages)
   ============================================================ */

/* Slate color palette */
.text-slate-900 { color: #0f172a !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-600 { color: #475569 !important; }
.bg-slate-50    { background-color: #f8fafc !important; }
.bg-slate-100   { background-color: #f1f5f9 !important; }
.border-slate-100 { border-color: #f1f5f9 !important; }
.border-slate-200 { border-color: #e2e8f0 !important; }
.text-slate-800 { color: #1e293b !important; }
.bg-slate-200   { background-color: #e2e8f0 !important; }
.bg-slate-900   { background-color: #0f172a !important; }

.badge.bg-slate-900,
.badge-branch-main {
  background: #0f172a !important;
  color: #ffffff !important;
}

.badge.bg-slate-200,
.badge-branch-secondary {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Branch cards */
.branch-card-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.branch-icon-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.branch-icon-secondary {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-branch-main {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-branch-secondary {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Document checklist tabs */
#docTabs .nav-link {
  color: #334155 !important;
  border: 1px solid transparent;
  font-size: 0.85rem;
}

#docTabs .nav-link.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

#docTabs .nav-link:hover:not(.active) {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.icon-check-theme { color: #0f172a !important; }

.icon-circle-theme {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Typography helpers */
.fw-extrabold   { font-weight: 800 !important; }
.fw-semibold    { font-weight: 600 !important; }
.leading-tight  { line-height: 1.25 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.78rem !important; }

/* Spacing helpers */
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.p-3\.5   { padding: 1.125rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }

/* Max-width containers */
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.max-w-650 { max-width: 650px; margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }

/* Button pill shape */
.btn-pill { border-radius: 50px !important; }

/* Shadow helpers */
.shadow-danger { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25) !important; }

/* Text clamp */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* Floating action bar */
.fixed-floating-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
}

/* Brand title in footer */
.brand-title-text span { color: #dc2626; }

/* Hover helpers */
.hover-danger:hover { color: #dc2626 !important; }
.hover-warning:hover { color: #f59e0b !important; }

/* Force light theme on public pages — prevent admin dark mode bleed */
html[data-theme="light"] body,
html[data-bs-theme="light"] body {
  background: #f8fafc !important;
  color: #0f172a !important;
}

html[data-theme="light"] .text-slate-900,
html[data-bs-theme="light"] .text-slate-900 { color: #0f172a !important; }

html[data-theme="light"] .text-slate-700,
html[data-bs-theme="light"] .text-slate-700 { color: #334155 !important; }

html[data-theme="light"] .glass-card,
html[data-bs-theme="light"] .glass-card {
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] .form-label,
html[data-bs-theme="light"] .form-label { color: #334155 !important; }

html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Mobile header — always show login + menu */
@media (max-width: 991.98px) {
  .rto-navbar-capsule-wrap .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .rto-navbar-capsule {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .navbar-brand-wrap {
    flex: 0 1 auto !important;
    max-width: calc(100% - 110px) !important;
    min-width: 0 !important;
    margin-right: 0 !important;
  }

  .navbar-mobile-actions {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .brand-logo-img {
    height: 26px !important;
    max-width: 70px !important;
  }

  .brand-title-short {
    font-size: 0.68rem !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  .brand-logo-img { display: none !important; }
  .btn-login-sm span { display: none !important; }
  .navbar-brand-wrap { max-width: calc(100% - 72px) !important; }
}

/* ============================================================
   LIGHT PROFESSIONAL THEME — Gray + Black (Public Pages)
   ============================================================ */

.site-footer-light {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-top: 1px solid #e2e8f0;
}

.footer-branch-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.footer-branch-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.brand-title-text span { color: #0f172a; }

/* Light CTA banner */
.cta-light-banner {
  background: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-badge-light {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.btn-cta-dark {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cta-dark:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-cta-outline {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  font-weight: 700;
  padding: 0.7rem 1.75rem;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cta-outline:hover {
  background: #f8fafc;
  border-color: #0f172a;
  color: #0f172a;
}

/* Public page primary buttons — black instead of red */
body .btn-primary,
body .btn-primary.btn-pill {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
}

body .btn-primary:hover,
body .btn-primary.btn-pill:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18) !important;
}

body .btn-outline-primary {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body .btn-outline-primary:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

/* Navbar capsule — clean white */
.rto-navbar-capsule {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

/* Scroll top — black accent */
.scroll-top-btn {
  background: #0f172a !important;
}

.scroll-top-btn:hover {
  background: #1e293b !important;
}

/* Float call button — black */
.float-call {
  background: #0f172a !important;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25) !important;
}

/* Service cards — subtle gray hover */
.service-photo-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
}

.service-time-tag {
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Hero badge — black accent */
.text-danger.badge,
.badge.text-danger {
  color: #0f172a !important;
}

.bg-danger.bg-opacity-10.text-danger {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.border-danger.border-opacity-20 {
  border-color: #e2e8f0 !important;
}

/* Form focus — black ring */
.form-control:focus,
.form-select:focus {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}
