/* ==========================================================================
   Planejado SP: Página de ambiente (conversão e captação de leads)
   Carregada depois de styles.css. Reaproveita tokens, botões, formulário e FAQ.
   ========================================================================== */

/* --------------------------------------------------------------------------
   2. Primeira dobra: promessa + formulário
   -------------------------------------------------------------------------- */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--sp-10) var(--sp-12);
  border-radius: 0 0 0 var(--r-hero);
  background: var(--c-dark);
  color: var(--c-inverse);
}

.lp-hero__bg {
  position: absolute;
  inset: -20px;
  z-index: -4;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  object-position: center center;
  transform: scaleX(-1);
  filter: blur(20px);
  opacity: 0.7;
  pointer-events: none;
}

.lp-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.lp-hero__blur,
.lp-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-hero__blur {
  z-index: -2;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .lp-hero__blur::before,
  .lp-hero__blur::after {
    content: "";
    position: absolute;
    inset: 0;
  }

  .lp-hero__blur::before {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 45%, transparent 90%);
    mask-image: linear-gradient(0deg, #000 0%, #000 45%, transparent 90%);
  }

  .lp-hero__blur::after {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(0deg, #000 0%, #000 70%, transparent 100%);
  }
}

.lp-hero__scrim {
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgba(var(--c-scrim), 0.94) 0%,
    rgba(var(--c-scrim), 0.88) 55%,
    rgba(var(--c-scrim), 0.7) 100%
  );
}

.lp-hero__grid {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

.lp-hero__text h1 {
  max-width: 17ch;
  font-size: clamp(2.2rem, 8.4vw, 3.1rem);
  line-height: 1.04;
}

.lp-hero__lead {
  max-width: 50ch;
  margin-top: var(--sp-5);
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.lp-hero__note {
  margin-top: var(--sp-6);
  max-width: 48ch;
  color: var(--c-inverse-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.lp-form {
  width: 100%;
  max-width: 480px;
  justify-self: center;
  padding: var(--sp-6);
}

.lp-form .field label {
  margin-bottom: 6px;
}

.lp-form .field input,
.lp-form .field select {
  min-height: 50px;
}

.lp-form .lead-form__intro {
  margin-top: 6px;
}

.lp-form h2,
.lp-form .lp-form__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lp-form .lead-form__fields {
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.lp-form .btn {
  margin-top: var(--sp-4);
}

.lp-form__safe {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  color: var(--c-text-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.lp-form__safe .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--c-success);
}

.lp-form__alt {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}

.lp-form__alt a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  color: var(--c-accent-hover);
  font-weight: 700;
}

.lp-form__alt .icon {
  width: 20px;
  height: 20px;
}

/* Celular: o formulário precisa aparecer já na primeira tela */
@media (max-width: 767.98px) {
  .lp-hero {
    padding-block: var(--sp-6) var(--sp-8);
  }

  .lp-hero__note {
    display: none;
  }

  .lp-hero__lead {
    margin-top: var(--sp-3);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .lp-hero__text h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.4rem);
  }

  .lp-hero .eyebrow {
    margin-bottom: var(--sp-3);
  }

  .lp-hero__grid {
    gap: var(--sp-6);
  }
}

@media (min-width: 768px) {
  .lp-form {
    padding: var(--sp-8);
  }

  .lp-hero .lp-form {
    padding: var(--sp-6) var(--sp-8);
  }

  .lp-hero {
    padding-block: var(--sp-16);
  }

  .lp-hero__text h1 {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
  }
}

@media (min-width: 1024px) {
  .lp-hero {
    min-height: 640px;
    display: flex;
    align-items: center;
  }

  .lp-hero__grid {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--sp-16);
  }

  .lp-form {
    justify-self: end;
  }

  .lp-hero__media {
    left: auto;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  }

  .lp-hero__blur::before {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 62%);
    mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 62%);
  }

  .lp-hero__blur::after {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 70%);
    mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 70%);
  }

  .lp-hero__scrim {
    background: linear-gradient(
      90deg,
      rgba(var(--c-scrim), 0.94) 0%,
      rgba(var(--c-scrim), 0.84) 40%,
      rgba(var(--c-scrim), 0.45) 62%,
      rgba(var(--c-scrim), 0.1) 82%,
      transparent 100%
    );
  }
}

/* Hero: altura mínima padrão (a da home), nunca menor que o conteúdo.
   styles.css fixa a altura em clamp(600px, 88svh, 720px); com formulário (texto e form
   empilhados no celular e no tablet, ou tela baixa no desktop) isso cortava o título. */
.lp-hero {
  height: auto;
  min-height: 780px;
}

@media (min-width: 768px) {
  .lp-hero {
    /* o cabeçalho fica sobre o topo da hero: o conteúdo começa abaixo dele */
    padding-top: calc(var(--header-h) + var(--sp-6));
    min-height: 860px;
  }
}

/* Celular: a imagem da capa aparece quase inteira na parte de cima. O degradê e o desfoque
   deixam de cobrir a capa toda e passam a acompanhar só o bloco de texto (que fica embaixo):
   ::before desfoca e ::after escurece, começando à altura do texto e sumindo para cima. */
@media (max-width: 767.98px) {
  .lp-hero {
    --hero-fade: 150px;
  }

  .lp-hero__grid {
    position: relative;
  }

  .lp-hero__grid::before,
  .lp-hero__grid::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    width: 100vw;
    top: calc(var(--hero-fade) * -1);
    bottom: -240px;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .lp-hero__grid::before {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--hero-fade) * 0.9), #000 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--hero-fade) * 0.9), #000 100%);
  }

  .lp-hero__grid::after {
    background: linear-gradient(
      180deg,
      rgba(var(--c-scrim), 0) 0,
      rgba(var(--c-scrim), 0.14) calc(var(--hero-fade) * 0.3),
      rgba(var(--c-scrim), 0.42) calc(var(--hero-fade) * 0.6),
      rgba(var(--c-scrim), 0.74) calc(var(--hero-fade) * 0.85),
      rgba(var(--c-scrim), 0.88) var(--hero-fade),
      rgba(var(--c-scrim), 0.93) 100%
    );
  }

  /* o desfoque geral some; o escurecimento geral vira só um véu leve (topo um pouco mais fechado, por causa do cabeçalho) */
  .lp-hero__blur {
    display: none;
  }

  .lp-hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(var(--c-scrim), 0.34) 0,
      rgba(var(--c-scrim), 0.08) 24%,
      rgba(var(--c-scrim), 0.04) 100%
    );
  }

  .lp-hero h1,
  .lp-hero [class$="__lead"] {
    text-shadow: 0 1px 14px rgba(var(--c-scrim), 0.55);
  }
}

/* Desktop: altura única em todas as páginas */
@media (min-width: 1024px) {
  .lp-hero {
    min-height: 820px;
  }

  .lp-hero__text h1 {
    max-width: 24ch;
    font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  }
}

/* --------------------------------------------------------------------------
   5. Chamadas intermediárias
   -------------------------------------------------------------------------- */
.lp-strip {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-12);
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: var(--c-dark);
  color: var(--c-inverse);
}

.lp-strip p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lp-strip span {
  display: block;
  margin-top: var(--sp-2);
  color: var(--c-inverse-2);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .lp-strip {
    grid-template-columns: 1fr auto;
    gap: var(--sp-8);
    padding: var(--sp-8) var(--sp-10);
  }
}

/* --------------------------------------------------------------------------
   6. Layouts de cozinha (abas)
   -------------------------------------------------------------------------- */
