/* ===========================
   Custom Styles - Mobile Auto Glass Repair
   =========================== */

/* Base */
* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  background-color: #F0F5FA;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Section heading underline */
.heading-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.heading-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #046BD2, #47FFF4);
  border-radius: 4px;
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(11, 94, 215, 0.7) 100%);
}

/* Card hover */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Button styles */
.btn-primary {
  background-color: #046BD2;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 14px 28px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #045CB4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 94, 215, 0.4);
}

.btn-accent {
  background-color: #47FFF4;
  color: #111827;
  font-weight: 600;
  border-radius: 10px;
  padding: 14px 28px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-accent:hover {
  background-color: #0891B2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(71, 255, 244, 0.5);
}

.btn-success {
  background-color: #16A34A;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 14px 28px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-success:hover {
  background-color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

.btn-outline {
  border: 2px solid #046BD2;
  color: #046BD2;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 28px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: #046BD2;
  color: #fff;
  transform: translateY(-2px);
}

/* Service icon circle */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #046BD2;
  transition: all 0.3s ease;
}
.card-hover:hover .icon-circle {
  background: linear-gradient(135deg, #046BD2, #045CB4);
  color: #fff;
  transform: scale(1.1);
}

/* Process step connector */
.step-connector {
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -60%;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    #046BD2 0,
    #046BD2 8px,
    transparent 8px,
    transparent 16px
  );
}

/* Star rating */
.star-rating {
  color: #47FFF4;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 0.3s ease;
}

/* Reviews slider */
.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Gallery zoom */
.gallery-item img {
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Mobile sticky CTA */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
}

/* Exit popup */
.exit-popup-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.exit-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Trusted badge pulse */
.trust-badge {
  transition: all 0.3s ease;
}
.trust-badge:hover {
  transform: translateY(-3px);
}

/* Floating phone button (desktop) */
.floating-cta {
  animation: float 3s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #046BD2, #47FFF4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Counter animation */
.counter {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Before/After slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.ba-slider .after-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}
.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #47FFF4;
  cursor: ew-resize;
}
.ba-slider .ba-handle::after {
  content: '⇔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #47FFF4;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Page hero (sub-pages) */
.page-hero {
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.95) 0%, rgba(17, 24, 39, 0.9) 100%);
  position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #046BD2;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #045CB4;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open {
  max-height: 600px;
}

/* ===========================
   Scroll Reveal Animations
   =========================== */

.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal[data-animation="fade-up"] { transform: translateY(45px); }
.reveal[data-animation="fade-down"] { transform: translateY(-45px); }
.reveal[data-animation="fade-left"] { transform: translateX(-55px); }
.reveal[data-animation="fade-right"] { transform: translateX(55px); }
.reveal[data-animation="zoom-in"] { transform: scale(0.85); }
.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===========================
   Nav Underline Animation
   =========================== */

.nav-underline { position: relative; }
.nav-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #046BD2, #47FFF4);
  border-radius: 3px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-underline:hover::after,
.nav-underline.active::after { width: 100%; }

/* ===========================
   Scroll-to-Top Button
   =========================== */

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #046BD2, #045CB4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.35s ease;
  z-index: 45;
  box-shadow: 0 4px 15px rgba(11, 94, 215, 0.4);
  border: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.scroll-top-btn:hover {
  background: linear-gradient(135deg, #47FFF4, #0891B2);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.5);
}
@media (max-width: 768px) {
  .scroll-top-btn { bottom: 85px; right: 20px; width: 45px; height: 45px; }
}

/* ===========================
   Enhanced Image Hover (zoom inside container)
   =========================== */

.zoom-img-wrap { overflow: hidden; }
.zoom-img-wrap img { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.zoom-img-wrap:hover img { transform: scale(1.08); }

/* ===========================
   Rotated Decorative Badge
   =========================== */

.rotated-badge {
  transform: rotate(-11deg);
  transition: transform 0.3s ease;
}
.rotated-badge:hover { transform: rotate(0deg); }
