/* ============================================================
   KMAC ACABAMENTOS · style.css
   Paleta: Travertino & Latão (aprovada em preview)
   Assinatura visual: chanfro 45° (linguagem de acabamento)
   Desenvolvido por Z1 · Estúdio de Transformação Digital
   ============================================================ */

:root{
  --bg-light:#F4EEE3;
  --bg-light-2:#ECE2CE;
  --bg-dark:#1B1815;
  --bg-dark-2:#252019;
  --text-on-light:#211D18;
  --text-on-light-soft:#5B554A;
  --text-on-dark:#F4EEE3;
  --text-on-dark-soft:#B7AF9F;
  --accent:#B08D4F;
  --accent-soft:#D9BD86;
  --accent-2:#8C6A3F;
  --line-light: rgba(33,29,24,.14);
  --line-dark: rgba(244,238,227,.14);
  --wrap:1180px;
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Manrope', system-ui, sans-serif;
  --font-mono:'Space Mono', ui-monospace, monospace;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; scroll-padding-top:86px; }
body{
  font-family:var(--font-body);
  background:var(--bg-light);
  color:var(--text-on-light);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg,iframe{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 32px; }
@media (max-width:640px){ .wrap{ padding:0 20px; } }

/* ---------- utilitários tipográficos ---------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent-2);
  display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:""; width:16px; height:1px; background:var(--accent); }
.eyebrow-dark{ color:var(--accent-soft); }
.eyebrow-dark::before{ background:var(--accent-soft); }

h2{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(28px,3.4vw,40px);
  line-height:1.15; letter-spacing:-.01em;
  margin-top:18px;
}
.section-head{ max-width:640px; margin-bottom:56px; }

/* ---------- botões (chanfro) ---------- */
.btn{
  font-family:var(--font-body); font-weight:700; font-size:13.5px;
  padding:13px 24px; display:inline-flex; align-items:center; gap:8px;
  border:1px solid transparent; cursor:pointer;
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-brass{
  background:linear-gradient(135deg,var(--accent-soft),var(--accent));
  color:#211D18;
}
.btn-brass:hover{ transform:translateY(-2px); box-shadow:0 10px 24px -8px rgba(160,120,50,.55); }
.btn-dark{ background:var(--bg-dark); color:var(--text-on-dark); }
.btn-dark:hover{ background:var(--bg-dark-2); transform:translateY(-2px); }
.btn-ghost-dark{
  border-color:rgba(244,238,227,.5); color:var(--text-on-dark);
}
.btn-ghost-dark:hover{ background:var(--text-on-dark); color:var(--bg-dark); }

/* ============================================================
   HEADER
   ============================================================ */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(27,24,21,.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-dark);
}
header nav{
  display:flex; align-items:center; justify-content:space-between;
  height:78px; gap:24px;
}
.logo{
  display:flex; align-items:center; white-space:nowrap;
}
.logo img{ height:44px; width:auto; display:block; }
.navlinks{ display:flex; gap:32px; }
.navlinks a{
  font-size:14px; font-weight:600; color:var(--text-on-dark);
  position:relative; padding:4px 0;
}
.navlinks a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--accent-soft); transition:width .25s ease;
}
.navlinks a:hover::after{ width:100%; }

.nav-toggle{ display:none; }