.lp-tabs {
  display: flex;
  gap: var(--sp-2);
  margin: 0 calc(var(--gutter) * -1) var(--sp-6);
  padding: 0 var(--gutter) var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.lp-tabs::-webkit-scrollbar {
  display: none;
}

.lp-tab {
  flex: none;
  min-height: 48px;
  padding: 0 var(--sp-5);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.lp-tab:hover {
  border-color: var(--c-accent);
}

.lp-tab[aria-selected="true"] {
  border-color: var(--c-dark);
  background: var(--c-dark);
  color: var(--c-inverse);
}

.lp-layout {
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.lp-layout + .lp-layout {
  margin-top: var(--sp-4);
}

.lp-layout[hidden] {
  display: none;
}

.lp-plan {
  margin: 0;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--c-tint);
}

.lp-plan svg {
  width: 100%;
  height: auto;
}

.plan__room {
  fill: var(--c-surface);
  stroke: var(--c-border-strong);
  stroke-width: 2;
}

.plan__cab {
  fill: var(--c-dark);
}

.plan__island {
  fill: var(--c-accent);
}

.plan__stool {
  fill: var(--c-accent-soft);
}

.plan__fix {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.5;
}

.plan__zone {
  fill: none;
  stroke: var(--c-border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.plan__door {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.5;
}

.plan__label {
  fill: var(--c-text-2);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Halo na cor do fundo: o rótulo continua legível quando cai sobre um móvel escuro ou sobre a ilha. */
  paint-order: stroke;
  stroke: var(--c-surface);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.lp-layout__body h3 {
  font-size: 1.5rem;
}

.lp-layout__body > p {
  margin-top: var(--sp-3);
  color: var(--c-text-2);
}

.lp-layout__facts {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.lp-layout__facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.lp-layout__facts dd {
  margin: 2px 0 0;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.lp-layout__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-6);
}

@media (min-width: 768px) {
  .lp-tabs {
    margin-inline: 0;
    padding-inline: 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  .lp-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--sp-10);
    align-items: center;
    padding: var(--sp-8);
  }
}

/* --------------------------------------------------------------------------
   7. Preço e padrões
   -------------------------------------------------------------------------- */
.lp-tiers {
  display: grid;
  gap: var(--sp-4);
}

.lp-tier {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.lp-tier__tag {
  color: var(--c-accent);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-tier h3 {
  margin-top: var(--sp-2);
  font-size: 1.6rem;
}

.lp-tier__price {
  margin-top: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.lp-tier__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lp-tier__price span {
  display: block;
  min-height: 3.5em;
  margin-top: 2px;
  color: var(--c-text-2);
  font-size: 0.8125rem;
}

.lp-tier ul {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.lp-tier li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.lp-tier li .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--c-accent);
}

.lp-tier li b {
  font-weight: 700;
}

.lp-drivers {
  margin-top: var(--sp-10);
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: var(--c-tint);
}

.lp-drivers h3 {
  font-size: 1.25rem;
}

.lp-drivers ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.lp-drivers li {
  padding: 8px 14px;
  border: 1px solid var(--c-border-strong);
  /* raio fixo: em uma linha continua pílula; se quebrar, vira retângulo arredondado (nunca elipse) */
  border-radius: 20px;
  line-height: 1.45;
  background: var(--c-surface);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Lista de frases (itens longos, marcados por tools/drivers-frases.js): cartões empilhados, não pílulas */
.lp-drivers--frases ul {
  display: grid;
  gap: var(--sp-3);
}

.lp-drivers--frases li {
  position: relative;
  padding: 14px 16px 14px 38px;
  border-color: var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.lp-drivers--frases li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: calc(14px + 0.775em - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}

@media (max-width: 767.98px) {
  .lp-drivers {
    padding: var(--sp-5) var(--sp-4);
  }

  .lp-drivers h3 {
    padding-inline: var(--sp-1);
  }
}

/* Páginas de segmento (empresas/<segmento>/): texto curto entre o título e os subtipos */
.lp-drivers--tipos p {
  max-width: 72ch;
  margin-top: var(--sp-2);
  color: var(--c-text-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.lp-note {
  margin-top: var(--sp-4);
  max-width: 78ch;
  color: var(--c-text-2);
  font-size: 0.8125rem;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .lp-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
  }

  .lp-drivers {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: var(--sp-8);
    align-items: center;
    padding: var(--sp-8);
  }

  .lp-drivers ul {
    margin-top: 0;
  }

  .lp-drivers--tipos,
  .lp-drivers--frases { align-items: start; }
  .lp-drivers--tipos p { margin-top: 0; }
  .lp-drivers--tipos p + ul { margin-top: var(--sp-4); }
}

/* --------------------------------------------------------------------------
   8. Comparativo e ficha do móvel
   -------------------------------------------------------------------------- */
.lp-compare {
  display: grid;
  gap: var(--sp-4);
}

.lp-compare__col {
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.lp-compare__col--us {
  border-color: var(--c-dark);
  box-shadow: var(--shadow-subtle);
}

.lp-compare__col h3 {
  font-size: 1.35rem;
}

.lp-compare__col dl {
  display: grid;
  gap: var(--sp-4);
  margin: var(--sp-5) 0 0;
}

.lp-compare__col dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

.lp-compare__col dd {
  margin: 2px 0 0;
  font-size: var(--fs-small);
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .lp-compare {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
  }

  .lp-compare__col h3 {
    min-height: 2.5em;
  }
}

.lp-compare__col > p {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--c-text-2);
}

@media (min-width: 768px) {
  .lp-compare.lp-compare--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lp-spec {
  display: grid;
  gap: var(--sp-4);
}

.lp-spec__item {
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
}

.lp-spec__item .icon {
  width: 28px;
  height: 28px;
  color: var(--c-accent);
}

.lp-inside {
  margin-top: var(--sp-16);
}

.lp-inside > h3 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.15;
}

.lp-inside__lead {
  max-width: 62ch;
  margin: var(--sp-3) 0 var(--sp-8);
  color: var(--c-text-2);
}

.lp-spec__item h3,
.lp-spec__item h4 {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
}

/* Título do card como h3 (tools/semantica.js), com a mesma aparência do antigo h4 */
.lp-spec__item h3 {
  margin-bottom: 1.33em;
  line-height: inherit;
  letter-spacing: normal;
}

.lp-spec__item p {
  margin-top: var(--sp-2);
  color: var(--c-text-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .lp-spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lp-spec {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-spec--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lp-callout {
  margin-top: var(--sp-8);
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--c-tint);
  font-size: var(--fs-small);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   9. Como funciona (linha do tempo)
   -------------------------------------------------------------------------- */
.lp-flow {
  display: grid;
  gap: var(--sp-4);
  counter-reset: flow;
}

.lp-flow__step {
  position: relative;
  padding: var(--sp-6) var(--sp-6) var(--sp-6) 76px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  counter-increment: flow;
}

.lp-flow__step::before {
  content: counter(flow);
  position: absolute;
  left: var(--sp-6);
  top: var(--sp-5);
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--c-accent);
}

.lp-flow__step h3 {
  font-size: 1.25rem;
}

.lp-flow__step p {
  margin-top: var(--sp-2);
  color: var(--c-text-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.lp-flow__calm {
  display: inline-block;
  margin-top: var(--sp-3);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--c-tint);
  color: var(--c-accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .lp-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lp-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   10. Projetos
   -------------------------------------------------------------------------- */
.lp-works {
  display: grid;
  gap: var(--sp-4);
}

.lp-work {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-subtle);
}

.lp-work img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
}

.lp-work figcaption {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
}

.lp-work figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
}

.lp-work figcaption span {
  display: block;
  margin-top: var(--sp-2);
  color: var(--c-text-2);
  font-size: var(--fs-small);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .lp-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }
}

/* --------------------------------------------------------------------------
   11. Garantia e contrato
   -------------------------------------------------------------------------- */
.lp-guarantee {
  background: var(--c-dark);
  color: var(--c-inverse);
}

.lp-guarantee__grid {
  display: grid;
  gap: var(--sp-10);
}

.lp-guarantee h2 {
  max-width: 16ch;
}

.lp-guarantee__lead {
  max-width: 48ch;
  margin-top: var(--sp-5);
  color: var(--c-inverse-2);
}

.lp-guarantee .btn {
  margin-top: var(--sp-8);
}

.lp-clauses {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lp-clauses li {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.5;
}

.lp-clauses .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--c-accent-soft);
}

.lp-clauses b {
  display: block;
  font-weight: 700;
}

.lp-clauses span {
  display: block;
  margin-top: 2px;
  color: var(--c-inverse-2);
  font-size: var(--fs-small);
}

/* .lp-clauses nasceu para a seção escura de garantia (texto claro). As páginas
   institucionais a usam em seções CLARAS, onde o texto claro ficava quase
   invisível; fora de .lp-guarantee ela usa as cores de texto e de borda do tema. */
.section:not(.lp-guarantee) .lp-clauses {
  border-top-color: var(--c-border-strong);
}

.section:not(.lp-guarantee) .lp-clauses li {
  border-bottom-color: var(--c-border-strong);
  color: var(--c-text);
}

.section:not(.lp-guarantee) .lp-clauses .icon {
  color: var(--c-accent);
}

.section:not(.lp-guarantee) .lp-clauses span {
  color: var(--c-text-2);
}

@media (min-width: 1024px) {
  .lp-guarantee__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--sp-20);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   12. Checklist de comparação (captura secundária)
   -------------------------------------------------------------------------- */
.lp-check {
  display: grid;
  gap: var(--sp-8);
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.lp-check h2 {
  font-size: clamp(1.75rem, 6vw, 2.3rem);
}

.lp-check__lead {
  margin-top: var(--sp-3);
  color: var(--c-text-2);
}

.lp-check__list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  counter-reset: chk;
}

.lp-check__list li {
  position: relative;
  padding-left: 40px;
  font-size: var(--fs-small);
  line-height: 1.55;
  counter-increment: chk;
}

.lp-check__list li::before {
  content: counter(chk);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-accent-hover);
  font-size: 0.75rem;
  font-weight: 800;
}

.lp-check details {
  margin-top: var(--sp-4);
}

.lp-check summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  color: var(--c-accent-hover);
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.lp-check summary::-webkit-details-marker {
  display: none;
}

.lp-check details[open] summary .icon {
  transform: rotate(45deg);
}

.lp-check details .lp-check__list {
  margin-top: var(--sp-3);
  counter-reset: chk 8;
}

.lp-check__form {
  align-self: start;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: var(--c-tint);
}

.lp-check__form .lp-form__title {
  font-size: 1.3rem;
}

.lp-check__form p {
  margin-top: var(--sp-2);
  color: var(--c-text-2);
  font-size: var(--fs-small);
}

.lp-check__form .lead-form__fields {
  margin-top: var(--sp-5);
}

@media (min-width: 1024px) {
  .lp-check {
    grid-template-columns: 7fr 5fr;
    gap: var(--sp-12);
    padding: var(--sp-10);
  }

  .lp-check__list--cols {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* O formulário compacto dentro de fundo claro não tem sombra própria */
.lp-check__form.lead-form {
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   13. FAQ por objeção
   -------------------------------------------------------------------------- */
.lp-faq__group + .lp-faq__group {
  margin-top: var(--sp-8);
}

.lp-faq__title {
  margin-bottom: var(--sp-2);
  color: var(--c-accent);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-faq__group .faq__list {
  border-top: 1px solid var(--c-border-strong);
}

/* --------------------------------------------------------------------------
   14. Chamada final
   -------------------------------------------------------------------------- */
.lp-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--c-dark);
  color: var(--c-inverse);
}

.lp-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(23, 96, 108, 0.55), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(23, 96, 108, 0.35), transparent 70%);
}

.lp-final__grid {
  display: grid;
  gap: var(--sp-10);
}

.lp-final h2 {
  max-width: 14ch;
}

.lp-final__lead {
  max-width: 46ch;
  margin-top: var(--sp-5);
  color: var(--c-inverse-2);
}

.lp-final__alt {
  margin-top: var(--sp-8);
}

@media (min-width: 1024px) {
  .lp-final__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-20);
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   15. Outros ambientes e rodapé enxuto
   -------------------------------------------------------------------------- */
.lp-area {
  margin-top: var(--sp-8);
  color: var(--c-text-2);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   17. Movimento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero__text > * {
    animation: rise 700ms var(--ease) both;
  }

  .lp-hero__text > :nth-child(2) {
    animation-delay: 70ms;
  }

  .lp-hero__text > :nth-child(3) {
    animation-delay: 140ms;
  }

  .lp-hero__text > :nth-child(4) {
    animation-delay: 210ms;
  }

  .lp-hero .lp-form {
    animation: rise 800ms var(--ease) 160ms both;
  }

  .lp-layout:not([hidden]) {
    animation: lp-swap 320ms var(--ease) both;
  }

  @keyframes lp-swap {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

/* Acabamento */
.lp-final .lp-area {
  color: var(--c-inverse-2);
}

@media (min-width: 1024px) {
  .lp-spec--4 .lp-spec__item h3,
  .lp-spec--4 .lp-spec__item h4 {
    min-height: 2.6em;
  }
}

/* ---------------------------------------------------------------------------
   Páginas filhas de layout (/ambientes/cozinhas/<layout>/)
   --------------------------------------------------------------------------- */

/* Trilha de navegação, logo abaixo do cabeçalho */
.lp-crumbs {
  padding: var(--sp-4) 0 0;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}

.lp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-crumbs li + li::before {
  content: "›";
  margin-right: var(--sp-2);
  color: var(--c-border-strong);
}

.lp-crumbs a {
  color: inherit;
}

.lp-crumbs [aria-current="page"] {
  color: var(--c-text);
  font-weight: 600;
}

/* Comparativo de duas colunas: funciona quando × pense duas vezes */
@media (min-width: 1024px) {
  .lp-compare--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lp-compare__col--watch {
  border-color: var(--c-border-strong);
  background: var(--c-bg);
}

/* Links para os outros layouts do mesmo hub */
.lp-siblings {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .lp-siblings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lp-siblings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lp-siblings a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 100%;
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

.lp-siblings a:hover {
  border-color: var(--c-dark);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

.lp-siblings b {
  display: block;
  font-weight: 600;
}

.lp-siblings span span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}

.lp-siblings .icon {
  flex: none;
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   8. Páginas de Serviços Locais: Modelos Consolidados e Bairros Atendidos
   -------------------------------------------------------------------------- */
.lp-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.lp-model-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.lp-model-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-dark);
  box-shadow: var(--shadow-subtle);
}

.lp-model-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--c-brand);
  margin-bottom: var(--sp-2);
}

.lp-model-card__lead {
  color: var(--c-text-2);
  font-size: var(--fs-small);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

.lp-model-card__specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--c-text);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
  margin-top: auto;
}

.lp-model-card__specs li {
  line-height: 1.5;
}

.lp-model-card__specs b {
  color: var(--c-brand);
}

/* Lista semântica estruturada de bairros atendidos */
.lp-bairros__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--sp-3);
  list-style: none;
  padding: 0;
  margin-top: var(--sp-6);
}

.lp-bairros__grid li {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.lp-bairros__grid li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-brand);
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Bairros atendidos em São Paulo (#distritos-sp)
   Cards compactos, simples e com belo visual
   -------------------------------------------------------------------------- */
.distritos-sp-section {
  background: var(--c-bg);
  position: relative;
  padding-block: var(--section-y);
}

.distritos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-10) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 580px) {
  .distritos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .distritos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-3) var(--sp-4);
  }
}

@media (min-width: 1200px) {
  .distritos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.distritos-grid li {
  display: flex;
}

.distrito-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--c-text);
  box-shadow: 0 1px 4px rgba(10, 42, 49, 0.04);
  transition:
    transform var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.distrito-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-accent);
  background: #ffffff;
  color: var(--c-accent);
  box-shadow: 0 6px 18px -2px rgba(10, 42, 49, 0.10);
}

.distrito-card__name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  transition: color var(--t-fast) var(--ease);
}

