/* tokens */
:root {
  --bg: #F5F3EF; --bg-2: #EAE5DE; --card: #EEECE8; --ink: #1C1B19; --muted: #77716B;
  --dark: #1B1B19; --line: #D8D3CC; --deep: #30251D; --white: #FFFFFF;
  --accent: #8A6A4A; --accent-text: #6E5238; --on-accent: #FFFFFF; --accent-on-deep: #D9B98F;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.65 var(--sans); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.6vw, 78px); line-height: .98; }
h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.04; }
p { margin: 0 0 1em; }
.label { font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--white); padding: 8px 12px; }
.ar { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease); }

/* botões */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: 3px;
  font: 500 13px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: opacity .3s, background .3s; }
.btn:hover { opacity: .86; }
.btn:hover .ar { transform: translateX(3px); }
.btn-dark { background: var(--btn-bg, var(--dark)); color: var(--btn-text, var(--white)); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; font: 500 13px/1 var(--sans); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn-ghost svg { width: 34px; height: 34px; }
.btn-ghost svg.ar { width: 14px; height: 14px; }
.btn-ghost:hover { opacity: .7; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); flex: none; transition: background .3s, color .3s; }
.icon-btn svg { width: 13px; height: 13px; }
.icon-btn:hover { background: var(--ink); color: var(--white); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.over { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 60%, transparent 100%); backdrop-filter: none; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.top-in { height: 72px; padding: 0 var(--pad); display: flex; align-items: center; gap: 24px; }
.brand { font: 500 14px/1 var(--sans); letter-spacing: .24em; text-decoration: none; white-space: nowrap; }
.brand .logo { height: 50px; width: auto; filter: invert(1) hue-rotate(180deg); }
.nav { display: flex; gap: clamp(16px, 2.2vw, 34px); margin: 0 auto; }
.nav a { font-size: 12.5px; text-decoration: none; color: var(--ink); opacity: .82; transition: opacity .25s; }
.nav a:hover { opacity: 1; }
.burger { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.4px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* telefone no topo */
.top-tel { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.top-tel svg { width: 16px; height: 16px; }
.top-tel:hover { opacity: .7; }
.nav-tel { display: none; }

/* hero */
.hero { position: relative; min-height: clamp(620px, 92vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--bg); }
.hero-media { position: absolute; inset: 0 0 0 28%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.8s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, color-mix(in srgb, var(--bg) 86%, transparent) 40%, color-mix(in srgb, var(--bg) 35%, transparent) 54%, transparent 66%); }
.hero-copy { position: relative; z-index: 2; padding: 112px var(--pad) 48px; max-width: calc(450px + var(--pad) * 2 + 120px); }
.hero h1 { max-width: 9.5em; }
.hero-lead { max-width: 420px; color: var(--ink); opacity: .78; font-size: 15px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 30px 0 46px; flex-wrap: wrap; }
.stats { display: flex; gap: 0; }
.stats div { padding: 0 26px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats b::after { content: ""; display: block; width: 18px; height: 2px; background: var(--accent); margin-top: 6px; }
.stats b { font: 500 20px/1.1 var(--sans); white-space: nowrap; }
.stats span { font-size: 11.5px; color: var(--muted); }
@keyframes settle { from { transform: scale(1.05); opacity: .6; } to { transform: scale(1); opacity: 1; } }

/* cards de serviço */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px 0; background: var(--bg); }
.cat { position: relative; display: block; aspect-ratio: 1.5 / 1; overflow: hidden; color: var(--white); text-decoration: none; background: var(--dark); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,.08) 45%, rgba(20,16,12,.5) 100%); }
.cat:hover img { transform: scale(1.04); }
.cat-txt { position: absolute; z-index: 1; top: 24px; left: 24px; right: 24px; display: grid; gap: 8px; }
.cat-t { font: 400 clamp(22px, 2vw, 28px)/1.05 var(--serif); }
.cat-l { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; opacity: .9; }
.cat-d { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 18px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.cat:hover .cat-d, .cat:focus-visible .cat-d { opacity: .92; transform: none; }

/* projetos em destaque */
.featured { display: grid; grid-template-columns: 30% 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(56px, 6vw, 80px) var(--pad); align-items: center; }
.feat-copy h2 { max-width: 11em; }
.feat-copy .btn { margin-top: 10px; }
.prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prod { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.prod-img { display: block; aspect-ratio: 1 / 1; background: var(--card); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.prod:hover .prod-img img { transform: scale(1.04); }
.prod figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 16px; }
.prod figcaption b { display: block; font-weight: 500; font-size: 13px; line-height: 1.3; }
.prod figcaption small { font-size: 11.5px; color: var(--muted); }

/* por que */
.why { display: grid; grid-template-columns: 45% 1fr 0.78fr; background: var(--bg-2); }
.why-media { position: relative; min-height: 520px; overflow: hidden; }
.why-media img { position: absolute; inset: 0; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-copy { padding: clamp(48px, 5vw, 72px) clamp(24px, 3vw, 48px); align-self: center; }
.why-copy h2 { max-width: 11em; }
.fac-h { font-size: 26px; margin: 44px 0 10px; }
.fac { list-style: none; padding: 0; margin: 0; }
.fac li { font-size: 13.5px; padding: 7px 0 7px 18px; position: relative; color: var(--ink); }
.fac li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--accent); }
.why-feats { list-style: none; margin: 0; padding: clamp(48px, 5vw, 72px) var(--pad) clamp(48px, 5vw, 72px) 8px; display: grid; gap: 34px; align-content: center; }
.why-feats li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--bg); }
.ic svg { width: 18px; height: 18px; color: var(--accent-text); }
.why-feats b { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }
.why-feats small { font-size: 12px; color: var(--muted); line-height: 1.5; display: block; }

