/* ============================================================
   SHREE BALAJI AUTOWHEELS – Main Stylesheet
   tatamotorsmoradabad.in
   Author: Web Team
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:       #003A70;
  --secondary:     #005BAC;
  --accent:        #E2231A;
  --white:         #ffffff;
  --light:         #f4f6f9;
  --light-gray:    #eef1f5;
  --dark:          #0d1b2a;
  --text:          #333333;
  --text-muted:    #666666;
  --border:        #dee2e8;
  --shadow:        0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.15);
  --radius:        10px;
  --radius-sm:     6px;
  --transition:    all .3s ease;
  --font:          'Poppins', sans-serif;
  --announce-bar-height: 0px;
  --header-height: 72px;
  --site-top-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: var(--transition); }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--primary);
  text-align: center;
  margin-bottom: .5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.section-divider span {
  display: inline-block;
  height: 3px;
  width: 40px;
  background: var(--accent);
  border-radius: 2px;
}

.section-divider i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

.bg-light { background: var(--light); }
.bg-dark  { background: var(--dark); color: var(--white); }
.bg-primary { background: var(--primary); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #c01915;
  border-color: #c01915;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226,35,26,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* ---------- HEADER ---------- */
#header {
  position: fixed;
  top: var(--announce-bar-height, 0px);
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 1rem 0;
}

#header.transparent { background: transparent; }

#header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
  padding: .55rem 0;
}

#header.scrolled .nav-logo img { filter: none; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Logo readable on transparent header over dark hero image */
#header.transparent .nav-logo {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0, 58, 112, 0.22);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

#header.scrolled .nav-logo {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* Nav links */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: .25rem 0;
  transition: color .25s;
}

#header.scrolled .nav-link { color: var(--text); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link:hover,
.nav-link.active { color: var(--accent); }

#header.scrolled .nav-link:hover,
#header.scrolled .nav-link.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: .75rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
  z-index: 2;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#header.scrolled .hamburger span { background: var(--primary); }

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--primary);
  z-index: 1100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  color: var(--white);
  padding: .35rem 1rem;
}

.mobile-nav-close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 1rem));
  right: max(1rem, env(safe-area-inset-right, 1rem));
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1101;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav-close:active {
  background: rgba(255,255,255,.25);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body.menu-open #header {
  z-index: 999;
}

body.menu-open .announcement-bar {
  z-index: 998;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--site-top-height, 72px);
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/showroom-exterior-1.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,58,112,.82) 0%, rgba(0,91,172,.5) 60%, rgba(0,0,0,.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-badge i { color: var(--accent); }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

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

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat { text-align: left; }

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  opacity: .8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- ANNOUNCEMENT BAR ---------- */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: var(--accent);
  color: var(--white);
  text-align: center;
  font-size: .85rem;
  font-weight: 500;
  padding: .55rem 1rem;
  line-height: 1.4;
}

.announcement-bar a { color: var(--white); text-decoration: underline; font-weight: 600; }

/* ---------- SECTION: WHY CHOOSE US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.why-icon i { font-size: 1.5rem; color: var(--white); }

.why-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }

.why-card p { font-size: .9rem; color: var(--text-muted); }

/* ---------- SECTION: SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: height .4s ease;
  z-index: 0;
}

.service-card:hover::before { height: 100%; }
.service-card:hover { color: var(--white); transform: translateY(-6px); }
.service-card:hover h3,
.service-card:hover p { color: var(--white); }

.service-card > * { position: relative; z-index: 1; }

.service-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: color .3s;
}

.service-card:hover .service-icon { color: var(--white); }

.service-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--primary); }

.service-card p { font-size: .88rem; color: var(--text-muted); }

/* ---------- SECTION: CARS GRID ---------- */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.car-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.car-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.car-card:hover .car-card-img img { transform: scale(1.08); }

.car-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.car-card-body { padding: 1.25rem; }

.car-card-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }

.car-category {
  font-size: .8rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .6rem;
}