.distrito-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--c-border-strong);
  flex-shrink: 0;
  margin-left: var(--sp-2);
  transition:
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.distrito-card__arrow svg {
  display: block;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.distrito-card:hover .distrito-card__arrow {
  color: var(--c-accent);
  transform: translateX(3px);
}

/* Divisória sutil entre capital e cidades da região metropolitana */
.distritos-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin: var(--sp-12) 0 var(--sp-6);
}

.distritos-divider__line {
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.distritos-divider__tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  padding: 5px 16px;
  background: var(--c-tint);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.distritos-subhead {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.distritos-subhead__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400;
  color: var(--c-dark);
  margin: 0 0 var(--sp-2);
}

.distritos-subhead__desc {
  font-size: var(--fs-small);
  color: var(--c-text-2);
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.55;
}

.distritos-sp__cta {
  margin: var(--sp-10) 0 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Dados do IBGE nas páginas locais (cidade, distrito e bairro)
   Blocos em grade; cada bloco abre um "o que isso muda no projeto".
   Sem JavaScript: <details> nativo.
   -------------------------------------------------------------------------- */
.ibge-lead {
  margin-bottom: var(--sp-6);
}

.ibge-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
}

.ibge-card {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ibge-card:hover,
.ibge-card:focus-within {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

.ibge-card__kicker {
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

.ibge-card__value {
  margin: var(--sp-2) 0 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1.1;
  color: var(--c-dark);
}

.ibge-card__value span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body, inherit);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text-2);
}

.ibge-card__meta,
.ibge-card__ref {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-text-2);
}

