/* Página inicial: fotografia em preto quente, madeira e âmbar. Fontes SIL OFL, ver /fonts/OFL.txt. */
@font-face { font-family: "Red Hat Display"; font-weight: 600; font-display: swap; src: url("/fonts/red-hat-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 400; font-display: swap; src: url("/fonts/red-hat-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 500 600; font-display: swap; src: url("/fonts/red-hat-text-latin-500-normal.woff2") format("woff2"); }

:root {
  --white: #FFFDF9;
  --paper: #F6F3EC;
  --ink: #141210;
  --soft: #5C564E;
  --line: #DDD6C8;
  --on-dark: #F6F3EC;
  --soft-dark: #BDB5A9;
  --line-dark: #4A443D;
  --amber: #A6520A;
  --green: #25D366;
  --accent: #141210;
  --display: "Red Hat Display", system-ui, sans-serif;
  --sans: "Red Hat Text", system-ui, sans-serif;
  --width: 1120px;
  --side: clamp(22px, 5vw, 80px);
  --gap: 96px;
  --head: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.hero :focus-visible, .top :focus-visible, .dark :focus-visible, .foot :focus-visible { outline-color: #F2C078; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--width) + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }
.soft { color: var(--soft); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 99; padding: 8px 14px; background: var(--paper); }
.skip:focus-visible { top: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); font: 500 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .86; }
.btn:disabled { opacity: .6; cursor: default; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ghost { border-color: #fff; color: #fff; }

.top { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--head); color: #fff; }
.top::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .25s; }
.top.is-solid::before { opacity: 1; }
.top .wrap { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; text-decoration: none; }
.logo { display: block; width: 141px; height: 32px; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: .94rem; }
.nav a, .top__wa { text-decoration: none; }
.nav a:hover, .top__wa:hover { text-decoration: underline; }
.top__wa { font-weight: 500; font-size: .94rem; padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .35); }

.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; padding: calc(var(--head) + 40px) 0 clamp(96px, 20vh, 200px); background: var(--ink); color: #fff; }
.hero__bg { position: absolute; z-index: -2; inset: 0 -3% 0 0; background: url("/hero-java.webp") 72% 50% / cover no-repeat; transform-origin: 50% 50%; animation: settle 18s cubic-bezier(.2, .6, .3, 1) both, drift 22s ease-in-out 18s infinite; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(14, 13, 12, .72) 0%, rgba(14, 13, 12, .5) 55%, rgba(14, 13, 12, .3) 100%); }
.hero h1 { max-width: 19ch; font-size: clamp(2rem, 3.9vw, 3.1rem); line-height: 1.14; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__after { animation: appear .6s ease .12s both; }
.hero__sub { max-width: 48ch; margin: 18px 0 28px; font-size: 1.1rem; color: rgba(255, 255, 255, .85); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2%); } }
@keyframes rise { from { clip-path: inset(100% 0 0 0); transform: translateY(18px); } to { clip-path: inset(-10% -5% -15% -5%); transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

.band { background: var(--paper); }
.proof { list-style: none; margin: 0; padding: 40px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.proof b { display: block; font: 600 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof small { display: block; margin-top: 8px; max-width: 24ch; font-size: .93rem; line-height: 1.4; color: var(--soft); }

.block { padding-top: var(--gap); padding-bottom: 0; }
#servicos { padding-bottom: 0; }
#como-trabalho { padding-bottom: var(--gap); }
.block.band, .block.dark { padding-bottom: var(--gap); }
.title { margin-bottom: 48px; max-width: 18ch; }

.cases { overflow: hidden; }
.cases__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.cases .title { margin-bottom: 16px; }
.intro { margin: 0; max-width: 56ch; color: var(--soft); }
.arrows { display: flex; gap: 10px; flex: none; }
.arrow { width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font: 400 1.1rem/1 var(--sans); cursor: pointer; transition: opacity .2s; }
.arrow:disabled { opacity: .3; cursor: default; }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; }
.carousel.is-js { overflow: clip; touch-action: pan-y; cursor: grab; }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; transition: transform .4s cubic-bezier(.25, .7, .25, 1); }
.track.is-drag { transition: none; cursor: grabbing; user-select: none; }
.card { flex: 0 0 calc((100% - 48px) / 3); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); scroll-snap-align: start; }
.card__photo { height: 270px; overflow: hidden; background: var(--ink); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card__body { padding: 20px 22px 24px; }
.card__kicker { margin: 0 0 6px; font: 600 1.3rem/1.2 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card__body p:last-child { margin: 0; color: var(--soft); font-size: .94rem; line-height: 1.6; }

.services { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.offer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--soft); cursor: pointer; transition: color .2s; }
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer.is-on { color: var(--ink); border-top-color: var(--ink); }
.offer h3 { margin-bottom: 8px; }
.offer h3 button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.offer p { margin-bottom: 12px; }
.offer ul { margin: 0; padding-left: 1.1em; line-height: 1.5; }
.offer li { margin-top: 4px; }
.offer__img { display: none; }
.stage { position: sticky; top: calc(var(--head) + 24px); aspect-ratio: 4 / 3.9; overflow: hidden; background: var(--ink); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.stage img.is-on { opacity: 1; }

.warranty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding-top: 56px; border-top: 1px solid var(--ink); }
.warranty p { font-size: 1.1rem; margin: 0; max-width: 52ch; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font: 600 1.7rem/1 var(--display); color: var(--amber); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--soft); margin: 0; }

.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about h2 { margin-bottom: 28px; }
.about p { max-width: 56ch; }
.about__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.tech { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--soft); font-size: 1rem; }

