/* ============================================================
   site.css — camada compartilhada da Sanick
   Tokens de marca + reset + tipografia + componentes de base
   (header, footer, botoes, .wrap, .reveal, stats-bar, final-cta).
   Regras exclusivas de cada pagina continuam no <style> da propria pagina.
   NAO editar cores/tokens aqui e em outro lugar ao mesmo tempo:
   este arquivo e a fonte unica da camada global.
   ============================================================ */

:root{
  --terracotta:#AC2715;
  --terracotta-dark:#8A1F11;
  --green-dark:#2F5643;
  --green-darker:#1E3A2E;
  --sage:#7F998F;
  --green-accent-text:#8FCDA8;
  --green-btn:#3F7A57;
  --green-btn-dark:#2F5C41;
  --surface:#D9DAD9;
  --ink:#242422;
  --gray-text:#5B6560;
  --white:#FFFFFF;
  --off-white:#FAFAF9;
  --border:rgba(36,36,34,0.10);
  --code-bg:#12251C;
}

/* Blindagem contra overflow horizontal (grids nao podem estourar a largura) */
  html, body{ overflow-x:hidden; max-width:100%; }

video{ max-width:100%; }

*{box-sizing:border-box; margin:0; padding:0;}

html{scroll-behavior:smooth;}

@keyframes fadeInUp{ from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:translateY(0);} }

.fade-in-up{ opacity:0; animation:fadeInUp .8s ease forwards; }

.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }

.reveal.in-view{ opacity:1; transform:translateY(0); }

h1,h2,h3,.display{
    font-family:'Inter', sans-serif;
    font-weight:700;
    letter-spacing:-0.02em;
    color:var(--green-darker);
  }

.mono{font-family:'JetBrains Mono', monospace;}

a{color:inherit; text-decoration:none;}

.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

img{display:block; max-width:100%;}

button{font-family:inherit;}

.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}

.header-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 32px; max-width:1180px; margin:0 auto;
  }

.brand{display:flex; align-items:center; gap:14px;}

.brand img{height:52px; width:auto;}

.brand .slogan{
    font-family:'Inter',sans-serif; font-size:12px; font-weight:500;
    color:var(--gray-text); letter-spacing:0.02em; font-style:italic;
    border-left:1px solid var(--border); padding-left:14px;
  }

nav a{font-size:14px; font-weight:500; color:var(--green-darker); transition:color .15s;}

nav a:hover{color:var(--terracotta);}

.nav-cta{
    background:var(--terracotta); color:var(--white) !important;
    padding:10px 20px; border-radius:6px; font-weight:600;
  }

.nav-cta:hover{background:var(--terracotta-dark); color:var(--white) !important;}

.cta-row{display:flex; gap:14px; flex-wrap:wrap;}

.btn-secondary:hover{border-color:var(--white); background:rgba(255,255,255,0.10);}

.stat:last-child{border-right:none;}

.stat .label{font-size:12px; color:rgba(255,255,255,0.6); margin-top:4px;}

section{padding:88px 0;}

.section-eyebrow{
    font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
    color:var(--terracotta); margin-bottom:12px;
  }

/* ===== Rodapé padrão do site ===== */
  .site-footer{ background:var(--green-darker); color:rgba(255,255,255,0.62); padding:72px 0 0; border-top:3px solid var(--terracotta); overflow-x:hidden; }

.footer-grid{
    display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr);
    gap:32px; padding-bottom:56px; align-items:start;
  }

.footer-col, .footer-brand{ min-width:0; display:block; }

.footer-col h4{ display:flex; align-items:center; gap:8px; }

.footer-col h4::after{ content:""; flex:1; height:1px; background:rgba(255,255,255,0.10); }

.footer-col:not(:first-of-type){ border-left:1px solid rgba(255,255,255,0.10); padding-left:32px; }

.footer-brand img{ height:48px; width:auto; margin-bottom:20px; }

.footer-tagline{ font-family:'Inter',sans-serif; font-size:16px; font-weight:700; color:var(--green-accent-text); margin-bottom:14px; letter-spacing:-0.01em; }

