/* ===========================================================
   SILVEIRA DIAS — Distribuidora · estilos
   Paleta: azul marinho profundo + dourado (do logotipo)
   =========================================================== */
:root{
  --navy-950:#081831;
  --navy-900:#0A1E3A;
  --navy-850:#0F2A50;
  --navy-800:#12305A;
  --navy-700:#1C4178;
  --navy-600:#2A5694;
  --gold:#EFBF45;
  --gold-light:#F8D374;
  --gold-deep:#C9971F;
  --paper:#FBF9F3;
  --cream:#F4EFE2;
  --ink:#16233A;
  --muted:#6A7488;

  --maxw:1240px;
  --ff-brand:'Cinzel', serif;
  --ff-display:'Cormorant Garamond', serif;
  --ff-sans:'Outfit', sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--ff-sans); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 32px; }

.eyebrow{
  font-family:var(--ff-brand); text-transform:uppercase;
  letter-spacing:.34em; font-size:12.5px; font-weight:600; color:var(--gold-deep);
  display:inline-flex; align-items:center; gap:14px;
}
.eyebrow.on-dark{ color:var(--gold); }
.eyebrow::before{ content:""; width:42px; height:1px; background:currentColor; opacity:.6; }
.eyebrow.center::after{ content:""; width:42px; height:1px; background:currentColor; opacity:.6; }
.eyebrow.center{ justify-content:center; }

h1,h2,h3{ margin:0; font-weight:500; }
.display{
  font-family:var(--ff-display); font-weight:500; line-height:1.04;
  letter-spacing:-.005em;
}
.display .it{ font-style:italic; }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:10px; cursor:pointer;
  border-radius:999px; font-family:var(--ff-sans); font-weight:600; font-size:16px;
  padding:15px 28px; border:1.5px solid transparent; transition:transform .2s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s; }
.btn-gold{ background:linear-gradient(180deg,var(--gold-light),var(--gold)); color:#3a2a06;
  box-shadow:0 12px 26px -12px rgba(239,191,69,.85); }
.btn-gold:hover{ transform:translateY(-2px); box-shadow:0 18px 34px -12px rgba(239,191,69,.95); }
.btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.32); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }
.btn-navy{ background:var(--navy-800); color:#fff; }
.btn-navy:hover{ transform:translateY(-2px); background:var(--navy-700); }
.btn-outline-navy{ background:transparent; color:var(--navy-800); border-color:rgba(18,48,90,.28); }
.btn-outline-navy:hover{ border-color:var(--navy-800); }

/* ---------- Nav ---------- */
.nav{ position:fixed; top:0; left:0; right:0; z-index:50;
  transition:background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding:22px 0; }
.nav.scrolled{ background:rgba(8,24,49,.92); backdrop-filter:blur(12px);
  box-shadow:0 1px 0 rgba(239,191,69,.18); padding:12px 0; }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:13px; }
