/* ==========================================================================
   FABRAMED — folha de estilo
   --------------------------------------------------------------------------
   As cores e fontes ficam no bloco :root logo abaixo. Mudar uma variavel
   ali (ex.: --clay) altera o site inteiro de uma vez.
   ========================================================================== */

/* ============================================================
   FABRAMED — estilo editorial (inspiração Anthropic)
   Creme quente · serifada de exibição · accent terracota
   Ajuste tudo pelos tokens abaixo.
   ============================================================ */
:root {
  --cream: #17130D;   /* fundo base, escuro quente (café) */
  --cream-2: #1E1912;   /* painel/faixa sutil */
  --card: #221C15;   /* card escuro quente */
  --ink: #ECE5D8;   /* texto creme */
  --ink-lo: #A69C89;   /* texto secundário quente */
  --clay: #D9825F;   /* accent terracota (mais vivo no escuro) */
  --clay-lo: #E7A784;   /* terracota claro (hover/ênfase) */
  --line: rgba(236,229,216,.12);   /* hairline quente */
  --line-2: rgba(236,229,216,.22);
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", Arial, system-ui, sans-serif;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

figure {
  margin: 0;
}

/* zera a margem padrão do navegador (1em 40px) */
h1,h2,h3,h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
}

section {
  padding: 104px 0;
}

/* rótulo pequeno em caixa alta */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-lo);
  margin: 0 0 22px;
}

.eyebrow.clay {
  color: var(--clay);
}

/* link editorial com seta */
.rlink {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: .18s;
}

.rlink span {
  transition: .18s;
}

.rlink:hover {
  color: var(--clay-lo);
}

.rlink:hover span {
  transform: translateX(4px);
}

/* botões */
.btn {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-dark:hover {
  background: #FBF7EE;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(236,229,216,.06);
}

/* =========================== HEADER =========================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23,19,13,.82);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -.01em;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a.link {
  font-size: 15px;
  color: var(--ink-lo);
  transition: .18s;
}

.nav-links a.link:hover {
  color: var(--ink);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* =========================== HERO =========================== */
.hero {
  padding: 132px 0 104px;
}

.hero-in {
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(44px,6.2vw,76px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
}

.hero h1 a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(204,120,92,.45);
}

.hero h1 a:hover {
  text-decoration-color: var(--clay);
}

.hero .lede {
  font-size: 20px;
  color: var(--ink-lo);
  max-width: 58ch;
  margin: 30px 0 38px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* =========================== STATEMENT =========================== */
.statement {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement .in {
  max-width: 900px;
}

.statement h2 {
  font-size: clamp(28px,4vw,46px);
  font-weight: 400;
  line-height: 1.14;
}

.statement p {
  font-size: 19px;
  color: var(--ink-lo);
  max-width: 60ch;
  margin: 22px 0 26px;
}

/* =========================== DESTAQUES (cards) =========================== */
.feat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.feat-head h2 {
  font-size: clamp(26px,3.4vw,38px);
  font-weight: 400;
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.ecard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: .2s ease;
  min-height: 260px;
}

.ecard:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 26px 50px -34px rgba(0,0,0,.6);
}

.ecard .cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}

.ecard h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.ecard p {
  color: var(--ink-lo);
  font-size: 15.5px;
  margin: 0 0 22px;
}

.ecard .rlink {
  margin-top: auto;
}

/* =========================== PRODUTO =========================== */
.product-flow {
  max-width: 760px;
}

.product-flow .photo-card {
  margin: 30px 0 34px;
  max-width: 560px;
}

.photo-card {
  background: radial-gradient(120% 130% at 50% 28%, #2B241A, #1A150E);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -42px rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-card::before {
  content: "";
  position: absolute;
  width: 84%;
  height: 74%;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(236,229,216,.16),transparent 68%);
  filter: blur(6px);
}

.photo-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 24px 32px rgba(0,0,0,.6));
}

.product h2 {
  font-size: clamp(30px,4vw,46px);
  font-weight: 400;
}

.product .sub {
  color: var(--clay);
  font-size: 15px;
  font-weight: 500;
  margin: 8px 0 20px;
}

.product .desc {
  color: var(--ink-lo);
  max-width: 50ch;
  margin: 0 0 26px;
}

.spec {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.spec li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.spec .k {
  font-weight: 600;
  font-size: 15px;
}

.spec .v {
  color: var(--ink-lo);
  font-size: 15px;
}

/* =========================== AUTOMAÇÃO =========================== */
.auto {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.auto-head {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 52px;
}

.auto-num {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(80px,13vw,150px);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--ink);
}

.auto-num small {
  display: block;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 14px;
}

.auto-head h2 {
  font-size: clamp(26px,3.4vw,40px);
  font-weight: 400;
}

.auto-head p {
  color: var(--ink-lo);
  font-size: 17px;
  margin-top: 16px;
  max-width: 56ch;
}

.auto-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.acard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  transition: .2s;
}

.acard:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.acard h4 {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
}

.acard p {
  margin: 0;
  color: var(--ink-lo);
  font-size: 14.5px;
}

