/* =========================================================================
   BARDiA Sistemas — folha de estilo unica
   Sumario
     0. Tipografia (Inter)             6. Cards e grids
     1. Tokens (cores, medidas)        7. Sistemas sob medida
     2. Base e tipografia              8. Como trabalhamos
     3. Botoes                         9. Sobre e contato
     4. Header e navegacao            10. Rodape
     5. Hero                          11. Animacao de entrada
                                      12. Ajustes por largura de tela
                                      13. Impressao   14. Pagina 404
   ========================================================================= */


/* =========================================================================
   0. TIPOGRAFIA
   Inter, hospedada aqui mesmo em assets/fonts/ — nao vem do Google Fonts.
   Servir do proprio dominio e mais rapido (nao abre conexao com terceiro),
   nao expoe o IP do visitante a outra empresa e mantem a promessa de que a
   pagina nao faz nenhuma requisicao externa.

   E uma fonte VARIAVEL: um arquivo so cobre os pesos de 100 a 900, entao os
   pesos intermediarios usados aqui (550 nos links do menu, 650 nos titulos
   de lista) sao renderizados de verdade, e nao arredondados.

   O unicode-range faz o navegador baixar o arquivo latin-ext apenas se algum
   caractere fora do latim basico aparecer na pagina — hoje, nenhum. Na
   pratica so os 47 KB do latin sao baixados; o portugues cabe inteiro nele.

   Licenca SIL OFL 1.1 — o texto exigido esta em assets/fonts/OFL.txt.
   ========================================================================= */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* =========================================================================
   1. TOKENS  —  para trocar a cor da marca, mexa so em --accent* (aqui e no
      bloco de tema escuro logo abaixo). Nenhum valor de cor e repetido no
      resto do arquivo.
   ========================================================================= */
:root{
  --wrap: 1150px;
  --header-h: 64px;

  /* Inter primeiro; a pilha do sistema segura o texto enquanto a fonte
     carrega e assume por inteiro se ela nao carregar. */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg:          #ffffff;
  --bg-alt:      #f6f6f7;
  --surface:     #ffffff;
  --text:        #0b0b0c;
  --muted:       #52525b;
  --border:      #e5e5e8;
  --border-soft: #ededf0;

  --accent:      #c2410c;   /* ambar / laranja queimado — unica cor de destaque */
  --accent-ink:  #ffffff;   /* texto por cima da cor de destaque */
  --accent-soft: #fdf1ea;   /* fundo levemente tingido */
  --accent-line: #f4d3c1;   /* borda tingida */

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(9,9,11,.04), 0 10px 28px -16px rgba(9,9,11,.20);
  --shadow-lg: 0 2px 4px rgba(9,9,11,.04), 0 24px 48px -24px rgba(9,9,11,.28);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:          #0b0b0c;
    --bg-alt:      #121214;
    --surface:     #141416;
    --text:        #f4f4f5;
    --muted:       #a1a1aa;
    --border:      #27272a;
    --border-soft: #1f1f22;

    --accent:      #fb923c;
    --accent-ink:  #1a0f05;
    --accent-soft: rgba(251,146,60,.10);
    --accent-line: rgba(251,146,60,.30);

    --shadow:    0 1px 2px rgba(0,0,0,.5), 0 10px 28px -16px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 48px -24px rgba(0,0,0,.8);
  }
}


/* =========================================================================
   2. BASE E TIPOGRAFIA
   ========================================================================= */
*,*::before,*::after{ box-sizing:border-box }

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-h) + 24px);
  overflow-x:clip;                       /* trava scroll horizontal sem criar scroller */
}

body{
  margin:0;
  overflow-x:clip;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img,svg{ display:block; max-width:100% }
img{ height:auto }
a{ color:inherit }

h1,h2,h3{ line-height:1.2; letter-spacing:-.02em; margin:0 0 .5em; font-weight:700 }
h1{ font-size:clamp(2rem,1.35rem + 2.7vw,3.35rem); letter-spacing:-.03em }
h2{ font-size:clamp(1.6rem,1.25rem + 1.5vw,2.35rem) }
h3{ font-size:1.14rem; letter-spacing:-.015em }
p{ margin:0 0 1rem }
p:last-child{ margin-bottom:0 }
ul,ol{ margin:0; padding:0; list-style:none }
strong{ font-weight:650 }

:where(a,button,summary,[tabindex]):focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:6px;
}

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:20px }

