/* Tito Móveis V4 — "oficina premium": imbuia escura, trena amarela, branco MDF. */
:root {
  --imbuia: #1d1611;
  --imbuia-2: #2a211a;
  --tape: #f3c13a;
  --tape-dark: #d9a520;
  --mdf: #f1f0ec;
  --white: #ffffff;
  --freijo: #a5774a;
  --ink: #1d1611;
  --muted: #5d554e;
  --on-dark: #e9e2d8;
  --on-dark-muted: #b9aea1;
  --line: #d9d5cc;
  --wrap: 1200px;
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@font-face { font-family: "Gloock"; src: url("assets/fonts/gloock-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mdf); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 300; padding: 10px 14px; border-radius: 4px; background: var(--tape); color: var(--imbuia); font-weight: 800; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 22px; border-radius: 4px; font-weight: 800; font-size: 1rem; line-height: 1.1; transition: background-color .2s ease, border-color .2s ease; }
.btn-tape { background: var(--tape); color: var(--imbuia); }
.btn-tape:hover { background: var(--tape-dark); }
.btn-ghost { border: 1px solid rgba(233,226,216,.45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-lg { min-height: 60px; padding: 16px 28px; font-size: 1.05rem; }

/* Cabeçalho sobre o hero */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(29,22,17,.92); backdrop-filter: blur(10px); color: var(--on-dark); border-bottom: 1px solid rgba(233,226,216,.1); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.wordmark { margin-right: auto; font-family: var(--serif); font-size: 1.55rem; line-height: 1; color: var(--white); }
.wordmark span { color: var(--tape); }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; font-weight: 700; }
.main-nav > a:not(.nav-cta) { color: var(--on-dark-muted); }
.main-nav > a:not(.nav-cta):hover { color: var(--white); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 4px; background: var(--tape); color: var(--imbuia); font-weight: 800; }
.nav-cta:hover { background: var(--tape-dark); }
.header-wa, .menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--imbuia); color: var(--on-dark); }
.hero-photo { position: absolute; top: 0; right: 0; width: 60%; height: 100%; object-fit: cover; object-position: 50% 4%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--imbuia) 38%, rgba(29,22,17,.82) 55%, rgba(29,22,17,.35) 80%, rgba(29,22,17,.2)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding: 112px 0 132px; }
.hero-kicker { margin-bottom: 22px; color: var(--tape); font-weight: 700; font-size: 1rem; }
.hero h1 { max-width: 13em; font-size: clamp(2.7rem, 5.6vw, 4.9rem); line-height: 1.02; color: var(--white); }
.hero-lede { max-width: 34em; margin: 28px 0 40px; color: var(--on-dark); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Trena: faixa amarela com marcações de régua */
.tape { position: relative; z-index: 2; height: 54px; overflow: hidden; background:
  repeating-linear-gradient(90deg, var(--imbuia) 0 1.5px, transparent 1.5px 60px) top left / 100% 16px no-repeat,
  repeating-linear-gradient(90deg, var(--imbuia) 0 1px, transparent 1px 12px) top left / 100% 8px no-repeat,
  var(--tape); color: var(--imbuia); }
.tape-track { display: flex; width: max-content; height: 100%; align-items: flex-end; padding-bottom: 9px; animation: tape-run 60s linear infinite; }
.tape-track span { padding: 0 34px; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.tape-track span + span { border-left: 2px solid rgba(29,22,17,.55); }
@keyframes tape-run { to { transform: translateX(-50%); } }
.tape-static { height: 22px; }

/* Fatos */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 0; padding: 0; list-style: none; }
.facts-list li { display: flex; flex-direction: column; gap: 4px; padding: 30px 26px; border-left: 1px solid var(--line); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.facts-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.facts-list span { color: var(--muted); font-size: .95rem; }

/* Serviços em linhas */
.services { padding: 110px 0 100px; }
.services h2, .section-head h2, .maker h2, .faq h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
.service-list { margin: 48px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 1.1fr 1.3fr auto; align-items: baseline; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.service-row h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; }
.service-row p { max-width: 32em; color: var(--muted); }
.service-row a { justify-self: end; padding: 10px 0; border-bottom: 2px solid var(--tape-dark); font-weight: 800; font-size: .95rem; white-space: nowrap; }
.service-row a:hover { border-color: var(--ink); }

/* Antes e depois */
.before-after { padding: 110px 0; background: var(--imbuia); color: var(--on-dark); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head p { max-width: 26em; color: var(--muted); }
.before-after .section-head h2 { color: var(--white); }
.before-after .section-head p { color: var(--on-dark-muted); }
.pairs { display: grid; gap: 56px; max-width: 980px; margin: 0 auto; }
.pair { margin: 0; }
.pair-images { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair-shot { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--imbuia-2); }
.pair-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.tag { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 3px; background: rgba(29,22,17,.88); color: var(--on-dark); font-weight: 800; font-size: .85rem; }
.tag-after { background: var(--tape); color: var(--imbuia); }
.pair figcaption { margin-top: 14px; font-family: var(--serif); font-size: 1.3rem; color: var(--white); }

/* Quem faz + como funciona */
.maker { padding: 110px 0; background: var(--mdf); }
.maker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.maker-copy > p { margin: 24px 0 40px; max-width: 32em; color: var(--muted); font-size: 1.08rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 4px; padding: 18px 0 18px 64px; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tape); color: var(--imbuia); font-family: var(--serif); font-size: 1.3rem; }
.steps strong { font-size: 1.08rem; }
.steps span { color: var(--muted); }
.maker-photos { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 620px; }
.maker-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: 4px; }
.maker-photos .mp-1 { grid-row: 1 / 3; }
.maker-photos img { width: 100%; height: 100%; object-fit: cover; }
.maker-photos figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 3px; background: rgba(29,22,17,.85); color: var(--on-dark); font-size: .8rem; font-weight: 700; }

/* Trabalhos */
.works { padding: 110px 0; background: var(--white); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.work { position: relative; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; border-radius: 4px; background: var(--imbuia); cursor: zoom-in; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(29,22,17,.85)); }
.gallery-meta { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--white); font-family: var(--serif); font-size: 1.2rem; text-align: left; }
.gallery-meta .icon { color: var(--tape); }