.ibge-bar {
  display: flex;
  height: 12px;
  margin-top: var(--sp-4);
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--c-tint);
}

.ibge-bar__seg {
  display: block;
  height: 100%;
  transform-origin: left center;
}

.ibge-bar__seg--a { background: var(--c-dark); }
.ibge-bar__seg--b { background: var(--c-accent); }
.ibge-bar__seg--c { background: var(--c-accent-soft); }
.ibge-bar__seg--d { background: var(--c-border-strong); }

.js .ibge-card[data-reveal].is-visible .ibge-bar__seg,
.ibge-card:not([data-reveal]) .ibge-bar__seg {
  animation: ibge-grow 0.7s ease both;
}

@keyframes ibge-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.ibge-legend,
.ibge-trend,
.ibge-chips {
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
}

.ibge-legend {
  display: grid;
  gap: 6px;
  font-size: var(--fs-small);
  line-height: 1.45;
}

.ibge-legend span {
  color: var(--c-text-2);
}

.ibge-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.ibge-dot--a { background: var(--c-dark); }
.ibge-dot--b { background: var(--c-accent); }
.ibge-dot--c { background: var(--c-accent-soft); }
.ibge-dot--d { background: var(--c-border-strong); }

.ibge-trend {
  display: grid;
  gap: 8px;
  font-size: var(--fs-small);
}

.ibge-trend li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: var(--sp-3);
  align-items: center;
}

.ibge-trend i {
  display: block;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
}

.ibge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.ibge-chips li {
  padding: 6px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font-size: var(--fs-small);
}

.ibge-chips a {
  color: var(--c-accent-hover);
  font-weight: 600;
  text-decoration: none;
}

.ibge-chips a:hover,
.ibge-chips a:focus-visible {
  text-decoration: underline;
}

.ibge-card__more {
  margin-top: var(--sp-4);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-border);
}

.ibge-card__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 44px;
  color: var(--c-accent-hover);
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.ibge-card__more summary::-webkit-details-marker {
  display: none;
}

.ibge-card__more summary .icon {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.ibge-card__more[open] summary .icon {
  transform: rotate(45deg);
}

.ibge-card__more p {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--c-text-2);
}

@media (min-width: 720px) {
  .ibge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ibge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ibge-card,
  .ibge-card__more summary .icon {
    transition: none;
  }

  .ibge-card:hover,
  .ibge-card:focus-within {
    transform: none;
  }

  .ibge-bar__seg {
    animation: none !important;
  }
}

/* Aviso de cobertura com CTA (seção de ruas) */
.lp-callout--cta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  padding: var(--sp-6);
  border: 1px solid var(--c-accent);
  border-left-width: 6px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-tint), var(--c-surface));
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}

.lp-callout__icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: #fff;
}

.lp-callout__text {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.lp-callout__btn {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (min-width: 900px) {
  .lp-callout--cta {
    grid-template-columns: auto 1fr auto;
  }

  .lp-callout__btn {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lp-callout__btn {
    animation: lp-callout-pulse 2.4s ease-out infinite;
  }

  .lp-callout__btn:hover {
    animation: none;
  }
}

@keyframes lp-callout-pulse {
  0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.5); }
  70%, 100% { box-shadow: 0 0 0 14px rgb(37 211 102 / 0); }
}

/* Sumário dinâmico: lista numerada que marca a seção em leitura */
.lp-toc ol {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  border-left: 2px solid var(--c-border);
}

.lp-toc li {
  counter-increment: toc;
}

.lp-toc a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-left: -2px;
  padding: var(--sp-2) var(--sp-4);
  border-left: 2px solid transparent;
  color: var(--c-text-2);
  text-decoration: none;
  transition:
    color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    background-color var(--t-base) var(--ease);
}

.lp-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  color: var(--c-accent);
}

.lp-toc a:hover,
.lp-toc a[aria-current="true"] {
  color: var(--c-text);
  border-left-color: var(--c-accent);
}

.lp-toc a[aria-current="true"] {
  font-weight: 600;
  background: var(--c-surface);
}

@media (min-width: 768px) {
  .lp-toc ol {
    columns: 2;
    column-gap: var(--sp-8);
    border-left: 0;
  }

  .lp-toc li {
    break-inside: avoid;
  }

  .lp-toc a {
    margin-left: 0;
    border-left-width: 2px;
  }
}

/* Grade de referências (página /projetos/): 15 itens em colunas iguais */
.gallery.gallery--grade {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  grid-template-rows: none;
  gap: var(--sp-5);
}

.gallery.gallery--grade > li {
  display: block;
}

.gallery--grade .gallery__item {
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .gallery.gallery--grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Galeria de referências: filtro, indicador de zoom e lightbox */
.galeria-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-6);
  margin-block: var(--sp-8) var(--sp-6);
}

.galeria-filtros[hidden] {
  display: none;
}

.galeria-filtros__rotulo {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-text-2);
}

.galeria-filtros__grupo {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.galeria-filtros__status {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}

.galeria-chip {
  min-height: 44px;
  padding: 0 var(--sp-5);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.galeria-chip:hover {
  border-color: var(--c-accent);
}

.galeria-chip[aria-pressed="true"] {
  border-color: var(--c-dark);
  background: var(--c-dark);
  color: var(--c-inverse);
}

.gallery.gallery--grade > li[hidden] {
  display: none;
}

.gallery--grade .gallery__caption {
  pointer-events: none;
}

.gallery__link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: zoom-in;
}

.gallery__link:focus-visible {
  outline-offset: -4px;
  outline-color: var(--c-focus-inverse);
}

.gallery__zoom {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: rgba(var(--c-scrim), 0.62) center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E");
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.gallery__item:hover .gallery__zoom,
.gallery__link:focus-visible .gallery__zoom {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .gallery__zoom {
    opacity: 1;
    transform: none;
  }
}

html.galeria-aberta {
  overflow: hidden;
}

.galeria-lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(var(--c-scrim), 0.95);
  color: var(--c-inverse);
}

.galeria-lightbox::backdrop {
  background: rgba(var(--c-scrim), 0.95);
}

.galeria-lightbox :focus-visible {
  outline-color: var(--c-focus-inverse);
}

.galeria-lightbox__palco {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px var(--sp-4) var(--sp-6);
}

.galeria-lightbox__figura {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  max-width: 100%;
  margin: 0;
}

.galeria-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  border-radius: var(--r-md);
  background: var(--c-dark-2);
  transition: opacity var(--t-base) var(--ease);
}

.galeria-lightbox__img.is-carregando {
  opacity: 0.35;
}

