/* Custom Properties / Design System */
:root {
  /* Paleta base */
  --clr-bg: #0f0f12;
  --clr-bg-alt: #1a1a20;
  --clr-bg-glass: rgba(26, 26, 32, 0.7);
  --clr-primary: #ff2a2a;
  --clr-primary-glow: rgba(255, 42, 42, 0.4);
  --clr-primary-hover: #ff4d4d;
  --clr-text: #ffffff;
  --clr-text-muted: #a0a0ab;
  --clr-border: rgba(255, 255, 255, 0.1);

  /* Typos */
  --font-main: 'Outfit', sans-serif;

  /* Utils */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 20px var(--clr-primary-glow);
  --shadow-panel: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 800;
}

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

ul {
  list-style: none;
}

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

/* Typography & Utils */
.highlight {
  color: var(--clr-primary);
}

.highlight-text {
  color: var(--clr-primary);
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--clr-text);
  transition: var(--transition);
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

header.scrolled {
  background: var(--clr-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: var(--shadow-panel);
  border-bottom: 1px solid var(--clr-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: var(--clr-text);
}

.logo i {
  color: var(--clr-primary);
  font-size: 1.8rem;
}

.logo-text {
  font-weight: 300;
}

.logo-text strong {
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-primary);
  transition: var(--transition);
}

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: url('../assets/hero_bg.webp') no-repeat center center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 15, 18, 0.95) 0%, rgba(15, 15, 18, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 1s ease-out forwards;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brands Carousel */
.brands-section {
  padding: 2rem 0;
  background-color: var(--clr-bg-alt);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}

.brands-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  padding: 1.5rem 0;
}

.brands-marquee::before,
.brands-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brands-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--clr-bg-alt) 0%, transparent 100%);
}

.brands-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--clr-bg-alt) 0%, transparent 100%);
}

.brands-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: scroll-brands 30s linear infinite;
  min-width: max-content;
}

.brands-track.reverse {
  animation: scroll-brands-reverse 30s linear infinite;
}

.brand-logo {
  height: 45px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 60px;
    max-width: 160px;
  }
}

.brand-logo:hover {
  filter: grayscale(0%) opacity(1) drop-shadow(0 5px 15px rgba(255, 42, 42, 0.3));
  transform: scale(1.15) translateY(-5px);
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 2rem));
  }
}

@keyframes scroll-brands-reverse {
  0% {
    transform: translateX(calc(-50% - 2rem));
  }

  100% {
    transform: translateX(0);
  }
}

.lock-brand {
  height: 55px;
  width: auto;
  max-width: 140px;
}

