/* ============================================================
   SALEK TYRE & MECHANIC — Premium Upgrade Layer
   Elevates the site to $20,000 agency-quality feel
   Loads AFTER style.css — all overrides are intentional
   ============================================================ */

/* ── Page Preloader ──────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: #080808;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), visibility 0.7s;
}
#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  animation: loaderPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(201,168,76,0.25));
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(0.96); }
}
.loader-ring {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(201,168,76,0.12);
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: loaderSpin 0.85s linear infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
.loader-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.55);
}

/* ── Custom Cursor (desktop / fine pointer only) ─────────── */
@media (pointer: fine) {
  html, html *, html *::before, html *::after { cursor: none !important; }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 7px; height: 7px;
    background: #C9A84C;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%,-50%);
    transition: transform 0.08s ease, opacity 0.2s ease;
    will-change: transform, left, top;
  }
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    border: 1.5px solid rgba(201,168,76,0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%,-50%);
    transition: width 0.28s ease, height 0.28s ease,
                border-color 0.28s ease, background 0.28s ease;
    will-change: transform, left, top;
  }
  .cursor-ring.hovered {
    width: 58px; height: 58px;
    border-color: #C9A84C;
    background: rgba(201,168,76,0.06);
  }
  .cursor-dot.clicking { transform: translate(-50%,-50%) scale(0.55); }
}

/* ── Noise / grain texture overlay ───────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Hero — ambient glow orbs ────────────────────────────── */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
  animation: heroAmbient 9s ease-in-out infinite alternate;
}
@keyframes heroAmbient {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.04); }
}

/* Hero title subtle glow */
.hero-title {
  text-shadow: 0 0 80px rgba(201,168,76,0.08);
}

/* Scroll indicator gentle bounce */
.scroll-down {
  animation: scrollBounce 2.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.65; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 1;    }
}

/* ── Scroll progress bar — glow ──────────────────────────── */
.scroll-progress {
  height: 3px !important;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)) !important;
  box-shadow: 0 0 10px rgba(201,168,76,0.55);
}

/* ── Navbar — polished scrolled state ────────────────────── */
.navbar.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(201,168,76,0.08);
}

/* ── Section label pill — gradient border ────────────────── */
.label {
  border: 1px solid transparent !important;
  background:
    linear-gradient(rgba(8,8,8,1), rgba(8,8,8,1)) padding-box,
    linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.55), rgba(201,168,76,0.2)) border-box !important;
}

/* ── Service cards — shine sweep + card number ───────────── */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease !important;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.03) 40%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 60%,
    transparent 100%
  );
  transform: translateX(-200%) skewX(-20deg);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: 1;
}
.service-card:hover::before {
  transform: translateX(250%) skewX(-20deg);
}
.service-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.2) !important;
  border-color: rgba(201,168,76,0.2) !important;
}

/* Decorative large number */
.card-number {
  position: absolute;
  bottom: 12px;
  right: 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 72px;
  font-weight: 700;
  color: rgba(201,168,76,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease, transform 0.4s ease;
  z-index: 0;
}
.service-card:hover .card-number {
  color: rgba(201,168,76,0.1);
  transform: translateY(-4px) scale(1.06);
}

/* ── Pricing cards ───────────────────────────────────────── */
.pricing-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.pricing-card:not(.pricing-card--featured):hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,168,76,0.15) !important;
}

/* Shimmer pseudo-border on hover */
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(201,168,76,0) 0%,
    rgba(201,168,76,0.18) 50%,
    rgba(201,168,76,0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: -1;
}
.pricing-card:hover::after { opacity: 1; }

/* ── Stats section — gold glow on numbers ────────────────── */
.stat-number {
  text-shadow: 0 0 35px rgba(201,168,76,0.45) !important;
}
.stat-item {
  position: relative;
  padding-bottom: 16px;
  transition: transform 0.3s ease;
}
.stat-item:hover { transform: translateY(-4px); }
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.45s ease;
}
.stat-item:hover::after { transform: translateX(-50%) scaleX(1); }