.galeria-lightbox__legenda {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.galeria-lightbox__legenda strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.galeria-lightbox__legenda span {
  font-size: var(--fs-small);
  color: var(--c-inverse-2);
}

.galeria-lightbox__contador {
  position: absolute;
  top: var(--sp-6);
  left: var(--sp-6);
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-inverse-2);
}

.galeria-lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-inverse);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.galeria-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.galeria-lightbox__btn[hidden] {
  display: none;
}

.galeria-lightbox__fechar {
  top: var(--sp-4);
  right: var(--sp-4);
}

.galeria-lightbox__anterior,
.galeria-lightbox__proximo {
  bottom: var(--sp-4);
}

.galeria-lightbox__anterior {
  left: var(--sp-4);
}

.galeria-lightbox__proximo {
  right: var(--sp-4);
}

@media (min-width: 768px) {
  .galeria-lightbox__palco {
    padding-inline: 96px;
  }

  .galeria-lightbox__anterior,
  .galeria-lightbox__proximo {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .galeria-lightbox__anterior {
    left: var(--sp-6);
  }

  .galeria-lightbox__proximo {
    right: var(--sp-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__zoom,
  .galeria-lightbox__img,
  .galeria-chip {
    transition: none;
  }
}

/* Preferência de medição: o switch que desativa GA4 e Clarity (política de privacidade, seção 5) */
.cookie-pref {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-4) var(--sp-8);
  margin-block: var(--sp-8);
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
}

.cookie-pref[hidden] {
  display: none;
}

.cookie-pref h3 {
  margin: 0;
  font-size: var(--fs-h3);
}

.cookie-pref__text p {
  max-width: 68ch;
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-text-2);
}

.cookie-pref__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}

.cookie-pref__status:empty {
  display: none;
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2);
  font: inherit;
  font-weight: 600;
  color: var(--c-text);
  background: none;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
}

/* Desligado em --c-text-2 e ligado em --c-accent: os dois passam de 3:1 sobre o branco. */
.cookie-switch__track {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 30px;
  background: var(--c-text-2);
  border-radius: var(--r-pill);
  transition: background var(--t-fast) var(--ease);
}

.cookie-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--c-surface);
  border-radius: 50%;
  transition: transform var(--t-fast) var(--ease);
}

.cookie-switch[aria-checked="true"] .cookie-switch__track {
  background: var(--c-accent);
}

.cookie-switch[aria-checked="true"] .cookie-switch__thumb {
  transform: translateX(22px);
}

.cookie-switch[aria-checked="true"] .cookie-switch__off,
.cookie-switch[aria-checked="false"] .cookie-switch__on {
  display: none;
}

@media (max-width: 767.98px) {
  .cookie-pref {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-switch__track,
  .cookie-switch__thumb {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Página de projetos (/projetos/): hero sem formulário e vídeos com pausar
   --------------------------------------------------------------------------- */
.lp-hero__actions {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

@media (min-width: 640px) {
  .lp-hero__actions {
    display: flex;
    flex-wrap: wrap;
  }
}

.lp-videos {
  display: grid;
  gap: var(--sp-6);
  margin: var(--sp-10) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .lp-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-8);
  }
}

.lp-video {
  margin: 0;
}

.lp-video__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-dark);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-subtle);
}

.lp-video__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.lp-video__toggle {
  position: absolute;
  right: var(--sp-4);
  bottom: var(--sp-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--c-scrim), 0.72);
  color: var(--c-inverse);
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.lp-video__toggle[hidden] {
  display: none;
}

.lp-video__toggle:hover {
  background: rgba(var(--c-scrim), 0.9);
  transform: scale(1.06);
}

.lp-video__toggle:focus-visible {
  outline-color: var(--c-focus-inverse);
}

.lp-video__toggle .icon {
  width: 22px;
  height: 22px;
}

.lp-video__toggle .lp-video__play,
.lp-video.is-paused .lp-video__toggle .lp-video__pause {
  display: none;
}

.lp-video.is-paused .lp-video__toggle .lp-video__play {
  display: block;
}

.lp-video figcaption {
  margin-top: var(--sp-4);
}

.lp-video figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lp-video figcaption span {
  display: block;
  margin-top: var(--sp-2);
  max-width: 52ch;
  color: var(--c-text-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .lp-video__toggle {
    transition: none;
  }

  .lp-video__toggle:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Galeria de projetos nas páginas de bairro/cidade.
   Mosaico: 1ª imagem em destaque, última larga quando são 8 (fecha a grade).
   Mobile: --par (2 colunas), --pilha (1 coluna) ou --carrossel (loop infinito).
   -------------------------------------------------------------------------- */
.lp-gal__list { display: grid; gap: var(--sp-3, 12px); margin: 0; padding: 0; list-style: none; }
.lp-gal .gallery__item { height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.lp-gal .gallery__caption { isolation: isolate; position: absolute; inset: auto 0 0 0; padding: var(--sp-5, 20px) var(--sp-4, 16px) var(--sp-3, 12px); background: linear-gradient(25deg, rgba(10, 42, 49, .6) 0%, rgba(10, 42, 49, .3) 35%, rgba(10, 42, 49, .08) 65%, rgba(10, 42, 49, 0) 90%); color: #fff; }
.lp-gal .gallery__caption::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(25deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 80%); mask-image: linear-gradient(25deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 80%); pointer-events: none; }
.lp-gal .gallery__label { font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: .005em; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.lp-gal__clone { display: none; }
.lp-gal__cta { display: flex; justify-content: center; margin-top: var(--sp-8, 32px); }

@media (max-width: 767.98px) {
  .lp-gal--par .lp-gal__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-gal--par .lp-gal__list > li:first-child,
  .lp-gal--par .lp-gal__list > li:nth-child(8):last-child { grid-column: 1 / -1; }
  .lp-gal--par .lp-gal__list > li:first-child .gallery__item,
  .lp-gal--par .lp-gal__list > li:nth-child(8):last-child .gallery__item { aspect-ratio: 16 / 9; }
  .lp-gal--pilha .lp-gal__list { grid-template-columns: 1fr; }
  .lp-gal--carrossel .lp-gal__list { display: flex; width: max-content; gap: var(--sp-3, 12px); animation: lp-gal-loop 40s linear infinite; }
  .lp-gal--carrossel .lp-gal__list > li { flex: 0 0 72vw; }
  .lp-gal--carrossel .lp-gal__clone { display: block; }
  .lp-gal--carrossel .container { overflow: hidden; }
}
@keyframes lp-gal-loop { to { transform: translateX(calc(-50% - var(--sp-3, 12px) / 2)); } }
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .lp-gal--carrossel .lp-gal__list { animation: none; }
  .lp-gal--carrossel .container { overflow-x: auto; }
  .lp-gal--carrossel .lp-gal__clone { display: none; }
}
/* Tablet: 2 colunas, 1ª imagem larga (e a 8ª, quando houver) */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .lp-gal__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .lp-gal__list > li:first-child,
  .lp-gal__list > li:nth-child(8) { grid-column: 1 / -1; }
  .lp-gal__list > li:first-child .gallery__item,
  .lp-gal__list > li:nth-child(8) .gallery__item { aspect-ratio: 16 / 9; }
  .lp-gal__clone { display: none !important; }
}
@media (min-width: 1024px) {
  .lp-gal__list { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); gap: var(--sp-4); }
  .lp-gal__list > li:first-child { grid-column: span 2; grid-row: span 2; }
  .lp-gal__list > li:nth-child(8) { grid-column: span 2; }
  .lp-gal .gallery__item { height: 100%; aspect-ratio: auto; }
  .lp-gal__clone { display: none !important; }
}

/* Galeria com 3 imagens (assunto com poucas fotos, ex.: comercial): 3 colunas no desktop */
@media (min-width: 1024px) {
  .lp-gal--tres .lp-gal__list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 24vw, 320px); }
  .lp-gal--tres .lp-gal__list > li:first-child { grid-column: auto; grid-row: auto; }
}

