/* ============================================================
   LDS Road Service — Custom Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #0B1F3A;
  --color-primary-light: #153256;
  --color-green: #16A34A;
  --color-green-dark: #15803D;
  --color-orange: #F97316;
  --color-orange-dark: #EA580C;
  --color-white: #FFFFFF;
  --color-light: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-500: #64748B;
  --color-gray-700: #334155;
  --color-gray-900: #0F172A;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 4px 20px rgba(11, 31, 58, 0.1);
  --shadow-lg: 0 8px 40px rgba(11, 31, 58, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base Styles ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Utility Classes ---------- */
.section-padding {
  padding: 100px 0;
}

.bg-light-custom {
  background-color: var(--color-light);
}

.bg-dark-custom {
  background-color: var(--color-primary);
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-green);
  margin-bottom: 12px;
}

.section-label-light {
  color: #86EFAC;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-text {
  font-size: 1.0625rem;
  color: var(--color-gray-500);
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn-cta {
  background-color: var(--color-orange);
  border: 2px solid var(--color-orange);
  color: var(--color-white);
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.btn-outline-light {
  border-radius: 50px;
  font-weight: 600;
  padding: 10px 28px;
  border-width: 2px;
  transition: all var(--transition);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* ---------- Navigation / Header ---------- */
#mainNav {
  background-color: transparent;
  padding: 16px 0;
  transition: all var(--transition);
}

#mainNav.scrolled {
  background-color: rgba(11, 31, 58, 0.97);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.navbar-brand .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-green);
  border-radius: 10px;
  color: var(--color-white);
  font-size: 1.1rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white);
  letter-spacing: -0.3px;
}

.logo-accent {
  color: var(--color-green);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 16px !important;
  position: relative;
  transition: color var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-green);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-white);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?w=1920&q=80') center center / cover no-repeat;
  padding: 120px 0 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 31, 58, 0.92) 0%,
    rgba(11, 31, 58, 0.75) 50%,
    rgba(11, 31, 58, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: #86EFAC;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons .btn {
  min-width: 160px;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?w=1920&q=80') center center / cover no-repeat;
  padding: 140px 0 80px;
}

.page-hero-ac {
  background-image: url('https://images.unsplash.com/photo-1632823471565-1ecdf327c2b8?w=1920&q=80');
}

.page-breadcrumb {
  margin-bottom: 20px;
}

.page-breadcrumb .breadcrumb {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.page-breadcrumb .breadcrumb-item a:hover {
  color: var(--color-white);
}

.page-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- AC Service Page ---------- */
.ac-benefits-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.ac-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
}

.ac-benefits-list li i {
  color: var(--color-green);
  margin-top: 4px;
  flex-shrink: 0;
}

.ac-stat-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  height: 100%;
  transition: all var(--transition);
}

.ac-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ac-stat-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.ac-stat-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.ac-stat-card p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-bottom: 0;
  line-height: 1.6;
}

.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-card-link:hover {
  color: inherit;
}

.service-card-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-green);
  transition: color var(--transition);
}

.service-card-link:hover .service-card-cta {
  color: var(--color-orange);
}

.contact-form-card .form-select {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9375rem;
  transition: all var(--transition);
}

.contact-form-card .form-select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* ---------- About Section ---------- */
.about-image-wrapper img {
  box-shadow: var(--shadow-lg);
}

.about-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ---------- Services Section ---------- */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.75rem;
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ---------- How It Works Section ---------- */
.step-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  position: relative;
  transition: all var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.step-icon {
  width: 64px;
  height: 64px;
  background: var(--color-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  margin: 16px auto 20px;
  transition: all var(--transition);
}

.step-card:hover .step-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.step-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ---------- Why Choose Us Section ---------- */
.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ---------- FAQ Accordion ---------- */
.accordion-custom .accordion-item {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-custom .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-white);
  padding: 20px 24px;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: var(--color-primary);
  color: var(--color-white);
}

.accordion-custom .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-custom .accordion-button::after {
  filter: none;
}

.accordion-custom .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-custom .accordion-body {
  padding: 20px 24px;
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  line-height: 1.8;
}

/* ---------- Contact Section ---------- */
.contact-form-card,
.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
}

.contact-form-card .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.contact-form-card .form-control {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9375rem;
  transition: all var(--transition);
}

.contact-form-card .form-control:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.contact-info-card h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.contact-info-text {
  color: var(--color-gray-500);
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
}

.contact-info-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  margin-bottom: 0;
}

.contact-info-item a:hover {
  color: var(--color-green);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--color-green);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--color-green);
  padding-left: 4px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 8px;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-green);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 40px 0 24px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all var(--transition);
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #20BD5A;
  color: var(--color-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.15);
  }
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5);
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.3s; }
.fade-in:nth-child(3) { animation-delay: 0.5s; }
.fade-in:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 72px 0;
  }

  .navbar-collapse {
    background: rgba(11, 31, 58, 0.98);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 12px;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-item .btn-cta {
    width: 100%;
    margin-top: 8px;
  }

  .hero-section {
    min-height: 85vh;
  }

  .page-hero {
    min-height: 50vh;
    padding: 120px 0 60px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 24px;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
  }

  .back-to-top {
    bottom: 84px;
    right: 24px;
    width: 44px;
    height: 44px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .about-card,
  .service-card,
  .step-card {
    padding: 24px 20px;
  }
}
