/* ========= Tokens ========= */
:root{
  --bg:#0b0e14;          /* fundo principal (dark) */
  --bg-elev:#0f1320;     /* superfícies elevadas */
  --surface:#121725;
  --text:#e9eef2;        /* texto primário */
  --muted:#a6b0c3;       /* texto secundário */

  /* Acento (mantendo identidade azul original) */
  --accent-r:1; --accent-g:185; --accent-b:224;   /* #01b9e0 */
  --accent: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  --accent-ink:#ffffff;

  --stroke:#1d2233;      /* bordas */
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:14px;
  --container:1200px;

  /* Fonte modernizada (stack do sistema) */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
:root{ color-scheme: dark light; }

/* ========= Base ========= */
*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0; font-family:var(--font); color:var(--text); line-height:1.6;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  background: radial-gradient(1200px 800px at 10% 0%, var(--bg-grad-start, #151a2a) 0%, var(--bg) 55%);
}

/* Pesos (otimizados para a stack moderna) */
h1,h2,h3,b,strong{ font-weight:700 }
.brand,.section-title{ font-weight:800 }  /* volta o “peso forte” da primeira versão */
.stat .num,.btn{ font-weight:700 }
.nav-links a,.chip{ font-weight:600 }

/* Foco & skip */
:focus-visible{ outline:3px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), .9); outline-offset:2px }
.skip-link{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden }
.skip-link:focus{ left:16px; top:16px; padding:10px 12px; background:var(--accent); color:var(--accent-ink); border-radius:10px; z-index:1100 }

/* ========= Tema CLARO ========= */
:root[data-theme="light"]{
  --bg:#f6f8fb; --bg-elev:#ffffff; --surface:#ffffff; --text:#0e1320; --muted:#55627b;
  --stroke:#d9e0ee; --shadow:0 10px 30px rgba(14,19,32,.08); --bg-grad-start:#eaf0ff;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#f6f8fb; --bg-elev:#ffffff; --surface:#ffffff; --text:#0e1320; --muted:#55627b;
    --stroke:#d9e0ee; --shadow:0 10px 30px rgba(14,19,32,.08); --bg-grad-start:#eaf0ff;
  }
}

/* ========= Navbar ========= */
.navbar{
  position:sticky; top:0; z-index:1000;
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(to bottom, rgba(11,14,20,.85), rgba(11,14,20,.45));
  border-bottom:1px solid rgba(255,255,255,.04);
}
:root[data-theme="light"] .navbar{
  background:linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,.65));
  border-bottom:1px solid rgba(14,19,32,.08);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:64px; max-width:var(--container); margin:0 auto; padding:0 16px }
.brand{ letter-spacing:.3px; color:var(--text); text-decoration:none }
.menu-toggle{ display:none; cursor:pointer; border:0; background:transparent; padding:8px }
.menu-toggle .bar{ display:block; width:24px; height:3px; background:var(--text); border-radius:3px; margin:4px 0 }
.nav-links{ display:flex; gap:18px; list-style:none; padding:0; margin:0 }
.nav-links a{ text-decoration:none; color:var(--muted); padding:10px 12px; border-radius:10px }
.nav-links a:hover, .nav-links a:focus{ color:var(--text); background:rgba(255,255,255,.06) }

/* ========= Botão tema ========= */
.theme-toggle{
  margin-left:8px; display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; min-height:40px; border:1px solid var(--stroke);
  border-radius:10px; background:var(--surface); color:var(--text); cursor:pointer
}
.theme-toggle:hover{ background:rgba(255,255,255,.06) }
:root[data-theme="light"] .theme-toggle:hover{ background:rgba(14,19,32,.06) }
.theme-toggle .icon{ font-size:16px } .theme-toggle .label{ font-size:.9rem }

