html {
  overflow-x: hidden;
}
/* ============================================================
   TransTech Dispatch — Custom Stylesheet
   Bootstrap 5.3 | Red & Black Theme | Light + Dark Mode
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --ttd-red: #c8102e;
  --ttd-red-dark: #a00d24;
  --ttd-red-light: #e63950;
  --ttd-black: #111111;
  --ttd-dark: #1a1a1a;
  --ttd-bg: #ffffff;
  --ttd-bg2: #f8f9fa;
  --ttd-text: #1a1a1a;
  --ttd-text-muted: #6c757d;
  --ttd-border: #dee2e6;
  --ttd-card: #ffffff;
  --ttd-nav-bg: #ffffff;
  --ttd-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --ttd-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

[data-bs-theme="dark"] {
  --ttd-bg: #0e0e0e;
  --ttd-bg2: #1a1a1a;
  --ttd-text: #f0f0f0;
  --ttd-text-muted: #9aa0ab;
  --ttd-border: #2c2c2c;
  --ttd-card: #1e1e1e;
  --ttd-nav-bg: #111111;
  --ttd-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --ttd-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ── Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ttd-text);
  background-color: var(--ttd-bg);
  transition:
    background-color 0.3s,
    color 0.3s;
  overflow-x: hidden;
  max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--ttd-text);
}

a {
  color: var(--ttd-red);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--ttd-red-dark);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--ttd-red);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--ttd-bg2);
}
::-webkit-scrollbar-thumb {
  background: var(--ttd-red);
  border-radius: 3px;
}

/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
  background: var(--ttd-black);
  color: #ccc;
  padding: 8px 0;
  font-size: 0.82rem;
}
.top-bar a {
  color: #ccc;
  text-decoration: none;
}
.top-bar a:hover {
  color: var(--ttd-red-light);
}
.top-bar .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #ccc;
  font-size: 0.72rem;
  margin-left: 4px;
  transition: var(--transition);
}
.top-bar .social-icon:hover {
  background: var(--ttd-red);
  color: #fff;
}

/* ── Navbar ────────────────────────────────────────────────── */
.main-navbar {
  background: var(--ttd-nav-bg) !important;
  border-bottom: 1px solid var(--ttd-border);
  padding: 12px 0;
  box-shadow: var(--ttd-shadow);
  transition: background 0.3s;
}

.main-navbar .nav-link {
  color: var(--ttd-text) !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.main-navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--ttd-red);
  border-radius: 1px;
  transition:
    left 0.3s,
    right 0.3s;
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
  left: 14px;
  right: 14px;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--ttd-red) !important;
  background: rgba(200, 16, 46, 0.06);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-danger {
  background-color: var(--ttd-red);
  border-color: var(--ttd-red);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-danger:hover {
  background-color: var(--ttd-red-dark);
  border-color: var(--ttd-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
}

.btn-outline-danger {
  border-color: var(--ttd-red);
  color: var(--ttd-red);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-outline-danger:hover {
  background: var(--ttd-red);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transition: opacity 1s ease;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.8) 0%,
    rgba(200, 16, 46, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--ttd-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-title span {
  color: var(--ttd-red-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

/* Hero slider thumbnails */
.hero-thumbs {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-thumb {
  width: 60px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.hero-thumb.active,
.hero-thumb:hover {
  opacity: 1;
  border-color: var(--ttd-red);
}

/* ── Section Styles ────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ttd-red);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ttd-text);
  line-height: 1.25;
}
.section-title span {
  color: var(--ttd-red);
}

.section-divider {
  width: 50px;
  height: 4px;
  background: var(--ttd-red);
  border-radius: 2px;
  margin: 12px 0 24px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.ttd-card {
  background: var(--ttd-card);
  border: 1px solid var(--ttd-border);
  border-radius: 12px;
  padding: 28px;
  transition: var(--transition);
  height: 100%;
}
.ttd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ttd-shadow-lg);
  border-color: var(--ttd-red);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(200, 16, 46, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--ttd-red);
  margin-bottom: 16px;
  transition: var(--transition);
}
.ttd-card:hover .service-icon {
  background: var(--ttd-red);
  color: #fff;
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--ttd-red);
  padding: 48px 0;
}
.stat-item {
  text-align: center;
  color: #fff;
}
.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.88rem;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── About Section ─────────────────────────────────────────── */
.about-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--ttd-red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
}
.about-badge .num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge .txt {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--ttd-border);
}
.check-list li:last-child {
  border-bottom: none;
}
.check-list li i {
  color: var(--ttd-red);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── Reviews ───────────────────────────────────────────────── */
.review-card {
  background: var(--ttd-card);
  border: 1px solid var(--ttd-border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: var(--transition);
}
.review-card:hover {
  box-shadow: var(--ttd-shadow-lg);
  border-color: var(--ttd-red);
}
.review-card .quote-icon {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  color: var(--ttd-red);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.review-stars {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ttd-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.review-role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ttd-red);
  font-weight: 600;
}

/* ── Why Choose ────────────────────────────────────────────── */
.why-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  background: var(--ttd-card);
  border: 1px solid var(--ttd-border);
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--ttd-red);
  box-shadow: var(--ttd-shadow);
}
.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(200, 16, 46, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--ttd-red);
  flex-shrink: 0;
  transition: var(--transition);
}
.why-card:hover .why-icon {
  background: var(--ttd-red);
  color: #fff;
}

/* ── Process Steps ─────────────────────────────────────────── */
.step-item {
  text-align: center;
  position: relative;
}
.step-num {
  width: 56px;
  height: 56px;
  background: var(--ttd-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}
.step-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: var(--ttd-border);
  z-index: 1;
}

/* ── Page Banner ───────────────────────────────────────────── */
.page-banner {
  background: var(--ttd-black);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 60%, rgba(200, 16, 46, 0.3));
}
.page-banner::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--ttd-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-banner .container {
  position: relative;
  z-index: 2;
}
.page-banner h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
}
.breadcrumb-item {
  font-size: 0.88rem;
}
.breadcrumb-item a {
  color: var(--ttd-red-light);
}
.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-control,
.form-select {
  background: var(--ttd-card);
  border-color: var(--ttd-border);
  color: var(--ttd-text);
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition);
}
.form-control:focus,
.form-select:focus {
  background: var(--ttd-card);
  border-color: var(--ttd-red);
  color: var(--ttd-text);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}
.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ttd-text);
}

