/* =========================================================
   SCANDIWEST-STYLE — Design System / Template
   Reconstruído a partir de scandiwest.framer.website (template Framer + Lenis).
   EXATO: tokens, tipografia (presets Framer), raios, cores de hover, entradas do hero.
   MEDIDO: layout, sticky/stack, header que aparece ao subir, fades.
   INVENTADO: marcado com [inventado].
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root{
  --white:#ffffff;        /* fundo principal, cards, botão claro */
  --ink:#092e5a;          /* texto, seções escuras (Projetos, Depoimentos, Footer), botão escuro */
  --soft:#f4f8fa;         /* seções claras alternadas (Processo, FAQ) */
  --soft-2:#e8f0f5;       /* badges / chips */
  --line:#d9e1e8;         /* divisores, bordas */
  --stone:#657387;        /* texto secundário + cor de HOVER dos botões */
  --mute:#8d9aab;         /* labels de seção, texto terciário */
  --glass:rgba(255,255,255,.1);        /* chips sobre foto/vídeo (com blur 5px) */
  --hdr-line:rgba(0,0,0,.15);          /* borda inferior do header */
  --overlay:rgba(0,0,0,.8);            /* fundo atrás do menu lateral */
  --r:8px; --r-pill:100px;
  --sans:"DM Sans",Arial,system-ui,sans-serif;
  --serif:"Libre Caslon Text",Georgia,serif;
  --navy:#062f5b; --navy-deep:#031f3e; --navy-light:#0a477a;
  --teal:#3fc1b8; --teal-dark:#179c98; --text:#26374a;
  --pad-x:32px;           /* gutter lateral */
  --sec-y:160px;          /* padding vertical de seção */
  --ease:cubic-bezier(.22,1,.36,1);
}

/* ---------- 2. BASE ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
body{background:var(--white);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
ul{list-style:none}

/* ---------- 3. TIPOGRAFIA (presets do Framer; desktop = tablet ≥810px) ---------- */
.t-h1{font-weight:500;font-size:56px;line-height:64px;letter-spacing:-.02em}      /* títulos de seção e hero */
.t-h3{font-weight:500;font-size:36px;line-height:44px;letter-spacing:-.02em}      /* frase “About”, citação da filosofia */
.t-h4{font-weight:500;font-size:32px;line-height:40px;letter-spacing:-.02em}      /* nomes de projeto, serviços, passos */
.t-quote{font-weight:500;font-size:24px;line-height:32px}                         /* depoimentos */
.t-lead{font-weight:500;font-size:20px;line-height:30px}                          /* parágrafo de destaque */
.t-body{font-weight:400;font-size:16px;line-height:24px}
.t-small{font-weight:400;font-size:14px;line-height:22px}
.muted{color:var(--stone)} .mute{color:var(--mute)}

/* ---------- 4. LAYOUT ---------- */
main{position:relative;z-index:2;background:var(--white);border-radius:0 0 var(--r) var(--r)}
.sec{position:relative;padding:var(--sec-y) var(--pad-x);background:var(--white);border-radius:var(--r)}
.sec--dark{background:var(--navy-deep);color:var(--white)}
.sec--soft{background:var(--soft)}
/* cabeçalho de seção: label à esquerda, número à direita (sticky), título em H1 */
.sh{position:sticky;top:60px;z-index:3;display:flex;justify-content:space-between;pointer-events:none;height:0}
.sh span{font-size:14px;line-height:22px;color:var(--mute);transform:translateY(12px)}
.sec-title{margin:0 0 64px 16.5%}                 /* título alinhado à 2ª coluna no desktop */
.frame{position:relative;overflow:hidden;border-radius:var(--r);background:var(--soft)}
.frame img,.frame video{width:100%;height:100%;object-fit:cover}