/* guia */
.guide { padding: clamp(56px, 7vw, 96px) var(--pad); background: var(--bg); border-top: 1px solid var(--line); }
.prose { max-width: 720px; }
.guide .prose { margin: 0 auto; }
.prose h2 { font-size: clamp(28px, 2.8vw, 38px); margin-top: 1.4em; }
.prose p { color: color-mix(in srgb, var(--ink) 84%, var(--bg)); font-size: 16px; }

/* carrossel */
.insp { display: grid; grid-template-columns: 34% 1fr; background: var(--bg); }
.insp-copy { padding: clamp(56px, 6vw, 88px) var(--pad); align-self: center; }
.insp-copy h2 { max-width: 9em; }
.insp-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.car { position: relative; overflow: hidden; min-height: 460px; background: var(--card); }
.car-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateX(3%); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.slide.is-on { opacity: 1; transform: none; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 20px; bottom: 20px; color: var(--white); font-size: 12.5px; background: color-mix(in srgb, var(--dark) 60%, transparent); padding: 6px 10px; border-radius: 2px; }
.car-ui { position: absolute; z-index: 2; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; }
.circ { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .25s; }
.circ svg { width: 14px; height: 14px; }
.circ:hover { transform: scale(1.06); }
.car-n { color: var(--white); font-size: 12px; letter-spacing: .06em; margin-left: 6px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* área + faq */
.info { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 7vw, 104px) var(--pad); background: var(--bg-2); }
.cities { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cities li { font-size: 12.5px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); }
.qs details { border-top: 1px solid var(--line); }
.qs details:last-child { border-bottom: 1px solid var(--line); }
.qs summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 400 21px/1.25 var(--serif); }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 12px; height: 1px; background: var(--ink); box-shadow: none; }
.qs summary::before { content: ""; position: absolute; right: 11.5px; top: 20.5px; width: 1px; height: 12px; background: var(--ink); transition: transform .3s var(--ease); }
.qs details[open] summary::before { transform: scaleY(0); }
.qs details p { color: var(--muted); padding: 0 0 18px; margin: 0; max-width: 60ch; }

/* cta */
.cta { position: relative; min-height: 360px; display: flex; align-items: center; background: var(--deep); color: var(--white); overflow: hidden; }
.cta-media { position: absolute; inset: 0 0 0 38%; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.82); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--deep) 0%, var(--deep) 36%, color-mix(in srgb, var(--deep) 82%, transparent) 48%, color-mix(in srgb, var(--deep) 15%, transparent) 75%); }
.cta-copy { position: relative; z-index: 2; padding: clamp(56px, 6vw, 80px) var(--pad); max-width: 640px; }
.cta .label { color: var(--accent-on-deep); }
.cta p { color: rgba(255,255,255,.78); max-width: 420px; }
.cta .btn { margin-top: 10px; }

/* cta: ações */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.cta .cta-actions .btn { margin-top: 0; }
.btn-line { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-line svg { width: 16px; height: 16px; }
.btn-line:hover { border-color: var(--white); opacity: 1; }

/* botão flutuante de ligar */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 25; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px;
  background: var(--dark); color: var(--white); border-radius: 999px; text-decoration: none; font: 500 13px/1 var(--sans);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--dark) 60%, transparent); transition: transform .3s var(--ease), opacity .3s; }