.section{ padding:clamp(56px,7vw,96px) 0; scroll-margin-top:calc(var(--header-h) + 16px) }
.section--alt{ background:var(--bg-alt); border-block:1px solid var(--border-soft) }

.lead{ font-size:clamp(1.02rem,.98rem + .3vw,1.16rem); color:var(--muted); max-width:62ch }
.muted{ color:var(--muted) }
.center{ text-align:center; margin-inline:auto }

/* Evita que numeros formatados (CNPJ, telefone) quebrem no meio. O Chrome
   aceita quebrar linha depois de "/", o que partiria o CNPJ ao meio. */
.nowrap{ white-space:nowrap }

.visually-hidden{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--accent); color:var(--accent-ink);
  padding:12px 18px; border-radius:0 0 10px 0; font-weight:600; text-decoration:none;
}
.skip:focus{ left:0 }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.8rem; font-weight:650; letter-spacing:.06em; text-transform:uppercase;
  color:var(--accent);
  background:var(--accent-soft);
  border:1px solid var(--accent-line);
  padding:6px 13px; border-radius:999px; margin-bottom:20px;
}
.eyebrow svg{ width:15px; height:15px; flex:none }

.section-head{ max-width:70ch; margin-bottom:clamp(32px,4vw,48px) }
.section-head.center{ text-align:center }
.section-head.center .lead{ margin-inline:auto }


/* =========================================================================
   3. BOTOES
   ========================================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:13px 22px; border-radius:12px;
  font-size:.97rem; font-weight:600; text-decoration:none;
  border:1px solid transparent; cursor:pointer;
  transition:transform .18s ease, background-color .18s ease,
             border-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; flex:none }
.btn:hover{ transform:translateY(-1px) }

.btn--primary{ background:var(--accent); color:var(--accent-ink); box-shadow:var(--shadow) }
.btn--primary:hover{ box-shadow:var(--shadow-lg); filter:saturate(1.05) }
.btn--ghost{ background:var(--surface); color:var(--text); border-color:var(--border) }
.btn--ghost:hover{ border-color:var(--text) }
.btn--sm{ padding:10px 16px; font-size:.9rem; border-radius:10px }

.btn-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px }


/* =========================================================================
   4. HEADER E NAVEGACAO
   ========================================================================= */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:60;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, box-shadow .2s ease;
}
@supports not (background: color-mix(in srgb, red 50%, blue)){
  .site-header{ background:var(--bg) }
}
.site-header.is-scrolled{ border-bottom-color:var(--border); box-shadow:0 1px 12px rgba(9,9,11,.05) }

.header-inner{
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}

/* A logo e um SVG com media query interna: ela mesma troca de cor no tema
   escuro. Se algum navegador antigo nao aplicar, descomente a regra de
   fallback no fim deste bloco. */
.brand{ display:inline-flex; align-items:center; gap:9px; text-decoration:none }
.brand-logo{ height:25px; width:auto; flex:none }
.brand-suffix{
  font-size:1rem; font-weight:600; letter-spacing:-.01em; color:var(--muted);
  position:relative; top:1px;
}
/* Fallback opcional para logo preta em tema escuro:
@media (prefers-color-scheme: dark){ .brand-logo{ filter:invert(1) } }
*/

.nav{ display:flex; align-items:center; gap:28px }
.nav-list{ display:flex; align-items:center; gap:26px }
.nav-list a{
  text-decoration:none; font-size:.95rem; font-weight:550; color:var(--muted);
  padding:6px 0; position:relative; transition:color .18s ease;
}
.nav-list a:hover,
.nav-list a.is-active{ color:var(--text) }
.nav-list a.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--accent); border-radius:2px;
}

