/* =========================================================
   FLAVIUS.TECH — Stylesheet
   Tecnologia que conecta soluções
   Tokens extraídos do flyer e da logo da marca.
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ---------- Design tokens ---------- */
:root{
  /* cores extraídas diretamente da logo Flavius.Tech */
  --navy-950:#03060f;       /* fundo da logo / base mais escura */
  --navy-900:#070c22;       /* navy principal (headers, footer, seções escuras) */
  --navy-800:#0d1638;       /* navy elevado (cards sobre fundo escuro) */
  --blue-700:#013f7c;       /* azul profundo do degradê da logo */
  --blue-600:#0a6fc2;       /* azul de marca — base */
  --blue-500:#0b7fd1;       /* azul de marca — primário (CTA, links, ícones) */
  --blue-400:#3fa3e8;       /* azul intermediário do degradê */
  --blue-300:#5bc2ff;       /* azul claro — destaques, hover */
  --ice-100:#eaf4ff;        /* realce quase branco do degradê da logo */
  --paper:#f3f6fb;          /* fundo claro das seções */
  --paper-dim:#e8edf6;      /* fundo claro alternativo */
  --white:#ffffff;
  --ink-900:#0a1230;        /* texto principal sobre claro */
  --ink-600:#48516c;        /* texto secundário */
  --ink-400:#7c869f;        /* texto terciário / legendas */
  --line:#dde3ef;           /* divisórias sobre fundo claro */
  --line-dark:#1b2547;      /* divisórias sobre fundo escuro */

  --grad-brand: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 48%, var(--blue-300) 100%);
  --grad-navy: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);

  --font-display:'Outfit', 'Inter', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:24px;
  --shadow-soft: 0 20px 50px -25px rgba(7,12,34,.35);
  --shadow-card: 0 14px 34px -18px rgba(7,12,34,.28);

  --container:1180px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.12; color:var(--ink-900); }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; font-size:1rem; }

:focus-visible{
  outline:3px solid var(--blue-300);
  outline-offset:3px;
  border-radius:4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

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

.section{ padding:88px 0; }
.section--tight{ padding:64px 0; }
.section--dark{ background:var(--grad-navy); color:var(--white); }
.section--paper{ background:var(--paper); }

/* ---------- Eyebrow & section heading ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.14em;
  font-weight:700;
  text-transform:uppercase;
  color:var(--blue-500);
}
.section--dark .eyebrow{ color:var(--blue-300); }
.section--dark h2,.section--dark h3{ color:var(--white); }

.section-head{
  max-width:640px;
  margin-bottom:48px;
}
.section-head h2{
  font-size:clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  font-weight:700;
  margin-top:10px;
}
.section-head p{
  margin-top:14px;
  color:var(--ink-600);
  font-size:1.05rem;
}
.section--dark .section-head p{ color:#aab4d6; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---------- Stair-pixel divider (assinatura visual da marca) ---------- */
.stair{
  display:inline-flex;
  align-items:flex-end;
  gap:4px;
  height:18px;
}
.stair span{
  width:7px;
  display:block;
  background:var(--grad-brand);
  border-radius:2px;
}
.stair span:nth-child(1){ height:6px; }
.stair span:nth-child(2){ height:11px; }
.stair span:nth-child(3){ height:16px; }
.stair span:nth-child(4){ height:11px; opacity:.55; }
.stair span:nth-child(5){ height:6px; opacity:.3; }

.divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:0;
}
.divider::before,.divider::after{
  content:"";
  height:1px;
  flex:1;
  background:var(--line);
  max-width:120px;
}
.section--dark .divider::before,.section--dark .divider::after{ background:var(--line-dark); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:.98rem;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn svg{ width:18px; height:18px; flex:none; }

.btn--primary{
  background:var(--grad-brand);
  color:var(--white);
  box-shadow:0 14px 30px -12px rgba(11,127,209,.55);
}
.btn--primary:hover{ box-shadow:0 18px 36px -10px rgba(11,127,209,.65); }

.btn--ghost{
  background:transparent;
  border-color:rgba(255,255,255,.35);
  color:var(--white);
}
.btn--ghost:hover{ background:rgba(255,255,255,.08); }

.btn--outline{
  background:transparent;
  border-color:var(--blue-500);
  color:var(--blue-600);
}
.btn--outline:hover{ background:var(--blue-500); color:var(--white); }

.btn--block{ width:100%; }
.btn--sm{ padding:11px 20px; font-size:.88rem; }

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(7,12,34,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-dark);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:84px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--white);
}
.brand img{ height:42px; width:auto; }
.brand-word{ font-family:var(--font-display); font-weight:700; font-size:1.18rem; letter-spacing:.01em; }
.brand-word span{ color:var(--blue-300); }