/* Foto de contexto (pessoas/ambientes) nas páginas de bairro/cidade */
.lp-people { margin: var(--sp-8, 32px) 0 0; overflow: hidden; border-radius: var(--r-lg); background: var(--c-border); }
.lp-people img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 768px) {
  .lp-people img { aspect-ratio: 21 / 9; }
}

/* Desktop: a foto de pessoas é quadrada (1:1) e fica à direita do texto da seção.
   O container ganha a classe lp-has-photo (tools/layout-foto-pessoas.js): cabeçalho na
   largura toda e, abaixo, o conteúdo à esquerda e a foto à direita, fixa ao rolar. */
@media (min-width: 1024px) {
  .lp-has-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 36%, 460px);
    column-gap: var(--sp-12, 48px);
    align-items: start;
  }
  .lp-has-photo > * { grid-column: 1; }
  .lp-has-photo > .lp-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-has-photo > .section-head { grid-column: 1 / -1; }
  .lp-has-photo > .lp-people {
    grid-column: 2;
    grid-row: 2 / span 20;
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4, 16px));
    margin: 0;
  }
  .lp-has-photo--topo > .lp-people { grid-row: 1 / span 20; }
  /* Sem texto lateral: o título fica na coluna do texto e a foto sobe ao lado dele */
  .lp-has-photo--topo > .section-head { grid-column: 1; margin-bottom: var(--sp-6, 24px); }
  .lp-has-photo--topo .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .lp-has-photo > .lp-people img { aspect-ratio: 1 / 1; object-position: 50% 50%; }
  /* Cards lado a lado não cabem na coluna do texto: empilha */
  .lp-has-photo .lp-compare { grid-template-columns: minmax(0, 1fr); }
  .lp-has-photo .lp-compare__col h3 { min-height: 0; }
  /* Cards de link na coluna do texto: 2 por linha, no máximo */
  .lp-has-photo:not(.lp-has-photo--cab) > .lp-siblings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-has-photo:not(.lp-has-photo--cab) > .lp-siblings > li:only-child { grid-column: 1 / -1; }

  /* Seção sem texto corrido (cards, listas): a foto fica ao lado do cabeçalho, em paisagem e
     na altura dele, e o conteúdo volta à largura toda (tools/foto-em-secao-de-texto.js). */
  .lp-has-photo--cab { align-items: center; }
  .lp-has-photo--cab > * { grid-column: 1 / -1; }
  .lp-has-photo--cab > .section-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .lp-has-photo--cab > .section-head--split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4, 16px); }
  .lp-has-photo--cab > .lp-people { grid-column: 2; grid-row: 1; position: static; }
  .lp-has-photo--cab > .lp-people img { aspect-ratio: 4 / 3; }
  .lp-has-photo--cab > .lp-people--solto img { aspect-ratio: auto; max-height: 300px; width: auto; max-width: 100%; }
  .lp-has-photo--cab > .section-head + * { margin-top: var(--sp-12, 48px); }
  .lp-has-photo--cab .lp-compare.lp-compare--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-has-photo--cab .lp-compare__col h3 { min-height: revert; }
}

/* Celular e tablet: na seção sem texto corrido, a foto vem logo abaixo do título, antes dos cards */
@media (max-width: 1023.98px) {
  .lp-has-photo--cab { display: flex; flex-direction: column; }
  .lp-has-photo--cab > * { order: 2; }
  .lp-has-photo--cab > .section-head { order: 0; }
  .lp-has-photo--cab > .lp-people { order: 1; margin: 0 0 var(--sp-8, 32px); }
  .lp-has-photo--cab > .lp-people--solto img { max-width: 420px; }
}

/* Foto recortada (PNG/WebP com transparência): sem moldura, o fundo é o da seção */
.lp-people--solto { background: transparent; border-radius: 0; overflow: visible; }
.lp-people--solto img { object-fit: contain; background: transparent; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; }

/* Cards de layout/segmento (.lp-layout): a planta ocupa uma coluna larga à esquerda (grande o
   bastante para ler os rótulos) e, à direita, título, texto, fatos em linhas e ação.
   No celular a planta vem em cima, na largura do card. */
@media (min-width: 768px) {
  .lp-layout {
    grid-template-columns: minmax(260px, 40%) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: var(--sp-8);
    row-gap: 0;
    align-items: start;
    padding: var(--sp-6);
  }
  .lp-layout__body { display: contents; }
  .lp-layout > .lp-plan { grid-column: 1; grid-row: 1 / span 4; padding: var(--sp-4); }
  .lp-layout__body > h3 { grid-column: 2; grid-row: 1; }
  .lp-layout__body > p { grid-column: 2; grid-row: 2; }
  .lp-layout__facts {
    grid-column: 2;
    grid-row: 3;
    gap: 0;
    margin-top: var(--sp-5);
    border-top: 1px solid var(--c-border);
  }
  .lp-layout__facts > div {
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--c-border);
  }
  .lp-layout__facts dd { margin-top: 4px; }
  .lp-layout__actions { grid-column: 2; grid-row: 4; align-self: start; margin-top: var(--sp-5); }
}

/* Desktop: rótulo à esquerda, texto à direita em cada fato */
@media (min-width: 1024px) {
  .lp-layout__facts > div {
    display: grid;
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
    gap: var(--sp-4);
  }
  .lp-layout__facts dt { padding-top: 3px; }
  .lp-layout__facts dd { margin: 0; }
}

.lp-gal__cta { flex-wrap: wrap; gap: var(--sp-3, 12px); }
.faq__intro .faq__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3, 12px); margin-top: var(--sp-8); }
.faq__intro .faq__ctas .btn { margin-top: 0; }

/* Subtítulo (h3) logo abaixo do h2 do cabeçalho de seção */
.section-head__sub { margin: var(--sp-3, 12px) 0 0; color: var(--c-text-2); font-family: inherit; font-size: clamp(1.0625rem, 1.2vw + 0.9rem, 1.3125rem); font-weight: 600; line-height: 1.35; letter-spacing: 0; }

/* Capa só com fundo azul (termos, política, perguntas, contato) */
.lp-hero--azul {
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
}

/* --------------------------------------------------------------------------
   Blog (/blog/): página só informativa
   -------------------------------------------------------------------------- */
.blog-info {
  padding-block: var(--sp-16) var(--sp-24);
  color: var(--c-text-2);
}

.blog-info p { margin: 0; max-width: var(--read); }