/* ========= Seções & Containers ========= */
.section{ padding:56px 0 }
.container{ max-width:var(--container); margin:0 auto; padding:0 16px }
.section-title{ font-size:clamp(1.6rem, 2vw + 1rem, 2.2rem); margin:0 0 10px }
.section-sub{ margin:0 0 24px; color:var(--muted) }
.muted{ color:var(--muted) }

/* ========= Hero ========= */
.hero-grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:center }
.hero-title{ margin:0 0 10px }
.accent{ color:var(--accent) }
.hero-sub{ color:var(--muted); margin:0 0 18px; line-height:1.6 }
.hero-actions{ display:flex; gap:10px; margin:16px 0 20px }

/* Botões */
.btn{ display:inline-flex; align-items:center; justify-content:center; padding:12px 16px; border-radius:12px; text-decoration:none; min-height:44px }
.btn-primary{ background:var(--accent); color:var(--accent-ink); box-shadow:0 6px 18px rgba(var(--accent-r), var(--accent-g), var(--accent-b), .25) }
.btn-primary:hover{ transform:translateY(-1px) }
.btn-ghost{ border:1px solid var(--stroke); color:var(--text); background:#0f1422 }
:root[data-theme="light"] .btn-ghost{ background:#fff }

/* Foto */
.foto-perfil{ width:260px; max-width:100%; border-radius:18px; display:block; margin:0 auto; box-shadow:0 10px 30px rgba(0,0,0,.35) }

/* ========= Filtros ========= */
.filters{ display:flex; flex-direction:column; gap:12px; margin-top:8px }
.search input{ width:100%; padding:12px 14px; background:var(--surface); border:1px solid var(--stroke); color:var(--text); border-radius:10px }
.chips{ display:flex; flex-wrap:wrap; gap:8px }
.chip{
  padding:8px 12px; border-radius:999px; border:1px solid var(--stroke);
  background:transparent; color:var(--text); cursor:pointer;
}
.chip.is-active, .chip:hover{ background:rgba(255,255,255,.06) }

/* ========= Stats ========= */
.stats{ display:flex; gap:18px; margin-top:10px; flex-wrap:wrap }
.stat{ background:rgba(255,255,255,.05); border:1px solid var(--stroke); border-radius:12px; padding:10px 14px; min-width:110px }
.stat .num{ font-size:1.15rem; display:block }
.stat .lbl{ color:var(--muted); font-size:.9rem }

/* ========= Cards ========= */
.cards-grid{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap:16px;
}
.card{
  position:relative; overflow:hidden; border-radius:14px;
  background:rgba(255,255,255,.04); border:1px solid var(--stroke);
}
.card > a{ display:block; color:inherit; text-decoration:none; position:relative; min-height:190px }
.card-bg{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:.18; transition:transform .5s ease, opacity .3s ease }
.card-body{
  position:relative; z-index:1; padding:16px;
  height:100%; display:flex; flex-direction:column; justify-content:flex-end;
  background:linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 100%);
}
.card h3{ margin:0 0 6px; font-size:1.1rem; font-weight:700 }
.card p{ margin:0; color:var(--muted) }
.card:hover .card-bg{ transform:scale(1.06); opacity:.28 }

/* ========= Lista bullets ========= */
.bullets{ margin:10px 0 0; padding-left:18px }

/* ========= Contato ========= */
.contact-form{ display:grid; gap:12px; grid-template-columns: repeat(2, 1fr); }
.contact-form textarea{ grid-column: span 2 }
.contact-form input,
.contact-form textarea{
  background:var(--surface); border:1px solid var(--stroke); color:var(--text);
  border-radius:10px; padding:12px 14px; font-size:1rem;
}
.contact-form .btn{ grid-column: span 2; width:max-content }
.form-feedback{ margin-top:6px; color:var(--muted) }

/* ========= Social ========= */
.social-links ul{ list-style:none; display:flex; gap:16px; padding:0; margin:18px 0 0 }
.social-links a{ color:var(--accent); text-decoration:none; font-weight:700 }
.social-links a:hover{ text-decoration:underline }

/* ========= Modal (usado em outras páginas) ========= */
.modal{ display:none; position:fixed; inset:0; z-index:1200; background:rgba(0,0,0,.75); align-items:center; justify-content:center; opacity:0; transition:opacity .25s ease }
.modal.show{ display:flex; opacity:1 }
.modal-inner{ position:relative; max-width:min(92vw, 1100px); max-height:88vh; background:var(--bg-elev); border:1px solid var(--stroke); border-radius:14px; padding:16px; box-shadow:0 25px 60px rgba(0,0,0,.5) }
#modal-img{ display:block; max-width:86vw; max-height:70vh; border-radius:12px; margin:auto; box-shadow:0 20px 40px rgba(0,0,0,.45) }
.close-btn{ position:absolute; top:10px; right:12px; font-size:28px; line-height:1; background:var(--surface); color:var(--text); border:1px solid var(--stroke); width:44px; height:44px; border-radius:10px; cursor:pointer }

/* ========= Botão Topo ========= */
#btnTop{
  display:none; position:fixed; bottom:28px; right:28px; z-index:1100;
  font-size:18px; border:none; background:var(--accent); color:var(--accent-ink);
  cursor:pointer; padding:12px 14px; border-radius:50%; box-shadow:var(--shadow)
}
#btnTop:hover{ transform:translateY(-2px) }