@media (max-width:980px){
  .nav-cta-btn{ display:none; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px;
    background:none; border:none; cursor:pointer; padding:8px;
  }
  .nav-toggle span{
    width:24px; height:2px; background:var(--text-on-dark);
    transition:transform .25s ease, opacity .25s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  .navlinks{
    position:fixed; inset:78px 0 auto 0;
    flex-direction:column; gap:0;
    background:var(--bg-dark);
    border-bottom:1px solid var(--line-dark);
    max-height:0; overflow:hidden;
    transition:max-height .35s ease;
  }
  .navlinks.open{ max-height:400px; }
  .navlinks a{ display:block; padding:16px 32px; border-top:1px solid var(--line-dark); }
  .navlinks a::after{ display:none; }
}

/* ============================================================
   HERO
   ============================================================ */
#inicio{
  position:relative; min-height:88vh;
  display:flex; align-items:center;
  color:var(--text-on-dark);
  padding:110px 0;
  overflow:hidden;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(20,17,14,.88) 0%, rgba(20,17,14,.62) 46%, rgba(20,17,14,.28) 100%),
    linear-gradient(0deg, rgba(20,17,14,.55) 0%, transparent 40%);
}
.hero-content{ position:relative; z-index:1; width:100%; }
.hero-eyebrow{ margin-bottom:26px; color:var(--accent-soft); }
.hero-eyebrow::before{ background:var(--accent-soft); }
#inicio h1{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(38px,5vw,64px);
  line-height:1.06; letter-spacing:-.01em;
  max-width:640px;
}
#inicio h1 em{ font-style:normal; color:var(--accent-soft); }
.hero-sub{
  margin-top:26px; max-width:500px;
  font-size:16.5px; line-height:1.7;
  color:var(--text-on-dark-soft);
}
.hero-actions{ display:flex; gap:16px; margin-top:38px; flex-wrap:wrap; }
.hero-meta{ display:flex; gap:40px; margin-top:60px; flex-wrap:wrap; }
.hero-meta div{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.08em;
  color:var(--text-on-dark-soft); text-transform:uppercase;
}
.hero-meta strong{
  display:block; font-family:var(--font-body); font-size:17px;
  color:var(--text-on-dark); letter-spacing:0; text-transform:none; margin-top:6px;
}

/* ============================================================
   A KMAC (sobre)
   ============================================================ */
#kmac{ padding:120px 0; background:var(--bg-light); }
.about-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center;
}
@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; gap:44px; } }
.frame{
  overflow:hidden;
  clip-path:polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}