/* Rating stars (review form) */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.star-rating input {
  display: none;
}
.star-rating label {
  font-size: 2rem;
  color: var(--ttd-border);
  cursor: pointer;
  transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ffc107;
}

/* ── Contact info cards ────────────────────────────────────── */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  background: var(--ttd-card);
  border: 1px solid var(--ttd-border);
  margin-bottom: 16px;
  transition: var(--transition);
}
.contact-info-card:hover {
  border-color: var(--ttd-red);
  box-shadow: var(--ttd-shadow);
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--ttd-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--ttd-red) 0%,
    var(--ttd-red-dark) 100%
  );
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #0d0d0d;
  color: #aaa;
}
.footer-heading {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ttd-red);
  display: inline-block;
}
.footer-text {
  color: #aaa;
  font-size: 0.85rem;
}
.footer-links {
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #aaa;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--ttd-red-light);
  padding-left: 4px;
}
.footer-contact {
  margin: 0;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #aaa;
  align-items: flex-start;
}
.footer-contact li i {
  color: var(--ttd-red);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact a {
  color: #aaa;
}
.footer-contact a:hover {
  color: var(--ttd-red-light);
}
.footer-divider {
  border-color: #2a2a2a;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social:hover {
  background: var(--ttd-red);
  border-color: var(--ttd-red);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert-success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
.alert-danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}
[data-bs-theme="dark"] .alert-success {
  background: #0d3b1e;
  border-color: #1a6633;
  color: #7ee8a0;
}
[data-bs-theme="dark"] .alert-danger {
  background: #3b0d12;
  border-color: #6b1a22;
  color: #e87e8a;
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 991.98px) {
  .main-navbar .nav-link::after {
    display: none;
  }
  .navbar-collapse {
    padding: 16px 0;
  }
  .about-badge {
    width: 90px;
    height: 90px;
    bottom: -10px;
    right: 10px;
  }
  .about-badge .num {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
  }
  .hero-thumbs {
    display: none;
  }
  .step-connector {
    display: none;
  }
}

/* ── Utility ───────────────────────────────────────────────── */
.bg-section {
  background: var(--ttd-bg2);
}
.text-red {
  color: var(--ttd-red) !important;
}
.bg-red {
  background-color: var(--ttd-red) !important;
}
.border-red {
  border-color: var(--ttd-red) !important;
}
.rounded-xl {
  border-radius: 16px !important;
}

/* Loader */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--ttd-black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s;
}
#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-ring {
  width: 56px;
  height: 56px;
  border: 4px solid #333;
  border-top-color: var(--ttd-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--ttd-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--ttd-red-dark);
  transform: translateY(-2px);
}

#backToTop.visible {
}

#backToTop.visible {
}

#backToTop.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 767.98px) {
  .btn + .btn,
  .btn {
    margin-bottom: 10px;
  }
}

:focus-visible {
  outline: 3px solid #c0392b;
  outline-offset: 3px;
}
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