.car-card-body p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }

.car-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }

.car-tag {
  font-size: .72rem;
  padding: .2rem .6rem;
  background: var(--light);
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- COUNTERS ---------- */
.counters-section { background: linear-gradient(135deg, var(--primary), var(--secondary)); }

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.counter-item { color: var(--white); }

.counter-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .35rem;
}

.counter-suffix { color: var(--accent); }

.counter-label {
  font-size: .9rem;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  min-height: 200px;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,58,112,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-overlay i { font-size: 2rem; color: var(--white); }

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-section { background: var(--light); }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.testimonial-stars { color: #f5a623; margin-bottom: .75rem; }

.testimonial-text {
  font-size: .95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author { display: flex; align-items: center; gap: .75rem; }

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name { font-weight: 700; color: var(--primary); font-size: .9rem; }
.testimonial-date { font-size: .78rem; color: var(--text-muted); }

/* ---------- MAP SECTION ---------- */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ---------- CONTACT FORM ---------- */
.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }

.form-group { margin-bottom: 1.25rem; }

.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--primary); }

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,91,172,.12);
}

textarea.form-control { resize: vertical; min-height: 130px; }

/* ---------- FORM CONSENT (RCS / DLT Opt-in) ---------- */
.form-consent {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.form-consent-text {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: .85rem;
}

.form-consent-text strong { color: var(--primary); font-weight: 600; }

.form-consent-link {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent-link:hover { color: var(--accent); }

.form-consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.form-consent-checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-consent-checkbox.is-error { color: var(--accent); }

.form-consent-checkbox.is-error input[type="checkbox"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- CONTACT INFO ---------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon i { color: var(--white); font-size: 1.1rem; }

.contact-info-text h4 { font-size: .95rem; margin-bottom: .2rem; }
.contact-info-text a,
.contact-info-text p { font-size: .9rem; color: var(--text-muted); }
.contact-info-text a:hover { color: var(--accent); }

.hours-table { width: 100%; }
.hours-table tr td { padding: .35rem .5rem; font-size: .88rem; }
.hours-table tr td:first-child { font-weight: 600; color: var(--primary); width: 50%; }
.hours-table tr td:last-child { color: var(--text-muted); }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.8); }

.footer-top { padding: 4rem 0 2.5rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 3rem;
}

.footer-logo { height: 50px; margin-bottom: 1rem; filter: brightness(0) invert(1); }

.footer-desc { font-size: .88rem; line-height: 1.75; opacity: .8; margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: .75rem; }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .95rem;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-col h4 { font-size: 1rem; color: var(--white); margin-bottom: 1.25rem; position: relative; padding-bottom: .75rem; }

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer-links li { margin-bottom: .6rem; }

.footer-links a { font-size: .88rem; color: rgba(255,255,255,.7); transition: var(--transition); }

.footer-links a:hover { color: var(--accent); padding-left: 6px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .9rem;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}

.footer-contact-item i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; }