.nav{
  display:flex;
  align-items:center;
  gap:38px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:32px;
}
.nav-links a{
  color:#cfd6ec;
  font-size:.95rem;
  font-weight:500;
  position:relative;
  padding:6px 0;
  transition:color .18s ease;
}
.nav-links a:hover,.nav-links a[aria-current="page"]{ color:var(--white); }
.nav-links a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:2px;
  background:var(--grad-brand);
  border-radius:2px;
}

.nav-cta{ display:flex; align-items:center; gap:18px; }

.nav-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:10px;
  border:1px solid var(--line-dark);
  background:transparent;
  color:var(--white);
  align-items:center;
  justify-content:center;
}
.nav-toggle svg{ width:22px; height:22px; }

@media (max-width:900px){
  .nav-links{
    position:fixed;
    top:84px;
    left:0;
    right:0;
    height:calc(100vh - 84px);
    overflow-y:auto;
    background:var(--navy-900);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:18px 24px 30px;
    transform:translateY(-12px);
    opacity:0;
    visibility:hidden;
    transition:opacity .22s ease, transform .22s ease, visibility .22s;
    border-top:1px solid var(--line-dark);
  }
  .nav-links a{ width:100%; padding:16px 4px; border-bottom:1px solid var(--line-dark); }
  .site-header.is-open .nav-links{ opacity:1; visibility:visible; transform:translateY(0); }
  .nav-cta .btn span{ display:none; }
  .nav-toggle{ display:inline-flex; }
}
@media (max-width:560px){
  .nav-cta .btn--primary{ padding:11px 16px; }
}