/* ========= Reveal ========= */
.reveal{ opacity:0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease }
.reveal.is-visible{ opacity:1; transform:none }

/* ========= Responsividade ========= */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; text-align:left }
  .foto-perfil{ width:220px }
}
@media (max-width: 720px){
  .nav-links{
    display:none; position:absolute; top:64px; right:0; left:0;
    background:rgba(11,14,20,.96); border-bottom:1px solid rgba(255,255,255,.06); padding:12px;
    flex-direction:column; gap:6px;
  }
  :root[data-theme="light"] .nav-links{ background:rgba(255,255,255,.98); border-bottom:1px solid rgba(14,19,32,.08) }
  .nav-links.open{ display:flex }
  .menu-toggle{ display:block }

  .contact-form{ grid-template-columns:1fr; }
  .contact-form textarea, .contact-form .btn{ grid-column:1 }
}

/* ========= Acessibilidade extra ========= */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important }
}
.sr-only{ position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }


/* ==== Social: virar botões-pill com ícones ==== */
.social-links{ margin-top:28px }
.social-links ul{
  list-style:none; padding:0; margin:0;
  display:flex; flex-wrap:wrap; gap:12px; align-items:center;
}
.social-links li{ margin:0 }

.social-links a{
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none; font-weight:700;
  padding:10px 16px; border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  color:var(--text);
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset, 0 8px 20px rgba(0,0,0,.25);
  transition:transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
:root[data-theme="light"] .social-links a{
  background:#fff; border-color:#d9e0ee;
  box-shadow:0 1px 0 rgba(0,0,0,.04) inset, 0 8px 20px rgba(14,19,32,.08);
}

.social-links a:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
  color:var(--accent);
}
.social-links a:active{ transform:translateY(0) }
.social-links a:focus-visible{
  outline:3px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), .75);
  outline-offset:2px;
}

/* Ícones automáticos por tipo de link (sem mudar o HTML) */
.social-links a[href*="instagram.com"]::before{ content:"📷"; font-size:1rem }
.social-links a[href^="mailto:"]::before{ content:"✉️"; font-size:1rem }
.social-links a[href*="wa.me"], 
.social-links a[href*="whatsapp.com"]::before{ content:"💬"; font-size:1rem }

/* Em telas pequenas, quebra bonitinho */
@media (max-width:600px){
  .social-links ul{ gap:10px }
  .social-links a{ padding:10px 14px }
}

