/* ND Reformas & Serviços Gerais — landing page
   Mobile-first. Paleta gelo + azul-marinho da marca, amarelo de segurança como detalhe. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ice-50: #f4f9fe;
  --ice-100: #e9f2fb;
  --ice-200: #d6e6f7;
  --ice-300: #bad3ee;
  --navy: #071a42;
  --navy-2: #0c2a6e;
  --blue: #1d62e8;
  --blue-ink: #1450c8;
  --sky: #7db4f7;
  --sun: #ffc83d;
  --ink: #0b1f4a;
  --muted: #455a85;
  --line: #c3d8f0;
  --wa: #25d366;
  --wa-hover: #1fbf5b;

  --gutter: 20px;
  --maxw: 1160px;
  --section: 68px;
  --header-h: 64px;
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --section: 100px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ice-50);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.icon--lg {
  width: 34px;
  height: 34px;
  color: var(--sky);
}

.icon--xl {
  width: 52px;
  height: 52px;
  color: var(--sun);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn--wa {
  color: var(--navy);
  background: var(--wa);
  border: 2px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
}

.btn--wa:hover {
  background: var(--wa-hover);
}

.btn--wa:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--navy);
}

.btn--sm {
  min-height: 42px;
  padding: 0 0.95rem;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 var(--navy);
}

.btn--lg {
  min-height: 60px;
  padding: 0 1.6rem;
  font-size: 1.05rem;
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 242, 251, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand img {
  width: auto;
  height: 42px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(29, 98, 232, 0.075) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(29, 98, 232, 0.075) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #dfedfb 0%, #eef5fc 70%, var(--ice-50) 100%);
}

.hero__grid {
  display: grid;
  gap: 28px;
  padding-block: 36px 48px;
}

.hero h1 {
  font-size: clamp(1.75rem, 7vw, 3.1rem);
  font-stretch: 112%;
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero__lead {
  max-width: 38ch;
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 26px;
}

.hero__phone {
  font-size: 1rem;
  color: var(--muted);
}

.hero__phone a {
  font-weight: 800;
  color: var(--navy);
  text-underline-offset: 3px;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 40px;
    padding-block: 64px 72px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 3.5vw, 3.3rem);
  }
}

/* ---------- Cena (casa em corte) ---------- */

.scene {
  display: grid;
  gap: 10px;
}

.scene__hint {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-ink);
}

.scene__stage {
  position: relative;
  container-type: inline-size;
}

.scene__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.scene .ln {
  stroke: var(--navy);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.scene .room a {
  cursor: pointer;
}

.scene .room {
  transition: filter 0.15s ease;
}

.scene .room.is-hot {
  filter: drop-shadow(0 0 0 transparent) brightness(1.04) saturate(1.15);
}

.pill {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 26px;
  padding: 0 0.7em;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 3px 0 var(--navy);
  transform: translate(-50%, -50%);
  transition: background-color 0.15s ease, translate 0.15s ease;
}

.pill__ic {
  display: none;
  color: #1da851;
}

.pill:hover,
.pill.is-hot {
  background: var(--sun);
  translate: 0 -2px;
}

@container (min-width: 520px) {
  .pill {
    min-height: 34px;
    padding: 0 0.95em;
    font-size: 0.86rem;
  }

  .pill__ic {
    display: block;
  }
}

@container (max-width: 400px) {
  .pill {
    min-height: 24px;
    padding: 0 0.55em;
    font-size: 0.66rem;
  }
}

@container (max-width: 300px) {
  .pill {
    min-height: 22px;
    padding: 0 0.45em;
    font-size: 0.58rem;
    border-width: 1.5px;
    box-shadow: 0 2px 0 var(--navy);
  }
}

/* linha de cota (estilo planta baixa) */
.dim {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-ink);
}

.dim::before,
.dim::after {
  content: "";
  flex: 1;
  height: 14px;
  background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat;
}

.dim::before {
  border-left: 2px solid var(--blue);
}

.dim::after {
  border-right: 2px solid var(--blue);
}

