/* 
   Bhagirathi Motors Dehradun - Master Automotive Workshop Theme
   Design System: Premium Metallic Dark / Racing Amber & Emerald Conversion
*/

:root {
  --bg-dark: #0B0D12;
  --bg-header: rgba(11, 13, 18, 0.95);
  --bg-card: #131620;
  --bg-card-hover: #1B1F2D;
  --accent-orange: #FF5722;
  --accent-amber: #FF9800;
  --accent-gold: #E5A93B;
  --accent-green: #25D366;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 87, 34, 0.35);
  --radius-lg: 16px;
  --radius-sm: 8px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* KEYFRAMES & ANIMATIONS */
@keyframes shimmerGold {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 87, 34, 0.4); }
  50% { box-shadow: 0 0 30px rgba(255, 87, 34, 0.8); }
}

.shimmer-text {
  background: linear-gradient(120deg, #FFF 0%, var(--accent-orange) 30%, var(--accent-gold) 60%, #FFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 5s linear infinite;
}

.anim-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  filter: blur(4px);
}
.anim-ready.anim-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* HEADER & NAVIGATION */
header.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: #FFF;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-title span {
  color: var(--accent-orange);
}

.brand-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  list-style: none !important;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links li {
  list-style: none !important;
  list-style-type: none !important;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-orange);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFF;
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* HERO SECTION (HOMEPAGE) */
section.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.65) 0%, rgba(11, 13, 18, 0.96) 100%), url('images/hero-bg.webp') center/cover no-repeat;
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 640px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
  color: #FFF;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 87, 34, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #FFF;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-orange);
}

.highlight-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ESTIMATOR CARD FORM */
.estimator-card {
  background: rgba(19, 22, 32, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.estimator-header {
  margin-bottom: 24px;
}

.estimator-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.estimator-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(11, 13, 18, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-orange);
}

/* MARQUEE BRAND PILLS */
.brand-marquee-wrap {
  padding: 24px 0;
  background: rgba(11, 13, 18, 0.8);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.brand-logos-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.brand-pill {
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* SUBPAGE HERO & SECTIONS */
.hero-subpage {
  padding: 140px 24px 70px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.py-sec {
  padding: 70px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.sec-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.sec-kicker {
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.sec-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.15;
}

.sec-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* SERVICES & FEATURES CARDS */
.services-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.service-card,
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.service-img {
  height: 230px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.06);
}

.service-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.service-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.service-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.service-list {
  list-style: none !important;
  padding: 0;
  margin-bottom: 24px;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none !important;
}

.service-list li::before {
  content: "✓";
  color: var(--accent-orange);
  font-weight: 900;
}

.service-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 30px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-orange);
  font-weight: 800;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.service-action-btn:hover {
  background: var(--accent-orange);
  color: #FFF;
}

/* REVIEWS & FAQ CARDS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #FFC107;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.reviewer-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* DEALERSHIP SECTION & TABS */
.dealership-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.dealership-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.dealership-tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--accent-orange);
  color: #FFF;
  border-color: var(--accent-orange);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* FLOATING ACTION BAR */
.floating-action-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  gap: 12px;
}

.fab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.fab-btn:hover {
  transform: translateY(-3px);
}

.fab-wa { background: #25D366; color: #FFF; }
.fab-call { background: var(--accent-orange); color: #FFF; }

/* FOOTER & OVERLAP PREVENTION */
footer, footer.main-footer {
  background: #07080B;
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 110px !important; /* 110px bottom padding to prevent FAB overlap */
  margin-top: 70px;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.footer-contact-list {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-contact-list li {
  list-style: none !important;
  list-style-type: none !important;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-bottom {
  max-width: 1320px;
  margin: 40px auto 0;
  padding-top: 24px;
  padding-right: 320px; /* Reserve space on right so floating bar NEVER covers text */
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1100px) {
  .footer-bottom {
    padding-right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 992px) {
  .hero-container,
  .hero-subpage {
    grid-template-columns: 1fr;
    padding-top: 120px;
    gap: 36px;
  }
  .brand-sub { display: none; }
}

@media (max-width: 768px) {
  .nav-container { padding: 10px 16px; }
  .nav-links { gap: 12px; }
  .btn-call span { display: none; }
  .services-grid,
  .features-grid { grid-template-columns: 1fr; }
  .floating-action-bar {
    bottom: 16px;
    right: 16px;
  }
}
