/* =========================================================
   RAFISA — UI/UX “surpreender” (Header preto + Main claro)
   - Visual premium, contrastado, moderno
   - Texto “dosado” no topo (clamp/line-clamp no hero)
   - Cards claros, sombras elegantes, amarelo como destaque
   ========================================================= */

/* ---------- TOKENS ---------- */
:root{
  /* Identidade */
  --black: #0b0b0b;
  --brand: rgb(242, 212, 90);
  --brand-strong: rgb(230, 195, 60);
  --brand-soft: rgba(242,212,90,.18);

  /* Main claro (sem ficar “lavado”) */
  --bg: #f4f4f4;          /* fundo da página */
  --surface: #ffffff;     /* cards */
  --surface2: #f0f0f0;    /* seções alternadas */

  /* Texto */
  --text: #121212;
  --muted: #4f4f4f;
  --muted2:#7a7a7a;

  /* Linhas, sombras, radius */
  --stroke: rgba(0,0,0,.08);
  --stroke-strong: rgba(0,0,0,.12);
  --shadow: 0 18px 46px rgba(0,0,0,.10);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.08);
  --radius: 16px;
  --radius2: 20px;

  --container: 1120px;

  /* Tipografia */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* ---------- RESET ---------- */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Fundo “tech” bem sutil (sem opacar) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 420px at 14% 0%, rgba(242,212,90,.10), transparent 60%),
    radial-gradient(720px 420px at 92% 34%, rgba(242,212,90,.07), transparent 62%),
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  opacity: .45;
  mix-blend-mode: multiply;
}

a{ color: inherit; text-decoration: none; }
.link{ color: var(--muted); }
.link:hover{ color: var(--text); }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 18px; }
main{ background: transparent; }

/* =========================================================
   HEADER (PRETO, PREMIUM)
   ========================================================= */
.siteHeader{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
/* logo maior no desktop */
.brandLogo{
  width: 150px;
  height: 74px;
}

/* no mobile, segura pra não quebrar */
@media (max-width: 520px){
  .brandLogo{
    width: 56px;
    height: 56px;
  }
}

.brandText{
  display:flex;
  flex-direction:column;
}
.brandName{
  font-weight: 900;
  letter-spacing: .16em;
  color: #fff;
  font-size: 13px;
}
.brandSub{
  letter-spacing: normal;
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,.68);
  margin-top: 4px;
}

.menu{
  display:flex;
  align-items:center;
  gap: 18px;
}
.menu a{
  font-weight: 800;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 12px;
  transition: .18s ease;
}
.menu a:hover{
  color: #fff;
  background: rgba(255,255,255,.07);
}
.pillLink{
  border: 1px solid rgba(242,212,90,.28);
  background: rgba(242,212,90,.10);
  color: #fff !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.actions{ display:flex; align-items:center; gap:10px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  font-weight: 900;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.btn.primary{
  border: 1px solid rgba(242,212,90,.75);
  background: linear-gradient(180deg, rgba(242,212,90,1), rgba(242,212,90,.82));
  color: #141414;
  box-shadow: 0 16px 36px rgba(242,212,90,.18);
}
.btn.primary:hover{
  box-shadow: 0 18px 44px rgba(242,212,90,.26);
}

.btn.ghost{
  background: transparent;
  border: 1px solid rgba(242,212,90,.40);
  color: var(--brand);
}
.btn.ghost:hover{ background: rgba(242,212,90,.10); }

.btn.icon{ width: 44px; height: 44px; padding: 0; }
.hamburger{ display:none; }
.hamburgerLines{
  width: 20px; height: 2px; background: #fff;
  position: relative; display:block; border-radius: 2px;
}
.hamburgerLines::before,
.hamburgerLines::after{
  content:"";
  position:absolute; left:0;
  width: 20px; height: 2px; background: #fff;
  border-radius: 2px;
}
.hamburgerLines::before{ top:-6px; }
.hamburgerLines::after{ top:6px; }

.mobileMenu{
  display:none;
  gap:10px;
  padding: 12px 0 16px;
}
.mobileMenu .btn{
  width:100%;
  justify-content:flex-start;
  border-radius: 16px;
}
.mobileMenu[hidden]{ display:none !important; }

/* =========================================================
   HERO — MENOS ESCRITA + MUITO IMPACTO
   ========================================================= */
.hero{
  position: relative;
  padding: 54px 0 34px;
  background:
    radial-gradient(900px 340px at 20% 0%, rgba(242,212,90,.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  border-bottom: 1px solid var(--stroke);
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 18px;
  align-items: start;
}

/* Pill mais “clean” */
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.70);
  color: #1a1a1a;
  font-weight: 900;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}
.pillDot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 0 0 6px rgba(242,212,90,.18);
}