/* =============== BASE / VARS =============== */
:root{
  color-scheme: dark light;
  --bg:#0b0e14; --bg-elev:#0f1320; --surface:#121725;
  --text:#e9eef2; --muted:#a6b0c3;
  --accent:#01b9e0; --accent-ink:#fff;
  --stroke:#1d2233; --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:14px; --container:1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

html,body{ height:100% }
body{
  margin:0; font-family:var(--font); color:var(--text); line-height:1.6;
  background: radial-gradient(1200px 800px at 10% 0%, #151a2a 0%, var(--bg) 55%);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Tipografia com clamp para caber no mobile */
h1,h2,h3,b,strong{ font-weight:700 }
.section-title{ font-weight:800; font-size:clamp(1.4rem, 2.5vw + .8rem, 2.2rem); margin:0 0 .5rem }
.hero-title{ font-weight:800; font-size:clamp(1.6rem, 2.8vw + .9rem, 2.5rem) }
.hero-sub,.section-sub{ color:var(--muted) }
.muted{ color:var(--muted) }
.accent{ color:var(--accent) }

/* Containers e seções */
.section{ padding:clamp(40px, 4vw, 64px) 0 }
.container{ max-width:var(--container); margin:0 auto; padding:0 clamp(14px, 3vw, 20px) }

/* A11y */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; padding:10px 12px; background:var(--accent); color:var(--accent-ink);
  border-radius:10px; z-index:1100;
}
:focus-visible{ outline:3px solid rgba(1,185,224,.9); outline-offset:2px }

/* =============== NAVBAR =============== */
.navbar{
  position:sticky; top:0; z-index:1000;
  background:linear-gradient(to bottom, rgba(11,14,20,.92), rgba(11,14,20,.6));
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid rgba(255,255,255,.05);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:64px; max-width:var(--container); margin:0 auto; padding:0 16px;
}
.brand{ color:var(--text); text-decoration:none; letter-spacing:.2px; font-weight:800 }

/* Botões de topo */
.theme-toggle, .menu-toggle{
  background:transparent; border:0; color:var(--text); cursor:pointer;
  min-height:44px; min-width:44px; border-radius:10px; padding:8px;
}
.theme-toggle .label{ margin-left:6px; color:var(--muted) }
.menu-toggle{ display:none }
.menu-toggle .bar{ display:block; width:24px; height:3px; background:var(--text); border-radius:3px; margin:4px 0 }

/* Links */
.nav-links{ display:flex; gap:12px; list-style:none; padding:0; margin:0 }
.nav-links a{
  text-decoration:none; color:var(--muted);
  padding:10px 12px; border-radius:10px; display:inline-block;
}
.nav-links a:hover{ color:var(--text); background:rgba(255,255,255,.06) }

/* Mobile menu */
@media (max-width: 800px){
  .menu-toggle{ display:inline-block }
  .nav-links{
    position:absolute; top:64px; right:0; left:0; display:none;
    background:rgba(11,14,20,.97);
    border-bottom:1px solid rgba(255,255,255,.06);
    flex-direction:column; gap:6px; padding:10px;
  }
  .nav-links.open{ display:flex }
}

/* =============== HERO =============== */
.hero-grid{
  display:grid; gap:clamp(16px, 3vw, 28px);
  grid-template-columns: 1.15fr .85fr; align-items:center;
}
.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 8px }
.stats{ display:flex; gap:12px; flex-wrap:wrap; margin-top:8px }
.stat{
  background:rgba(255,255,255,.05); border:1px solid var(--stroke);
  border-radius:12px; padding:10px 12px; min-width:110px;
}
.stat .num{ font-weight:700; display:block }
.stat .lbl{ color:var(--muted); font-size:.95rem }

.foto-perfil{
  width:clamp(180px, 30vw, 260px);
  max-width:100%; border-radius:18px; display:block; margin:0 auto;
  box-shadow:var(--shadow);
}

/* Hero em 1 coluna no mobile */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr }
}