/* Dúvidas */
.faq { padding: 110px 0; background: var(--mdf); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: var(--freijo); stroke-width: 2; stroke-linecap: round; transition: transform .2s ease; }
.faq-list details[open] .faq-plus { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 22px 0; color: var(--muted); }

/* Fechamento */
.closing { background: var(--imbuia); color: var(--on-dark); }
.closing-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding: 100px 0; }
.closing h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.04; color: var(--white); }
.closing-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.closing-side p { color: var(--on-dark-muted); font-size: 1.08rem; }
.closing-phone { color: var(--tape); font-weight: 700; }

.site-footer { padding: 28px 0 34px; background: #15100c; color: var(--on-dark-muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner strong { margin-right: 8px; color: var(--white); }
.footer-inner p:last-child { display: flex; gap: 18px; }
.footer-inner a { color: var(--tape); font-weight: 700; }

.floating-wa { display: none; }

/* Lightbox */
.gallery-dialog { width: min(920px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 4px; background: var(--imbuia); color: var(--white); }
.gallery-dialog::backdrop { background: rgba(15,11,8,.88); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(29,22,17,.7); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-content { display: grid; place-items: center; background: #120d0a; }
.dialog-content img { width: 100%; max-height: 72vh; object-fit: contain; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.dialog-count { color: var(--tape); font-weight: 800; font-size: .85rem; }
.dialog-footer h2 { margin-top: 4px; font-size: 1.5rem; }
.dialog-controls { display: flex; gap: 8px; }
.dialog-controls button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* Tablet */
@media (max-width: 980px) {
  .hero-photo { width: 100%; object-position: 50% 8%; }
  .hero::before { background: linear-gradient(180deg, rgba(29,22,17,.45), rgba(29,22,17,.78) 45%, rgba(29,22,17,.94) 80%); }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .facts-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .maker-grid, .faq-grid, .closing-inner { grid-template-columns: 1fr; gap: 48px; }
  .maker-photos { height: 520px; }
}

/* Celular */
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .wordmark { font-size: 1.4rem; }
  .header-wa { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tape); color: var(--imbuia); }
  .menu-toggle { display: block; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--on-dark); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 64px 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; background: var(--imbuia); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
  .main-nav[data-open="true"] { visibility: visible; opacity: 1; pointer-events: auto; }
  .main-nav > a:not(.nav-cta) { padding: 18px 4px; border-bottom: 1px solid rgba(233,226,216,.14); color: var(--on-dark); font-size: 1.15rem; }
  .main-nav .nav-cta { justify-content: center; margin-top: 20px; padding: 16px; font-size: 1.05rem; }

  .hero-inner { padding: 44px 0 52px; }
  .hero-kicker { margin-bottom: 16px; font-size: .92rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .hero-lede { margin: 18px 0 26px; font-size: 1.02rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .tape { height: 46px; }
  .tape-track { padding-bottom: 7px; }
  .tape-track span { padding: 0 22px; font-size: .88rem; }

  .facts-list li { padding: 20px 14px; }
  .facts-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts-list strong { font-size: 1.28rem; }
  .facts-list span { font-size: .86rem; line-height: 1.35; }

  .services, .before-after, .maker, .works, .faq { padding: 72px 0; }
  .service-list { margin-top: 32px; }
  .service-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .service-row a { justify-self: start; margin-top: 6px; }

  .section-head { display: block; margin-bottom: 32px; }
  .section-head p { margin-top: 12px; }
  .pairs { gap: 36px; }
  .pair-images { gap: 3px; }
  .pair-shot { aspect-ratio: 3 / 4; }
  .tag { top: 8px; left: 8px; padding: 4px 8px; font-size: .78rem; }
  .pair figcaption { margin-top: 10px; font-size: 1.12rem; }

  .maker-copy > p { margin: 18px 0 28px; }
  .maker-photos { height: 380px; gap: 6px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-meta { left: 10px; right: 10px; bottom: 10px; font-size: 1rem; }

  .faq-grid { gap: 28px; }
  .closing-inner { padding: 72px 0; gap: 28px; }
  .closing-side .btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 12px; }

  .floating-wa { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 12px 18px; border-radius: 999px; background: var(--tape); color: var(--imbuia); font-weight: 800; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
