/* =========================================================
   Atraso de Obra — Landing page
   Builds on colors_and_type.css (S&TADV tokens)
   ========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; }

/* Smooth in-page nav */
html { scroll-behavior: smooth; }

/* WhatsApp glyph sizing inside buttons / chips */
.wa-ico { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; }
.btn .wa-ico { margin-right: 2px; }

/* Generic CTA button refinements built on .btn ------------- */
.btn-wa {
  background: var(--gold);
  color: var(--paper);
  border-color: var(--gold);
}
.btn-wa:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-lg { padding: 18px 34px; font-size: 14px; }

/* =========================================================
   HEADER (slim, scroll-aware) — reuses .header tokens
   ========================================================= */
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.lp-header.scrolled {
  background: rgba(245, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-sm);
}
.lp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* At top (over dark hero scrim) — light header text; flips on scroll */
/* Brand name follows the exact same colors as the "Advogados" subtitle */
.lp-header .brand__name { color: var(--muted); }
.lp-header:not(.scrolled) .brand__name { color: var(--gold-soft); }
.lp-header:not(.scrolled) .brand__sub { color: var(--gold-soft); }
.lp-header:not(.scrolled) .lp-header__phone { color: rgba(250,246,238,0.8); }
.lp-header:not(.scrolled) .lp-header__phone:hover { color: var(--gold-soft); }
.lp-header__cta { display: inline-flex; align-items: center; gap: 22px; }
.lp-header__phone {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  text-decoration: none; transition: color var(--dur) var(--ease);
}
.lp-header__phone:hover { color: var(--gold); }
.lp-header .header__cta-btn { padding: 11px 20px; font-size: 11px; letter-spacing: 0.16em; }
/* Header WhatsApp button sits at its hover color by default */
.lp-header .header__cta-btn { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--paper); }
.lp-header .header__cta-btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

/* =========================================================
   HERO — Imagem dominante (full-bleed bg + overlaid card)
   ========================================================= */
.lp-hero {
  position: relative;
  padding: 150px 0 96px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.lp-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0;
}
.lp-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(31,21,13,0.62) 0%, rgba(31,21,13,0.12) 22%, transparent 40%),
    linear-gradient(90deg, rgba(31,21,13,0.86) 0%, rgba(31,21,13,0.62) 42%, rgba(31,21,13,0.12) 74%, rgba(31,21,13,0.04) 100%),
    radial-gradient(ellipse 60% 80% at 84% 10%, rgba(163,122,61,0.12), transparent 60%);
}
.lp-hero__inner { position: relative; z-index: 2; }
.lp-hero__card {
  background: var(--paper);
  border: 1px solid var(--gold-deep);
  box-shadow: var(--shadow-lg);
  padding: clamp(34px, 4vw, 56px);
  max-width: 600px;
}
.lp-hero__title {
  margin: 18px 0 20px;
  max-width: 15ch;
  font-size: clamp(36px, 4.4vw, 60px);
}
.lp-hero__title em { font-style: italic; color: var(--gold-deep); }
.lp-hero__lede { max-width: 46ch; margin: 0 0 32px; }
.lp-hero__ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-hero__micro {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 0; padding-top: 22px;
  border-top: 1px solid var(--rule);
  max-width: 46ch;
}
.lp-hero__micro span { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); }
.lp-hero__micro .dot { width: 6px; height: 6px; background: var(--gold); flex: 0 0 auto; }

/* =========================================================
   SECTION primitives (mirror site.css)
   ========================================================= */
.lp-section { padding: 104px 0; }
.lp-section--bg2 { background: var(--bg-2); }
.lp-section--paper { background: var(--paper); }
.lp-section--wood {
  background:
    radial-gradient(ellipse 54% 64% at 50% 4%, rgba(201,168,106,0.12), transparent 62%),
    var(--wood);
  color: var(--paper);
}
.lp-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; max-width: 760px; }
.lp-head--center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.lp-head h2 { margin: 0; max-width: 22ch; }
.lp-head--center h2 { max-width: 26ch; }
.lp-head p { margin: 0; max-width: 60ch; }
.lp-head em { font-style: italic; color: var(--gold-deep); }
.lp-section--wood .lp-head h2 { color: var(--paper); }
.lp-section--wood .lp-head em { color: var(--gold-soft); }
.lp-section--wood .lp-head p { color: rgba(250,246,238,0.74); }