.frame img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.frame:hover img{ transform:scale(1.04); }
.about-text h2{ margin-bottom:24px; }
.about-text p{
  font-size:15.5px; line-height:1.75; color:var(--text-on-light-soft);
  margin-bottom:18px; max-width:520px;
}
.about-text .btn{ margin-top:10px; }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
#diferenciais{ padding:120px 0; background:var(--bg-light-2); }
.cards{
  display:grid; grid-template-columns:repeat(4,1fr); gap:2px;
  background:var(--line-light);
}
@media (max-width:980px){ .cards{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .cards{ grid-template-columns:1fr; } }
.card{
  background:var(--bg-light);
  padding:40px 30px 36px;
  position:relative; overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease;
}
.card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--bar,var(--accent));
  transform:scaleX(0); transform-origin:left;
  transition:transform .35s ease;
}
.card:hover{ transform:translateY(-6px); box-shadow:0 22px 40px -20px rgba(20,18,15,.25); }
.card:hover::before{ transform:scaleX(1); }
.card:nth-child(1){ --bar:#B08D4F; }
.card:nth-child(2){ --bar:#8C6A3F; }
.card:nth-child(3){ --bar:#A85C36; }
.card:nth-child(4){ --bar:#6E5A38; }
.card-mark{
  width:46px; height:46px; background:var(--bg-dark);
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:26px;
}
.card-mark svg{ width:22px; height:22px; stroke:var(--accent-soft); }
.card h3{ font-family:var(--font-display); font-weight:600; font-size:19px; margin-bottom:12px; }
.card p{ font-size:14.5px; line-height:1.65; color:var(--text-on-light-soft); }

/* ============================================================
   MARCAS (marquee)
   ============================================================ */
#marcas{ padding:100px 0; background:var(--bg-dark); color:var(--text-on-dark); }
#marcas h2{ color:var(--text-on-dark); }
.marquee{
  overflow:hidden;
  border-top:1px solid var(--line-dark);
  border-bottom:1px solid var(--line-dark);
  padding:30px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.marquee-track{
  display:flex; align-items:center; gap:18px; width:max-content;
  animation:scrollBrands 36s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes scrollBrands{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.brand-chip{
  background:#FFFFFF;
  padding:18px 30px;
  display:flex; align-items:center; justify-content:center;
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  min-width:170px; height:84px;
  filter:grayscale(1) contrast(.92);
  opacity:.85;
  transition:filter .25s ease, opacity .25s ease, transform .25s ease;
}
.brand-chip img{ max-height:40px; width:auto; max-width:190px; object-fit:contain; }
.brand-chip:hover{ filter:none; opacity:1; transform:translateY(-3px); }
.chip-doka, .chip-portokoll{ padding:0; }
.chip-doka img, .chip-portokoll img{ max-height:84px; max-width:230px; height:84px; width:auto; }

/* ============================================================
   SHOWROOM (galeria)
   ============================================================ */
#showroom{ padding:120px 0; background:var(--bg-light); }
.gallery{
  display:grid; grid-template-columns:repeat(6,1fr); gap:22px;
}
.g-item{ grid-column:span 2; margin:0; }
.g-wide{ grid-column:span 3; }
@media (max-width:980px){
  .g-item, .g-wide{ grid-column:span 3; }
}
@media (max-width:640px){
  .g-item, .g-wide{ grid-column:span 6; }
}
.g-media{
  overflow:hidden; aspect-ratio:4/3;
  clip-path:polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.g-media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s ease;
}
.g-item:hover .g-media img{ transform:scale(1.06); }
.g-item figcaption{
  display:flex; flex-direction:column; gap:4px;
  padding:14px 2px 0;
  transform:translateY(0); transition:transform .3s ease;
}
.g-item:hover figcaption{ transform:translateY(-3px); }
.g-code{
  font-family:var(--font-mono); font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--accent-2);
}
.g-title{ font-family:var(--font-display); font-weight:600; font-size:17px; }
.gallery-cta{
  margin-top:44px; font-size:15px; color:var(--text-on-light-soft);
}
.gallery-cta a{
  color:var(--accent-2); font-weight:700;
  border-bottom:1px solid var(--accent);
  transition:color .2s ease;
}
.gallery-cta a:hover{ color:var(--text-on-light); }

/* ============================================================
   CONTATO
   ============================================================ */
#contato{ padding:120px 0; background:var(--bg-light-2); }
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:50px; } }
#contato h2{ margin-bottom:30px; }
.info-row{
  display:flex; gap:18px; padding:22px 0;
  border-bottom:1px solid var(--line-light);
}
.info-row:first-of-type{ padding-top:0; }
.ic{
  width:38px; height:38px; flex:none; background:var(--bg-dark);
  clip-path:polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  display:flex; align-items:center; justify-content:center;
}
.ic svg{ width:18px; height:18px; stroke:var(--accent-soft); }
.info-row .label{
  display:block;
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--accent-2);
}
.info-row .value{ display:block; font-size:15.5px; margin-top:6px; line-height:1.6; }
.info-row .value a{ border-bottom:1px solid var(--accent); }

.social-row{ display:flex; gap:12px; margin-top:28px; }
.social-row a{
  width:42px; height:42px; border:1px solid var(--line-light);
  display:flex; align-items:center; justify-content:center;
  clip-path:polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition:background .2s ease, border-color .2s ease;
}
.social-row a svg{ width:17px; height:17px; stroke:var(--text-on-light); transition:stroke .2s ease; }
.social-row a:hover{ background:var(--bg-dark); border-color:var(--bg-dark); }
.social-row a:hover svg{ stroke:var(--accent-soft); }

.foot-essentials .social-row a{ border-color:var(--line-dark); }
.foot-essentials .social-row a svg{ stroke:var(--text-on-dark-soft); }
.foot-essentials .social-row a:hover{ background:var(--accent-soft); border-color:var(--accent-soft); }
.foot-essentials .social-row a:hover svg{ stroke:#1B1815; }

.contact-card{
  background:var(--bg-dark); color:var(--text-on-dark);
  padding:44px 38px;
  clip-path:polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
  height:fit-content;
}
.contact-card h3{
  font-family:var(--font-display); font-weight:600; font-size:26px;
  max-width:360px; line-height:1.25; margin-top:16px;
}
.contact-card p{
  margin-top:16px; color:var(--text-on-dark-soft);
  font-size:14.5px; line-height:1.7; max-width:380px;
}
.contact-card .btn{ margin-top:28px; }
.map-embed{ margin-top:30px; }
.map-embed iframe{
  width:100%; aspect-ratio:16/10; border:0;
  filter:grayscale(.35) contrast(1.02);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  background:var(--bg-dark); color:var(--text-on-dark-soft);
  border-top:1px solid var(--line-dark);
  padding:64px 0 30px;
}
.foot-main{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:40px; flex-wrap:wrap;
  padding-bottom:40px; border-bottom:1px solid var(--line-dark);
}
.foot-logo img{ height:56px; }
.foot-essentials{
  display:flex; align-items:center; gap:40px; flex-wrap:wrap;
}
.foot-info{ display:flex; flex-direction:column; gap:6px; }
.foot-info .value{ font-size:13.5px; line-height:1.6; color:var(--text-on-dark-soft); }
.foot-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:18px; padding-top:26px;
}
.copyright{ font-size:12.5px; }
@media (max-width:760px){
  .foot-main{ flex-direction:column; }
  .foot-essentials{ gap:22px; }
}

/* ---- badge Z1 (padrão fixo, replicado de matconcontabilidade.com.br) ---- */
.z1-badge{
  display:inline-flex; align-items:center; gap:12px;
  background:linear-gradient(180deg,#1d1a34,#211d3c);
  border:1px solid rgba(255,255,255,0.08);
  padding:8px 16px 8px 8px;
  border-radius:999px;
}
.z1-icon{
  width:30px; height:30px; border-radius:50%; flex:none;
  background:linear-gradient(135deg,#b9a6f7,#6f5ce6);
  display:flex; align-items:center; justify-content:center;
}
.z1-icon i{ width:4px; height:14px; border-radius:2px; background:rgba(20,16,40,.55); display:block; }
.z1-divider{ width:1px; height:26px; background:rgba(255,255,255,0.12); }
.z1-text{ display:flex; flex-direction:column; line-height:1.25; }
.z1-text .dev{
  font-family:var(--font-mono); font-size:9px; letter-spacing:.1em;
  color:#8b87a3; text-transform:uppercase;
}
.z1-text .name{
  font-family:var(--font-body); font-weight:800; font-size:14px;
  background:linear-gradient(135deg,#b9a6f7,#6f5ce6);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.z1-text .tagline{ font-size:11px; color:#d3d0e2; }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float{
  position:fixed; right:26px; bottom:26px; z-index:60;
  display:flex; align-items:center; gap:10px;
  background:linear-gradient(135deg,var(--accent-soft),var(--accent));
  color:#1B1815; font-weight:700; font-size:13.5px;
  padding:15px 20px;
  clip-path:polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow:0 14px 30px -10px rgba(0,0,0,.4);
  transition:bottom .3s ease, transform .2s ease;
}
.wa-float:hover{ transform:translateY(-3px); }
.wa-float svg{ width:19px; height:19px; }
.wa-float .pulse{
  position:absolute; inset:-6px;
  border:1.5px solid var(--accent-soft);
  clip-path:polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  animation:pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing{
  0%{ opacity:.65; transform:scale(1); }
  100%{ opacity:0; transform:scale(1.16); }
}
@media (max-width:560px){
  .wa-float{ font-size:0; gap:0; padding:16px; }
  .wa-float svg{ width:22px; height:22px; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .marquee-track{ animation:none; }
  .wa-float .pulse{ animation:none; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .frame img, .g-media img{ transition:none; }
}
