/* ==========================================================================
   KM MOTOR — Premium Automotive Landing Page
   ========================================================================== */

:root {
  --bg-dark: #0b0c0e;
  --bg-dark-alt: #101215;
  --bg-card: #16181c;
  --accent: #d4af37;       /* metallic gold */
  --accent-2: #b8860b;
  --red: #c1121f;
  --text-light: #f5f5f5;
  --text-muted: #a7a9ad;
  --border-soft: rgba(255,255,255,0.08);
  --bg-light: #ffffff;
  --bg-light-alt: #f6f6f4;
  --text-dark: #1a1a1a;
  --text-dark-muted: #5a5a5a;
  --border-soft-dark: rgba(0,0,0,0.08);
  --accent-color: var(--accent);
  --accent-secondary-color: var(--accent-2);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img { max-width: 100%; }

h1, h2, h3, h4, h5, .brand-text, .footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.text-accent { color: var(--accent) !important; }

a { text-decoration: none; }

.section-padding { padding: 90px 0; }
.bg-dark-alt { background-color: var(--bg-dark-alt); }

/* ===== Light sections ===== */
.bg-light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}
.bg-light-section .section-text { color: var(--text-dark-muted); }
.bg-light-section .highlight-item {
  background: var(--bg-light-alt);
  border-color: var(--border-soft-dark);
  color: var(--text-dark);
}
.bg-light-section .about-badge {
  background: var(--bg-light-alt);
  border-color: var(--border-soft-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.bg-light-section .about-badge strong { color: var(--text-dark); }
.bg-light-section .contact-info-card {
  background: var(--bg-light-alt);
  border-color: var(--border-soft-dark);
}
.bg-light-section .contact-info-item { border-bottom-color: var(--border-soft-dark); }
.bg-light-section .contact-info-item a,
.bg-light-section .contact-info-item span { color: var(--text-dark-muted); }
.bg-light-section .contact-info-item h4 { color: var(--text-dark); }
.bg-light-section .map-wrap { border-color: var(--border-soft-dark); }

.section-tag {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
}

.section-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

/* ===== Buttons ===== */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #1a1a1a;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 18px rgba(212,175,55,0.25);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.4);
  color: #000;
}
.btn-outline-light {
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 500;
  border-width: 2px;
  transition: all 0.35s ease;
}
.btn-outline-light:hover { transform: translateY(-3px); }

.btn-success {
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  background-color: #25D366;
  border-color: #25D366;
  transition: all 0.35s ease;
}
.btn-success:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

/* ===== Navbar ===== */
.km-navbar {
  background-color: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  padding: 14px 0;
}
.km-navbar.scrolled {
  background-color: rgba(8,8,8,0.95);
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.brand-text {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-body);
}
.navbar-nav .nav-link {
  color: #eee;
  font-weight: 500;
  margin: 0 8px;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after { width: 100%; }
.navbar-nav .nav-link:hover { color: var(--accent); }

/* ===== Hero ===== */
#home { position: relative; }
.carousel-item, .hero-slide { height: 100vh; min-height: 560px; }
.hero-slide {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  animation: fadeUp 1s ease both;
}
.hero-content p.mx-auto { max-width: 620px; }
.hero-eyebrow {
  color: var(--accent);
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #e6e6e6;
  margin-bottom: 32px;
  max-width: 620px;
}
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next { width: 6%; opacity: 0.7; }
#heroCarousel .carousel-indicators button {
  background-color: var(--accent);
  width: 10px; height: 10px; border-radius: 50%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== About ===== */
.about-img-wrap { position: relative; }
.about-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.about-badge {
  position: absolute;
  bottom: -25px;
  right: -15px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.about-badge i { color: var(--accent); font-size: 1.8rem; }
.about-badge strong { display: block; font-size: 0.95rem; }
.about-badge span { font-size: 0.78rem; color: var(--text-muted); }

.highlight-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  transition: all 0.3s ease;
}
.highlight-item i { color: var(--accent); margin-right: 8px; }
.highlight-item:hover { border-color: var(--accent); transform: translateX(4px); }

/* ===== Services ===== */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.55);
  border-color: rgba(212,175,55,0.4);
}
.service-img { position: relative; height: 220px; }
.service-img-inner { width: 100%; height: 100%; overflow: hidden; }
.service-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img img { transform: scale(1.12); }
.service-icon {
  position: absolute;
  bottom: -22px; left: 22px;
  z-index: 3;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(212,175,55,0.35);
}
.service-body { padding: 36px 22px 22px; }
.service-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; min-height: 44px; }

