/* Mottin Engenharia e Construções - identidade: amarelo + grafite */
:root {
  --yellow: #ffcf28;
  --yellow-dark: #e6b400;
  --ink: #373435;
  --ink-2: #4b4849;
  --text: #3d3d40;
  --muted: #6d6d72;
  --tint: #f4f3f0;
  --line: #e4e2dd;
  --white: #fff;
  --radius: 18px;
  --container: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.300rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.700rem, 3.800vw, 2.500rem); font-weight: 800; }
h3 { font-size: 1.150rem; font-weight: 700; }
p { margin: 0 0 1em; }
mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 .18em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.300em; height: 1.300em; flex: none; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1em; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--yellow); }
.eyebrow--light { color: #c9c9cc; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn[hidden] { display: none; }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: #ffd94f; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* Cabeçalho */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 50px; height: auto; }
.brand__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; text-align: left; }
.brand__text strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 1.75rem;
  letter-spacing: .02em; color: var(--ink); align-self: stretch;
  padding-bottom: 1px; border-bottom: 2px solid var(--yellow);
}
.brand__text small {
  font-family: "Barlow", sans-serif; font-weight: 600; font-size: .66rem; letter-spacing: .09em;
  color: var(--ink); margin-top: 4px; white-space: nowrap;
}
.brand--stacked { flex-direction: column; align-items: center; gap: 4px; }
.brand--stacked img { width: 110px; }
.brand--stacked .brand__text { align-items: center; text-align: center; }
.brand--stacked .brand__text strong { font-size: 2.4rem; }
.brand--stacked .brand__text small { font-size: .82rem; margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--ink); color: #dcdcdf; overflow: hidden; padding: 96px 0 0; }
.hero__inner { position: relative; z-index: 2; max-width: var(--container); }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero__lead { font-size: clamp(1.050rem, 1.800vw, 1.250rem); max-width: 46ch; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.facts {
  position: relative; z-index: 2; list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius) var(--radius) 0 0;
}
.facts li { padding: 26px 28px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font-size: 1.300rem; font-weight: 800; color: var(--ink); }
.facts span { color: var(--muted); font-size: .95rem; }

/* Seções */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #cfcfd3; }
.section--dark h2 { color: var(--white); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head p:last-child { margin: 0; font-size: 1.050rem; }

/* Sobre */
.about { display: grid; grid-template-columns: 1.050fr 1fr; gap: 64px; align-items: start; }
.about__text p { font-size: 1.050rem; }
.about__rt { margin-top: 1.6em; padding: 14px 18px; border-left: 4px solid var(--yellow); background: var(--tint); border-radius: 0 12px 12px 0; font-weight: 600; color: var(--ink); }
.about__rt strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.values li { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.values .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--yellow); color: var(--ink); }
.values h3 { margin-bottom: .3em; }
.values p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Serviços */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--line); border-top: 6px solid var(--yellow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.3); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; margin-bottom: 22px; }
.card__icon .icon { width: 28px; height: 28px; }
.card p { color: var(--muted); }
.card ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.card li { position: relative; padding-left: 22px; font-weight: 600; font-size: .95rem; margin-top: 8px; color: var(--ink); }
.card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); }

/* Processo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: passo; }
.steps li { counter-increment: passo; border-top: 3px solid var(--ink); padding-top: 22px; }
.steps li::before {
  content: "0" counter(passo); display: inline-block; font-weight: 800; font-size: .95rem;
  background: var(--yellow); color: var(--ink); padding: 2px 10px; border-radius: 6px; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Obras */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin: 0; background: var(--ink-2); }
.work button { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover img { transform: scale(1.050); }
.work figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: var(--white); pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
}
.work figcaption strong { display: block; font-size: 1rem; }
.work figcaption span { font-size: .82rem; color: var(--yellow); font-weight: 600; }
.work--empty {
  display: grid; place-items: center; text-align: center; background: transparent;
  border: 2px dashed rgba(255,255,255,.22); color: #9c9ca1; font-weight: 600; font-size: .92rem;
}
.work--empty .icon { display: block; width: 34px; height: 34px; margin: 0 auto 8px; color: var(--yellow); }
.gallery__more { margin: 40px 0 0; text-align: center; }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtro {
  font: inherit; font-weight: 700; font-size: .9rem; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.3); transition: background .15s, border-color .15s, color .15s;
}
.filtro:hover { border-color: var(--yellow); color: var(--yellow); }
.filtro.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.work__tag, .work__qtd {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; pointer-events: none;
}
.work__tag { left: 12px; background: var(--yellow); color: var(--ink); }
.work__qtd { right: 12px; background: rgba(0,0,0,.6); color: var(--white); }
.carrossel { position: relative; }
.gallery--carrossel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery--carrossel::-webkit-scrollbar { display: none; }
.gallery--carrossel .work { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
.carrossel__seta {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0;
  cursor: pointer; display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.7); transition: transform .15s;
}
.carrossel__seta:hover { transform: scale(1.08); }
.carrossel__seta svg { width: 22px; height: 22px; }
.carrossel__seta--ant { left: -18px; }
.carrossel__seta--prox { right: -18px; }
@media (max-width: 900px) {
  .gallery--carrossel .work { flex-basis: calc((100% - 18px) / 2); }
  .carrossel__seta--ant { left: -8px; }
  .carrossel__seta--prox { right: -8px; }
}
@media (max-width: 520px) {
  .gallery--carrossel .work { flex-basis: 86%; }
  .carrossel__seta { width: 42px; height: 42px; }
}
.pagina-obras { padding-top: 64px; }
.pagina-obras .voltar { display: inline-flex; align-items: center; gap: 8px; color: #cfcfd3; font-weight: 600; font-size: .92rem; text-decoration: none; margin-bottom: 26px; }
.pagina-obras .voltar:hover { color: var(--yellow); }
.pagina-obras h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); }
.gallery__more { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.lightbox { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; color: var(--white); overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox__palco { position: relative; }
.lightbox img { max-height: 76vh; max-width: 100%; margin: 0 auto; border-radius: 12px; }
.lightbox__titulo { text-align: center; margin: 14px 0 0; font-weight: 700; font-size: 1.05rem; }
.lightbox__meta { text-align: center; margin: 2px 0 0; font-size: .88rem; color: #cfcfd3; }
.lightbox__close, .lightbox__seta {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center; z-index: 2;
}
.lightbox__close { top: -8px; right: -4px; font-size: 1.6rem; line-height: 1; }
.lightbox__seta { top: 50%; translate: 0 -50%; }
.lightbox__seta svg { width: 22px; height: 22px; }
.lightbox__seta--ant { left: 8px; }
.lightbox__seta--prox { right: 8px; }
.lightbox--unica .lightbox__seta { display: none; }

/* CTA */
.cta { background: var(--yellow); padding: 72px 0; }
.cta__inner { text-align: center; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--ink); font-size: 1.100rem; margin-bottom: 1.600em; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.150fr; gap: 56px; align-items: center; }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--tint); color: var(--ink); }
.contact__list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.080rem; line-height: 1.4; }
.contact__list a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--tint); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Rodapé */
.footer { background: var(--tint); color: var(--text); padding: 56px 0 40px; font-size: .92rem; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer p { margin: 0; }
.footer__copy { color: var(--muted); font-size: .82rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); transition: background .15s, color .15s; }
.footer__social a:hover { background: var(--yellow); color: var(--ink); }
.contact__social { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* WhatsApp flutuante */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.45); transition: transform .15s;
}
.fab:hover { transform: scale(1.080); }
.fab .icon { width: 30px; height: 30px; }