.nav-toggle{
  display:none; width:42px; height:42px; align-items:center; justify-content:center;
  background:var(--surface); border:1px solid var(--border); border-radius:11px; color:var(--text);
}
.nav-toggle svg{ width:20px; height:20px }
.nav-toggle .icon-close{ display:none }
.nav-toggle[aria-expanded="true"] .icon-open{ display:none }
.nav-toggle[aria-expanded="true"] .icon-close{ display:block }

@media (max-width: 900px){
  .nav-toggle{ display:inline-flex }
  .nav{
    position:absolute; top:var(--header-h); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:4px;
    background:var(--bg);
    border-bottom:1px solid var(--border);
    padding:14px 20px 22px;
    box-shadow:var(--shadow);
    display:none;
  }
  .nav[data-open="true"]{ display:flex }
  .nav-list{ flex-direction:column; align-items:stretch; gap:0 }
  .nav-list a{
    padding:13px 2px; font-size:1.02rem; color:var(--text);
    border-bottom:1px solid var(--border-soft);
  }
  .nav-list a.is-active::after{ display:none }
  .nav-list a.is-active{ color:var(--accent) }
  .nav .btn{ margin-top:14px; width:100% }
}


/* =========================================================================
   5. HERO
   ========================================================================= */
.hero{
  position:relative; overflow:hidden;
  padding-top:calc(var(--header-h) + clamp(48px,9vw,92px));
  padding-bottom:clamp(52px,7vw,88px);
}
.hero::before{
  content:""; position:absolute; z-index:0;
  top:-320px; left:50%; transform:translateX(-50%);
  width:min(1100px,140%); height:640px;
  background:radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 72%);
  pointer-events:none;
}
.hero .wrap{ position:relative; z-index:1 }
.hero-inner{ max-width:56rem; margin-inline:auto; text-align:center }
.hero h1{ margin-bottom:20px; text-wrap:balance }
.hero .lead{ font-size:clamp(1.05rem,1rem + .45vw,1.28rem); max-width:56ch; margin-inline:auto }
.hero .btn-row{ justify-content:center; margin-top:32px }

.facts{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px 12px; margin-top:clamp(36px,5vw,52px) }
.fact{
  display:inline-flex; align-items:center; gap:9px;
  font-size:.88rem; font-weight:550; color:var(--muted);
  background:var(--surface); border:1px solid var(--border);
  padding:9px 15px; border-radius:999px;
}
.fact svg{ width:16px; height:16px; color:var(--accent); flex:none }


/* =========================================================================
   6. CARDS E GRIDS
   ========================================================================= */
.grid{ display:grid; gap:20px }
.grid--2{ grid-template-columns:repeat(auto-fit,minmax(300px,1fr)) }
.grid--3{ grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) }

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:clamp(22px,3vw,30px);
  box-shadow:var(--shadow);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card--link:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:var(--accent-line) }
.card h3{ margin-bottom:6px }

.card-icon{
  width:46px; height:46px; border-radius:12px;
  display:grid; place-items:center; margin-bottom:18px;
  background:var(--accent-soft); color:var(--accent);
  border:1px solid var(--accent-line);
}
.card-icon svg{ width:23px; height:23px }

.product-tag{
  display:inline-flex; align-items:center; gap:7px;
  font-size:.76rem; font-weight:650; letter-spacing:.04em; text-transform:uppercase;
  color:var(--accent); margin-bottom:14px;
}
.dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); flex:none }
.dot--live{ animation:pulse 2.4s ease-out infinite }
@keyframes pulse{
  0%  { box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent) }
  70% { box-shadow:0 0 0 9px transparent }
  100%{ box-shadow:0 0 0 0 transparent }
}

.list{ display:grid; gap:11px; margin:18px 0 0 }
.list li{ display:flex; gap:11px; align-items:flex-start; font-size:.97rem; color:var(--muted); line-height:1.55 }
.list svg{ width:19px; height:19px; flex:none; margin-top:2px }
.list--check svg{ color:var(--accent) }
.list--x svg{ color:var(--muted); opacity:.65 }