/* =============== BOTÕES / FORM =============== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:12px; text-decoration:none;
  min-height:44px; min-width:44px; font-weight:700;
}
.btn-primary{
  background:var(--accent); color:var(--accent-ink);
  box-shadow:0 6px 18px rgba(1,185,224,.25);
}
.btn-primary:hover{ transform:translateY(-1px) }
.btn-ghost{ border:1px solid var(--stroke); color:var(--text); background:#0f1422 }

/* Inputs */
input[type="text"], input[type="email"], textarea{
  width:100%; color:var(--text); background:#0f1422; border:1px solid var(--stroke);
  border-radius:12px; padding:12px 14px; font:inherit;
}
textarea{ resize:vertical; min-height:120px }

/* =============== FILTERS / CHIPS =============== */
.filters{ display:grid; gap:12px; margin-top:14px }
.search input{ width:100% }

/* Chips com scroll horizontal no mobile */
.chips{
  display:flex; gap:10px; flex-wrap:wrap;
}
.chip{
  border:1px solid var(--stroke); color:var(--text); background:#0f1422;
  padding:10px 12px; border-radius:999px; cursor:pointer; white-space:nowrap;
}
.chip.is-active{ background:rgba(255,255,255,.08) }

/* em telas pequenas, transformamos em carrossel horizontal */
@media (max-width: 640px){
  .chips{
    overflow-x:auto; flex-wrap:nowrap; -webkit-overflow-scrolling:touch; padding-bottom:6px;
    scrollbar-width:none; /* Firefox */
  }
  .chips::-webkit-scrollbar{ display:none } /* Chrome/Safari */
}

/* =============== CARDS (Estudos de Caso) =============== */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:clamp(12px, 2.5vw, 18px);
}

/* Em celulares muito estreitos, permite min 220px pra não esmagar */
@media (max-width: 420px){
  .cards-grid{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) }
}

.card{
  position:relative; overflow:hidden; border-radius:14px;
  background:rgba(255,255,255,.04); border:1px solid var(--stroke);
  min-height:280px; /* garante altura mínima agradável */
}
.card-bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:.20; transition:transform .45s ease, opacity .25s ease;
}
.card-body{
  position:relative; z-index:1; padding:16px;
  height:100%; display:flex; flex-direction:column; justify-content:flex-end;
  background:linear-gradient(180deg, rgba(0,0,0,0) 36%, rgba(0,0,0,.38) 100%);
}
.card h3{ margin:0 0 6px; font-size:clamp(1.05rem, 1.8vw, 1.15rem) }
.card p{ margin:0; color:var(--muted); font-size:clamp(.95rem, 1.5vw, 1rem) }
.card:hover .card-bg{ transform:scale(1.06); opacity:.28 }

/* Toque confortável em mobile: aumenta padding interno */
@media (max-width: 560px){
  .card-body{ padding:14px }
}

/* =============== BOTÃO DE TOPO =============== */
#btnTop{
  display:none; position:fixed; bottom:28px; right:28px; z-index:1100;
  font-size:18px; border:none; background:var(--accent); color:var(--accent-ink);
  cursor:pointer; padding:12px 14px; border-radius:50%; box-shadow:var(--shadow)
}
#btnTop:hover{ transform:translateY(-2px) }

/* =============== REVEAL (opcional) =============== */
.reveal{ opacity:0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease }
.reveal.is-visible{ opacity:1; transform:none }

/* =============== AJUSTES FINOS MOBILE =============== */
@media (max-width: 780px){
  /* Reduz discurso do herói pra caber melhor */
  .hero-sub{ font-size:clamp(1rem, 2.2vw, 1.05rem) }
  .stat{ min-width:unset }
}

/* Form: espaçamento confortável no mobile */
.contact-form{ display:grid; gap:10px }

/* Link “social” em coluna no mobile */
.social-links ul{
  list-style:none; padding:0; margin:12px 0 0;
  display:flex; gap:12px; flex-wrap:wrap;
}
.social-links a{ color:var(--text); text-decoration:none; border:1px solid var(--stroke); padding:8px 10px; border-radius:10px }
.social-links a:hover{ background:rgba(255,255,255,.06) }