/* ===== Why Choose Us ===== */
.why-us-section {
  position: relative;
}
.why-card {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-soft-dark);
  border-radius: 18px;
  padding: 36px 28px;
  height: 100%;
  text-align: center;
  transition: all 0.4s ease;
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(212,175,55,0.15);
}
.why-icon {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent);
  transition: transform 0.4s ease;
}
.why-card:hover .why-icon { transform: rotateY(360deg); }
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: var(--text-dark-muted); font-size: 0.9rem; margin: 0; }

/* ===== Gallery ===== */
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--border-soft);
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); filter: brightness(0.85); }
.gallery-item::after {
  content: '\f62c';
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Gallery Lightbox ===== */
.lightbox-content {
  background: transparent;
  border: none;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  z-index: 3;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 3;
}
.lightbox-nav:hover { background: var(--accent); color: #1a1a1a; }
.lightbox-prev { left: -10px; }
.lightbox-next { right: -10px; }

@media (max-width: 767.98px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: -42px; }
  .about-img {
    width: 100%;
    height: 250px;
  }
}

/* ===== CTA ===== */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 110px 0;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(20,10,0,0.75));
}
.cta-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 18px; }
.cta-text { color: #ddd; max-width: 680px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ===== Contact ===== */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 30px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i {
  color: var(--accent);
  font-size: 1.4rem;
  margin-top: 3px;
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item a, .contact-info-item span { color: var(--text-muted); font-size: 0.92rem; }
.contact-info-item a:hover { color: var(--accent); }

.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.map-wrap-large iframe { display: block; }

/* ===== Footer ===== */
.footer {
  background: #060707;
  padding: 26px 0;
  border-top: 1px solid var(--border-soft);
}
.copyright { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ===== Floating Buttons ===== */
.floating-buttons {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: pulse 2.4s infinite;
  transition: transform 0.3s ease;
}
.fab:hover { transform: scale(1.1); color: #fff; }
.fab-call { background: var(--red); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
  70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ===== Side Enquire Now Button (rotated vertical tab, icon + text on one line) ===== */
.side-enquire-btn {
  position: fixed;
  top: 50%;
  right: -73px;
  width: 190px;
  height: 44px;
  z-index: 1049;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
  cursor: pointer;
  transform-origin: center center;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.3s ease;
}
.side-enquire-btn i { font-size: 1.1rem; }
.side-enquire-btn:hover { transform: translateY(-50%) rotate(90deg) translateY(-4px); }

@media (max-width: 575.98px) {
  .side-enquire-btn {
    width: 150px;
    height: 38px;
    right: -56px;
    font-size: 0.76rem;
    gap: 6px;
  }
  .side-enquire-btn i { font-size: 0.95rem; }
  .side-enquire-btn:hover { transform: translateY(-50%) rotate(90deg) translateY(-4px); }
}

/* ===== Enquiry Modal ===== */
.enquiry-modal-content {
  background: var(--bg-light);
  border: 1px solid var(--border-soft-dark);
  border-radius: 20px;
  color: var(--text-dark);
}
.enquiry-modal-content .modal-title { color: var(--text-dark); }
.enquiry-modal-content .text-muted { color: var(--text-dark-muted) !important; }
.enquiry-modal-content .form-control,
.enquiry-modal-content .form-select {
  background: #ffffff;
  border: 1px solid var(--border-soft-dark);
  color: var(--text-dark);
  border-radius: 10px;
}
.enquiry-modal-content .form-control::placeholder { color: #8a8a8a; }
.enquiry-modal-content .form-control:focus,
.enquiry-modal-content .form-select:focus {
  background: #ffffff;
  color: var(--text-dark);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(212,175,55,0.2);
}
.enquiry-modal-content .form-label { font-size: 0.88rem; color: var(--text-dark-muted); }

/* ===== Scroll reveal ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .section-padding { padding: 60px 0; }
  .km-navbar { background-color: rgba(8,8,8,0.95); }
  .about-badge { position: static; margin-top: -20px; margin-left: 15px; display: inline-flex; }
  .cta-section { background-attachment: scroll; }
}

@media (max-width: 575.98px) {
  .carousel-item, .hero-slide { height: 92vh; }
  .fab { width: 48px; height: 48px; font-size: 1.25rem; }
  .floating-buttons { right: 14px; bottom: 14px; }
}