.eyebrow--light { color: var(--gold-soft); }
.eyebrow--light::before { background: var(--gold-soft); }
/* eyebrow pill (leading rule) */
.eyebrow--pill { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow--pill::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lp-head--center .eyebrow--pill::before { display: none; }

/* closing line + CTA under a section */
.lp-closer {
  margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.lp-closer p {
  margin: 0; max-width: 56ch;
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.4; color: var(--ink-soft);
}
.lp-section--wood .lp-closer { border-top-color: rgba(201,168,106,0.3); }
.lp-section--wood .lp-closer p { color: rgba(250,246,238,0.86); }

/* =========================================================
   PROBLEM / RIGHTS — ledger grid of numbered tiles
   ========================================================= */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.lp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lp-tile {
  background: var(--paper);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 168px;
}
.lp-tile__num {
  font-family: var(--serif); font-weight: 500; font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.lp-tile__num::after { content: ""; width: 26px; height: 1px; background: var(--gold); }
.lp-tile p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.lp-tile strong {
  font-family: var(--serif); font-weight: 500; font-size: 19px;
  color: var(--ink); line-height: 1.25;
}
/* one dark tile for rhythm */
.lp-tile--dark { background: var(--wood); }
.lp-tile--dark strong { color: var(--paper); }
.lp-tile--dark p { color: rgba(250,246,238,0.74); }
.lp-tile--dark .lp-tile__num { color: var(--gold-soft); }
.lp-tile--dark .lp-tile__num::after { background: var(--gold-soft); }

/* =========================================================
   AUTHORITY — wood section, indicators + credibility list
   ========================================================= */
.lp-auth { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 72px; align-items: start; }
.lp-auth__lede {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4; color: rgba(250,246,238,0.84); margin: 18px 0 34px; max-width: 40ch;
}
.lp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--gold-deep); border: 1px solid var(--gold-deep);
}
.lp-stat { background: var(--wood); padding: 26px 18px; text-align: center; }
.lp-stat strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px); color: var(--gold-soft); line-height: 1; margin-bottom: 10px;
}
.lp-stat span {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(250,246,238,0.66); line-height: 1.4; display: block;
}
.lp-cred { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lp-cred li {
  display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid rgba(201,168,106,0.22);
  font-family: var(--sans); font-size: 15px; color: rgba(250,246,238,0.88);
}
.lp-cred li:last-child { border-bottom: 0; }
.lp-cred__mk { font-family: var(--serif); color: var(--gold-soft); font-size: 16px; }

/* =========================================================
   COMO FUNCIONA — numbered steps
   ========================================================= */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.lp-step { background: var(--bg); padding: 32px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.lp-step__num {
  font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1;
  color: var(--gold-deep); border-top: 1px solid var(--gold); padding-top: 12px; width: fit-content;
}
.lp-step h3 { margin: 0; font-size: 21px; }
.lp-step p { margin: 0; font-size: 14px; }
.lp-step__hint { margin-top: 4px; }
.lp-step__hint .lbl {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 10px;
}
.lp-step__hint ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.lp-step__hint li {
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft); line-height: 1.4;
  padding-left: 16px; position: relative;
}
.lp-step__hint li::before { content: "·"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.lp-step__msg {
  font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.45;
  color: var(--ink-soft); background: var(--paper); border-left: 2px solid var(--gold);
  padding: 12px 14px; margin: 2px 0 0;
}

/* =========================================================
   CONVERSION — highlighted WhatsApp block (paper inset on wood)
   ========================================================= */
.lp-convert__card {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--gold-deep);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  max-width: 880px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.lp-convert__icon {
  width: 64px; height: 64px; margin: 0 auto 22px;
  border: 1px solid var(--gold-deep); display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.lp-convert__icon .wa-ico { width: 32px; height: 32px; }
.lp-convert h2 { margin: 0 0 16px; }
.lp-convert h2 em { font-style: italic; color: var(--gold-deep); }
.lp-convert__lede { max-width: 52ch; margin: 0 auto 32px; font-size: 17px; }
.lp-convert__btns { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.lp-convert__send {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin: 38px 0 30px; text-align: left;
}
.lp-convert__send div { background: var(--paper); padding: 16px 18px; }
.lp-convert__send .lbl {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 6px;
}
.lp-convert__send .val { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.lp-convert__note {
  margin: 26px auto 0; max-width: 56ch;
  font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--muted);
}

/* =========================================================
   URGÊNCIA — bg2 split
   ========================================================= */
.lp-urgency__inner { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 64px; align-items: center; }
.lp-urgency__lede { font-size: 17px; margin: 18px 0 22px; max-width: 52ch; }
.lp-urgency__sub {
  font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45;
  color: var(--ink-soft); margin: 0 0 32px; max-width: 50ch;
}
.lp-urgency__aside {
  background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow-sm);
  padding: 36px 34px;
}
.lp-urgency__aside .num {
  font-family: var(--serif); font-weight: 500; font-size: 72px; line-height: 1;
  color: var(--gold-deep);
}
.lp-urgency__aside .lbl {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 12px 0 0; display: block;
}
.lp-urgency__aside hr { margin: 26px 0; }
.lp-urgency__aside p { margin: 0; font-size: 14px; }

/* =========================================================
   DOCUMENTOS — checklist columns
   ========================================================= */
.lp-docs__list {
  columns: 2; column-gap: 56px; margin: 0; padding: 0; list-style: none;
}
.lp-docs__list li {
  break-inside: avoid;
  display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 15px; color: var(--ink-soft);
}
.lp-docs__mk { font-family: var(--serif); color: var(--gold); font-size: 15px; }

/* =========================================================
   FAQ — accordion
   ========================================================= */
.lp-faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--rule); }
.lp-faq__item { border-bottom: 1px solid var(--rule); }
.lp-faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2vw, 24px);
  color: var(--ink); line-height: 1.25;
  transition: color var(--dur) var(--ease);
}
.lp-faq__q:hover { color: var(--gold-deep); }
.lp-faq__mk {
  flex: 0 0 auto; width: 18px; height: 18px; position: relative; margin-top: 6px;
}
.lp-faq__mk::before, .lp-faq__mk::after {
  content: ""; position: absolute; background: var(--gold); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.lp-faq__mk::before { left: 0; top: 50%; width: 18px; height: 1px; transform: translateY(-50%); }
.lp-faq__mk::after  { left: 50%; top: 0; width: 1px; height: 18px; transform: translateX(-50%); }
.lp-faq__item.open .lp-faq__mk::after { opacity: 0; transform: translateX(-50%) scaleY(0); }
.lp-faq__a { overflow: hidden; max-height: 0; transition: max-height var(--dur) var(--ease); }
.lp-faq__a p {
  margin: 0; padding: 0 64px 28px 0; max-width: 70ch; font-size: 16px; line-height: 1.65;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.lp-final { text-align: center; }
.lp-final h2 {
  color: var(--paper); margin: 0 auto 20px; max-width: 22ch;
  font-size: clamp(34px, 4.4vw, 60px);
}
.lp-final h2 em { font-style: italic; color: var(--gold-soft); }
.lp-final__lede {
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.45; color: rgba(250,246,238,0.84); max-width: 50ch; margin: 0 auto 36px;
}
.lp-final__btns { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.lp-final__note { margin: 28px auto 0; max-width: 52ch; font-size: 13px; color: rgba(250,246,238,0.6); }

/* btn variants on wood */
.lp-section--wood .btn-outline,
.lp-final .btn-outline { color: var(--paper); border-color: var(--gold-soft); }
.lp-section--wood .btn-outline:hover,
.lp-final .btn-outline:hover { background: var(--gold-soft); color: var(--wood); border-color: var(--gold-soft); }

/* =========================================================
   FOOTER
   ========================================================= */
.lp-footer { background: var(--ink); color: rgba(250,246,238,0.6); padding: 56px 0 30px; }
.lp-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.lp-footer .brand__name { color: var(--paper); }
.lp-footer .brand__sub { color: var(--gold-soft); }
.lp-footer__disc {
  max-width: 56ch; font-family: var(--sans); font-size: 12px; line-height: 1.6;
  color: rgba(250,246,238,0.55);
}
.lp-footer hr.rule { background: rgba(201,168,106,0.2); }
.lp-footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em; color: rgba(250,246,238,0.45);
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.lp-fab {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gold); color: var(--paper);
  border: 1px solid var(--gold-deep);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  transform: translateY(0);
}
.lp-fab:hover { background: var(--gold-deep); }
.lp-fab .wa-ico { width: 22px; height: 22px; }
.lp-fab__txt { white-space: nowrap; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .lp-grid, .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-auth { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 860px) {
  .lp-hero__card { max-width: none; }
  .lp-urgency__inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-section { padding: 76px 0; }
}
@media (max-width: 640px) {
  .lp-grid, .lp-grid--2, .lp-steps { grid-template-columns: 1fr; }
  .lp-docs__list { columns: 1; }
  .lp-header__phone { display: none; }
  .lp-hero { padding: 120px 0 64px; }
  .lp-hero__scrim {
    background:
      linear-gradient(180deg, rgba(31,21,13,0.5) 0%, rgba(31,21,13,0.78) 100%),
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(163,122,61,0.12), transparent 60%);
  }
  .lp-fab__txt { display: none; }
  .lp-fab { padding: 16px; }
  .lp-fab .wa-ico { width: 24px; height: 24px; }
  .lp-faq__a p { padding-right: 0; }
  .lp-closer { flex-direction: column; align-items: flex-start; }

  /* Buttons may wrap instead of overflowing the viewport */
  .btn { white-space: normal; text-align: center; }

  /* Hero CTAs stack full-width so the long label never clips */
  .lp-hero__ctas { flex-direction: column; align-items: stretch; gap: 16px; }
  .lp-hero__ctas .btn { width: 100%; }
  .lp-hero__ctas .btn-link { text-align: center; }
  .btn-lg { padding: 16px 22px; font-size: 13px; }

  /* Section-closer CTAs go full-width too */
  .lp-closer .btn { width: 100%; }

  /* Conversion / final CTA stacks */
  .lp-convert__btns .btn,
  .lp-final__btns .btn { width: 100%; }
}
