/* CarCor Site — camada de polimento (animações realistas, não-destrutiva) */
/* Tudo respeita prefers-reduced-motion. Sem alterar layout — só motion + sheen */

/* ---------- 3D tilt nos cards ---------- */
.bento-card,
.service-card,
.why-card,
.testi-card,
.material,
.process-step,
.ba-card,
.cfg-section,
.contact-info-card,
.contact-form,
.hero-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.bento-card .bento-icon,
.service-card .service-icon,
.why-card .why-icon {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  transform: translateZ(20px);
}
.bento-card:hover .bento-icon,
.service-card:hover .service-icon,
.why-card:hover .why-icon {
  transform: translateZ(40px) scale(1.06);
}

/* ---------- Glass shimmer (sheen passando por cima) ---------- */
.hero-card,
.contact-info-card,
.contact-form,
.cfg-preview-card,
.bento-card.bento-big,
.bento-card.bento-wide {
  position: relative;
  overflow: hidden;
}
.hero-card::after,
.contact-info-card::after,
.contact-form::after,
.cfg-preview-card::after,
.bento-card.bento-big::after,
.bento-card.bento-wide::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 60%
  );
  transform: rotate(20deg) translateX(-200%);
  pointer-events: none;
  z-index: 1;
  animation: ccSheen 7s cubic-bezier(.2,.8,.2,1) infinite;
}
.contact-info-card::after,
.contact-form::after,
.bento-card.bento-big::after,
.bento-card.bento-wide::after { animation-delay: 2s; }
.cfg-preview-card::after { animation-delay: 4s; }

@keyframes ccSheen {
  0%, 60%, 100% { transform: rotate(20deg) translateX(-200%); opacity: 0; }
  65% { opacity: 1; }
  90% { transform: rotate(20deg) translateX(450%); opacity: 0.9; }
  92% { opacity: 0; }
}

/* Conteúdo do hero-card precisa de ficar acima do shimmer */
.hero-card > *,
.contact-info-card > *,
.contact-form > * { position: relative; z-index: 2; }

/* ---------- Magnetic primary button ---------- */
.btn-primary {
  background-size: 200% 100%;
  background-position: 0% 50%;
  transition: background-position .6s ease, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  position: relative;
}
.btn-primary:hover {
  background-position: 100% 50%;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: var(--grad-gold);
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity .35s ease;
}
.btn-primary:hover::before { opacity: .55; }

/* ---------- Realistic hero glow follow ---------- */
.hero {
  --mx: 50%;
  --my: 30%;
}
.hero::before {
  transition: transform 1.6s cubic-bezier(.2,.8,.2,1);
}
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(201,169,97,.22), transparent 60%),
    radial-gradient(620px circle at calc(100% - var(--mx)) calc(100% - var(--my)), rgba(20,55,94,.42), transparent 70%);
  transition: background-position .4s ease;
  mix-blend-mode: screen;
  opacity: .9;
}

/* ---------- Cursor dot premium (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  body.cc-cursor-on { cursor: none; }
  body.cc-cursor-on a, body.cc-cursor-on button, body.cc-cursor-on input, body.cc-cursor-on textarea, body.cc-cursor-on select { cursor: none; }
  .cc-cursor {
    position: fixed; top: 0; left: 0; width: 12px; height: 12px;
    border-radius: 50%; background: var(--gold);
    pointer-events: none; z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width .25s, height .25s, background .25s;
  }
  .cc-cursor.ring {
    position: fixed; top: 0; left: 0; width: 38px; height: 38px;
    border-radius: 50%; border: 1.5px solid var(--gold);
    pointer-events: none; z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s;
    background: transparent;
  }
  .cc-cursor.is-link { width: 26px; height: 26px; }
  .cc-cursor.ring.is-link { width: 64px; height: 64px; background: rgba(201,169,97,.08); border-color: rgba(201,169,97,.6); }
}

/* ---------- Stagger reveal: filhos em cascata ---------- */
.cc-stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.cc-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.cc-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.cc-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.cc-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.cc-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.cc-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
.cc-stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
.cc-stagger.visible > *:nth-child(8) { transition-delay: 560ms; }
.cc-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ---------- Hero Ken Burns (zoom suave do bg) ---------- */
.hero::before {
  animation: ccKenBurns 24s ease-in-out infinite alternate;
}
@keyframes ccKenBurns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* ---------- Service icons gradient pulse ---------- */
@keyframes ccGoldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,97,.0); }
  50% { box-shadow: 0 0 0 12px rgba(201,169,97,.18); }
}
.service-card:hover .service-icon,
.why-card:hover .why-icon {
  animation: ccGoldPulse 1.6s ease-in-out infinite;
}

/* ---------- Floating WhatsApp pulse refinado ---------- */
.float-btn.whatsapp::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%; border: 2px solid rgba(37,211,102,.45);
  animation: ccPulseSlow 2.6s ease-out infinite;
  animation-delay: 1s;
}
@keyframes ccPulseSlow {
  0% { opacity: 1; transform: scale(.85); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ---------- Gallery item hover refinado ---------- */
.gallery-item {
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.015);
}
.gallery-item img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .6s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* ---------- Card lift refinado ---------- */
.bento-card { transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s cubic-bezier(.2,.8,.2,1), border-color .35s; }
.service-card { transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s cubic-bezier(.2,.8,.2,1), border-color .35s; }
.why-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; }
.testi-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- Section eyebrow shimmer line ---------- */
.section-head .eyebrow {
  position: relative;
}
.section-head .eyebrow::after {
  content: "";
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--grad-gold);
  border-radius: 2px;
  transition: width .8s cubic-bezier(.2,.8,.2,1) .15s;
}
.reveal.visible .section-head .eyebrow::after,
.section-head.reveal.visible .eyebrow::after { width: 60px; }

/* ---------- Stat numbers gradient anim ---------- */
.stat-num, .bento-stat {
  background-size: 200% 100%;
  animation: ccGradShift 6s ease-in-out infinite;
}
@keyframes ccGradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Header scroll glow on items ---------- */
.nav-links a {
  background-image: linear-gradient(90deg, rgba(201,169,97,0), rgba(201,169,97,.18), rgba(201,169,97,0));
  background-size: 200% 100%;
  background-position: -100% 50%;
  background-repeat: no-repeat;
  transition: color .25s, background-position .8s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover { background-position: 100% 50%; }

/* ---------- Reduced motion: kill it all ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none !important; }
  .hero-card::after, .contact-info-card::after, .contact-form::after,
  .cfg-preview-card::after, .bento-card.bento-big::after, .bento-card.bento-wide::after { animation: none !important; }
  .stat-num, .bento-stat { animation: none !important; }
  .float-btn.whatsapp::after, .float-btn.whatsapp::before { animation: none !important; }
  .service-card:hover .service-icon, .why-card:hover .why-icon { animation: none !important; }
  .cc-stagger > * { transition: none !important; opacity: 1 !important; transform: none !important; }
  .bento-card, .service-card, .why-card, .testi-card { transition-duration: .15s !important; }
}