/* ---------- 5. BOTÕES (hover: fundo vira --stone, texto branco) ---------- */
.btn{display:inline-flex;align-items:center;gap:8px;border-radius:var(--r);font-size:14px;line-height:22px;font-weight:400;transition:background-color .3s var(--ease),color .3s var(--ease)}
.btn--s{padding:8px 12px}
.btn--m{padding:15px 16px}
.btn--light{background:var(--white);color:var(--ink)}
.btn--dark{background:var(--ink);color:var(--white)}
.btn:hover{background:var(--teal-dark);color:var(--white)}
.icon-btn{width:32px;height:32px;display:grid;place-items:center;border-radius:6px;background:var(--ink);color:var(--white);transition:background-color .3s}
.icon-btn:hover{background:var(--teal-dark);color:var(--white)}
.icon-btn svg,.btn svg{width:14px;height:14px}
.chip{display:inline-flex;padding:4px 10px;border-radius:6px;background:var(--soft-2);font-size:14px;line-height:22px;color:var(--stone)}

/* ---------- 6. HEADER ---------- */
/* topo: itens soltos sobre o hero */
.top{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:28px var(--pad-x);color:var(--white)}
/* barra fixa: escondida, aparece ao ROLAR PARA CIMA (opacity + translateY -12 → 0, .22s) */
.hdr{position:fixed;top:0;left:0;right:0;z-index:9;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:10px var(--pad-x);
  background:var(--white);border-bottom:1px solid var(--hdr-line);border-radius:0 0 var(--r) var(--r);
  opacity:0;transform:translateY(-12px);pointer-events:none;transition:opacity .22s,transform .22s}
.hdr.show{opacity:1;transform:none;pointer-events:auto}
.hdr .brand{font-size:18px;font-weight:500;letter-spacing:-.02em}
.hdr .btn{justify-self:end}
.burger{width:32px;height:32px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.burger i{display:block;height:1.5px;background:currentColor;width:18px}
.burger i:last-child{width:12px}

/* ---------- 7. MENU LATERAL (drawer à esquerda) ---------- */
.drawer{position:fixed;inset:0;z-index:20;visibility:hidden}
.drawer__bg{position:absolute;inset:0;background:var(--overlay);opacity:0}
.drawer__panel{position:absolute;top:0;left:0;bottom:0;width:min(390px,100%);background:var(--white);padding:24px 16px;display:flex;flex-direction:column;justify-content:space-between;transform:translateX(-100%)}
.drawer__head{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--stone)}
.drawer__close{width:28px;height:28px;border-radius:6px;background:var(--soft);display:grid;place-items:center}
.drawer nav{display:flex;flex-direction:column;gap:8px}
.drawer nav a{font-size:36px;line-height:44px;letter-spacing:-.02em;font-weight:500;transition:color .3s}
.drawer nav a:hover{color:var(--teal-dark)}

/* ---------- 8. HERO ---------- */
.hero{position:relative;height:100svh;min-height:600px;overflow:hidden;border-radius:0 0 var(--r) var(--r);color:var(--white);background:#d9d9d9}
.hero__bg{position:absolute;inset:0}
.hero__bg img{width:100%;height:100%;object-fit:cover;transform-origin:50% 50%}
.hero__bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.28))}
.hero__title{position:absolute;left:var(--pad-x);bottom:48px;max-width:560px;z-index:2}
.hero__card{position:absolute;right:var(--pad-x);bottom:48px;z-index:2;width:190px;background:var(--white);color:var(--ink);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:8px}
.hero__card .frame{aspect-ratio:161/120}
.hero__card .row{display:flex;justify-content:space-between;align-items:center;margin-top:6px}

/* ---------- 9. SOBRE ---------- */
.about__intro{max-width:760px;margin-left:16.5%}
.stats{display:flex;gap:80px;margin:56px 0 72px 16.5%}
.stats .t-h1{margin-bottom:8px}
.about__row{display:grid;grid-template-columns:1fr 330px;gap:48px;align-items:center;margin-left:16.5%}
.about__row .t-lead{margin-bottom:24px}
.map{aspect-ratio:323/160;color:var(--white)}
.map__label{position:absolute;left:16px;bottom:16px;font-size:18px;line-height:28px;font-weight:500}
.map__pin{position:absolute;right:12px;top:12px;width:32px;height:32px;border-radius:6px;background:var(--white);color:var(--ink);display:grid;place-items:center}