.card-link{
  display:inline-flex; align-items:center; gap:8px; margin-top:24px;
  font-weight:650; font-size:.97rem; color:var(--accent); text-decoration:none;
  border-bottom:1px solid transparent; padding-bottom:1px;
}
.card-link:hover{ border-bottom-color:var(--accent) }
.card-link svg{ width:16px; height:16px; transition:transform .18s ease }
.card-link:hover svg{ transform:translate(2px,-2px) }

/* Card "Em desenvolvimento" — propositalmente apagado (tracejado, sem sombra) */
.card--soon{
  background:transparent; border:1.5px dashed var(--border); box-shadow:none;
  display:flex; flex-direction:column; justify-content:center;
}
.card--soon .card-icon{ background:transparent; border-color:var(--border); color:var(--muted) }
.card--soon h3{ color:var(--muted); font-weight:650 }
.card--soon p{ color:var(--muted); font-size:.95rem }


/* =========================================================================
   7. SISTEMAS SOB MEDIDA
   ========================================================================= */
.compare{
  display:grid; gap:20px;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  margin-bottom:clamp(28px,4vw,40px);
}
.compare-col{ border-radius:var(--radius); padding:clamp(22px,3vw,30px); border:1px solid var(--border) }
.compare-col h3{ font-size:1.02rem; letter-spacing:.01em; margin-bottom:4px }
.compare-col .list{ margin-top:16px }
.compare--off{ background:var(--bg-alt) }
.compare--off h3{ color:var(--muted) }
.compare--on{ background:var(--accent-soft); border-color:var(--accent-line) }
.compare--on h3{ color:var(--accent) }
.compare--on .list li{ color:var(--text) }

.feature{
  display:flex; gap:15px; align-items:flex-start;
  padding:20px; border-radius:var(--radius-sm);
  background:var(--surface); border:1px solid var(--border);
}
.feature-icon{
  width:38px; height:38px; border-radius:10px; flex:none;
  display:grid; place-items:center; background:var(--accent-soft); color:var(--accent);
}
.feature-icon svg{ width:19px; height:19px }
.feature h3{ font-size:1rem; margin-bottom:3px }
.feature p{ font-size:.93rem; color:var(--muted); line-height:1.55 }

.cta-panel{
  margin-top:clamp(30px,4vw,44px);
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:clamp(24px,3.4vw,38px); box-shadow:var(--shadow);
  display:flex; flex-wrap:wrap; gap:22px; align-items:center; justify-content:space-between;
}
.cta-panel h3{ margin-bottom:5px; font-size:1.2rem }
.cta-panel p{ color:var(--muted); font-size:.97rem; max-width:52ch }
.cta-panel .btn{ flex:none }


/* =========================================================================
   8. COMO TRABALHAMOS
   ========================================================================= */
.steps{ display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)) }
.step{ position:relative; padding-top:8px }
.step-num{
  width:42px; height:42px; border-radius:12px;
  display:grid; place-items:center; margin-bottom:16px;
  background:var(--surface); border:1px solid var(--border);
  font-weight:700; font-size:1rem; color:var(--accent);
  box-shadow:var(--shadow);
}
.step h3{ font-size:1.05rem; margin-bottom:5px }
.step p{ color:var(--muted); font-size:.95rem; line-height:1.6 }
.step::before{
  content:""; position:absolute; top:29px; left:52px; right:-20px; height:1px;
  background:linear-gradient(90deg,var(--border),transparent);
}
.step:last-child::before{ display:none }
@media (max-width: 760px){ .step::before{ display:none } }


/* =========================================================================
   9. SOBRE E CONTATO
   ========================================================================= */
.about{
  display:grid; gap:clamp(28px,4vw,52px);
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); align-items:start;
}
.about p{ color:var(--muted); font-size:1.02rem }
.about p strong{ color:var(--text); font-weight:650 }
.about-side{
  background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius);
  padding:clamp(22px,3vw,30px);
}
.about-side h3{ font-size:1rem; margin-bottom:14px }

.contact-card{
  display:flex; flex-direction:column; gap:6px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:clamp(22px,3vw,28px); box-shadow:var(--shadow);
  text-decoration:none;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.contact-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:var(--accent-line) }