.blog-lista {
  display: grid;
  gap: var(--sp-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-item__title {
  margin: var(--sp-2) 0 var(--sp-3);
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.blog-item__title a {
  color: var(--c-text);
  text-underline-offset: 4px;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin: 0;
  font-size: var(--fs-small);
}

.blog-card__tag {
  color: var(--c-accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Sitemap (/sitemap/): listas de todas as páginas, por grupo
   -------------------------------------------------------------------------- */
.sitemap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: var(--sp-8);
}

@media (min-width: 640px) {
  .sitemap-list { columns: 2; }
}

@media (min-width: 1024px) {
  .sitemap-list { columns: 3; }
}

.sitemap-list li { break-inside: avoid; }

.sitemap-list a {
  display: inline-block;
  padding-block: var(--sp-1);
  color: var(--c-text);
  text-underline-offset: 3px;
}

.sitemap-list a:hover { color: var(--c-accent); }

.sitemap-sub {
  margin: var(--sp-10) 0 var(--sp-4);
  font-size: var(--fs-h3);
}

.sitemap-hub { margin: 0 0 var(--sp-6); }

.sitemap-grupos {
  columns: 1;
  column-gap: var(--sp-6);
}

@media (min-width: 768px) {
  .sitemap-grupos { columns: 2; }
}

@media (min-width: 1024px) {
  .sitemap-grupos { columns: 3; }
}

.sitemap-grupos--um { columns: 1; }

.sitemap-grupo {
  margin-bottom: var(--sp-6);
  break-inside: avoid;
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.sitemap-grupo h3 {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-h3);
}

.sitemap-grupo h3 a { color: inherit; text-underline-offset: 4px; }

.sitemap-grupos--um .sitemap-grupo .sitemap-list { columns: 1; }

@media (min-width: 640px) {
  .sitemap-grupos--um .sitemap-grupo .sitemap-list { columns: 2; }
}

@media (min-width: 1024px) {
  .sitemap-grupos--um .sitemap-grupo .sitemap-list { columns: 3; }
}

.sitemap-grupo .sitemap-list--sub { columns: 1; }

/* Subpáginas aninhadas (filhas das filhas) */
.sitemap-list .sitemap-list {
  columns: 1;
  margin: 0 0 var(--sp-2) var(--sp-2);
  padding-left: var(--sp-3);
  border-left: 1px solid var(--c-border);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   Artigo do blog (/blog/<slug>/)
   -------------------------------------------------------------------------- */
.blog-artigo {
  max-width: calc(var(--read) + 2 * var(--sp-6));
  padding-block: var(--sp-10) var(--sp-24);
  color: var(--c-text-2);
}

.blog-artigo > .blog-card__meta { margin-bottom: var(--sp-6); }
.blog-artigo h2 { margin: var(--sp-12) 0 var(--sp-4); color: var(--c-text); font-size: var(--fs-h3); line-height: 1.2; }
.blog-artigo h3 { margin: var(--sp-8) 0 var(--sp-3); color: var(--c-text); font-size: 1.15rem; line-height: 1.3; }
.blog-artigo p, .blog-artigo li { line-height: 1.7; }
.blog-artigo p { margin: 0 0 var(--sp-4); }
.blog-artigo ul, .blog-artigo ol { margin: 0 0 var(--sp-6); padding-left: 1.25em; }
.blog-artigo li { margin-bottom: var(--sp-2); }
.blog-artigo a:not(.btn) { color: var(--c-accent); text-underline-offset: 3px; }

.blog-artigo__resumo {
  padding: var(--sp-6);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: 1.05rem;
}

.blog-artigo__box {
  margin: var(--sp-8) 0;
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

.blog-artigo__aviso {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: var(--fs-small);
}

.blog-artigo__box h2 { margin-top: 0; font-size: 1.15rem; }
.blog-artigo__box ul { margin-bottom: 0; }

.blog-artigo__tabela { margin: var(--sp-6) 0 var(--sp-8); overflow-x: auto; }
.blog-artigo table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-small); }
.blog-artigo caption { margin-bottom: var(--sp-3); color: var(--c-text); font-weight: 700; text-align: left; }
.blog-artigo th, .blog-artigo td { padding: var(--sp-3); border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.blog-artigo thead th { background: var(--c-surface); color: var(--c-text); }
.blog-artigo td:last-child { white-space: nowrap; font-weight: 700; color: var(--c-text); }

.blog-artigo__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }

.blog-artigo__capa { margin: 0 0 var(--sp-8); }
.blog-artigo__capa img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.blog-item__img { display: block; margin-bottom: var(--sp-3); }
.blog-item__img img { display: block; width: 100%; max-width: 480px; height: auto; border-radius: var(--r-md); }

/* Card de artigo no blog e assinatura do autor */
.blog-item {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.blog-item__img { margin: 0; }
.blog-item__img img { width: 100%; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-item__texto > p { margin-bottom: 0; }
.blog-item__texto > .blog-card__meta { margin-bottom: var(--sp-1); }
@media (min-width: 768px) {
  .blog-item { grid-template-columns: 320px minmax(0, 1fr); align-items: center; gap: var(--sp-6); padding: var(--sp-5); }
}

.blog-item__texto .blog-autor { margin: var(--sp-4) 0 0; }
.autor-perfil p { margin: 0 0 var(--sp-3); }
.blog-autor__link { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--c-text); font-size: var(--fs-small); font-weight: 700; text-decoration: none; }
.blog-autor__link:hover span { text-decoration: underline; }
.blog-autor__link img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.blog-artigo .blog-autor-topo a { color: var(--c-text); font-weight: 700; }

.blog-autor-caixa {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-12);
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.blog-autor-caixa__foto { flex: none; }
.blog-autor-caixa__foto img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.blog-autor-caixa p { margin: 0 0 var(--sp-1); }
.blog-autor-caixa__rotulo { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; }
.blog-autor-caixa__nome { color: var(--c-text); font-size: 1.3rem; font-weight: 700; }
.blog-autor-caixa__nome a { color: inherit !important; text-decoration: none; }
@media (max-width: 520px) { .blog-autor-caixa { flex-direction: column; align-items: flex-start; } }

.autor-perfil { padding-block: var(--sp-10) var(--sp-24); color: var(--c-text-2); }
.autor-perfil__cab { display: grid; gap: var(--sp-6); align-items: center; margin-bottom: var(--sp-12); }
.autor-perfil__foto { width: 100%; max-width: 240px; height: auto; border-radius: var(--r-md); }
.autor-perfil h2 { margin: 0 0 var(--sp-2); color: var(--c-text); }

.autor-perfil__artigos { margin: 0 0 var(--sp-6); color: var(--c-text); }
@media (min-width: 768px) { .autor-perfil__cab { grid-template-columns: 240px minmax(0, 60ch); gap: var(--sp-10); } }

.blog-item--autor .blog-item__img img { aspect-ratio: 1 / 1; max-width: 192px; border-radius: 50%; object-fit: cover; background: #dfe9ea; }
@media (min-width: 768px) { .blog-item--autor { grid-template-columns: 192px minmax(0, 1fr); } }
.autor-perfil__foto { background: transparent; }

/* Perfil do autor: foto dentro de um card */
.autor-perfil__card {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  margin: 0;
  padding: var(--sp-5) var(--sp-5) 0;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #dfe9ea 0%, #f4f8f8 100%);
}
.autor-perfil__card .autor-perfil__foto { display: block; width: 100%; max-width: 220px; height: auto; border-radius: 0; }
@media (min-width: 768px) { .autor-perfil__cab { grid-template-columns: 280px minmax(0, 60ch); } }

/* Artigo: bloco "sobre nós" em card escuro */
.blog-artigo__sobre {
  margin: var(--sp-12) 0 var(--sp-8);
  padding: var(--sp-8);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: rgba(255, 255, 255, .86);
}
.blog-artigo__sobre h2 { margin: 0 0 var(--sp-4); color: #fff; }
.blog-artigo__sobre p, .blog-artigo__sobre li { color: rgba(255, 255, 255, .86); }
.blog-artigo__sobre strong { color: #fff; }
.blog-artigo__sobre a:not(.btn) { color: #fff; }
.blog-artigo__sobre ul { margin-bottom: var(--sp-4); }
.blog-artigo__sobre .blog-artigo__ctas { margin-top: var(--sp-6); margin-bottom: 0; }

.blog-info .blog-mais { margin-top: var(--sp-8); }

/* Artigo: anterior / próximo */
.blog-prox { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 640px) { .blog-prox { grid-template-columns: 1fr 1fr; } }
.blog-artigo .blog-prox__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
}
.blog-artigo .blog-prox__item:hover { border-color: var(--c-accent); }
.blog-prox__item--prox { text-align: right; }
.blog-prox__rotulo { color: var(--c-accent); font-size: var(--fs-small); font-weight: 700; }
.blog-prox__titulo { font-weight: 700; line-height: 1.3; }

/* Artigo: índice flutuante (tópicos + CTA) */
.blog-toc { position: fixed; left: 16px; bottom: 24px; z-index: 40; }
.blog-toc__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--c-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(10, 42, 49, .35);
  cursor: pointer;
}
.blog-toc__btn:hover, .blog-toc.is-aberto .blog-toc__btn { background: var(--c-dark-2); }
.blog-toc__painel {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 12px 36px rgba(10, 42, 49, .25);
}
.blog-toc__painel[hidden] { display: none; }
.blog-toc__titulo { margin: 0 0 var(--sp-3); color: var(--c-text); font-weight: 700; }
.blog-toc__lista { margin: 0 0 var(--sp-4); padding: 0; list-style: none; counter-reset: toc; }
.blog-toc__lista li { counter-increment: toc; margin: 0; }
.blog-toc__lista a {
  display: block;
  padding: var(--sp-2) 0 var(--sp-2) 1.6em;
  position: relative;
  color: var(--c-text-2);
  font-size: var(--fs-small);
  line-height: 1.35;
  text-decoration: none;
}
.blog-toc__lista a::before { content: counter(toc) "."; position: absolute; left: 0; color: var(--c-accent); font-weight: 700; }
.blog-toc__lista a:hover, .blog-toc__lista a[aria-current] { color: var(--c-text); font-weight: 700; }
.blog-toc__cta { width: 100%; justify-content: center; }
@media (max-width: 520px) { .blog-toc { left: 12px; bottom: 16px; } }

.blog-toc__painel { display: flex; flex-direction: column; overflow: hidden; max-height: min(72vh, 560px); }
.blog-toc__lista { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-bottom: var(--sp-3); padding-right: var(--sp-2); }
.blog-toc__titulo, .blog-toc__cta { flex: none; }
.blog-artigo a.blog-prox__item { color: var(--c-text); }
.blog-artigo a.blog-prox__item .blog-prox__rotulo { color: var(--c-accent); }

/* Ruas (bairros/distritos, tools/ruas-no-mapa.js) e bairros (cidades, tools/bairros-no-mapa.js) junto do mapa */
.lp-mapa-ruas,
.lp-mapa-bairros { margin-top: var(--sp-8); }
.lp-mapa-ruas > h3,
.lp-mapa-bairros > h3 { margin-bottom: var(--sp-3); }
.lp-mapa-ruas > p,
.lp-mapa-bairros > p { color: var(--c-text-2); max-width: 70ch; }
.lp-mapa-ruas > .lp-note { margin-top: var(--sp-5); }
.lp-mapa-bairros .lp-bairros__grid a { color: var(--c-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-mapa-bairros .lp-bairros__grid a:hover { text-decoration-thickness: 2px; }
/* Na coluna do texto (ao lado da foto de pessoas), o botão do aviso desce para a linha de baixo */
@media (min-width: 900px) {
  .lp-has-photo > .lp-callout--cta { grid-template-columns: auto 1fr; }
  .lp-has-photo > .lp-callout--cta .lp-callout__btn { grid-column: 1 / -1; }
}

/* Celular: texto em cima, sobre fundo escuro; a foto da capa fica numa faixa curta abaixo da última CTA,
   com borda superior em desfoque + degradê (o ::before/::after do bloco de texto e o véu geral saem). */
@media (max-width: 767.98px) {
  .lp-hero {
    --hero-img: 300px;
    align-items: flex-start;
    height: auto;
    min-height: 0;
    padding-top: calc(var(--header-h) + var(--sp-8));
    padding-bottom: calc(var(--hero-img) - 36px);
  }

  .lp-hero .lp-hero__grid::before,
  .lp-hero .lp-hero__grid::after,
  .lp-hero__scrim, .lp-hero__bg {
    display: none;
  }

  .lp-hero__media {
    inset: auto 0 0 0;
    height: var(--hero-img);
    animation: none;
  }

  .lp-hero__blur {
    display: block;
    inset: auto 0 0 0;
    height: var(--hero-img);
    background: linear-gradient(180deg, var(--c-dark) 0, rgba(var(--c-scrim), 0.55) 34%, rgba(var(--c-scrim), 0) 72%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 75%);
    mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 75%);
  }

  .lp-hero__blur::before,
  .lp-hero__blur::after,
  .lp-hero__note {
    display: none;
  }
}

/* Artigo do blog: texto um pouco mais largo, índice fixo ao lado (>= 1024 px) e card "Conheça a Planejado SP" no meio */
.blog-artigo { max-width: calc(760px + 2 * var(--sp-6)); }
.blog-toc { display: none; }
@media (min-width: 1024px) {
  .blog-artigo { margin-left: max(calc((100vw - 808px) / 2), 304px); margin-right: auto; }
  .blog-toc {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 24px;
    top: 96px;
    bottom: auto;
    width: 256px;
    max-height: calc(100vh - 128px);
    padding: var(--sp-5);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: 0 12px 36px rgba(10, 42, 49, .16);
    z-index: 40;
    transition: opacity .25s ease;
  }
  .blog-toc.is-oculto { opacity: 0; pointer-events: none; }
  .blog-toc .blog-toc__cta + .blog-toc__cta { margin-top: var(--sp-2); }
}

.blog-meio {
  display: grid;
  margin: var(--sp-10) 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: rgba(255, 255, 255, .86);
}
.blog-meio__foto { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-meio__texto { padding: var(--sp-6); }
.blog-meio__texto p { margin: 0 0 var(--sp-3); color: rgba(255, 255, 255, .86); }
.blog-meio__texto .eyebrow { margin-bottom: var(--sp-2); }
.blog-meio__texto p.blog-meio__titulo { margin: 0 0 var(--sp-3); color: #fff; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.blog-meio .blog-artigo__ctas { margin: var(--sp-5) 0 0; }
@media (min-width: 720px) {
  .blog-meio { grid-template-columns: 240px minmax(0, 1fr); align-items: stretch; }
  .blog-meio__foto { height: 100%; aspect-ratio: auto; }
  .blog-meio__texto { padding: var(--sp-8); }
}

/* Índice fixo do artigo: resposta curta no topo do card */
.blog-toc__resposta { flex: none; margin-bottom: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--c-border); }
.blog-toc__resposta .blog-toc__titulo { margin-bottom: var(--sp-2); }
.blog-toc__resposta p:last-child { margin: 0; color: var(--c-text-2); font-size: .82rem; line-height: 1.45; }
.blog-toc__resposta strong { color: var(--c-text); }

/* Fotos de materiais e ferragens (materiais-e-ferragens/): cards com foto, texto e crédito */
.lp-matgrid { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
.lp-matgrid__item { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg); }
.lp-matgrid__item figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.lp-matgrid__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-border); }
.lp-matgrid__item figcaption { display: flex; flex-direction: column; flex: 1; padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.lp-matgrid__item h3 { margin: 0 0 var(--sp-2); font-size: 1.1rem; line-height: 1.25; }
.lp-matgrid__item p { margin: 0; color: var(--c-text-2); font-size: .95rem; line-height: 1.5; }
.lp-matgrid__item p.lp-matgrid__credito { margin-top: auto; padding-top: var(--sp-3); font-size: .72rem; line-height: 1.35; opacity: .8; }
.lp-matgrid__credito a { color: inherit; }
@media (min-width: 600px) {
  .lp-matgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lp-matgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-matgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lp-compare__foto { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 var(--sp-4); border-radius: var(--r-md); background: var(--c-border); }
.lp-compare__credito { margin: var(--sp-3) 0 0; font-size: .72rem; line-height: 1.35; color: var(--c-text-2); opacity: .8; }
.lp-compare__credito a { color: inherit; }
@media (min-width: 600px) and (max-width: 1023px) {
  .lp-matgrid--3 > .lp-matgrid__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lp-matgrid--3 > .lp-matgrid__item:last-child:nth-child(odd) figure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-matgrid--3 > .lp-matgrid__item:last-child:nth-child(odd) img { height: 100%; }
}
.lp-area--creditos { font-size: .75rem; line-height: 1.4; opacity: .75; }
.lp-area--creditos a { color: inherit; }

/* Abas de plantas (.lp-tabs das 9 categorias de ambiente): grade com todas as categorias à vista, sem
   rolagem lateral (no celular a última aba ficava cortada). 2 colunas no celular, 3 no tablet
   (2 quando são 4 abas) e uma linha só no desktop, todas da mesma largura. */
.lp-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: 0 0 var(--sp-6);
  padding: 0;
  overflow: visible;
}
.lp-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 14px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .lp-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-tabs:not(:has(> .lp-tab:nth-child(5))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lp-tabs,
  .lp-tabs:not(:has(> .lp-tab:nth-child(5))) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
