/* ===== PREMIUM UPGRADES — design, performance, conversion ===== */

/* ---- Gold shimmer on primary buttons ---- */
.btnGold { position: relative; overflow: hidden; }
.btnGold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3s ease infinite;
}
@keyframes btnShimmer {
  0%   { left: -100% }
  40%  { left: 160%  }
  100% { left: 160%  }
}

/* ---- Animated gold underline on section titles ---- */
.secLine {
  width: 0;
  animation: lineGrow .9s cubic-bezier(.4,0,.2,1) forwards;
  animation-play-state: paused;
}
.fu.in ~ .secLine,
.secHead.in .secLine { animation-play-state: running; }
@keyframes lineGrow { to { width: 80px } }

/* ---- Floating icon animation on cards ---- */
.svcIcon, .whyIcon { display: inline-block; animation: iconFloat 4s ease-in-out infinite; }
.svcIcon { animation-delay: calc(var(--i, 0) * .4s); }
@keyframes iconFloat {
  0%,100% { transform: translateY(0) }
  50%     { transform: translateY(-6px) }
}

/* ---- Enhanced service cards ---- */
.serviceCard {
  background: linear-gradient(160deg, var(--dark2) 60%, rgba(201,168,76,.04) 100%);
}
.serviceCard::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold3), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  border-radius: 0 0 var(--radius) var(--radius);
}
.serviceCard:hover::after { transform: scaleX(1); }

/* ---- Enhanced fleet cards ---- */
.fleetCard {
  background: linear-gradient(160deg, var(--dark2) 70%, rgba(201,168,76,.06) 100%);
}
.fleetCard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.12), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.fleetCard { position: relative; }
.fleetCard:hover::after { opacity: 1; }

/* ---- Enhanced testimonial cards ---- */
.testCard {
  background: linear-gradient(160deg, var(--dark2), rgba(201,168,76,.03));
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.testCard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,.3);
  opacity: 0;
  transition: opacity .4s ease;
}
.testCard:hover::before { opacity: 1; }

/* ---- Glowing stats ---- */
.statNum {
  text-shadow: 0 0 30px rgba(201,168,76,.2);
  transition: text-shadow .4s ease;
}
.statItem:hover .statNum { text-shadow: 0 0 40px rgba(201,168,76,.5); }

/* ---- Gold divider pulse ---- */
.secLine { transition: box-shadow .4s ease; }
.secLine:hover { box-shadow: 0 0 20px rgba(201,168,76,.6); }

/* ---- Hero badge ---- */
.heroEyebrow::before {
  content: '✦';
  margin-left: 10px;
  color: var(--gold2);
  animation: starSpin 6s linear infinite;
  display: inline-block;
}
.heroEyebrow::after {
  content: '✦';
  margin-right: 10px;
  color: var(--gold2);
  animation: starSpin 6s linear infinite reverse;
  display: inline-block;
}
html[lang=en] .heroEyebrow::before { margin-left: 0; margin-right: 10px; }
html[lang=en] .heroEyebrow::after { margin-right: 0; margin-left: 10px; }
@keyframes starSpin {
  0%   { transform: rotate(0deg) scale(1) }
  50%  { transform: rotate(180deg) scale(1.4) }
  100% { transform: rotate(360deg) scale(1) }
}

/* ---- Gallery captions improved ---- */
.galleryOverlay {
  background: linear-gradient(to top, rgba(5,5,5,.85) 0%, rgba(5,5,5,.2) 100%);
  align-items: flex-end;
  padding: 16px;
}
.galCaption {
  font-size: .85rem !important;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: .5px;
  line-height: 1.4;
}

/* ---- Section alternate bg subtle gradient ---- */
#stats { background: linear-gradient(180deg, var(--dark) 0%, rgba(13,13,13,.97) 100%); }
#whyus { background: linear-gradient(180deg, var(--dark2) 0%, rgba(22,22,22,.98) 100%); }
#how   { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%); }

/* ---- How-it-works connector line ---- */
@media(min-width:769px) {
  .howGrid { position: relative; }
  .howGrid::before {
    content: '';
    position: absolute;
    top: 35px;
    right: calc(16.6% + 35px);
    left: calc(16.6% + 35px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.3), rgba(201,168,76,.3), transparent);
  }
  html[lang=en] .howGrid::before { right: calc(16.6% + 35px); left: calc(16.6% + 35px); }
}