.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font: 600 1.1rem/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 30px; max-width: 66ch; color: var(--soft); }
.faq details[open] p { animation: open .2s ease both; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.dark { background: var(--ink); color: var(--on-dark); }
.dark .intro { margin: -28px 0 48px; color: var(--soft-dark); }
.close { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.lead-form { display: grid; gap: 26px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.lead-form label { display: block; font-size: 1rem; color: var(--soft); }
.lead-form label > input, .lead-form label > textarea { display: block; margin-top: 4px; }
.lead-form__consent > input { display: inline-block !important; margin-top: 4px !important; }
.lead-form input, .lead-form textarea { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--soft); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.0625rem; }
.lead-form input:focus, .lead-form textarea:focus { border-bottom: 2px solid var(--accent); padding-bottom: 7px; }
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form__consent { display: flex !important; gap: 12px !important; align-items: flex-start; }
.lead-form__consent input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.lead-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { justify-self: start; }
.lead-form__msg { margin: 0; min-height: 1.4em; }
.dark .lead-form label { color: var(--soft-dark); }
.dark .lead-form input, .dark .lead-form textarea { color: var(--on-dark); border-bottom-color: #8C847A; }
.dark .lead-form input:focus, .dark .lead-form textarea:focus { border-bottom-color: #fff; }
.dark .lead-form__consent input { accent-color: #F2C078; }
.dark .btn--primary { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.direct { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.direct p { margin-bottom: 18px; }
.direct .big { font: 600 1.2rem/1.4 var(--display); }

.foot { background: var(--ink); color: var(--soft-dark); padding: 0 0 80px; font-size: .92rem; }
.foot p { margin: 0; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 6px 22px; }

.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); transition: transform .2s; }
.wa:hover { transform: scale(1.07); }
.wa svg { width: 33px; height: 33px; fill: currentColor; }
body:has(.cookie-banner:not([hidden])) .wa { bottom: 70px; }

/* aviso de cookies: barra fina no rodapé da janela */
.cookie-banner { position: fixed; inset: auto 0 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 8px 22px; padding: 8px var(--side); background: var(--paper); border-top: 1px solid var(--ink); font-size: .88rem; line-height: 1.35; }
.cookie-banner p { margin: 0; }
.cookie-banner__actions { display: flex; gap: 8px; flex: none; }
.cookie-banner .btn { min-height: 36px; padding: 0 16px; font-size: .92rem; }

.cookie-banner { color: var(--ink); }
@media (min-width: 641px) { body:has(.cookie-banner:not([hidden])) .hero { padding-bottom: max(104px, 15vh); } }

@media (max-width: 980px) {
  :root { --gap: 64px; }
  .nav { display: none; }
  .top__wa { border-left: 0; padding-left: 0; }
  .proof { grid-template-columns: 1fr 1fr; padding: 44px 0; gap: 32px 20px; }
  .warranty, .close, .about { grid-template-columns: 1fr; }
  .warranty { gap: 22px; }
  .card { flex-basis: calc((100% - 24px) / 2); }
  .card__photo { height: 240px; }
  .services { grid-template-columns: 1fr; }
  .stage { display: none; }
  .offer { cursor: default; color: var(--ink); }
  .offer__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }
  .offer h3 button { cursor: default; }
  .about__photo { aspect-ratio: 4 / 3; }
  .title { margin-bottom: 40px; }
  .direct { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding-bottom: 96px; }
  body:has(.cookie-banner:not([hidden])) .hero { padding-bottom: 204px; }
  .hero h1 { font-size: 1.9rem; line-height: 1.18; }
  .hero__sub { font-size: 1rem; margin: 14px 0 22px; }
  .actions .btn { width: 100%; }
  .proof b { font-size: 1.65rem; }
  .proof b.words { font-size: 1.35rem; line-height: 1.35; }
  .cases__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  .card { flex-basis: 100%; }
  .card__photo { height: auto; aspect-ratio: 4 / 3; }
  .card__body { min-height: 0; padding: 20px 20px 26px; }
  .lead-form__row { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 60px minmax(0, 1fr); gap: 8px 14px; }
  .steps .n { font-size: 1.4rem; }
  .steps p { grid-column: 2; }
  .cookie-banner { flex-direction: column; align-items: stretch; padding-block: 8px; font-size: .82rem; }
  .cookie-banner__actions .btn { flex: 1; }
  .wa { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  body:has(.cookie-banner:not([hidden])) .wa { bottom: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