.footer-contact-item a { color: rgba(255,255,255,.75); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom-text { font-size: .82rem; opacity: .65; }

.footer-bottom-links { display: flex; gap: 1.25rem; }

.footer-bottom-links a { font-size: .82rem; opacity: .65; transition: opacity .25s; }
.footer-bottom-links a:hover { opacity: 1; color: var(--accent); }

/* ---------- FLOATING BUTTONS ---------- */
.float-buttons {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.float-btn:hover { transform: scale(1.12); }

.float-btn-whatsapp { background: #25d366; }
.float-btn-call     { background: var(--secondary); }
.float-btn-top      { background: var(--primary); font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.float-btn-top.visible { opacity: 1; pointer-events: all; }

.float-btn-label {
  position: absolute;
  right: 60px;
  background: var(--dark);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .3rem .7rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.float-btn:hover .float-btn-label { opacity: 1; }

/* ---------- STICKY BOOK TEST DRIVE ---------- */
.sticky-book-btn {
  position: fixed;
  bottom: 2rem;
  left: 1.5rem;
  z-index: 900;
  background: var(--accent);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 20px rgba(226,35,26,.45);
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}

.sticky-book-btn:hover { transform: scale(1.05); background: #c01915; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(226,35,26,.45); }
  50%       { box-shadow: 0 4px 30px rgba(226,35,26,.7); }
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: calc(6.5rem + var(--announce-bar-height, 0px)) 0 3.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/showroom-exterior-2.jpg') center/cover no-repeat;
  opacity: .12;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: .5rem; }

.breadcrumb { display: flex; justify-content: center; gap: .5rem; font-size: .88rem; opacity: .8; flex-wrap: wrap; }

.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .6; }

/* ---------- ABOUT PAGE ---------- */
.about-img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

.about-feature { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }

.about-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon i { color: var(--white); font-size: 1.2rem; }

.about-feature h4 { font-size: 1rem; margin-bottom: .2rem; }
.about-feature p  { font-size: .88rem; color: var(--text-muted); }

/* ---------- FAQ PAGE ---------- */
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  transition: background .25s;
  user-select: none;
}

.faq-question:hover { background: var(--light); }

.faq-question i { transition: transform .3s; flex-shrink: 0; }

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  font-size: .92rem;
  color: var(--text-muted);
  background: var(--light);
}

.faq-answer-inner { padding: 1rem 1.25rem 1.25rem; }

.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- CARS PAGE FILTER ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }

.filter-tab {
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: var(--transition);
  font-family: var(--font);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  color: var(--white);
}

.car-card[data-category] { display: block; }

/* ---------- POLICY PAGES ---------- */
.policy-content h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; color: var(--primary); }
.policy-content p  { margin-bottom: 1rem; color: var(--text-muted); font-size: .95rem; }
.policy-content ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.policy-content ul li { color: var(--text-muted); font-size: .95rem; margin-bottom: .4rem; }

/* ---------- 404 PAGE ---------- */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.page-404-num {
  font-size: 9rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: .12;
  user-select: none;
}

.page-404 h2 { font-size: 2rem; margin-bottom: .75rem; }
.page-404 p  { color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- SWIPER OVERRIDE ---------- */
.swiper-pagination-bullet-active { background: var(--accent) !important; }
.swiper-button-next,
.swiper-button-prev { color: var(--primary) !important; }

/* ---------- AOS TRANSITION DEFAULTS ---------- */
[data-aos] { transition-duration: 600ms !important; }

/* ---------- UTILITIES ---------- */
.text-accent   { color: var(--accent); }
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--text-muted); }
.text-center   { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.fw-700 { font-weight: 700; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Solid header on mobile — logo always readable */
  #header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    padding: .6rem 0;
  }

  #header.transparent {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
  }

  #header .hamburger span,
  #header.scrolled .hamburger span {
    background: var(--primary);
  }

  .nav-logo img {
    height: 42px;
    max-width: 175px;
  }

  /* Mobile header is already white — no extra logo panel needed */
  #header.transparent .nav-logo,
  #header.scrolled .nav-logo {
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .header-inner {
    gap: .5rem;
  }

  .announcement-bar {
    font-size: .72rem;
    padding: .45rem .65rem;
    line-height: 1.35;
  }

  .announcement-bar a {
    display: inline-block;
    white-space: nowrap;
  }

  .hero-scroll { display: none; }

  .float-buttons {
    bottom: 5.5rem;
    right: 1rem;
  }

  .sticky-book-btn {
    bottom: 1rem;
    left: 1rem;
  }

  .section-pad { padding: 3.5rem 0; }

  .two-col  { grid-template-columns: 1fr; gap: 2rem; }
  .three-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .cars-grid { grid-template-columns: 1fr; }
  .sticky-book-btn span { display: none; }
  .sticky-book-btn { padding: .9rem; border-radius: 50%; }
  .contact-form-wrap { padding: 1.5rem; }
  .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .counter-num { font-size: 2.2rem; }
}