h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.underline{ color: #141414; background: linear-gradient(180deg, rgba(242,212,90,.0), rgba(242,212,90,.55)); padding: 0 .10em; border-radius: 8px; }

/* DOSAGEM de texto no topo (pra não ficar “textão”) */
.sub{
  color: var(--muted);
  font-size: 16px;
  max-width: 58ch;

  /* Limita linhas no HERO (fica mais “premium”) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.heroCtas{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
}

/* KPIs compactos (menos escrita, mais “punch”) */
.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.kpi{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.86);
  border-radius: var(--radius);
  padding: 12px 12px;
  box-shadow: var(--shadow-soft);
}
.kpi strong{
  display:block;
  margin-bottom:4px;
  font-weight: 950;
  letter-spacing: -0.01em;
}
.kpi span{
  color: var(--muted2);
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card lateral (imagem) com cara premium */
.sideCard{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 16px;
}
.sideTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sideTitle h3{
  margin:0;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.badge{
  font-weight: 950;
  font-size: 12px;
  color: #161616;
  background: var(--brand);
  padding: 7px 10px;
  border-radius: 999px;
}

.mediaFrame{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #000;
}
.mediaFrame img{
  width:100%;
  height: 230px;
  object-fit: cover;
  display:block;
  filter: contrast(1.06) saturate(1.05);
  transform: scale(1.01);
}

/* Checklist mais curto visualmente */
.checklist{
  list-style:none;
  padding:0;
  margin: 12px 0 0;
  display:grid;
  gap: 8px;
}
.checklist li{
  display:flex;
  gap: 10px;
  color: #2e2e2e;
  font-weight: 800;
  font-size: 13px;
}
.dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-strong);
  margin-top: 7px;
  flex: 0 0 auto;
}
.mini{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  color: var(--muted2);
  font-size: 12.5px;
}

/* =========================================================
   SEÇÕES — CLARAS, RESPIRADAS, SEM “TEXTÃO”
   ========================================================= */
section{ padding: 56px 0; }

.sectionAlt{
  background: var(--surface2);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.sectionHead{
  display:flex;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sectionHead h2{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.sectionHead p{
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 70ch;

  /* Dose também (evita parágrafos enormes) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card{
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius2);
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-soft);
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(242,212,90,.38);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}
.iconBox{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(242,212,90,.22);
  border: 1px solid rgba(242,212,90,.40);
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 950;
}

.card h4{
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
}
.card p{
  margin:0;
  color: var(--muted);

  /* menos texto */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel{
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.panel p{ color: var(--muted); }
.panel ul{ margin: 10px 0 0 18px; color: var(--muted); }

/* Galeria */
.gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.galleryItem{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.galleryItem img{
  width:100%;
  height: 170px;
  object-fit: cover;
  display:block;
  filter: contrast(1.06) saturate(1.05);
}
.galleryItem.wide{ grid-column: 1 / -1; }
.galleryItem.wide img{ height: 210px; }

/* CTA band */
.ctaBand{
  margin-top: 18px;
  border: 1px solid rgba(242,212,90,.35);
  background: rgba(242,212,90,.18);
  border-radius: calc(var(--radius2) + 6px);
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}
.ctaBandActions{ display:flex; gap: 10px; flex-wrap: wrap; }

.smallcaps{
  letter-spacing: .14em;
  font-weight: 950;
  font-size: 12px;
  color: var(--muted2);
  text-transform: uppercase;
}

/* Clients */
.clientsBand{
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: calc(var(--radius2) + 6px);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.clientsNote{
  display:flex;
  flex-direction:column;
  gap: 4px;
  margin-bottom: 12px;
}
.clientsNote strong{ font-weight: 950; }
.clientsNote span{ color: var(--muted); }

.clientsGrid{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.clientChip{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  color: #1a1a1a;
  font-weight: 950;
  padding: 10px 12px;
  border-radius: 999px;
}
.clientChip:nth-child(odd){
  border-color: rgba(242,212,90,.35);
  background: rgba(242,212,90,.16);
}

/* Forms */
form input, form textarea, form select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: var(--text);
  outline: none;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
form input::placeholder, form textarea::placeholder{ color: rgba(0,0,0,.42); }
form textarea{ min-height: 120px; resize: vertical; }

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.hint{ margin-top: 10px; color: var(--muted2); font-size: 12px; }

/* =========================================================
   FOOTER (PRETO, FECHA A MARCA)
   ========================================================= */
footer{
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 34px 0;
  background: var(--black);
  color: #fff;
}
.footerGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:start;
}
.brandFooter{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brandLogoFooter{
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(242,212,90,.14));
}
.footerLinks{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.footerCol{ display:grid; gap: 8px; margin-top: 8px; }
footer .link{ color: rgba(255,255,255,.72); }
footer .link:hover{ color: #fff; }

.copyLeft{
  margin-top: 6px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

/* WhatsApp float */
.float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
}
.wa{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #161616;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.wa svg{ width: 22px; height: 22px; fill: currentColor; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .menu{ display:none; }
  .hamburger{ display:inline-flex; }
  .mobileMenu{ display:grid; }

  .heroGrid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr 1fr; }
  .kpis{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .footerGrid{ grid-template-columns: 1fr; }

  /* no mobile: um pouco mais de texto disponível, mas ainda controlado */
  .sub{ -webkit-line-clamp: 4; }
  .sectionHead p{ -webkit-line-clamp: 4; }
}

@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
  .row{ grid-template-columns: 1fr; }

  .brand{ min-width: 0; gap: 10px; }
  .brandLogo{ width: 48px; height: 48px; }
  .brandSub{ display:none; }

  .nav{ padding: 10px 0; }
  .btn.icon{ width: 40px; height: 40px; }

  h1{ font-size: 34px; }
  .hero{ padding: 42px 0 26px; }
  .mediaFrame img{ height: 210px; }

  /* Menu mobile com cara premium */
  .mobileMenu{
    background: rgba(11,11,11,.98);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 12px;
    margin-top: 10px;
  }
  .mobileMenu .btn{
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
  }
}

/* =========================================================
   EXTRAS: “DOSAR ESCRITA” NO INÍCIO SEM MEXER NO HTML
   (se quiser manter ainda mais “clean”, descomente abaixo)
   ========================================================= */
/*
.checklist li:nth-child(n+4){ display:none; }  // mostra só 3 itens no card lateral
.kpi span{ display:none; }                    // KPI só com título
*/