/* ---- Sticky nav scroll shadow ---- */
#nav { transition: box-shadow .3s ease, background .3s ease; }
#nav.scrolled {
  background: rgba(5,5,5,.98) !important;
  box-shadow: 0 2px 30px rgba(0,0,0,.6), 0 1px 0 rgba(201,168,76,.15);
}

/* ---- FAQ improved ---- */
.faqQ { user-select: none; }
.faqItem { border-bottom: 1px solid rgba(201,168,76,.12); transition: background .3s ease; }
.faqItem:hover { background: rgba(201,168,76,.02); }
.faqItem.open { background: rgba(201,168,76,.03); }

/* ---- Contact form focus glow ---- */
.formGroup input:focus,
.formGroup select:focus,
.formGroup textarea:focus {
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

/* ---- Area cards improved ---- */
.areaCard {
  background: linear-gradient(160deg, var(--dark2), rgba(201,168,76,.03));
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.areaCard:hover {
  background: linear-gradient(160deg, rgba(22,22,22,.9), rgba(201,168,76,.07));
}

/* ---- Marquee enhanced ---- */
.marqueeStrip {
  background: linear-gradient(135deg, var(--gold3) 0%, var(--gold) 40%, var(--gold2) 60%, var(--gold) 80%, var(--gold3) 100%);
  background-size: 200% 100%;
  animation: marqueeGradient 6s linear infinite;
}
@keyframes marqueeGradient {
  0%   { background-position: 0% 0% }
  100% { background-position: 200% 0% }
}

/* ---- WhatsApp button improved ---- */
#wa { box-shadow: 0 8px 32px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.3); }
#wa:hover { box-shadow: 0 12px 48px rgba(37,211,102,.65), 0 4px 16px rgba(0,0,0,.4); }

/* ---- CTA Strip improved ---- */
.ctaStrip { background: linear-gradient(135deg, #7a5c0f 0%, var(--gold) 40%, var(--gold2) 60%, var(--gold) 80%, #7a5c0f 100%); background-size: 200% 100%; animation: ctaShine 8s linear infinite; }
@keyframes ctaShine {
  0%   { background-position: 0% 50% }
  100% { background-position: 200% 50% }
}

/* ---- Scroll reveal: spring feel ---- */
.fu { transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.34,1.4,.64,1); }
.fu.in { opacity: 1; transform: none; }

/* ---- Staggered children in grids ---- */
.serviceGrid  > *:nth-child(1) { transition-delay: .05s }
.serviceGrid  > *:nth-child(2) { transition-delay: .12s }
.serviceGrid  > *:nth-child(3) { transition-delay: .19s }
.serviceGrid  > *:nth-child(4) { transition-delay: .26s }
.serviceGrid  > *:nth-child(5) { transition-delay: .33s }
.serviceGrid  > *:nth-child(6) { transition-delay: .40s }
.whyGrid      > *:nth-child(1) { transition-delay: .05s }
.whyGrid      > *:nth-child(2) { transition-delay: .12s }
.whyGrid      > *:nth-child(3) { transition-delay: .19s }
.whyGrid      > *:nth-child(4) { transition-delay: .26s }
.whyGrid      > *:nth-child(5) { transition-delay: .33s }
.whyGrid      > *:nth-child(6) { transition-delay: .40s }
.fleetCardsGrid > *:nth-child(1) { transition-delay: .06s }
.fleetCardsGrid > *:nth-child(2) { transition-delay: .15s }
.fleetCardsGrid > *:nth-child(3) { transition-delay: .24s }
.testGrid     > *:nth-child(1) { transition-delay: .05s }
.testGrid     > *:nth-child(2) { transition-delay: .14s }
.testGrid     > *:nth-child(3) { transition-delay: .23s }
.areasGrid    > *:nth-child(1) { transition-delay: .05s }
.areasGrid    > *:nth-child(2) { transition-delay: .10s }
.areasGrid    > *:nth-child(3) { transition-delay: .15s }
.areasGrid    > *:nth-child(4) { transition-delay: .20s }
.areasGrid    > *:nth-child(5) { transition-delay: .25s }
.areasGrid    > *:nth-child(6) { transition-delay: .30s }

/* ---- Mobile refinements ---- */
@media (max-width: 768px) {
  .btnGold::after { display: none; }
  .heroEyebrow::before, .heroEyebrow::after { display: none; }
  .howGrid::before { display: none; }
  .fleetCard:hover::after { opacity: 0; }
}

/* ---- Performance: reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