/* ---------- Hero (corte diagonal — vem do layout do flyer) ---------- */
.hero{
  position:relative;
  background:var(--paper);
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  top:0; right:0;
  width:58%;
  height:100%;
  background:var(--grad-navy);
  clip-path:polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
  z-index:0;
}
.hero .container{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:40px;
  padding-block:76px;
  min-height:560px;
}
.hero-copy{ max-width:560px; }
.hero-copy .eyebrow{ margin-bottom:18px; }
.hero-copy h1{
  font-size:clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem);
  font-weight:800;
  letter-spacing:-.01em;
}
.hero-copy h1 .accent{ color:var(--blue-500); }
.hero-copy p.lead{
  margin-top:22px;
  font-size:1.12rem;
  color:var(--ink-600);
  max-width:480px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:34px;
}
.hero-badge{
  margin-top:38px;
  display:inline-flex;
  align-items:center;
  gap:14px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:14px 18px;
  box-shadow:var(--shadow-card);
}
.hero-badge .icon-circle{ background:var(--grad-brand); color:#fff; }
.hero-badge strong{ display:block; font-size:.95rem; }
.hero-badge small{ color:var(--ink-600); font-size:.82rem; }

.hero-art{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
}
.hero-art img{
  width:100%;
  max-width:480px;
  filter:drop-shadow(0 30px 40px rgba(2,6,20,.45));
}

@media (max-width:900px){
  .hero::after{ clip-path:polygon(0 78%, 100% 55%, 100% 100%, 0 100%); width:100%; height:46%; top:auto; bottom:0; }
  .hero .container{ grid-template-columns:1fr; padding-block:52px 0; }
  .hero-art{ order:-1; margin-bottom:8px; }
  .hero-art img{ max-width:300px; }
  .hero-copy{ max-width:100%; }
}

/* ---------- Icon circle ---------- */
.icon-circle{
  width:48px; height:48px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex:none;
  background:var(--paper-dim);
  color:var(--blue-500);
}
.icon-circle svg{ width:24px; height:24px; }
.icon-circle--lg{ width:64px; height:64px; border-radius:18px; }
.icon-circle--lg svg{ width:30px; height:30px; }

/* ---------- Grids ---------- */
.grid{ display:grid; gap:28px; }
.grid--5{ grid-template-columns:repeat(5,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--2{ grid-template-columns:repeat(2,1fr); }

@media (max-width:1080px){
  .grid--5{ grid-template-columns:repeat(3,1fr); }
  .grid--4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px){
  .grid--5,.grid--4,.grid--3,.grid--2{ grid-template-columns:1fr; }
}

/* ---------- Service card ---------- */
.service-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:30px 26px;
  text-align:left;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-card); border-color:transparent; }
.service-card .icon-circle{ margin-bottom:20px; }
.service-card h3{ font-size:1.08rem; font-weight:700; margin-bottom:10px; }
.service-card p{ color:var(--ink-600); font-size:.95rem; }
.service-card .tag{
  display:inline-block;
  margin-top:16px;
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.08em;
  color:var(--blue-500);
  text-transform:uppercase;
}

/* service card on dark bg variant */
.service-card--dark{
  background:var(--navy-800);
  border-color:var(--line-dark);
}
.service-card--dark h3{ color:var(--white); }
.service-card--dark p{ color:#a9b3d2; }
.service-card--dark .icon-circle{ background:rgba(91,194,255,.12); color:var(--blue-300); }

/* ---------- Service detail row (página de serviços) ---------- */
.service-detail{
  display:grid;
  grid-template-columns:88px 1fr;
  gap:26px;
  padding:34px 0;
  border-bottom:1px solid var(--line);
}
.service-detail:last-child{ border-bottom:none; }
.service-detail .icon-circle{ width:64px; height:64px; border-radius:18px; }
.service-detail .icon-circle svg{ width:30px; height:30px; }
.service-detail h3{ font-size:1.25rem; font-weight:700; }
.service-detail > p{ color:var(--ink-600); margin-top:8px; max-width:640px; }
.service-detail ul{ margin-top:18px; display:grid; gap:10px; }
.service-detail ul li{
  display:flex; gap:10px; align-items:flex-start;
  color:var(--ink-700,var(--ink-900));
  font-size:.95rem;
}
.service-detail ul li svg{ width:18px; height:18px; flex:none; color:var(--blue-500); margin-top:2px; }

@media (max-width:600px){
  .service-detail{ grid-template-columns:1fr; }
}

/* ---------- Checklist (diferenciais) ---------- */
.check-list{ display:grid; gap:24px; }
.check-item{ display:flex; gap:16px; align-items:flex-start; }
.check-item .tick{
  width:32px; height:32px; border-radius:50%;
  background:var(--grad-brand);
  color:#fff; flex:none;
  display:flex; align-items:center; justify-content:center;
}
.check-item .tick svg{ width:16px; height:16px; }
.check-item h4{ font-size:1.02rem; font-weight:700; }
.check-item p{ color:var(--ink-600); margin-top:4px; font-size:.95rem; }

/* ---------- Trust panel ---------- */
.trust-panel{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:38px;
  box-shadow:var(--shadow-card);
}
.trust-panel h3{ font-size:1.4rem; font-weight:700; margin-top:16px; }
.trust-panel p{ color:var(--ink-600); margin-top:12px; }

/* ---------- Split section ---------- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
@media (max-width:880px){
  .split{ grid-template-columns:1fr; gap:36px; }
}

/* ---------- Stat row ---------- */
.stat-row{ display:flex; gap:42px; flex-wrap:wrap; margin-top:36px; }
.stat-row .stat strong{ display:block; font-family:var(--font-display); font-size:2rem; font-weight:800; color:var(--blue-500); }
.stat-row .stat span{ font-size:.85rem; color:var(--ink-600); }
.section--dark .stat-row .stat span{ color:#aab4d6; }

/* ---------- Steps (como funciona) ---------- */
.steps{ counter-reset:step; display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.step{ position:relative; padding-top:8px; }
.step::before{
  counter-increment:step;
  content:counter(step,decimal-leading-zero);
  font-family:var(--font-mono);
  font-size:.85rem;
  color:var(--blue-300);
  letter-spacing:.08em;
}
.step h3{ margin-top:14px; font-size:1.1rem; font-weight:700; color:var(--white); }
.step p{ margin-top:10px; color:#aab4d6; font-size:.95rem; }
@media (max-width:760px){ .steps{ grid-template-columns:1fr; } }

/* ---------- Values grid (quem somos) ---------- */
.value-card{
  background:var(--paper);
  border-radius:var(--radius-lg);
  padding:28px;
}
.value-card h3{ font-size:1.05rem; font-weight:700; margin-top:16px; }
.value-card p{ margin-top:8px; color:var(--ink-600); font-size:.93rem; }

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--grad-navy);
  border-radius:var(--radius-lg);
  padding:54px 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.cta-band::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(560px 240px at 85% 20%, rgba(91,194,255,.25), transparent 70%);
}
.cta-band > *{ position:relative; }
.cta-band h3{ font-size:1.6rem; font-weight:700; color:var(--white); }
.cta-band p{ color:#aab4d6; margin-top:8px; }
.cta-band .actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Contact page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:48px;
  align-items:flex-start;
}
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:14px;
  box-shadow:var(--shadow-card);
}
.contact-row{
  display:flex;
  gap:16px;
  align-items:center;
  padding:18px;
  border-radius:var(--radius-md);
  transition:background .18s ease;
}
.contact-row:hover{ background:var(--paper); }
.contact-row strong{ display:block; font-size:.98rem; }
.contact-row span{ color:var(--ink-600); font-size:.9rem; }
.contact-row .icon-circle{ background:var(--grad-brand); color:#fff; }

.form-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:36px;
  box-shadow:var(--shadow-card);
}
.field{ margin-bottom:20px; }
.field label{
  display:block;
  font-size:.85rem;
  font-weight:600;
  margin-bottom:8px;
  color:var(--ink-900);
}
.field input,.field select,.field textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:13px 14px;
  background:var(--paper);
  color:var(--ink-900);
  transition:border-color .18s ease, background .18s ease;
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--blue-500);
  background:var(--white);
  outline:none;
}
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:.82rem; color:var(--ink-400); margin-top:14px; }
.form-success{
  display:none;
  align-items:center;
  gap:12px;
  background:#eaf8ee;
  border:1px solid #bfe7c9;
  color:#1d6b34;
  padding:14px 16px;
  border-radius:var(--radius-sm);
  margin-bottom:20px;
  font-size:.92rem;
}
.form-success.is-visible{ display:flex; }
.form-success svg{ width:20px; height:20px; flex:none; }

