/* ===================================================================
   CARGA24 Recife — Design System
   Dark (OLED) • Neon Yellow #FFC400 • Archivo / Manrope
=================================================================== */
:root{
  --black:#050505;
  --graphite:#121212;
  --graphite-2:#1b1b1b;
  --yellow:#FFC400;
  --yellow-soft:#ffd84d;
  --white:#ffffff;
  --muted:#9a9a9a;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--black);color:var(--white);
  font-family:'Manrope',system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden;
}
h1,h2,h3,.font-display{font-family:'Archivo',sans-serif;letter-spacing:-.02em}
::selection{background:var(--yellow);color:#000}
img{max-width:100%}

/* skip link (a11y) */
.skip-link{position:absolute;left:-999px;top:0;z-index:100;background:var(--yellow);color:#000;padding:.6rem 1rem;font-weight:800;border-radius:0 0 10px 0}
.skip-link:focus{left:0}

/* focus visibility */
a:focus-visible,button:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;border-radius:6px}

/* scrollbar */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#0a0a0a}
::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:20px}
::-webkit-scrollbar-thumb:hover{background:var(--yellow)}

/* film grain */
.grain::before{
  content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* glow + neon text */
.glow{box-shadow:0 0 0 rgba(255,196,0,0);transition:box-shadow .3s var(--ease),transform .3s var(--ease)}
.glow:hover{box-shadow:0 8px 40px rgba(255,196,0,.35);transform:translateY(-2px)}
.text-glow{text-shadow:0 0 10px rgba(255,196,0,.55),0 0 26px rgba(255,196,0,.25)}

/* buttons */
.btn-yellow{background:var(--yellow);color:#050505;transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease);cursor:pointer}
.btn-yellow:hover{background:var(--yellow-soft);transform:translateY(-3px);box-shadow:0 12px 44px rgba(255,196,0,.4)}
.btn-yellow:active{transform:translateY(-1px) scale(.98)}
.btn-ghost{border:1px solid #333;color:#fff;transition:border-color .3s var(--ease),color .3s var(--ease),transform .3s var(--ease);cursor:pointer}
.btn-ghost:hover{border-color:var(--yellow);color:var(--yellow);transform:translateY(-3px)}
.magnetic{will-change:transform}

/* navbar states */
#navbar.nav-scrolled{background:rgba(5,5,5,.95);box-shadow:0 6px 30px rgba(0,0,0,.5)}
.nav-link{position:relative;transition:color .3s var(--ease)}
.nav-link::after{content:"";position:absolute;left:0;bottom:-6px;height:2px;width:0;background:var(--yellow);transition:width .3s var(--ease)}
.nav-link:hover{color:var(--yellow)}
.nav-link:hover::after,.nav-link.active::after{width:100%}
.nav-link.active{color:var(--yellow)}

/* mobile menu (clip reveal) */
.mobile-menu{clip-path:circle(0% at calc(100% - 44px) 44px);transition:clip-path .7s var(--ease);pointer-events:none}
.mobile-menu.open{clip-path:circle(160% at calc(100% - 44px) 44px);pointer-events:all}
.mobile-link{opacity:0;transform:translateY(20px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
.mobile-menu.open .mobile-link{opacity:1;transform:none}
.mobile-menu.open .mobile-link:nth-child(1){transition-delay:.12s}
.mobile-menu.open .mobile-link:nth-child(2){transition-delay:.17s}
.mobile-menu.open .mobile-link:nth-child(3){transition-delay:.22s}
.mobile-menu.open .mobile-link:nth-child(4){transition-delay:.27s}
.mobile-menu.open .mobile-link:nth-child(5){transition-delay:.32s}
.mobile-menu.open .mobile-link:nth-child(6){transition-delay:.37s}
.mobile-menu.open .mobile-link:nth-child(7){transition-delay:.42s}

/* hero line reveal */
.line-mask{overflow:hidden;display:block;padding-bottom:.04em}
.line-inner{display:block;transform:translateY(110%);will-change:transform}

/* scroll reveal (JS adds .in) */
.js-on [data-reveal]{opacity:0;transform:translateY(38px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.js-on [data-reveal].in{opacity:1;transform:none}
.js-on [data-reveal-left]{opacity:0;transform:translateX(-48px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.js-on [data-reveal-left].in{opacity:1;transform:none}
.js-on [data-scale]{opacity:0;transform:scale(.92);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js-on [data-scale].in{opacity:1;transform:none}

/* white category / product card */
.card-cat{background:#fff;border-radius:22px;overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease);border:1px solid #ececec;cursor:pointer}
.card-cat:hover{transform:translateY(-8px);box-shadow:0 24px 50px rgba(0,0,0,.18);border-color:var(--yellow)}

/* image placeholder blocks */
.ph{position:relative;display:grid;place-content:center;background:linear-gradient(135deg,#f4f4f4,#e9e9e9);overflow:hidden}
.ph::after{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 1px 1px,rgba(0,0,0,.05) 1px,transparent 0);background-size:14px 14px}
.ph-label{position:relative;z-index:1;font-size:11px;font-weight:700;color:#00000055;text-align:center;padding:0 10px}

/* image slot (dark) — shows hint until real image loads */
.img-slot{position:relative;background:linear-gradient(135deg,#161616,#0c0c0c)}
.img-hint{position:absolute;inset:0;display:grid;place-content:center;text-align:center;font-size:12px;font-weight:600;color:#ffffff40;line-height:1.6;padding:20px;pointer-events:none}
.img-missing{opacity:0!important}          /* hide broken img, reveal hint underneath */

/* dark cards */
.dark-card{background:var(--graphite);border:1px solid #232323;border-radius:22px;transition:transform .3s var(--ease),border-color .3s var(--ease),box-shadow .3s var(--ease)}
.dark-card:hover{transform:translateY(-6px);border-color:rgba(255,196,0,.4);box-shadow:0 20px 50px rgba(0,0,0,.5)}
.feat-ico{width:48px;height:48px;display:grid;place-content:center;border-radius:14px;background:rgba(255,196,0,.1);color:var(--yellow);margin-bottom:20px}

/* steps */
.step-ico{width:64px;height:64px;margin:0 auto 16px;display:grid;place-content:center;border-radius:18px;background:var(--yellow);color:#050505;position:relative}
.step-num{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;background:#050505;border:1px solid var(--yellow);color:var(--yellow);font-size:12px;font-weight:800;display:grid;place-content:center}

/* bairros */
.bairro{display:flex;align-items:center;gap:.5rem}
.bairro::before{content:"";width:16px;height:16px;flex:none;border-radius:50%;background:var(--yellow);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") center/72% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") center/72% no-repeat}

/* testimonials */
.stars{color:var(--yellow);margin:.5rem 0;letter-spacing:1px}
.avatar{width:44px;height:44px;border-radius:50%;display:grid;place-content:center;background:var(--graphite-2);border:1px solid var(--yellow);color:var(--yellow);font-weight:800;font-size:14px}

/* footer social */
.soc-ico{width:40px;height:40px;display:grid;place-content:center;border-radius:50%;border:1px solid rgba(255,255,255,.15);transition:border-color .3s var(--ease),color .3s var(--ease),transform .3s var(--ease)}
.soc-ico:hover{border-color:var(--yellow);color:var(--yellow);transform:translateY(-2px)}

/* marquee */
.marquee{display:flex;overflow:hidden;white-space:nowrap}
.marquee-track{display:flex;align-items:center;gap:0;animation:marq 28s linear infinite}
.marquee-track .zap{color:var(--yellow)}
@keyframes marq{to{transform:translateX(-50%)}}

/* timer ring */
.ring-path{stroke-dasharray:553;stroke-dashoffset:553;animation:draw 1.6s var(--ease) forwards .4s}
@keyframes draw{to{stroke-dashoffset:80}}
.timer-badge{background:rgba(5,5,5,.35);backdrop-filter:blur(4px);border-radius:50%}

/* accordion */
.acc-body{max-height:0;overflow:hidden;transition:max-height .4s var(--ease)}
.acc.open .acc-body{max-height:340px}
.acc.open .acc-icon{transform:rotate(45deg)}
.acc-icon{transition:transform .3s var(--ease)}

/* whatsapp float */
.wa-float{animation:pulse 2.4s infinite}
.wa-float:hover{transform:scale(1.08)}
.wa-badge{position:absolute;top:-3px;right:-3px;width:20px;height:20px;border-radius:50%;background:var(--yellow);color:#000;font-size:11px;font-weight:800;display:grid;place-content:center}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)}70%{box-shadow:0 0 0 18px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}

/* glows */
.hero-glow{position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(255,196,0,.22),transparent 65%);filter:blur(20px);pointer-events:none}

/* floating hero products */
.float-prod{animation:floaty 5s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}

/* hero tilt smoothing */
#heroTilt{transform-style:preserve-3d;transition:transform .4s var(--ease);will-change:transform}

/* category scroll */
.cat-scroll{scrollbar-width:thin;scroll-snap-type:x mandatory}
.cat-scroll::-webkit-scrollbar{height:8px}
.cat-scroll::-webkit-scrollbar-thumb{background:#ddd}

@media (max-width:768px){
  .hero-glow{width:320px;height:320px}
}

/* reduced motion */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .line-inner{transform:none!important}
}
