/* ============ Projeto Lorenzato — v2 (roteiro do brief Word) ============ */

:root {
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --scale: 1.1;
  --maxw: 1180px;
}

/* ---------- Temas ---------- */
html[data-theme="galeria"] {
  --bg: #FAF9F5;
  --bg-alt: #F0EDE5;
  --card: #FFFFFF;
  --ink: #21201C;
  --ink-soft: #5C594F;
  --accent: #27583E;
  --accent-ink: #FFFFFF;
  --line: rgba(33, 32, 28, 0.14);
  --header-bg: rgba(250, 249, 245, 0.92);
}
html[data-theme="terroso"] {
  --bg: #F4ECDC;
  --bg-alt: #EADFC8;
  --card: #FBF6EA;
  --ink: #2B2015;
  --ink-soft: #6E5C44;
  --accent: #9E3D22;
  --accent-ink: #FBF4E8;
  --line: rgba(43, 32, 21, 0.16);
  --header-bg: rgba(244, 236, 220, 0.92);
}
html[data-theme="noturno"] {
  --bg: #161F1A;
  --bg-alt: #1D2A22;
  --card: #203027;
  --ink: #EFEAE0;
  --ink-soft: #ADA593;
  --accent: #D9A441;
  --accent-ink: #221A06;
  --line: rgba(239, 234, 224, 0.16);
  --header-bg: rgba(22, 31, 26, 0.92);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: calc(17px * var(--scale));
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background 0.4s ease, color 0.4s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- CARD 0 — hero de entrada (página cheia / seleção de idioma) ---------- */
.hero {
  position: relative;
  container-type: inline-size;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  background: #1a221c url("img/hero-telhados-srgb.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 22, 0.08) 0%, rgba(20, 28, 22, 0.16) 100%);
}
.hero::after {
  content: none;
}
.hero-logo {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 2;
  height: 42px;
  width: auto;
}
@media (max-width: 880px) {
  .hero-logo { top: 20px; right: 20px; height: 34px; }
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #FCFBF7;
}
.hero-inner h1 { margin: 0 0 40px; }
.hero h1 {
  font-size: clamp(34px, 11cqw, 96px);
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  max-width: 95cqw;
  margin: 0 0 40px;
  line-height: 1.06;
  text-shadow: 0 2px 24px rgba(20, 28, 22, 0.45);
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-btn {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 38px;
  min-height: 52px;
  border-radius: 999px;
  border: 1.5px solid rgba(252, 251, 247, 0.85);
  background: rgba(252, 251, 247, 0.96);
  color: #1E261F;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn.ghost {
  background: rgba(252, 251, 247, 0.96);
  color: #1E261F;
  border-color: rgba(252, 251, 247, 0.85);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-btn.ghost small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero .hero-ctas {
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 40px;
}
.hero .hero-ctas .cta { min-width: 0; }
.hero-credit {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.hero-credit image-slot {
  opacity: 0.92;
}

/* ---------- Cabeçalho persistente ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}
.site-header.visible { transform: translateY(0); }
.header-brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.header-ctas { display: flex; align-items: center; gap: 10px; }

.cta {
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cta.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.cta svg { flex: none; }

.cta.big {
  font-size: 18px;
  padding: 16px 40px;
  min-height: 56px;
}
.cta.big.wrap {
  white-space: normal;
  text-align: center;
  line-height: 1.45;
  max-width: 380px;
  padding: 20px 32px;
  border-radius: 28px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}
.lang-switch span,
.lang-switch a {
  padding: 6px 14px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}
.lang-switch .on { background: var(--ink); color: var(--bg); }
.lang-switch .off { color: var(--ink-soft); opacity: 0.7; cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease; }
.lang-switch .off:hover { opacity: 1; background: rgba(0,0,0,0.05); }

/* ---------- Barra inferior mobile ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-bar.visible { transform: translateY(0); }
.mobile-bar .cta.primary { flex: 1; justify-content: center; }
.icon-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
}

/* ---------- Seções ---------- */
.section { padding: clamp(40px, 5.5vw, 68px) 28px; }
.section.alt { background: var(--bg-alt); transition: background 0.4s ease; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.two-col.flip .col-text { order: 2; }
.two-col.flip .col-img { order: 1; }

.col-img img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}
.col-img.cover img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.section h2 .h2-dates {
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
  white-space: nowrap;
  margin-left: 14px;
}
.section p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}
.section p strong, .section li strong { color: var(--ink); font-weight: 600; }

.section ul.bullets {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.section ul.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.section ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cta-row .cta { min-width: 190px; }

/* ---------- Intro (Card 0a) — declaração grande ---------- */
.intro {
  text-align: center;
}
.intro .statement {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto 26px;
  text-wrap: pretty;
}
.intro p {
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
  font-size: calc(18px * var(--scale));
}

/* ---------- Destaques (Card 2) — linhas editoriais ---------- */
.highlights {
  margin: 34px 0 30px;
}
.highlight {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.highlight:first-child {
  border-top: 1px solid var(--line);
}
.highlight .hl-big {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 8px;
}
.highlight .hl-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

/* ---------- Callout (Card 5) ---------- */
.callout {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
  margin-top: 30px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  max-width: 44ch;
  text-wrap: pretty;
}

/* Slot de imagem placeholder nas seções */
.col-img image-slot {
  width: 100%;
  height: clamp(340px, 56vh, 560px);
}

/* ---------- Imagem sangrada na coluna ---------- */
.two-col.img-bleed { align-items: stretch; }
.col-img.bleed-col {
  margin-top: calc(-1 * clamp(64px, 9vw, 120px));
  margin-bottom: calc(-1 * clamp(64px, 9vw, 120px));
  margin-right: calc((min(var(--maxw), 100vw - 56px) - 100vw) / 2);
}
.col-img.bleed-col img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

/* ---------- Imagens full-bleed ---------- */
.bleed {
  position: relative;
  height: clamp(340px, 72vh, 760px);
  overflow: hidden;
}
.bleed img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Nota jurídica (Card 8) — texto corrido ---------- */
.legal-plain {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Etapas (Card 9) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 38px;
  counter-reset: flowstep;
}
.flow-step {
  position: relative;
  padding: 22px 18px 0 0;
  border-top: 1.5px solid var(--line);
}
.flow-step::before {
  counter-increment: flowstep;
  content: counter(flowstep, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.flow-step::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.flow-step h4 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- Tabela de valores ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: clamp(17px, 1.9vw, 20px);
}
.price-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 0 14px;
  border-bottom: 1.5px solid var(--ink);
}
.price-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.price-table td.price {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.price-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- FAQ (Card 12) ---------- */
.faq-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  max-width: 64ch;
}
.faq-item .faq-body p { margin: 0; }

/* ---------- Encerramento / contato ---------- */
.contact-section { text-align: center; }
.contact-section h2, .contact-section p { margin-left: auto; margin-right: auto; }
.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.contact-channels {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
}
.contact-channels a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.contact-channels a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Act Arte ---------- */
.act-logo-heading {
  height: clamp(48px, 6vw, 68px);
  width: auto;
  display: block;
  margin: 0 0 22px;
}
.act-section .act-contact {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 16px;
  color: var(--ink-soft);
}
.act-section .act-contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.act-section .act-contact a:hover { border-color: var(--accent); color: var(--accent); }
.act-contact.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.act-side {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}
@media (max-width: 880px) {
  .act-side { justify-content: flex-start; }
  .act-side .cta.big { width: 100%; justify-content: center; }
}

.footer {
  padding: 36px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Revelação ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  .site-header { padding: 10px 16px; }
  .header-ctas .cta { display: none; }
  .mobile-bar { display: flex; }
  main { padding-bottom: 86px; }

  .two-col, .two-col.flip { grid-template-columns: 1fr; gap: 34px; }
  .two-col.flip .col-text { order: 1; }
  .two-col.flip .col-img { order: 2; }
  .col-img.cover img { min-height: 0; height: auto; }

  .section { padding: 56px 22px; }
  .bleed { height: 58vh; }

  .col-img.bleed-col {
    margin: 0 -22px -56px;
  }
  .col-img.bleed-col img { height: 340px; }

  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-step {
    border-top: none;
    border-left: 1.5px solid var(--line);
    padding: 0 0 22px 20px;
  }
  .flow-step::after { top: 0; left: -5px; }
  .cta-row .cta { width: 100%; min-width: 0; justify-content: center; }
  .contact-list { flex-direction: column; align-items: stretch; }
  .contact-list .cta { justify-content: center; }
}