@media (min-width: 768px) {
  .lock-brand {
    height: 75px;
    max-width: 180px;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  text-align: center;
  background: var(--clr-bg-alt);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: linear-gradient(to bottom, var(--clr-bg-alt), #202028);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  border-color: rgba(255, 42, 42, 0.3);
  box-shadow: 0 0 30px rgba(255, 42, 42, 0.05);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 42, 42, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.icon-wrapper i {
  font-size: 1.8rem;
  color: var(--clr-primary);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--clr-text-muted);
}

/* Offer Banner */
.offer-banner {
  background: linear-gradient(45deg, var(--clr-primary), var(--clr-primary-hover));
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.offer-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.offer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.offer-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* Appointments Section */
.appointments-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.appointments-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.appointments-text p {
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.check-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.check-list i {
  color: var(--clr-primary);
  background: rgba(255, 42, 42, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
}

.appointments-form-wrapper {
  padding: 2.5rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

input,
select {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: rgba(255, 255, 255, 0.05);
}

select option {
  background-color: var(--clr-bg-alt);
  color: var(--clr-text);
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image .image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--clr-bg-alt), #111);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: var(--clr-primary-glow);
  position: relative;
  overflow: hidden;
}

.about-image .image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 42, 42, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 5;
}

.about-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.about-slide-img.active {
  opacity: 1;
  z-index: 2;
}

.about-slide-img.about-shield-logo {
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.about-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: rgba(15, 15, 18, 0.8);
  color: var(--clr-text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.about-slider-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.about-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.about-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.about-dot.active {
  background: var(--clr-primary);
  transform: scale(1.4);
}

.tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: rgba(255, 42, 42, 0.1);
  color: var(--clr-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content .lead {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--clr-text);
  margin-bottom: 1rem;
  border-left: 3px solid var(--clr-primary);
  padding-left: 1rem;
}

.about-content p {
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--clr-border);
  padding-top: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stat-number .small {
  font-size: 1rem;
  color: var(--clr-primary);
}

.stat-text {
  color: var(--clr-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Location Section */
.location-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: stretch;
}

.info-panel {
  padding: 2.5rem 2rem;
}

.info-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-icon i {
  font-size: 1.5rem;
  color: var(--clr-primary);
  margin-top: 0.25rem;
}

.info-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info-details p,
.info-details ul {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  gap: 1rem;
}

.hours-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  flex: 1;
}

/* Testimonials Carousel */
.testimonials {
  background: var(--clr-bg);
}

.testimonials-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  padding-bottom: 2rem;
}

.testimonials-track-container {
  position: relative;
  height: 400px;
  /* fixed height for absolute items */
  width: 100%;
}

.testimonials-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.testimonial-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55%;
  max-width: 500px;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
  box-sizing: border-box;
}

/* Active */
.testimonial-slide.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
}

/* Prev */
.testimonial-slide.prev {
  transform: translate(-120%, -50%) scale(0.85);
  opacity: 0.5;
  z-index: 3;
  pointer-events: auto;
  filter: blur(2px);
  cursor: pointer;
}

/* Next */
.testimonial-slide.next {
  transform: translate(20%, -50%) scale(0.85);
  opacity: 0.5;
  z-index: 3;
  pointer-events: auto;
  filter: blur(2px);
  cursor: pointer;
}

.tcard {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tcard::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.tcard:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 42, 42, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.tcard:hover::before {
  transform: scaleX(1);
}

.tcard:hover .tcard-quote {
  color: var(--clr-primary-hover);
  text-shadow: 0 0 15px var(--clr-primary-glow);
  transform: scale(1.1);
  opacity: 1;
}

.tcard-quote {
  font-size: 1.8rem;
  color: var(--clr-primary);
  opacity: 0.5;
  line-height: 1;
  transition: var(--transition);
  display: inline-block;
}

.tcard-text {
  color: var(--clr-text);
  font-size: 0.97rem;
  line-height: 1.75;
  flex: 1;
}

.tcard-stars {
  color: #f9bc2e;
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--clr-border);
}

.tcard-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.tcard-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tcard-info strong {
  font-size: 0.9rem;
  color: var(--clr-text);
  font-weight: 700;
}

.tcard-info span {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
  color: var(--clr-text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.4);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

/* Dots */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 2.5rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.t-dot.active {
  background: var(--clr-primary);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.6);
}

.testimonials-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .testimonial-slide {
    width: 75%;
  }
}

@media (max-width: 600px) {
  .testimonial-slide {
    width: 85%;
  }

  .testimonial-slide.prev {
    transform: translate(-105%, -50%) scale(0.85);
  }

  .testimonial-slide.next {
    transform: translate(5%, -50%) scale(0.85);
  }

  .testimonials-carousel-wrapper {
    margin: 0;
  }

  .testimonials-track-container {
    height: 480px;
  }
}

/* Footer */
.footer {
  background: var(--clr-bg-alt);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--clr-border);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  color: var(--clr-text-muted);
}

.footer-social h3 {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--clr-border);
}

.social-links a:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .appointments-container,
  .about-container,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .location-grid {
    display: flex;
    flex-direction: column-reverse;
    /* Map on top of info */
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--clr-bg-alt);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--clr-border);
  }

  .nav-links.active {
    right: 0;
  }

  body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .offer-content {
    justify-content: center;
    text-align: center;
  }

  .d-mobile-only {
    display: flex;
  }


}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .appointments-text h2 {
    font-size: 2rem;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}


/* Brands Carousel (Automotive & Locks) */
.brands-section {
  overflow: hidden;
  background-color: var(--clr-bg);
  padding: 3rem 0;
}

.brands-section.lock-section {
  padding-bottom: 3rem;
}

.brands-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.brands-marquee::before,
.brands-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brands-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--clr-bg) 0%, transparent 100%);
}

.brands-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--clr-bg) 0%, transparent 100%);
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: scroll-brands 30s linear infinite;
  padding: 0 2rem;
}

.brands-track.reverse {
  animation: scroll-brands-reverse 30s linear infinite;
}

.brands-track:hover {
  animation-play-state: paused;
}

.brand-logo {
  height: 45px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: var(--transition);
  cursor: pointer;
}

.brand-logo:hover {
  filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transform: scale(1.1);
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-brands-reverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .brand-logo {
    height: 30px;
    max-width: 90px;
  }

  .brands-track {
    gap: 2.5rem;
  }
}

/* Logos individuales: tamaño mayor */
.brand-logo[alt="Peugeot"],
.brand-logo[alt="Ford"],
.brand-logo[alt="Renault"] {
  height: 70px;
  max-width: 170px;
}

/* Logos individuales: tamaño x2 (90px) */
.brand-logo[alt="Dodge"],
.brand-logo[alt="Land Rover"],
.brand-logo[alt="Mitsubishi"] {
  height: 90px;
  max-width: 200px;
}

