@font-face { font-family: "Nephilm"; src: url("fonts/Nephilm.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Noir Pro"; src: url("fonts/NoirPro-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Noir Pro"; src: url("fonts/NoirPro-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noir Pro"; src: url("fonts/NoirPro-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }

:root {
  --navy: #1c355e;
  --navy-deep: #13253f;
  --cream: #efe1d4;
  --paper: #f8f3ed;
  --sand: #e0c5ac;
  --terra: #a8603f;
  --ink: #1d2433;
  --muted: #5d6474;
  --line: rgba(28, 53, 94, .14);
  --serif: "Nephilm", "Cormorant Garamond", Georgia, serif;
  --sans: "Noir Pro", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 300 17px/1.65 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6.4vw, 78px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--terra); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: 500 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: background .2s, color .2s; }
.btn:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--light:hover { background: #fff; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .3s, box-shadow .3s; }
.top.is-solid { background: rgba(248, 243, 237, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.top__logo img { height: 56px; width: auto; }
.top__logo .on-dark { display: block; } .top__logo .on-light { display: none; }
.top.is-solid .top__logo .on-dark { display: none; } .top.is-solid .top__logo .on-light { display: block; }
.top nav { display: flex; gap: 30px; align-items: center; }
.top nav a { font: 400 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #fff; }
.top.is-solid nav a { color: var(--navy); }
.top nav .btn { min-height: 42px; padding: 0 20px; background: transparent; border-color: currentColor; }
.top.is-solid nav .btn { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,37,63,.82) 0%, rgba(19,37,63,.55) 45%, rgba(19,37,63,.1) 80%), linear-gradient(180deg, rgba(19,37,63,.45) 0%, rgba(19,37,63,0) 30%, rgba(19,37,63,.55) 100%); }
.hero__in { position: relative; z-index: 1; padding: 150px 0 72px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--sand); }
.hero__sub { margin-top: 24px; font-size: clamp(18px, 1.7vw, 22px); max-width: 52ch; color: rgba(255,255,255,.9); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__proof { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: 14px; letter-spacing: .04em; color: rgba(255,255,255,.85); }
.hero__proof span::before { content: "·"; margin-right: 10px; color: var(--sand); }
.hero__caption { position: absolute; right: 20px; bottom: 18px; z-index: 1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

section { padding: clamp(80px, 11vw, 140px) 0; }

/* Identificação */
.pain { background: var(--paper); }
.pain__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.pain__list { list-style: none; border-top: 1px solid var(--line); }
.pain__list li { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 54px 1fr; gap: 10px; }
.pain__list b { font: 400 30px/1 var(--serif); color: var(--terra); }
.pain__list p { font-size: 18px; }
.pain__turn { margin-top: 34px; font: 400 clamp(24px, 2.4vw, 30px)/1.3 var(--serif); color: var(--navy); }

/* Serviços */
.services { background: var(--cream); }
.services__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.service { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:nth-child(even) .service__img { order: 2; }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.service:hover .service__img img { transform: scale(1.03); }
.service__num { font: 400 14px/1 var(--sans); letter-spacing: .2em; color: var(--terra); margin-bottom: 16px; }
.service p { margin-top: 18px; color: var(--muted); }
.service ul { margin-top: 22px; list-style: none; display: grid; gap: 10px; }
.service li { padding-left: 22px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--terra); }

/* Manifesto */
.manifesto { background: var(--navy); color: #fff; text-align: center; }
.manifesto h2 { color: #fff; max-width: 20ch; margin: 0 auto; }
.manifesto .eyebrow { color: var(--sand); }
.manifesto .lead { color: rgba(255,255,255,.78); margin: 26px auto 0; }
.pillars { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); text-align: left; }
.pillar { background: var(--navy); padding: 38px 32px; }
.pillar h3 { color: var(--sand); font-size: 28px; }
.pillar p { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 16px; }

/* Portfólio */
.gallery__head { margin-bottom: 48px; }
.gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.gallery__grid button { appearance: none; border: 0; padding: 0; margin: 0; background: var(--sand); font: inherit; display: block; cursor: zoom-in; overflow: hidden; position: relative; }
.gallery__grid button:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.gallery__grid button:hover img { transform: scale(1.04); }
.gallery__grid figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.gallery__grid .g1 { grid-column: span 7; grid-row: span 4; } .gallery__grid .g2 { grid-column: span 5; grid-row: span 2; } .gallery__grid .g3 { grid-column: span 5; grid-row: span 2; }
.gallery__grid .g4 { grid-column: span 4; grid-row: span 3; } .gallery__grid .g5 { grid-column: span 4; grid-row: span 3; } .gallery__grid .g6 { grid-column: span 4; grid-row: span 3; }
.gallery__grid .g7 { grid-column: span 5; grid-row: span 3; } .gallery__grid .g8 { grid-column: span 7; grid-row: span 3; }
.gallery__note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(13, 22, 38, .94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

/* Processo */
.process { background: var(--paper); scroll-margin-top: 60px; }
.steps { margin-top: 60px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { padding: 30px 24px 0 0; border-top: 1px solid var(--navy); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font: 400 40px/1 var(--serif); color: var(--terra); margin-bottom: 18px; }
.step h3 { font-size: 23px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Sobre */
.about { background: var(--cream); scroll-margin-top: 60px; }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about p + p { margin-top: 16px; }
.about__facts { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.about__facts div { padding: 22px 16px 0 0; }
.about__facts b { display: block; font: 400 36px/1 var(--serif); color: var(--navy); }
.about__facts span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* Para quem */
.fit__grid { margin-top: 54px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.fit__col { background: var(--paper); padding: 40px 36px; }
.fit__col h3 { font-size: 26px; margin-bottom: 20px; }
.fit__col ul { list-style: none; display: grid; gap: 14px; }
.fit__col li { padding-left: 30px; position: relative; }
.fit__col li::before { position: absolute; left: 0; top: 0; font-weight: 500; }
.fit__yes li::before { content: "✓"; color: var(--navy); }
.fit__no li::before { content: "×"; color: var(--terra); font-size: 20px; line-height: 1.2; }

/* Formulário */
.contact { background: var(--navy); color: #fff; scroll-margin-top: 40px; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--sand); }
.contact .lead { color: rgba(255,255,255,.78); margin-top: 22px; }
.contact__promise { margin-top: 34px; list-style: none; display: grid; gap: 14px; color: rgba(255,255,255,.85); }
.contact__promise li { padding-left: 26px; position: relative; }
.contact__promise li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 1px; background: var(--sand); }
.form { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 48px); }
.form__progress { height: 2px; background: var(--line); margin-bottom: 30px; }
.form__progress i { display: block; height: 100%; width: 0; background: var(--terra); transition: width .35s; }
.form__step { display: none; border: 0; }
.form__step.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.form legend { font: 400 26px/1.2 var(--serif); color: var(--navy); margin-bottom: 8px; }
.form__hint { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; padding: 16px 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; font-size: 16px; }
.opt span:hover { border-color: var(--navy); }
.opt input:checked + span { border-color: var(--navy); background: var(--cream); font-weight: 400; }
.opt input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font: 300 17px/1.4 var(--sans); padding: 15px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.form__nav { margin-top: 26px; display: flex; justify-content: space-between; gap: 12px; }
.form__nav .btn { flex: 1; }
.form__back { background: none; border: 0; color: var(--muted); font: 400 14px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.form__error { color: #b3261e; font-size: 14px; margin-top: 12px; min-height: 1em; }
.form__legal { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* FAQ */
.faq__list { margin-top: 50px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative; font: 400 22px/1.3 var(--serif); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font: 300 28px var(--sans); color: var(--terra); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 70ch; }

/* CTA final + rodapé */
.final { position: relative; color: #fff; text-align: center; padding: clamp(110px, 14vw, 180px) 0; }
.final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; background: rgba(19, 37, 63, .72); }
.final .wrap { position: relative; z-index: 1; }
.final h2 { color: #fff; max-width: 18ch; margin: 0 auto 34px; }
footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 56px 0 100px; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: center; }
.foot img { height: 54px; width: auto; }
.foot a { color: rgba(255,255,255,.8); }

/* Barra fixa mobile */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(248,243,237,.97); box-shadow: 0 -1px 0 var(--line); display: none; transform: translateY(110%); transition: transform .3s; }
.sticky.is-on { transform: none; }
.sticky .btn { width: 100%; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 980px) {
  .top nav a:not(.btn) { display: none; }
  .pain__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__img { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 24px 0 26px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__grid button { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery__grid .g1, .gallery__grid .g8 { grid-column: span 2 !important; grid-row: span 2 !important; }
  .fit__grid { grid-template-columns: 1fr; }
  .sticky { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .top__in { height: 64px; }
  .top__logo img { height: 36px; }
  .top nav .btn { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .hero__in { padding-bottom: 96px; }
  .hero__cta .btn { width: 100%; }
  .about__facts b { font-size: 28px; }
  .fit__col { padding: 30px 22px; }
  .faq summary { font-size: 19px; }
}

.services__note { margin-top: 48px; padding: 30px 0 0; border-top: 1px solid var(--line); max-width: 760px; font: 400 clamp(20px, 2vw, 25px)/1.4 var(--serif); color: var(--navy); }
.gallery__more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.gallery__more .gallery__note { margin-top: 0; }
@media (max-width: 560px) { .gallery__more .btn { width: 100%; } }

/* Galeria com troca esfumaçada */
.gallery__grid button img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease, transform 1s ease; }
.gallery__grid button img.is-on { opacity: 1; }
.gallery__grid figcaption { z-index: 1; transition: opacity .4s; }

/* WhatsApp: botão flutuante e botão verde */
.wa-float { position: fixed; right: 20px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); text-decoration: none; transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wa-float__tip { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink); font: 400 14px/1 var(--sans); padding: 10px 14px; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.14); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.btn__ico { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.btn__ico svg { width: 22px; height: 22px; }
@media (max-width: 980px) { .wa-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 54px; height: 54px; } .wa-float__tip { display: none; } }