/* Responsivo */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 64px; }
  .facts { grid-template-columns: 1fr; margin-top: 48px; }
  .facts li { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
  .facts li:first-child { border-top: 0; }
}
@media (max-width: 520px) {
  .steps, .gallery { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- Abertura: texto + ilustração da casa em etapas ---- */
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero__obra { margin: 0; }
.hero__obra svg { display: block; width: 100%; height: auto; }
.etapas {
  list-style: none; margin: 14px 3.85% 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; font-weight: 700; font-size: .88rem; color: var(--white);
}
.etapas span { display: block; color: var(--yellow); font-size: .76rem; letter-spacing: .08em; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .etapas { font-size: .72rem; margin-inline: 0; }
}

/* ---- Abertura clara (fundo quadriculado) com ilustração das etapas ---- */
.hero--claro {
  background-color: var(--tint); color: var(--text); padding-top: 72px;
  background-image:
    linear-gradient(rgba(55,52,53,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,52,53,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero--claro h1 { color: var(--ink); }
.hero--claro .btn--ghost { border-color: var(--ink); color: var(--ink); }
.hero--claro .btn--ghost:hover { background: var(--ink); color: var(--white); }
.hero--claro { padding-bottom: 72px; }
.hero--claro .facts {
  margin-top: 56px; background: #b4b1ae; border-radius: var(--radius);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.4);
}
.hero--claro .facts li { border-color: rgba(55,52,53,.22); padding: 28px 32px; }
.hero--claro .facts strong { color: var(--ink); }
.hero--claro .facts span { color: #3f3c3d; }
.hero--claro .etapas { color: var(--ink); }
.hero--claro .etapas span { color: #a87f00; }
.obras3d .etapas { margin: 0; }
.obras3d__abas { display: flex; justify-content: center; gap: 8px; margin-bottom: 4px; }
.obras3d__aba {
  font: inherit; font-weight: 700; font-size: .88rem; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--line); transition: background .15s, border-color .15s;
}
.obras3d__aba:hover { border-color: var(--ink); }
.obras3d__aba.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.obras3d__palco { position: relative; }
.obras3d__slide { margin: 0; display: none; }
.obras3d__slide.is-active { display: block; animation: obra-entra .35s ease; }
@keyframes obra-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.obras3d__seta {
  position: absolute; top: 42%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5);
  transition: background .15s, border-color .15s, transform .15s;
}
.obras3d__seta:hover { background: var(--yellow); border-color: var(--yellow); transform: scale(1.06); }
.obras3d__seta svg { width: 22px; height: 22px; }
.obras3d__seta--ant { left: -14px; }
.obras3d__seta--ant svg { transform: rotate(180deg); }
.obras3d__seta--prox { right: -14px; }
@media (max-width: 900px) {
  .obras3d__seta--ant { left: -6px; }
  .obras3d__seta--prox { right: -6px; }
  .obras3d__seta { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .obras3d__slide.is-active { animation: none; } }
.hero__obra .pino { font-family: var(--font); font-size: 13px; font-weight: 800; fill: var(--ink); }

/* Destaques da abertura no celular: dois blocos lado a lado + um bloco largo */
@media (max-width: 760px) {
  .hero--claro .facts {
    grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px;
    background: none; box-shadow: none; border-radius: 0;
  }
  .hero--claro .facts li {
    border: 0; border-radius: 14px; background: #b4b1ae; padding: 18px 18px 16px;
  }
  .hero--claro .facts li:last-child { grid-column: 1 / -1; }
  .hero--claro .facts strong { font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; }
  .hero--claro .facts span { display: block; font-size: .88rem; line-height: 1.4; }
  .hero--claro .facts li:last-child strong { font-size: 1.1rem; }
}
