/* ============================================================
   Via Mobile - Ambientes Personalizados
   Design system — estética do showroom: madeira, mármore,
   terracota, sage, âmbar. Sofisticado e acolhedor.
   ============================================================ */

:root {
  /* Paleta */
  --marfim: #faf7f2;
  --marfim-2: #f1ece3;
  --texto: #2b2622;
  --texto-suave: #5c544c;
  --madeira: #9c6b3f;
  --madeira-escura: #6f4a29;
  --terracota: #b85c38;
  --terracota-escura: #9e4a2a;
  --sage: #8a9a7b;
  --sage-escura: #6c7c5d;
  --linha: #e4dcd0;
  --branco: #ffffff;
  --sombra: 0 18px 50px -24px rgba(43, 38, 34, .35);
  --sombra-sutil: 0 6px 24px -14px rgba(43, 38, 34, .3);

  /* Tipografia */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --gap: clamp(1rem, 2.5vw, 2rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--texto);
  background: var(--marfim);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Tipografia */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { color: var(--texto-suave); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--terracota);
  display: inline-block;
  margin-bottom: 1rem;
}
.serif-accent { font-family: var(--serif); font-style: italic; }

/* Layout */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tinted { background: var(--marfim-2); }
.section--dark { background: var(--texto); color: var(--marfim); }
.section--dark p { color: #cfc6ba; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--terracota); color: #fff; }
.btn--primary:hover { background: var(--terracota-escura); transform: translateY(-2px); box-shadow: var(--sombra-sutil); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--texto); }
.btn--ghost:hover { background: var(--texto); color: var(--marfim); }
.btn--light { background: var(--marfim); color: var(--texto); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sombra-sutil); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.header__logo { display: inline-flex; align-items: center; }
.header__logo img { height: 40px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { font-weight: 500; font-size: .96rem; position: relative; padding: .2rem 0; }
.nav a:hover { color: var(--terracota); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--terracota); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--texto); transition: .3s; }

/* Hero */
.hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: flex-end; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,38,34,.25) 0%, rgba(43,38,34,.15) 40%, rgba(43,38,34,.82) 100%); }
.hero__content { padding-bottom: clamp(3rem, 7vw, 6rem); max-width: 760px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #f0c9b3; }
.hero p { color: #f3ede5; font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin: 1.2rem 0 2rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__micro { margin-top: 1.1rem; font-size: .9rem; color: #e7ddd2; display: flex; align-items: center; gap: .5rem; }

/* Barra de diferenciais */
.diferenciais { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.diferencial { padding: 1.4rem 0; }
.diferencial__icon { width: 44px; height: 44px; color: var(--terracota); margin-bottom: .9rem; }
.diferencial h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.diferencial p { font-size: .95rem; }

/* Seção com vídeo */
.video-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.video-split--reverse .video-split__media { order: -1; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--sombra); cursor: pointer; background: #000;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-frame:hover img { transform: scale(1.04); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame__play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184,92,56,.92); border-radius: 50%; color: #fff;
  transition: transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.video-frame:hover .video-frame__play { transform: scale(1.08); }
.quote-wall { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--madeira-escura); border-left: 3px solid var(--terracota); padding-left: 1.2rem; margin: 1.5rem 0; }
.subbloco { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin-top: 1.4rem; }
.subbloco strong { color: var(--texto); }

/* Portfólio */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat-card { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--sombra-sutil); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(43,38,34,.78)); }
.cat-card__label { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 2; color: #fff; }
.cat-card__label h3 { color: #fff; font-size: 1.25rem; }
.cat-card__label p { color: #eaded2; font-size: .85rem; margin-top: .15rem; }

/* Processo */
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: passo; }
.passo { position: relative; padding-top: 1rem; }
.passo__num { font-family: var(--serif); font-size: 2.6rem; color: var(--sage); line-height: 1; margin-bottom: .6rem; }
.passo h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.passo p { font-size: .94rem; }

/* Contadores */
.contadores { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.contador__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--terracota); line-height: 1; }
.contador__label { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--texto-suave); margin-top: .4rem; }
.placeholder-flag { background: #fff5ef; border: 1px dashed var(--terracota); color: var(--terracota-escura); font-size: .8rem; padding: .15rem .5rem; border-radius: 6px; display: inline-block; }

/* Depoimentos */
.depoimentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.depoimento { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--sombra-sutil); }
.depoimento p { font-style: italic; color: var(--texto); }
.depoimento__autor { margin-top: 1rem; font-weight: 600; font-family: var(--sans); font-style: normal; color: var(--texto); }

/* CTA final */
.cta-final { text-align: center; }
.cta-final h2 { color: var(--marfim); max-width: 18ch; margin-inline: auto; }
.cta-final p { max-width: 52ch; margin: 1rem auto 2rem; }

/* Footer */
.footer { background: #211d1a; color: #cfc6ba; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer a:hover { color: var(--terracota); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer h4 { color: var(--marfim); font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer__logo img { height: 58px; width: auto; display: block; }
.footer ul li { margin-bottom: .55rem; font-size: .95rem; }
.footer__bottom { border-top: 1px solid #3a342e; margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Botão flutuante WhatsApp */
.wpp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s;
}
.wpp-float:hover { transform: scale(1.08); }
.wpp-float svg { width: 32px; height: 32px; fill: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,17,15,.94); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1.2rem; } .lightbox__nav--next { right: 1.2rem; }

/* Galeria de projetos */
.filtros { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.2rem; }
.filtro { padding: .5rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--linha); background: #fff; cursor: pointer; font-weight: 500; font-size: .92rem; transition: .2s; }
.filtro.is-active, .filtro:hover { background: var(--texto); color: #fff; border-color: var(--texto); }
.galeria { columns: 4 220px; column-gap: 1rem; }
.galeria__item { break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; box-shadow: var(--sombra-sutil); }
.galeria__item img { width: 100%; transition: transform .5s; }
.galeria__item:hover img { transform: scale(1.05); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Página interna: hero simples */
.page-hero { background: var(--marfim-2); padding: clamp(3rem,7vw,5rem) 0 clamp(2rem,4vw,3rem); border-bottom: 1px solid var(--linha); }
.breadcrumb { font-size: .85rem; color: var(--texto-suave); margin-bottom: .8rem; }
.breadcrumb a:hover { color: var(--terracota); }

/* Formulário */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }
.form input, .form textarea, .form select { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--linha); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: #fff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--terracota); border-color: var(--terracota); }
.form .honeypot { position: absolute; left: -9999px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Responsivo */
@media (max-width: 980px) {
  .diferenciais, .passos, .contadores { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .depoimentos { grid-template-columns: 1fr; }
  .video-split { grid-template-columns: 1fr; }
  .video-split--reverse .video-split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .galeria { columns: 2 160px; }
}
@media (max-width: 640px) {
  .nav, .header__cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--marfim); padding: 1.2rem 1.5rem; gap: 1rem; border-bottom: 1px solid var(--linha); }
  .nav.open .btn { display: inline-flex; }
  .diferenciais, .passos, .contadores, .footer__grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  /* Hero minimalista no mobile: some o parágrafo e leva o eyebrow para a base escura da imagem */
  .hero__content { display: flex; flex-direction: column; min-width: 0; }
  .hero__content > * { min-width: 0; max-width: 100%; }
  .hero__desc { display: none; }
  .hero h1 { order: 1; overflow-wrap: break-word; }
  .hero__actions { order: 2; }
  .hero__micro { order: 3; }
  .hero .eyebrow { order: 4; margin: 1rem 0 0; }
}