/* ---------- 10. PROJETOS (cards empilhados: sticky + scale/fade no scroll) ---------- */
.projects{margin-top:-8px}
.pcards{display:flex;flex-direction:column;gap:40px}
.pcard{position:sticky;top:188px;height:min(70svh,560px);border-radius:var(--r);overflow:hidden;transform-origin:50% 0}
.pcard__imgs img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s var(--ease)}
.pcard__imgs img.on{opacity:1}
.pcard__info{position:absolute;left:16px;bottom:16px;width:min(300px,calc(100% - 32px));background:var(--white);color:var(--ink);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:10px}
.pcard__info .meta{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:14px;line-height:22px}
.pcard__info .meta svg{width:16px;height:16px;flex:none}
.pcard__info .btn{justify-content:center;margin-top:8px}
.pcard__thumbs{position:absolute;right:16px;bottom:16px;display:flex;flex-direction:column;gap:8px}
.pcard__thumbs button{width:114px;aspect-ratio:114/56;border-radius:var(--r);overflow:hidden;opacity:.6;outline:2px solid transparent;transition:opacity .3s,outline-color .3s}
.pcard__thumbs button.on,.pcard__thumbs button:hover{opacity:1;outline-color:var(--white)}
.pcard__thumbs img{width:100%;height:100%;object-fit:cover}

/* ---------- 11. SERVIÇOS (acordeão com imagem) ---------- */
.svc{border-top:1px solid var(--line)}
.svc__item{border-bottom:1px solid var(--line)}
.svc__head{width:100%;display:flex;justify-content:space-between;align-items:center;padding:40px 0;text-align:left}
.svc__item.open .svc__head .t-h4{color:var(--mute)}
.svc__head .icon-btn{transition:transform .5s var(--ease),background-color .3s}
.svc__item.open .svc__head .icon-btn{transform:rotate(45deg);background:var(--soft-2);color:var(--ink)}
.svc__body{height:0;overflow:hidden}
.svc__media{position:relative;aspect-ratio:16/9;margin-bottom:40px}
.svc__note{position:absolute;left:16px;bottom:16px;right:16px;max-width:600px;background:var(--white);border-radius:var(--r);padding:12px 16px;display:flex;gap:16px;align-items:center}
.svc__note i{flex:none;width:32px;height:32px;border-radius:6px;background:var(--soft);display:grid;place-items:center;font-style:normal}

/* ---------- 12. PROCESSO (grade 2×2; 1º card com vídeo e chips de vidro) ---------- */
.steps{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.step{position:relative;min-height:420px;border-radius:var(--r);background:var(--white);padding:24px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.step--media{color:var(--white)}
.step--media > img,.step--media > video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.step__top{position:relative;display:flex;justify-content:space-between;align-items:center}
.glass{background:var(--glass);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:var(--r);padding:4px 10px}
.step__ic{width:32px;height:32px;border-radius:6px;background:var(--soft);display:grid;place-items:center}
.step--media .step__ic{background:var(--white);color:var(--ink)}
.step__txt{position:relative;display:flex;flex-direction:column;gap:8px;max-width:360px}
.step--media .step__txt{background:var(--glass);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:var(--r);padding:16px}

/* ---------- 13. DEPOIMENTOS (fundo sticky com crossfade + cards passando por cima) ---------- */
.testi{padding:0;overflow:clip}
.testi__sticky{position:sticky;top:0;height:100svh;overflow:hidden;border-radius:var(--r)}
.testi__sticky img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s var(--ease)}
.testi__sticky img.on{opacity:1}
.testi__sticky::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.25)}
.testi__title{position:absolute;left:50%;top:22%;transform:translate(-50%,-50%);z-index:2;white-space:nowrap;color:var(--white)}
.testi .sh{position:absolute;top:170px;left:var(--pad-x);right:var(--pad-x);z-index:3}
.testi .sh span{color:var(--white)}
.testi__cards{position:relative;z-index:4;margin-top:-60svh;padding-bottom:40svh;display:flex;flex-direction:column;align-items:center;gap:60svh}
.tcard{width:min(360px,calc(100% - 40px));background:var(--white);color:var(--ink);border-radius:var(--r);padding:24px;display:flex;flex-direction:column;gap:48px}
.tcard__who{display:flex;gap:16px;align-items:center}
.tcard__who img{width:64px;height:64px;border-radius:var(--r);object-fit:cover}