/* Logos individuales: tamaño menor */
.brand-logo[alt="Audi"],
.brand-logo[alt="Chevrolet"],
.brand-logo[alt="Kia"] {
  height: 30px;
  max-width: 95px;
}

@media (max-width: 768px) {

  .brand-logo[alt="Peugeot"],
  .brand-logo[alt="Land Rover"],
  .brand-logo[alt="Ford"],
  .brand-logo[alt="Renault"] {
    height: 48px;
    max-width: 120px;
  }

  .brand-logo[alt="Chevrolet"],
  .brand-logo[alt="Kia"] {
    height: 22px;
    max-width: 70px;
  }
}

/* Acytra: tamaño especial x5 */
.brand-logo[alt="Acytra"] {
  height: 225px;
  max-width: 400px;
}

@media (max-width: 768px) {
  .brand-logo[alt="Acytra"] {
    height: 150px;
    max-width: 260px;
  }
}

/* Lupum: contorno blanco para visibilidad en fondo oscuro */
.brand-logo[alt="Lupum"] {
  filter: grayscale(100%) opacity(0.85) drop-shadow(1px 0 0 rgba(255, 255, 255, 0.8)) drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.8)) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8)) drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.8));
}

.brand-logo[alt="Lupum"]:hover {
  filter: grayscale(0%) opacity(1) drop-shadow(1px 0 0 rgba(255, 255, 255, 0.9)) drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.9));
}

/* Andif: inversión inteligente para visibilidad de letras oscuras en fondo oscuro, manteniendo el tono original (azul) en hover */
.brand-logo[alt="Andif"] {
  filter: grayscale(100%) invert(1) brightness(1.2) opacity(0.85);
}

.brand-logo[alt="Andif"]:hover {
  filter: grayscale(0%) invert(1) hue-rotate(180deg) brightness(1.2) opacity(1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--clr-primary);
  color: var(--clr-text);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--clr-primary-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 42, 42, 0.4);
}

.btn-glow {
  box-shadow: 0 0 15px var(--clr-primary-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--clr-text);
  border: 2px solid var(--clr-text);
}

.btn-secondary:hover {
  background-color: var(--clr-text);
  color: var(--clr-bg);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-white {
  background-color: var(--clr-text);
  color: var(--clr-bg);
}

.btn-white:hover {
  background-color: #ffffff;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-block {
  width: 100%;
}

/* Glass Panel */
.glass-panel {
  background: var(--clr-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 60px;
  padding: 0;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  color: #fff;
  transition: width 0.4s ease, padding 0.4s ease, transform 0.3s ease;
}

.float-btn:hover {
  width: 220px;
  padding: 0 1.5rem;
  transform: translateY(-5px);
}

.float-text {
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.4s ease, margin 0.4s ease, opacity 0.4s ease;
  white-space: nowrap;
  opacity: 0;
}

.float-btn:hover .float-text {
  max-width: 150px;
  margin-left: 0.5rem;
  opacity: 1;
}

.wa-btn {
  background-color: #25D366;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-btn i {
  font-size: 1.8rem;
}

.wa-btn:hover {
  background-color: #128C7E;
  color: #fff;
}

.call-btn {
  background-color: var(--clr-primary);
}

.call-btn i {
  font-size: 1.5rem;
}

.d-mobile-only {
  display: none;
}

/* Custom Logo Classes */
.navbar-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.about-shield-logo {
  animation: red-pulse-drop 2s infinite alternate ease-in-out;
}

@keyframes red-pulse-drop {
  0% {
    filter: drop-shadow(0 0 5px rgba(255, 42, 42, 0.3));
    transform: scale(0.98);
  }

  100% {
    filter: drop-shadow(0 0 30px rgba(255, 42, 42, 0.9));
    transform: scale(1.02);
  }
}

.hero-main-logo {
  max-height: 180px;
  width: auto;
  display: block;
  margin: 0 auto 2rem auto;
}

@media (max-width: 768px) {
  .hero-main-logo {
    max-height: 110px;
    margin-bottom: 1.5rem;
  }
}


.footer-logo-img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--clr-bg-alt);
  color: var(--clr-text);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5), 0 0 10px rgba(255, 42, 42, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  /* Make floating buttons circle on mobile */
  .floating-actions {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .float-btn {
    width: 60px;
    padding: 0;
    justify-content: center;
  }

  .float-text {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    display: none;
  }

  .float-btn:hover, .float-btn:active, .float-btn:focus {
    width: 60px !important;
    padding: 0 !important;
    transform: none !important;
  }
}

/* =========================================
   ACCESSIBILITY: FOCUS STATES
   ========================================= */
:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 0;
}

.btn:focus-visible,
.carousel-btn:focus-visible,
.t-dot:focus-visible,
.social-links a:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 6px var(--clr-primary);
  outline-offset: 0;
}

a.logo:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 6px;
  border-radius: 8px;
}