.fab svg { width: 18px; height: 18px; }
.fab:hover { transform: translateY(-2px); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--accent); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.18); opacity: 0; } }

/* rodapé */
.foot { background: var(--dark); color: rgba(255,255,255,.72); padding: 56px var(--pad) 24px; font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { font: 500 14px/1 var(--sans); letter-spacing: .24em; color: var(--white); margin-bottom: 14px; }
.foot-note { max-width: 52ch; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

/* modais */
.modal, .lb { border: 0; padding: 0; background: transparent; color: var(--ink); }
.modal::backdrop, .lb::backdrop { background: color-mix(in srgb, var(--deep) 78%, transparent); }
.form-modal { width: min(640px, 100vw - 24px); max-height: calc(100vh - 24px); background: var(--bg); padding: clamp(28px, 4vw, 44px); border-radius: 3px; overflow: auto; }
.form-modal h2 { font-size: clamp(30px, 3vw, 40px); }
.vid-modal { background: var(--bg); padding: 16px; border-radius: 3px; }
.vid-modal video { width: min(360px, 80vw); aspect-ratio: 9/16; object-fit: cover; background: #000; max-height: 78vh; }
.vid-modal p { margin: 10px 0 0; max-width: 360px; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.lb img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lb .modal-x { position: fixed; }
.modal[open], .lb[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* formulário */
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 18px; }
.f-full { grid-column: 1 / -1; }
.lead label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.opt { font-weight: 400; color: var(--muted); }
.lead input, .lead select, .lead textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--white); color: var(--ink); font: 400 15px/1.4 var(--sans); }
.lead textarea { resize: vertical; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: 1.5px solid var(--ink); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.lead .consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: 12.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--muted); cursor: pointer; }
.lead .consent input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--dark); cursor: pointer; }
.lead .consent a { color: var(--ink); }
.f-status { margin: 12px 0 0; font-weight: 500; min-height: 1.4em; }
.f-status.err { color: #9b2c1f; }
.f-fine { font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* páginas simples */
.page { padding: 120px var(--pad) 96px; min-height: 70vh; }
.page .prose h1 { font-size: clamp(40px, 5vw, 64px); }

/* entrada suave */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* responsivo */
@media (max-width: 1199px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .prods { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr 1fr; }
  .why-media { grid-row: span 2; }
  .why-feats { padding: 0 clamp(24px, 3vw, 48px) 56px; grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-media { left: 22%; }
}
@media (max-width: 960px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .burger { display: block; }
  .top-cta { margin-left: 0; }
  .top-tel { margin-left: auto; }
  .top.over.menu-open { background: var(--bg); }
  .top-tel span { display: none; }
  .nav-tel { display: block; font-weight: 600; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .top-cta { display: none; }
  .brand { margin-right: auto; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; inset: auto; order: 2; height: 300px; }
  .hero::before { display: none; }
  .hero-copy { padding: 104px var(--pad) 32px; max-width: none; }
  .hero h1 { font-size: clamp(42px, 12vw, 48px); }
  .hero-actions { margin: 24px 0 32px; gap: 20px; }
  .stats div { padding: 0 12px; } .stats b { font-size: 17px; }
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 82%; scroll-snap-align: start; aspect-ratio: 1.2 / 1; }
  .cat-d { opacity: .92; transform: none; }
  .prods { gap: 10px; }
  .prod figcaption { padding: 10px; }
  .why { grid-template-columns: 1fr; }
  .why-media { min-height: 280px; height: 300px; grid-row: auto; }
  .why-copy { padding: 48px var(--pad) 8px; }
  .why-feats { grid-template-columns: 1fr; padding: 24px var(--pad) 56px; }
  .insp { grid-template-columns: 1fr; }
  .insp-copy { padding: 56px var(--pad) 28px; }
  .car { min-height: 0; aspect-ratio: 4 / 3.4; }
  .info { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta-media { position: relative; inset: auto; height: 220px; order: 2; }
  .cta::before { display: none; }
  .f-grid { grid-template-columns: 1fr; }
  .top-tel { margin-left: auto; width: 40px; height: 40px; justify-content: center; }
  .fab { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .foot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* paleta carpentrynearme */
:root {
  --bg: #F3F3F0; --bg-2: #E3E3DE; --card: #EBEBE7; --ink: #151515; --muted: #5F5F59;
  --dark: #151515; --line: #D4D4CE; --deep: #1A1A1A;
  --accent: #E2B21C; --accent-text: #7A5F00; --on-accent: #151515; --accent-on-deep: #F2C94C; --btn-bg: #E2B21C; --btn-text: #151515;
}