/* única sequência de entrada: os cômodos "acendem" um a um */
@keyframes room-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pill-in {
  from {
    opacity: 0;
    scale: 0.7;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.scene .room {
  animation: room-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pill {
  animation: pill-in 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

[data-room="hidraulica"] { animation-delay: 0.10s; }
[data-room="pintura"] { animation-delay: 0.19s; }
[data-room="montagem"] { animation-delay: 0.28s; }
[data-room="limpeza"] { animation-delay: 0.37s; }
[data-room="eletrica"] { animation-delay: 0.46s; }
[data-room="jardinagem"] { animation-delay: 0.55s; }
[data-room="conserto"] { animation-delay: 0.64s; }
[data-room="reformas"] { animation-delay: 0.73s; }

.pill[data-room="hidraulica"] { animation-delay: 0.45s; }
.pill[data-room="pintura"] { animation-delay: 0.54s; }
.pill[data-room="montagem"] { animation-delay: 0.63s; }
.pill[data-room="limpeza"] { animation-delay: 0.72s; }
.pill[data-room="eletrica"] { animation-delay: 0.81s; }
.pill[data-room="jardinagem"] { animation-delay: 0.9s; }
.pill[data-room="conserto"] { animation-delay: 0.99s; }
.pill[data-room="reformas"] { animation-delay: 1.08s; }

/* ---------- Faixa de confiança ---------- */

.trust {
  color: #fff;
  background: var(--navy);
}

.trust__list {
  display: grid;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.trust__item + .trust__item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust__item strong {
  display: block;
  font-weight: 800;
  line-height: 1.25;
}

.trust__item span {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

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

  .trust__item {
    padding: 30px 28px;
  }

  .trust__item:first-child {
    padding-left: 0;
  }

  .trust__item + .trust__item {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* ---------- Seções ---------- */

.section {
  padding-block: var(--section);
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.section__head h2,
.coverage h2,
.final-cta h2 {
  font-size: clamp(1.7rem, 5.2vw, 2.6rem);
  font-stretch: 112%;
  font-weight: 850;
  color: var(--navy);
}

.section__head p {
  max-width: 52ch;
  color: var(--muted);
}

/* ---------- Serviços ---------- */

.services {
  background: var(--ice-50);
}

.svc-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.svc-list li {
  border-bottom: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  text-decoration: none;
}

.svc__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid var(--navy);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.svc__svg {
  width: 50px;
  height: 50px;
}

.svc__body {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.svc__title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.svc__desc {
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--muted);
}

.svc__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-ink);
}

.svc__cta .icon {
  color: #1da851;
}

.svc:hover .svc__icon,
.svc.is-hot .svc__icon {
  background: var(--sun);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--navy);
}

@media (min-width: 800px) {
  .svc-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }

  .svc {
    grid-template-columns: 88px 1fr;
    gap: 22px;
    padding: 26px 0;
  }

  .svc__icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
  }

  .svc__svg {
    width: 58px;
    height: 58px;
  }

  .svc__title {
    font-size: 1.3rem;
  }
}

/* ---------- Galeria (bloco opcional, comentado no HTML) ---------- */

.gallery {
  background: var(--ice-100);
}

.gallery__grid {
  display: grid;
  gap: 16px;
}

.gallery__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--navy);
  border-radius: 16px;
}

.gallery__grid figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

@media (min-width: 760px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ---------- Como funciona ---------- */

.steps-section {
  background: var(--ice-100);
  border-block: 1px solid var(--line);
}

.steps {
  display: grid;
}

.steps__item {
  position: relative;
  padding: 0 0 34px 68px;
}

.steps__item:last-child {
  padding-bottom: 0;
}

.steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 4px;
  left: 21px;
  width: 0;
  border-left: 3px dotted var(--blue);
}

.steps__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-weight: 800;
  color: var(--navy);
  background: var(--sun);
  box-shadow: 0 3px 0 var(--navy);
}

.steps__item h3 {
  padding-top: 9px;
  font-size: 1.2rem;
  color: var(--navy);
}

.steps__item p {
  margin-top: 6px;
  max-width: 40ch;
  color: var(--muted);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
  }

  .steps__item {
    padding: 70px 0 0;
  }

  .steps__item:not(:last-child)::before {
    top: 21px;
    bottom: auto;
    left: 62px;
    right: -44px;
    width: auto;
    height: 0;
    border-left: 0;
    border-top: 3px dotted var(--blue);
  }

  .steps__item h3 {
    padding-top: 0;
  }
}

/* ---------- Área de atendimento ---------- */

.coverage {
  padding-block: 52px;
  color: #fff;
  background: var(--navy);
}

.coverage h2 {
  color: #fff;
}

.coverage__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.coverage p {
  margin-top: 8px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 900px) {
  .coverage {
    padding-block: 68px;
  }

  .coverage__inner {
    gap: 28px;
  }

  .coverage .icon--xl {
    width: 68px;
    height: 68px;
  }
}

/* ---------- Dúvidas ---------- */

.faq {
  background: var(--ice-50);
}

.faq__inner {
  display: grid;
  gap: 8px;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  display: block;
  padding: 20px 40px 20px 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform 0.2s ease;
}

.faq__item summary::after {
  transform: rotate(90deg);
}

.faq__item[open] summary::after {
  transform: rotate(0);
}

.faq__item p {
  padding: 0 40px 22px 0;
  max-width: 60ch;
  color: var(--muted);
}

@media (min-width: 900px) {
  .faq__inner {
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
  }

  .faq__inner .section__head {
    margin-bottom: 0;
  }
}

/* ---------- CTA final ---------- */

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 76px;
  color: #fff;
  background: linear-gradient(160deg, var(--blue-ink), var(--navy-2) 55%, var(--navy));
}

.final-cta::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 75%;
  height: 90%;
  opacity: 0.5;
  background-image: radial-gradient(circle, #8fc0ff 1.4px, transparent 1.9px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 100% 100%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 90% at 100% 100%, #000 0%, transparent 70%);
}

.final-cta h2 {
  color: #fff;
}

.final-cta__inner {
  display: grid;
  gap: 14px;
}

.final-cta p {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.88);
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 14px;
}

.final-cta__ig {
  color: rgba(255, 255, 255, 0.88);
  text-underline-offset: 3px;
}

.final-cta__ig:hover {
  color: #fff;
}

@media (min-width: 900px) {
  .final-cta {
    padding-block: 108px;
  }

  .final-cta__inner {
    justify-items: start;
  }
}

/* ---------- Rodapé ---------- */

.site-footer {
  padding-block: 28px;
  font-size: 0.92rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
}

/* ---------- Botão flutuante ---------- */

.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 58px;
  padding: 0 16px;
  border: 2px solid var(--navy);
  border-radius: 29px;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  background: var(--wa);
  box-shadow: 0 4px 0 var(--navy);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.15s ease;
}

.fab:hover {
  background: var(--wa-hover);
}

.fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
}

.icon--fab {
  width: 24px;
  height: 24px;
}

.fab__label {
  display: none;
}

@media (min-width: 760px) {
  .fab {
    right: 24px;
    bottom: 24px;
    padding: 0 22px 0 18px;
  }

  .fab__label {
    display: inline;
  }
}

/* ---------- Preferências de movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scene .room,
  .pill {
    animation: none;
  }

  .btn,
  .fab,
  .pill,
  .svc__icon,
  .faq__item summary::before,
  .faq__item summary::after {
    transition: none;
  }
}