.contact-card .card-icon{ margin-bottom:14px }
.contact-card h3{ font-size:1rem; margin-bottom:2px }
.contact-card .value{ font-weight:600; color:var(--accent); overflow-wrap:anywhere; font-size:.98rem }
.contact-card .hint{ font-size:.88rem; color:var(--muted) }

.contact-note{
  margin-top:26px; font-size:.92rem; color:var(--muted);
  display:flex; gap:10px; align-items:flex-start; max-width:66ch;
}
.contact-note svg{ width:17px; height:17px; flex:none; margin-top:4px; color:var(--accent) }


/* =========================================================================
   10. RODAPE
   ========================================================================= */
.site-footer{ border-top:1px solid var(--border); padding:clamp(40px,5vw,56px) 0 32px; background:var(--bg) }
.footer-top{
  display:flex; flex-wrap:wrap; gap:28px; justify-content:space-between; align-items:flex-start;
  padding-bottom:28px; border-bottom:1px solid var(--border-soft);
}
.footer-brand{ max-width:38ch }
.footer-brand .brand{ margin-bottom:12px }
.footer-brand .brand-logo{ height:28px }
.footer-brand p{ font-size:.92rem; color:var(--muted) }

.footer-nav{ display:flex; flex-wrap:wrap; gap:36px }
.footer-col h3{
  font-size:.8rem; letter-spacing:.07em; text-transform:uppercase;
  color:var(--muted); font-weight:650; margin-bottom:12px;
}
.footer-col ul{ display:grid; gap:9px }
.footer-col a{
  font-size:.93rem; color:var(--muted); text-decoration:none;
  display:inline-flex; align-items:center; gap:6px; overflow-wrap:anywhere;
}
.footer-col a:hover{ color:var(--accent) }
.footer-col svg{ width:13px; height:13px; flex:none; opacity:.7 }

.footer-bottom{
  display:flex; flex-wrap:wrap; gap:8px 20px; justify-content:space-between; align-items:center;
  padding-top:24px; font-size:.87rem; color:var(--muted);
}


/* =========================================================================
   11. ANIMACAO DE ENTRADA
   O estado inicial escondido so existe quando o JS esta ativo (classe .js no
   <html>). Sem JS, ou com prefers-reduced-motion, o conteudo aparece normal.
   ========================================================================= */
.js .reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .65s cubic-bezier(.16,1,.3,1),
             transform .65s cubic-bezier(.16,1,.3,1);
}
.js .reveal.is-in{ opacity:1; transform:none }

/* Escalonamento: cada card de um mesmo grupo entra um pouco depois do anterior */
.js .reveal[data-delay="1"]{ transition-delay:.08s }
.js .reveal[data-delay="2"]{ transition-delay:.16s }
.js .reveal[data-delay="3"]{ transition-delay:.24s }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto }
  *,*::before,*::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; transition-delay:0ms !important;
  }
  .js .reveal{ opacity:1 !important; transform:none !important }
  .btn:hover,.card--link:hover,a.contact-card:hover{ transform:none }
}


/* =========================================================================
   12. AJUSTES POR LARGURA DE TELA
   ========================================================================= */
@media (max-width: 420px){
  body{ font-size:16px }
  .btn{ width:100% }
  .btn-row{ gap:10px }
  .cta-panel .btn{ width:100% }
  .brand-suffix{ display:none }
}


/* =========================================================================
   13. IMPRESSAO
   ========================================================================= */
@media print{
  .site-header,.skip,.btn,.nav-toggle{ display:none !important }
  .hero{ padding-top:0 }
  .js .reveal{ opacity:1 !important; transform:none !important }
  body{ background:#fff; color:#000; font-size:12pt }
}


/* =========================================================================
   14. PAGINA 404
   ========================================================================= */
.notfound{
  min-height:100vh; display:grid; place-items:center; text-align:center;
  padding:40px 20px;
}
.notfound-code{
  font-size:.8rem; font-weight:650; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); margin-bottom:14px;
}
.notfound .brand{ justify-content:center; margin-bottom:28px }
.notfound p{ color:var(--muted); max-width:44ch; margin-inline:auto }
.notfound .btn-row{ justify-content:center }