/* ── Why cards — animated gold underline ─────────────────── */
.why-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}
.why-card:hover { transform: translateY(-4px) !important; }
.why-card:hover::after { transform: scaleX(1); }

/* ── Testimonials — oversized decorative quote mark ─────── */
.testimonial-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease !important;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -8px; left: 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 110px;
  line-height: 1;
  color: rgba(201,168,76,0.1);
  pointer-events: none;
  transition: color 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.15) !important;
}
.testimonial-card:hover::before {
  color: rgba(201,168,76,0.18);
}
.testimonial-stars {
  font-size: 18px;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(255,200,50,0.4);
}

/* ── Area tags — hover glow lift ─────────────────────────── */
.area-tag {
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease !important;
}
.area-tag:hover {
  background: rgba(201,168,76,0.1) !important;
  border-color: rgba(201,168,76,0.45) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 24px rgba(201,168,76,0.14) !important;
}

/* ── Trust badges — hover lift ───────────────────────────── */
.trust-badge {
  transition: transform 0.3s ease;
}
.trust-badge:hover { transform: translateY(-3px); }

/* ── Info cards — slide-right on hover ───────────────────── */
.info-card {
  transition: transform 0.3s ease, border-color 0.3s ease !important;
}
.info-card:hover {
  transform: translateX(5px) !important;
  border-color: rgba(201,168,76,0.28) !important;
}

/* ── Booking chooser cards — glow on hover ───────────────── */
.chooser-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              border-color 0.3s ease !important;
}
.chooser-card:hover {
  box-shadow: 0 0 50px rgba(201,168,76,0.1), 0 24px 64px rgba(0,0,0,0.45) !important;
}

/* ── Form inputs — gold focus ring ───────────────────────── */
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(201,168,76,0.14) !important;
  outline: none !important;
}

/* ── Gallery swiper — zoom on hover ──────────────────────── */
.swiper-slide { overflow: hidden; }
.swiper-slide img {
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1) !important;
}
.swiper-slide:hover img { transform: scale(1.05) !important; }

/* Gallery slide overlay */
.swiper-slide a {
  position: relative;
  display: block;
}
.swiper-slide a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(0,0,0,0.45) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.swiper-slide:hover a::after { opacity: 1; }

/* ── Premium CTA band ────────────────────────────────────── */
.premium-cta-band {
  position: relative;
  background: linear-gradient(135deg, #0c0c0c 0%, #141414 50%, #0c0c0c 100%);
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
  overflow: hidden;
}
.premium-cta-band::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaBandGlow 6s ease-in-out infinite alternate;
}
@keyframes ctaBandGlow {
  0%   { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 1;   transform: translate(-50%,-50%) scale(1.15); }
}
.premium-cta-band .label {
  margin-bottom: 20px;
}
.premium-cta-band h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255,255,255,0.95);
  margin-bottom: 14px;
}
.premium-cta-band p {
  color: rgba(255,255,255,0.5);
  font-size: 17px;
  margin: 0 auto 36px;
  max-width: 480px;
  line-height: 1.65;
}
.premium-cta-band .cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: filter 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.cta-phone-link:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
}
.cta-divider {
  color: rgba(255,255,255,0.18);
  font-size: 20px;
  font-weight: 300;
}
@media (max-width: 500px) {
  .cta-divider { display: none; }
  .premium-cta-band .cta-buttons { flex-direction: column; gap: 16px; }
}

/* ── WhatsApp button — green pulse ───────────────────────── */
.sticky-whatsapp {
  animation: waPulse 2.8s ease-in-out infinite !important;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.3), 0 0 0 0 rgba(37,211,102,0.35); }
  60%       { box-shadow: 0 4px 20px rgba(37,211,102,0.3), 0 0 0 14px rgba(37,211,102,0); }
}