/* ---------- 14. FILOSOFIA ---------- */
.philo{text-align:center}
.philo .sec-title{margin-left:0}
.philo blockquote{max-width:760px;margin:0 auto 48px}
.philo .w{display:inline-block}                     /* palavras (split no JS) */
.duo{display:inline-flex;align-items:center;gap:16px}
.duo__imgs{display:flex}
.duo__imgs img{width:56px;height:56px;border-radius:var(--r-pill);object-fit:cover;border:2px solid var(--white)}
.duo__imgs img+img{margin-left:-14px}

/* ---------- 15. FAQ ---------- */
.faq{padding-bottom:calc(var(--sec-y) + 40px)}
.faq__grid{display:grid;grid-template-columns:1fr 1.6fr;gap:48px;align-items:start}
.faq__side{display:flex;flex-direction:column;gap:16px;position:sticky;top:140px}
.faq__side .btn{align-self:flex-start;margin-top:8px}
.faq__title .word{display:inline-block}
.acc__item{border-bottom:1px solid var(--line)}
.acc__q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 0;text-align:left;font-size:20px;line-height:30px;font-weight:500}
.acc__q i{flex:none;width:28px;height:28px;border-radius:6px;background:var(--white);display:grid;place-items:center;font-style:normal;transition:transform .4s var(--ease)}
.acc__item.open .acc__q i{transform:rotate(45deg)}
.acc__a{height:0;overflow:hidden}
.acc__a p{padding-bottom:24px;max-width:620px}

/* ---------- 16. FOOTER (revelado por baixo: fixed + espaço reservado) ---------- */
.ftr{position:fixed;left:0;right:0;bottom:0;z-index:0;background:var(--navy-deep);color:var(--white);padding:32px var(--pad-x) 0;border-radius:var(--r) var(--r) 0 0;overflow:hidden;height:513px;display:flex;flex-direction:column}
.ftr-space{height:513px}                            /* espaço que deixa o footer aparecer */
.ftr__top{display:flex;justify-content:space-between;gap:40px}
.ftr__top .t-h3{max-width:440px;margin-bottom:32px}
.ftr__addr{display:flex;flex-direction:column;justify-content:space-between;text-align:left;font-size:14px;line-height:22px;min-width:200px}
.ftr__bar{display:grid;grid-template-columns:1fr auto 1fr;gap:24px;margin-top:auto;padding:24px 0;font-size:14px;line-height:22px}
.ftr__bar .mute{color:var(--stone)}
.ftr__bar nav{display:flex;gap:32px}
.ftr__bar nav:last-child{justify-content:flex-end}
.ftr a{transition:color .3s}.ftr a:hover{color:var(--teal)}
.ftr__word{font-size:clamp(80px,13.4vw,154px);line-height:1.2;letter-spacing:-.02em;color:rgba(63,193,184,.10);text-align:center;white-space:nowrap;margin-bottom:-.28em}

/* ---------- 17. REVEAL ---------- */
.js .fade{opacity:0}