.brand img{ height:46px; width:auto; filter:drop-shadow(0 2px 6px rgba(0,0,0,.3)); transition:height .35s; }
.nav.scrolled .brand img{ height:40px; }
.brand .bt{ line-height:1; }
.brand .bt .name{ font-family:var(--ff-brand); font-weight:700; font-size:21px; letter-spacing:.05em; color:#fff; }
.brand .bt .sub{ font-family:var(--ff-brand); font-weight:500; font-size:9px; letter-spacing:.4em; color:var(--gold); margin-top:3px; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a.lnk{ color:rgba(255,255,255,.82); font-size:15px; font-weight:500; position:relative; padding:4px 0; white-space:nowrap; }
.btn{ white-space:nowrap; }
.nav-links a.lnk::after{ content:""; position:absolute; left:0; bottom:-2px; height:1.5px; width:0; background:var(--gold); transition:width .25s; }
.nav-links a.lnk:hover{ color:#fff; }
.nav-links a.lnk:hover::after{ width:100%; }
.nav-toggle{ display:none; }

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:center;
  background:radial-gradient(125% 95% at 82% -10%, #1C4178 0%, #0F2A50 44%, #0A1E3A 100%);
  color:#fff; overflow:hidden; padding:120px 0 70px; }
.hero-frame{ position:absolute; inset:20px; border:1px solid rgba(239,191,69,.20); pointer-events:none; z-index:1; }
.hero-watermark{ position:absolute; right:-150px; top:50%; transform:translateY(-50%);
  height:115%; opacity:.06; pointer-events:none; z-index:0; }
.hero-grid{ position:relative; z-index:2; display:grid; grid-template-columns:1.12fr .88fr; gap:48px; align-items:center; }
.hero h1{ font-size:clamp(48px,6.4vw,86px); color:#fff; }
.hero h1 .it{ color:var(--gold-light); }
.hero-sub{ color:rgba(255,255,255,.72); font-size:19px; line-height:1.62; max-width:470px; margin:30px 0 0; }
.hero-cta{ display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }
.hero-eyebrow{ margin-bottom:28px; }

.hero-stage{ position:relative; height:480px; }
.hero-stage .glow{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:360px; height:360px; border-radius:50%;
  background:radial-gradient(circle, rgba(239,191,69,.34), transparent 66%); filter:blur(6px); }
.hero-stage img{ position:absolute; filter:drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.hero-stage .p1{ left:14%; top:4%; height:350px; animation:floaty 6s ease-in-out infinite; }
.hero-stage .p2{ right:0%; top:34%; height:200px; animation:floaty 6s ease-in-out infinite .9s; }
.hero-stage .p3{ left:0%; bottom:0%; height:178px; animation:floaty 6s ease-in-out infinite 1.7s; }

@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }

/* hero map-flag composition */
.hero-stage .hero-map{ position:absolute; left:50%; top:43%; transform:translate(-50%,-50%);
  width:96%; max-width:410px; z-index:2; transform-origin:50% 8%; filter:none;
  animation:sway 8s ease-in-out infinite; }
.hero-stage .hero-map img{ position:relative; width:100%; filter:drop-shadow(0 24px 32px rgba(0,0,0,.5)); }
.hero-stage .hpao{ z-index:5; filter:drop-shadow(0 24px 26px rgba(0,0,0,.55)); }
.hero-stage .hpao1{ left:1%; bottom:2%; height:276px; --rot:rotate(-8deg); transform:var(--rot); animation:floatrot 6s ease-in-out infinite; }
.hero-stage .hpao2{ right:0%; bottom:0%; height:266px; --rot:rotate(7deg); transform:var(--rot); animation:floatrot 6s ease-in-out infinite 1.1s; }
@keyframes floatrot{ 0%,100%{ transform:translateY(0) var(--rot); } 50%{ transform:translateY(-13px) var(--rot); } }
@keyframes sway{ 0%,100%{ transform:translate(-50%,-50%) rotate(-1.4deg); } 50%{ transform:translate(-50%,calc(-50% - 9px)) rotate(1.4deg); } }

.scroll-cue{ position:absolute; left:50%; bottom:96px; transform:translateX(-50%); z-index:3;
  display:flex; flex-direction:column; align-items:center; gap:8px; color:rgba(255,255,255,.5);
  font-size:11px; letter-spacing:.25em; text-transform:uppercase; }
.scroll-cue .dot{ width:22px; height:36px; border:1.5px solid rgba(255,255,255,.35); border-radius:12px; position:relative; }
.scroll-cue .dot::after{ content:""; position:absolute; left:50%; top:7px; width:3px; height:7px; border-radius:2px;
  background:var(--gold); transform:translateX(-50%); animation:cue 1.6s ease-in-out infinite; }
@keyframes cue{ 0%{ opacity:0; transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0; transform:translate(-50%,12px);} 100%{opacity:0;} }

/* ---------- Marquee ---------- */
.marquee{ position:absolute; bottom:0; left:0; right:0; z-index:3;
  border-top:1px solid rgba(239,191,69,.18); background:rgba(8,24,49,.5); overflow:hidden; padding:18px 0; }
.marquee .track{ display:inline-flex; gap:48px; white-space:nowrap; animation:marq 24s linear infinite;
  font-family:var(--ff-brand); letter-spacing:.3em; font-size:15px; color:rgba(239,191,69,.85); }
.marquee .track span.dot{ color:rgba(239,191,69,.4); }
@keyframes marq{ to{ transform:translateX(-50%); } }

/* ---------- About / authority ---------- */
.about{ background:var(--paper); padding:118px 0 30px; }
.about-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; align-items:start; }
.about h2{ font-size:clamp(34px,4vw,52px); color:var(--navy-800); margin-top:22px; }
.about p{ color:var(--muted); font-size:18.5px; line-height:1.7; }
.about p + p{ margin-top:18px; }
.stats{ display:flex; gap:46px; margin-top:40px; }
.stat .n{ font-family:var(--ff-display); font-weight:600; font-size:46px; color:var(--navy-800); line-height:1; }
.stat .l{ font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--gold-deep); margin-top:8px; }
.about-pillars{ display:grid; gap:2px; background:rgba(18,48,90,.08); border:1px solid rgba(18,48,90,.08);
  border-radius:16px; overflow:hidden; }
.pillar{ background:var(--paper); padding:26px 28px; display:flex; gap:18px; align-items:flex-start; transition:background .2s; }
.pillar:hover{ background:#fff; }
.pillar .ic{ width:42px; height:42px; flex:none; border-radius:10px; background:var(--navy-800);
  display:flex; align-items:center; justify-content:center; color:var(--gold); }
.pillar .ic svg{ width:21px; height:21px; }
.pillar h3{ font-family:var(--ff-sans); font-weight:600; font-size:18px; color:var(--navy-800); }
.pillar p{ font-size:15px; margin:4px 0 0; color:var(--muted); line-height:1.55; }

/* ---------- Brands ---------- */
.brands{ background:var(--paper); padding:80px 0 110px; }
.brands-head{ text-align:center; margin-bottom:54px; }
.brands-head h2{ font-size:clamp(32px,3.6vw,46px); color:var(--navy-800); margin-top:18px; }
.brand-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.bcard{ position:relative; border-radius:18px; overflow:hidden; padding:26px 26px 24px; min-height:172px;
  display:flex; flex-direction:column; justify-content:space-between;
  background:linear-gradient(160deg,var(--navy-700),var(--navy-850)); color:#fff;
  border:1px solid rgba(239,191,69,.18); transition:transform .3s ease, box-shadow .3s ease, border-color .3s; }
.bcard:hover{ transform:translateY(-5px); border-color:rgba(239,191,69,.5); box-shadow:0 26px 46px -24px rgba(8,24,49,.7); }
.bcard .bc-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.bcard .bc-name{ font-family:var(--ff-display); font-weight:600; font-size:29px; letter-spacing:.01em; line-height:1.05; }
.bcard .bc-tag{ font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-top:6px; }
.bcard p{ color:rgba(255,255,255,.72); font-size:14.5px; line-height:1.5; margin:14px 0 0; }
.bcard .bc-count{ flex:none; font-size:12px; font-weight:600; color:var(--navy-900); background:var(--gold);
  padding:5px 11px; border-radius:999px; white-space:nowrap; }

/* ---------- Catalog ---------- */
.catalog{ background:var(--cream); padding:108px 0 120px; position:relative; }
.cat-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap; margin-bottom:34px; }
.cat-head h2{ font-size:clamp(34px,4.2vw,56px); color:var(--navy-800); margin-top:18px; }
.cat-head p{ color:var(--muted); max-width:430px; margin:14px 0 0; }
.filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px; }
.filter{ font-family:var(--ff-sans); font-size:14.5px; font-weight:500; color:var(--navy-800);
  background:#fff; border:1px solid rgba(18,48,90,.14); padding:10px 20px; border-radius:999px; cursor:pointer;
  transition:.2s; display:inline-flex; align-items:center; gap:8px; }
.filter .ct{ font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; }
.filter:hover{ border-color:var(--gold-deep); }
.filter.active{ background:var(--navy-800); color:#fff; border-color:var(--navy-800); }
.filter.active .ct{ color:var(--gold); }

.grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.card{ background:#fff; border-radius:18px; border:1px solid rgba(18,48,90,.07);
  padding:18px 18px 20px; display:flex; flex-direction:column; position:relative; overflow:hidden;
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s; }
.card::before{ content:""; position:absolute; inset:0; background:radial-gradient(120% 80% at 50% 0%, rgba(239,191,69,.10), transparent 60%); opacity:0; transition:opacity .3s; }
.card:hover{ transform:translateY(-6px); box-shadow:0 26px 44px -24px rgba(8,24,49,.45); border-color:rgba(239,191,69,.4); }
.card:hover::before{ opacity:1; }
.card .imgbox{ position:relative; height:184px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.card .imgbox img{ max-height:100%; max-width:88%; object-fit:contain; filter:drop-shadow(0 14px 18px rgba(8,24,49,.18)); transition:transform .3s; }
.card:hover .imgbox img{ transform:scale(1.05); }
.card .badge{ position:absolute; top:0; left:0; font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--navy-700); background:rgba(18,48,90,.06); padding:5px 10px; border-radius:999px; }
.card .pname{ font-family:var(--ff-sans); font-weight:600; font-size:16px; color:var(--navy-800); line-height:1.3; position:relative; }
.card .pmeta{ font-size:13.5px; color:var(--muted); margin-top:6px; position:relative; }
.card .pfoot{ display:flex; align-items:center; justify-content:space-between; margin-top:14px; position:relative; }
.card .pack{ font-size:12.5px; color:var(--gold-deep); font-weight:600; background:rgba(239,191,69,.12); padding:5px 11px; border-radius:999px; white-space:nowrap; }
.card .pbrand{ font-size:12px; color:var(--muted); letter-spacing:.04em; }

.card.hide{ display:none; }

/* uniform card height across cut + tile */
.grid .card{ height:368px; }
.card.cut{ justify-content:flex-start; }
/* tile cards = catalog tile image (label baked in) */
.card.tile{ padding:14px; align-items:center; justify-content:center; }
.card.tile img{ width:100%; height:100%; object-fit:contain; position:relative; z-index:1; }
.card.tile::after{ content:""; position:absolute; left:14px; right:14px; bottom:12px; height:2px;
  background:linear-gradient(90deg,transparent,rgba(239,191,69,.5),transparent); opacity:0; transition:opacity .3s; }
.card.tile:hover::after{ opacity:1; }
.card.tile:hover img{ transform:scale(1.035); }
/* reveal */
[data-reveal]{ opacity:0; transform:translateY(26px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in{ opacity:1; transform:none; }

/* ---------- Contact ---------- */
.contact{ position:relative; background:radial-gradient(120% 110% at 15% 0%, #1C4178 0%, #0F2A50 45%, #081831 100%);
  color:#fff; padding:110px 0; overflow:hidden; }
.contact-watermark{ position:absolute; left:-120px; bottom:-80px; height:420px; opacity:.06; pointer-events:none; }
.contact-grid{ position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.contact h2{ font-size:clamp(36px,4.6vw,60px); color:#fff; }
.contact h2 .it{ color:var(--gold-light); }
.contact .lead{ color:rgba(255,255,255,.72); font-size:19px; line-height:1.6; margin:24px 0 36px; max-width:440px; }
.contact-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.channels{ display:grid; gap:14px; }
.channel{ display:flex; align-items:center; gap:18px; padding:22px 24px; border-radius:16px;
  background:rgba(255,255,255,.04); border:1px solid rgba(239,191,69,.18); transition:.25s; }
.channel:hover{ background:rgba(255,255,255,.07); border-color:var(--gold); transform:translateX(4px); }
.channel .cic{ width:50px; height:50px; flex:none; border-radius:12px; background:rgba(239,191,69,.14);
  display:flex; align-items:center; justify-content:center; color:var(--gold); }
.channel .cic svg{ width:24px; height:24px; }
.channel .cl{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); }
.channel .cv{ font-size:19px; font-weight:600; color:#fff; margin-top:2px; }

/* ---------- Footer ---------- */
.footer{ background:var(--navy-950); color:rgba(255,255,255,.6); padding:50px 0 38px; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer .brand .bt .name{ font-size:18px; }
.footer-meta{ font-size:13.5px; }
.footer a:hover{ color:var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .hero-grid{ grid-template-columns:1fr; gap:30px; }
  .hero-stage{ height:340px; }
  .hero-stage .hero-map{ max-width:290px; }
  .hero-stage .hpao1{ height:190px; }
  .hero-stage .hpao2{ height:184px; }
  .about-grid{ grid-template-columns:1fr; gap:40px; }
  .grid{ grid-template-columns:repeat(2,1fr); }
  .brand-cards{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; gap:40px; }
}
@media (max-width:760px){
  body{ font-size:16px; }
  .wrap{ padding:0 20px; }
  .nav-links{ position:fixed; inset:0 0 0 auto; width:78%; max-width:340px; background:var(--navy-900);
    flex-direction:column; align-items:flex-start; justify-content:center; gap:26px; padding:40px;
    transform:translateX(100%); transition:transform .35s ease; box-shadow:-30px 0 60px rgba(0,0,0,.5); }
  .nav-links.open{ transform:none; }
  .nav-toggle{ display:flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; z-index:60; padding:6px; }
  .nav-toggle span{ width:26px; height:2px; background:#fff; border-radius:2px; transition:.3s; }
  .hero-watermark{ opacity:.04; }
  .stats{ gap:30px; }
  .grid{ grid-template-columns:1fr 1fr; gap:14px; }
  .card .imgbox{ height:150px; }
}
@media (max-width:480px){
  .grid{ grid-template-columns:1fr; }
  .brand .bt .name{ font-size:18px; }
}