/* ── Back-to-top button ──────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 46px; height: 46px;
  background: rgba(14,14,14,0.9);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  cursor: pointer;
  z-index: 490;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease,
              background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.18);
  transform: translateY(-3px);
}
@media (max-width: 768px) {
  .back-to-top { bottom: 140px; right: 16px; }
}

/* ── Footer — compact height + 5-column grid ─────────────── */
.footer-inner {
  padding: clamp(36px, 4.5vw, 52px) 0 28px !important;
}
.footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr !important;
  gap: clamp(20px, 2.5vw, 36px) !important;
  align-items: start !important;
}

/* ── Footer-social: styled to match the rest ─────────────── */
.footer-social h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-social ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer-social a {
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.22s ease, padding-left 0.22s ease;
}
.footer-social a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.22s ease;
}
.footer-social a:hover {
  color: var(--gold) !important;
  padding-left: 4px;
}
.footer-social a:hover::before { opacity: 1; }

/* ── Footer links — consistent hover across all columns ──── */
.footer-nav a,
.footer-services a,
.footer-contact a {
  transition: color 0.22s ease, padding-left 0.22s ease !important;
  display: inline-block;
}
.footer-nav a:hover,
.footer-services a:hover,
.footer-contact address a:hover {
  color: var(--gold) !important;
  padding-left: 5px !important;
}

/* ── Footer gradient gold top border ─────────────────────── */
.footer-inner {
  background-image: linear-gradient(to right, transparent, rgba(201,168,76,0.22), transparent) !important;
  background-size: 100% 1px !important;
  background-repeat: no-repeat !important;
  background-position: top !important;
  background-color: transparent !important;
}

/* ── Footer responsive: 3 cols → 2 cols → 1 col ─────────── */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* ── Button — magnetic feel (CSS only scale) ─────────────── */
.btn {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease,
              filter 0.25s ease,
              background 0.25s ease,
              border-color 0.25s ease !important;
}

/* ── Promo bar — refined ─────────────────────────────────── */
.promo-bar {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4) !important;
}

/* ── Section ambient orbs (every other section) ──────────── */
.pricing-section,
.booking-section,
.why-section {
  position: relative;
}
.pricing-section::before,
.booking-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,168,76,0.025) 0%, transparent 70%);
  pointer-events: none;
}

/* ── FAQ items — polished ────────────────────────────────── */
.faq-item {
  transition: border-color 0.3s ease !important;
}
.faq-item[open] {
  border-color: rgba(201,168,76,0.2) !important;
}

/* ── Image — about section float badge pulse ─────────────── */
.about-badge-float {
  animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Subtle hero rings animation enhancement ─────────────── */
.ring {
  animation-timing-function: cubic-bezier(0.4,0,0.2,1) !important;
}

/* ── Active nav link ─────────────────────────────────────── */
.nav-links a.is-active { color: var(--gold) !important; }

/* ── Hero video watermark cover ──────────────────────────── */
/* Scale up the video anchored at the top — the watermark at the bottom    */
/* extends outside .hero-bg's overflow:hidden boundary and is never seen.  */
/* No black gaps, no clip lines — just a slightly zoomed-in hero video.    */
.hero-bg-video {
  -webkit-clip-path: none !important;
  clip-path: none !important;
  transform: scale(1.2);
  transform-origin: top center;
  will-change: transform;
}

/* Soft cinematic vignette — purely aesthetic, watermark is already gone   */
.hero-wm-cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background-image:
    linear-gradient(to top,       rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 10%, transparent 22%),
    linear-gradient(to top right, rgba(0,0,0,0.65) 0%, transparent 28%),
    linear-gradient(to top left,  rgba(0,0,0,0.65) 0%, transparent 28%),
    linear-gradient(to bottom,    rgba(0,0,0,0.5)  0%, transparent 25%);
}

/* ── Reduced motion safety ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-dot, .cursor-ring { display: none !important; }
  #page-loader { display: none !important; }
}