.footer-desc{ font-size:13.5px; line-height:1.7; max-width:270px; color:rgba(255,255,255,0.55); }
.footer-social{ display:flex; gap:10px; margin-top:20px; }
.footer-social a{ width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14);
  transition:background .18s ease, border-color .18s ease, transform .18s ease; }
.footer-social a:hover{ background:var(--terracotta); border-color:var(--terracotta); transform:translateY(-2px); }
.footer-social svg{ width:18px; height:18px; fill:rgba(255,255,255,0.82); }
.footer-social a:hover svg{ fill:#fff; }

.footer-col h4{
    font-family:'Inter',sans-serif; font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
    color:var(--green-accent-text); margin-bottom:22px;
  }

.footer-col a, .footer-col p{
    display:block; font-size:14px; color:rgba(255,255,255,0.68); margin-bottom:15px;
    transition:color .15s, transform .15s; line-height:1.4; word-break:break-word;
  }

.footer-col a:hover{ color:var(--white); transform:translateX(2px); }

.footer-col .footer-addr{ color:rgba(255,255,255,0.40); font-size:12.5px; margin-top:20px; line-height:1.7; padding-top:16px; border-top:1px solid rgba(255,255,255,0.08); }

.footer-wa{ display:inline-flex !important; align-items:center; gap:9px; }

.footer-wa svg{ width:16px; height:16px; fill:#25D366; flex-shrink:0; }

.footer-bottom{ border-top:1px solid rgba(255,255,255,0.10); padding:24px 0; margin-top:8px; }

.footer-bottom-inner{ display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; font-size:12.5px; color:rgba(255,255,255,0.40); }

.footer-bottom-inner .footer-slogan{ font-family:'Inter',sans-serif; font-weight:700; color:var(--sage); letter-spacing:.02em; }

/* ===== Menu suspenso "Produtos" ===== */
.nav-dd{ position:relative; display:inline-flex; align-items:center; }
.nav-dd-toggle{ display:inline-flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:500; color:var(--green-darker); padding:0; transition:color .15s; }
.nav-dd-toggle:hover{ color:var(--terracotta); }
.nav-dd-caret{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s; }
.nav-dd.open .nav-dd-caret{ transform:rotate(180deg); }
.nav-dd-panel{ position:absolute; top:calc(100% + 16px); left:50%; transform:translateX(-50%) translateY(-6px);
  min-width:300px; background:var(--white); border:1px solid var(--border); border-radius:12px;
  box-shadow:0 16px 44px rgba(30,58,46,0.14); padding:8px; opacity:0; visibility:hidden; transition:opacity .18s ease, transform .18s ease; z-index:60; }
.nav-dd.open .nav-dd-panel{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.nav-dd-item{ display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-radius:8px; transition:background .15s; }
.nav-dd-item:hover{ background:var(--off-white); }
.nav-dd-name{ font-family:'Inter',sans-serif; font-size:14px; font-weight:700; color:var(--green-darker); }
.nav-dd-desc{ font-size:12.5px; color:var(--gray-text); }
@media (max-width:860px){ .nav-dd{ display:none; } }

/* ===================== MENU MOBILE ===================== */
.mobile-menu-btn{
  display:none; width:44px; height:44px; border-radius:50%;
  background:var(--white); border:1px solid var(--border); cursor:pointer;
  align-items:center; justify-content:center; flex-shrink:0; padding:0;
  transition:background .18s ease, border-color .18s ease;
}
.mobile-menu-btn:hover, .mobile-menu-btn[aria-expanded="true"]{ background:var(--green-darker); border-color:var(--green-darker); }
.mobile-menu-btn span{ display:block; position:relative; width:18px; height:12px; }
.mobile-menu-btn span i{
  position:absolute; left:0; width:100%; height:2px; border-radius:2px; background:var(--green-darker);
  transition:transform .28s ease, opacity .2s ease, background .18s ease;
}
.mobile-menu-btn span i:nth-child(1){ top:0; }
.mobile-menu-btn span i:nth-child(2){ top:5px; }
.mobile-menu-btn span i:nth-child(3){ top:10px; }
.mobile-menu-btn:hover span i, .mobile-menu-btn[aria-expanded="true"] span i{ background:var(--white); }
.mobile-menu-btn[aria-expanded="true"] span i:nth-child(1){ transform:translateY(5px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span i:nth-child(2){ opacity:0; }
.mobile-menu-btn[aria-expanded="true"] span i:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:0; z-index:60; visibility:hidden; opacity:0;
  transition:opacity .25s ease, visibility .25s ease;
}
.mobile-menu.open{ visibility:visible; opacity:1; }
.mm-backdrop{ position:absolute; inset:0; background:rgba(20,32,26,0.55); backdrop-filter:blur(2px); }
.mm-panel{
  position:absolute; top:0; right:0; height:100%; width:min(86vw, 360px);
  background:var(--off-white); box-shadow:-14px 0 40px rgba(20,32,26,0.28);
  transform:translateX(100%); transition:transform .32s cubic-bezier(.4,0,.15,1);
  display:flex; flex-direction:column; overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.mobile-menu.open .mm-panel{ transform:translateX(0); }
.mm-head{ display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--border); }
.mm-head img{ height:38px; width:auto; }
.mm-close{ width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:var(--white); cursor:pointer;
  display:flex; align-items:center; justify-content:center; }
.mm-close svg{ width:16px; height:16px; stroke:var(--green-darker); stroke-width:2.4; fill:none; stroke-linecap:round; }
.mm-body{ padding:22px 22px 30px; flex:1; }
.mm-label{ font-family:'JetBrains Mono',monospace; font-size:10.5px; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:var(--gray-text); margin:0 0 12px; }
.mm-prod{ display:flex; flex-direction:column; gap:8px; margin-bottom:28px; }
.mm-prod a{ display:block; background:var(--white); border:1px solid var(--border); border-radius:12px; padding:14px 16px;
  transition:border-color .18s ease, transform .18s ease; }
.mm-prod a:active{ transform:scale(0.98); }
.mm-prod a .n{ display:block; font-family:'Inter',sans-serif; font-weight:700; font-size:15px; color:var(--green-darker); }
.mm-prod a .d{ display:block; font-size:12.5px; color:var(--gray-text); margin-top:2px; }
.mm-links{ display:flex; flex-direction:column; border-top:1px solid var(--border); margin-bottom:26px; }
.mm-links a{ padding:15px 2px; font-size:15.5px; font-weight:500; color:var(--green-darker); border-bottom:1px solid var(--border); }
.mm-cta{ display:block; text-align:center; background:var(--terracotta); color:var(--white) !important;
  font-weight:700; font-size:15px; padding:15px 20px; border-radius:8px; }
.mm-foot{ padding:0 22px 26px; }
.mm-foot .mm-social{ display:flex; gap:10px; }
.mm-foot .mm-social a{ width:40px; height:40px; border-radius:10px; background:var(--white); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; }
.mm-foot .mm-social svg{ width:17px; height:17px; fill:var(--green-darker); }
body.menu-open{ overflow:hidden; }

@media (max-width: 860px){
  .footer-col a[href^="mailto"]{ overflow-wrap:anywhere; word-break:break-word; }
  .mobile-menu-btn{ display:flex; }
  .brand .slogan{ display:none; }
  .brand img{ height:42px; }
  .header-inner{ padding:12px 18px; }
}
@media (min-width: 861px){
  .mobile-menu{ display:none; }
}

/* ===== Ajustes finos de mobile ===== */
@media (max-width: 860px){
  /* alvos de toque no rodape */
  .footer-col a{ padding:9px 0; display:inline-block; }
  .footer-brand .footer-social a{ width:42px; height:42px; }
  /* legibilidade dos rotulos */
  .pain-tag{ font-size:11.5px !important; }
  .pain-when{ font-size:12px !important; }
  .quiz-badge, .tag{ font-size:11.5px !important; }
  /* area de toque dos pontinhos do carrossel */
  .io-dot{ position:relative; }
  .io-dot::after{ content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
    width:34px; height:34px; }
}