/* ---------- Page intro band (sobre / serviços / contato) ---------- */
.page-intro{
  background:var(--grad-navy);
  color:var(--white);
  padding:64px 0 88px;
  position:relative;
  overflow:hidden;
}
.page-intro::after{
  content:"";
  position:absolute;
  right:-60px; top:-60px;
  width:260px; height:260px;
  background:radial-gradient(circle, rgba(91,194,255,.25), transparent 70%);
}
.page-intro .eyebrow{ color:var(--blue-300); }
.page-intro h1{
  margin-top:14px;
  font-size:clamp(1.9rem,1.3rem+2.4vw,2.7rem);
  font-weight:800;
  max-width:640px;
  color:var(--white);
}
.page-intro p{
  margin-top:16px;
  color:#aab4d6;
  max-width:560px;
  font-size:1.05rem;
}
.breadcrumb{
  display:flex; gap:8px; align-items:center;
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.06em;
  color:#7e8ab2;
  text-transform:uppercase;
}
.breadcrumb a:hover{ color:var(--white); }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-950);
  color:#aab4d6;
  padding-top:64px;
}
.footer-top{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid var(--line-dark);
}
.footer-brand .brand{ margin-bottom:16px; }
.footer-brand p{ font-size:.92rem; max-width:280px; }
.footer-social{ display:flex; gap:12px; margin-top:20px; }
.footer-social a{
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center;
  transition:background .18s ease, border-color .18s ease;
}
.footer-social a:hover{ background:var(--blue-500); border-color:var(--blue-500); }
.footer-social svg{ width:17px; height:17px; }

.footer-col h5{
  font-family:var(--font-display);
  color:var(--white);
  font-size:.92rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.footer-col ul{ display:grid; gap:12px; }
.footer-col a{ font-size:.92rem; transition:color .18s ease; }
.footer-col a:hover{ color:var(--white); }
.footer-col li{ display:flex; gap:10px; font-size:.92rem; align-items:flex-start; }
.footer-col li svg{ width:16px; height:16px; flex:none; margin-top:3px; color:var(--blue-300); }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  padding:24px 0;
  font-size:.82rem;
  color:#6c79a0;
}
.footer-bottom a{ color:#6c79a0; }
.footer-bottom a:hover{ color:var(--white); }

@media (max-width:880px){
  .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-top{ grid-template-columns:1fr; }
}

/* ---------- Whatsapp floating button ---------- */
.fab-whatsapp{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:90;
  width:58px; height:58px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 30px -10px rgba(37,211,102,.6);
  transition:transform .18s ease;
}
.fab-whatsapp:hover{ transform:scale(1.07); }
.fab-whatsapp svg{ width:28px; height:28px; }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