/* ---------- 18. RESPONSIVO (breakpoints Framer: ≥1200 | 810–1199 | <810) ---------- */
@media (max-width:1199.98px){
  .sec-title,.about__intro,.stats,.about__row{margin-left:0}
  .sh{height:auto;margin-bottom:24px}.sh span{transform:none}   /* label acima do título quando não há coluna lateral */
  .testi .sh{margin:0}
  .t-lead{font-size:18px;line-height:28px}
}
@media (max-width:809.98px){
  :root{--pad-x:16px;--sec-y:96px}
  .t-h1{font-size:36px;line-height:44px}
  .t-h3{font-size:24px;line-height:32px}
  .t-h4{font-size:18px;line-height:28px}
  .t-quote,.t-lead{font-size:16px;line-height:24px}
  .sec-title{margin-bottom:40px}
  .stats{gap:48px}
  .about__row,.steps,.faq__grid{grid-template-columns:1fr}
  .faq__side{position:static}
  .pcard{top:120px;height:72svh}
  .pcard__thumbs{display:none}
  .step{min-height:340px}
  .testi__title{white-space:normal;text-align:center;width:90%}
  .ftr,.ftr-space{height:560px}
  .ftr__top{flex-direction:column}
  .ftr__bar{grid-template-columns:1fr;text-align:left}
  .ftr__bar nav:last-child{justify-content:flex-start}
  .hero__card{display:none}
  .testi .sh{top:96px}
}
@media (prefers-reduced-motion:reduce){ .js .fade{opacity:1} }

.skip{position:absolute;left:16px;top:-60px;z-index:200;background:var(--white);color:var(--ink);padding:8px 12px;border-radius:var(--r)}
.skip:focus{top:16px}

/* ---------- MARCA PORTO SEGURO: serifada editorial nos títulos, DM Sans no corpo, acento teal ---------- */
body{color:var(--text)}
.t-h1,.t-h3,.t-h4,.t-quote,.hdr .brand,.ftr__word,.drawer nav a{font-family:var(--serif);font-weight:400;letter-spacing:-.01em}
.sec-title,.about__intro,.stats .t-h1{color:var(--ink)}
.sec--dark .sec-title,.sec--dark .t-h1,.ftr .t-h3{color:var(--white)}
.stats .t-h1{color:var(--navy-light)}
.chip{background:rgba(63,193,184,.14);color:var(--teal-dark)}
.sh span:last-child{color:var(--teal-dark)}
.sec--dark .sh span:last-child{color:var(--teal)}
.map__pin,.step--media .step__ic{background:var(--teal);color:var(--navy-deep)}
.btn--dark{background:var(--navy)}
::selection{background:var(--teal);color:var(--navy-deep)}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px}

/* ---------- ETAPAS: no hover a foto surge e o texto vira vidro, como no card de destaque ---------- */
.step__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.06);transition:opacity .6s var(--ease),transform 1.2s var(--ease)}
.step--hover::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(3,31,62,.55),rgba(3,31,62,.05) 60%);opacity:0;transition:opacity .6s var(--ease)}
.step--hover .step__top,.step--hover .step__txt{z-index:1}
.step--hover .step__txt{padding:16px;margin:-16px;border-radius:var(--r);transition:background .5s var(--ease),backdrop-filter .5s var(--ease),margin .5s var(--ease),color .4s}
.step--hover .step__txt .muted,.step--hover .step__top .mute{transition:color .4s}
@media (hover:hover){
  .step--hover:hover .step__bg,.step--hover:focus-within .step__bg{opacity:1;transform:scale(1)}
  .step--hover:hover::after{opacity:1}
  .step--hover:hover{color:var(--white)}
  .step--hover:hover .step__txt{margin:0;background:var(--glass);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
  .step--hover:hover .step__txt .muted{color:rgba(255,255,255,.85)}
  .step--hover:hover .step__top .mute{color:var(--white)}
  .step--hover:hover .step__ic{background:var(--teal);color:var(--navy-deep)}
  .step--hover:hover .t-h4{color:var(--white)}
}
@media (prefers-reduced-motion:reduce){.step__bg,.step--hover .step__txt{transition:none}}