/* =========================== CLIENTES =========================== */
.clients .sec-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.clients h2 {
  font-size: clamp(26px,3.4vw,40px);
  font-weight: 400;
}

.clients .sec-head p {
  color: var(--ink-lo);
  font-size: 17px;
  margin-top: 14px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.client {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
}

.client h4 {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
}

.client p {
  margin: 0;
  color: var(--ink-lo);
  font-size: 14.5px;
}

/* =========================== CONTATO =========================== */
.contact .in {
  max-width: 760px;
}

.contact h2 {
  font-size: clamp(32px,4.6vw,56px);
  font-weight: 400;
  letter-spacing: -.02em;
}

.contact p {
  font-size: 19px;
  color: var(--ink-lo);
  margin: 22px 0 30px;
  max-width: 48ch;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.contact-info {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 52px;
  flex-wrap: wrap;
  color: var(--ink-lo);
  font-size: 15px;
  line-height: 1.7;
}

.contact-info .k {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.contact-info a:hover {
  color: var(--clay);
}

/* =========================== FOOTER =========================== */
footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.foot .brand {
  margin-bottom: 14px;
}

.foot-col h5 {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-lo);
  margin: 0 0 14px;
}

.foot-col a {
  display: block;
  color: var(--ink-lo);
  font-size: 15px;
  padding: 5px 0;
  transition: .15s;
}

.foot-col a:hover {
  color: var(--clay);
}

.foot-about {
  color: var(--ink-lo);
  font-size: 15px;
  max-width: 34ch;
}

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-lo);
  font-size: 13.5px;
}

/* whatsapp float */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.55);
  transition: .2s;
}

.wa-float:hover {
  transform: scale(1.07);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease,transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========================= RESPONSIVO ========================= */
@media (max-width:960px) {
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 80px 0 56px;
  }
  .product-flow .photo-card {
    margin: 26px 0 30px;
  }
  .cards3,.auto-cards,.client-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .ecard {
    min-height: 0;
  }
  .photo-card {
    padding: 24px;
  }
  .auto-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:720px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 16px 26px 26px;
    transform: translateY(-150%);
    transition: .28s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a.link {
    padding: 9px 0;
    font-size: 17px;
  }
  .nav-links .btn {
    margin-top: 10px;
  }
  .menu-btn {
    display: block;
  }
  .cards3,.auto-cards,.client-grid,.foot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .spec li {
    grid-template-columns: 110px 1fr;
    gap: 14px;
  }
  section {
    padding: 54px 0;
  }
  .product-flow .photo-card {
    margin: 22px 0 26px;
  }

  /* foto do produto em destaque no celular */
  .photo-card {
    padding: 16px;
    border-radius: 18px;
  }
  .photo-card img {
    max-width: none;
  }
  .photo-card::before {
    width: 94%;
    height: 82%;
  }
  .ecard {
    padding: 26px 24px;
  }
  .feat-head {
    margin-bottom: 28px;
  }
  .auto-cards,.client-grid {
    margin-top: 0;
  }
}

@media (max-width:420px) {
  .wrap {
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

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

/* ==========================================================================
   LAYOUT CENTRALIZADO
   --------------------------------------------------------------------------
   Este bloco centraliza o site inteiro e unifica a largura dos textos.
   Para voltar ao alinhamento a esquerda, basta apagar este bloco.
   A medida unica dos blocos de texto e a variavel --measure abaixo.
   ========================================================================== */
:root {
  --measure: 820px;   /* largura unica dos blocos de texto */
}

/* --- blocos de texto: mesma largura, centralizados --- */
.hero-in,
.statement .in,
.sec-head,
.clients .sec-head,
.contact .in,
.product-flow {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero .lede,
.statement p,
.sec-head p,
.contact p,
.product .desc,
.auto-head p,
.foot-about {
  margin-left: auto;
  margin-right: auto;
}

/* --- botoes e acoes centralizados --- */
.hero-cta,
.contact-cta,
.contact-info {
  justify-content: center;
}

.contact-info {
  text-align: center;
}

/* --- titulo de secao com o link abaixo, centralizado --- */
.feat-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* --- cards com conteudo centralizado --- */
.ecard {
  text-align: center;
  align-items: center;
}

.acard,
.client {
  text-align: center;
}

/* --- foto do produto centralizada --- */
.product-flow .photo-card {
  margin-left: auto;
  margin-right: auto;
}

/* --- ficha tecnica: bloco centralizado, pares alinhados pelo eixo --- */
.spec {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.spec li {
  grid-template-columns: 1fr 1fr;
}

.spec .k {
  text-align: right;
}

.spec .v {
  text-align: left;
}

/* --- bloco dos 30 anos: numero acima do texto, centralizado --- */
.auto-head {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 22px;
}

/* --- rodape centralizado --- */
.foot-grid {
  text-align: center;
}

.foot .brand,
footer .brand {
  justify-content: center;
}

.foot-bottom {
  justify-content: center;
  text-align: center;
}
