/* =========================================================
   DAL SOTO MONTAGENS — style.css
   Sistema de cores: preto (ink) / vermelho (red) / branco (paper)
   Tipografia: Big Shoulders Display (títulos) + Inter (texto)
   ========================================================= */

:root {
  --ink: #17130f;        /* preto quente — carcaça de ferramenta */
  --ink-soft: #322c26;   /* preto suavizado, para textos sobre claro */
  --paper: #ffffff;      /* branco puro */
  --stone: #edebe6;      /* cinza-pedra claro — fundo alternado */
  --stone-line: #ddd9d1; /* linhas/divisores sobre stone */
  --red: #c8102e;        /* vermelho ferramenta — CTA e destaque */
  --red-dark: #9c0c22;   /* hover do vermelho */
  --graphite: #55524c;   /* texto secundário */

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 4px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-label .bar {
  width: 28px;
  height: 4px;
  background: var(--red);
  flex-shrink: 0;
}

.section-label span {
  font-size: 0.82rem;
  color: var(--graphite);
  letter-spacing: 0.01em;
}

h1, h2, h3, .headline {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 0.98;
  margin: 0;
  letter-spacing: 0.002em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  max-width: 20ch;
  margin-bottom: 14px;
}

p { max-width: 62ch; }

.section {
  padding: 76px 0;
}

.section.stone { background: var(--stone); }

.section-intro {
  max-width: 620px;
  margin-bottom: 44px;
}

.section-intro p {
  color: var(--graphite);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-on-red {
  background: #fff;
  color: var(--red);
}
.btn-on-red:hover { background: var(--stone); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.logo span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--graphite);
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  gap: 22px;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
}

.hero-text .lede {
  font-size: 1.12rem;
  color: var(--graphite);
  max-width: 46ch;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero-tags span { white-space: nowrap; }

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
}

.rating-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.rating-chip svg { width: 18px; height: 18px; color: var(--red); }

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,15,0) 40%, rgba(23,19,15,0.55) 100%);
}

/* -------------------- Slots de imagem/vídeo (placeholders auto-explicativos) -------------------- */
/*
  Todo <img> do site tem um wrapper com classe .img-slot e um atributo
  data-file="caminho/do/arquivo.jpg". Enquanto o arquivo não existir na pasta,
  o onerror da <img> adiciona a classe .is-missing e o CSS abaixo mostra,
  no lugar da foto quebrada, o nome exato do arquivo esperado.
  Assim que você colocar a foto com esse nome exato na pasta, ela substitui
  o aviso automaticamente — nenhuma edição de código é necessária.
*/

.img-slot {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-slot.is-missing img { display: none; }

.img-slot.is-missing::before {
  content: "Adicione a imagem:\A" attr(data-file);
  white-space: pre-wrap;
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--graphite);
  border: 1.5px dashed var(--stone-line);
  border-radius: var(--radius);
  padding: 10px;
  background: #f7f6f3;
}

.hero-image.img-slot.is-missing::before {
  color: #cfcac2;
  border-color: rgba(255,255,255,0.25);
  background: transparent;
}

/* -------------------- Faixa de indicadores -------------------- */

.stats-strip {
  background: var(--ink);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0;
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.9rem;
  color: #d8d4cc;
  margin-top: 6px;
}

/* -------------------- Como funciona (sequência real) -------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step {
  border-top: 3px solid var(--red);
  padding-top: 18px;
}

.step .step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--graphite); font-size: 0.98rem; }

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
}

.service-card {
  background: var(--paper);
  padding: 32px 28px;
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--red);
  margin-bottom: 18px;
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.service-card p { color: var(--graphite); font-size: 0.95rem; }

/* -------------------- Trabalhos realizados -------------------- */

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-chips button {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--stone-line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chips button:hover { border-color: var(--ink); }

.filter-chips button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card { display: none; }
.work-card.show { display: block; }

.work-card .img-slot { aspect-ratio: 4 / 3; border-radius: var(--radius); }

.work-card figcaption {
  padding-top: 10px;
  font-size: 0.94rem;
}

.work-card figcaption .place {
  display: block;
  color: var(--graphite);
  font-size: 0.82rem;
}

/* -------------------- Por que escolher -------------------- */

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 48px;
}

.benefit {
  display: flex;
  gap: 16px;
}

.benefit svg {
  width: 26px;
  height: 26px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}

.benefit h3 { font-size: 1.1rem; margin-bottom: 4px; }
.benefit p { color: var(--graphite); font-size: 0.94rem; }

/* -------------------- Sobre -------------------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about .img-slot { aspect-ratio: 3 / 4; border-radius: var(--radius); }

.about-credentials {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-credentials li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.about-credentials svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

/* -------------------- Avaliações -------------------- */

.reviews-head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--paper);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
}

.google-badge .stars { display: flex; gap: 2px; }
.google-badge .stars svg { width: 16px; height: 16px; color: var(--red); }
.google-badge strong { font-family: var(--font-display); font-size: 1.3rem; }
.google-badge span { font-size: 0.85rem; color: var(--graphite); display: block; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--paper);
  border: 1.5px dashed var(--stone-line);
  border-radius: var(--radius);
  padding: 26px;
}

.review-card .stars { display: flex; gap: 2px; margin-bottom: 12px; }
.review-card .stars svg { width: 15px; height: 15px; color: var(--red); }

.review-card blockquote {
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--ink-soft);
  font-style: italic;
}

.review-card .author {
  font-size: 0.85rem;
  color: var(--graphite);
  font-weight: 600;
}

.review-card .edit-note {
  display: block;
  margin-top: 10px;
  font-size: 0.74rem;
  color: #a39d92;
}

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

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-chips span {
  padding: 10px 18px;
  border: 1.5px solid var(--stone-line);
  border-radius: 999px;
  font-size: 0.92rem;
  background: var(--paper);
}

/* -------------------- Vídeos -------------------- */

.video-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.video-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  text-decoration: none;
}

.video-card .img-slot {
  aspect-ratio: 9 / 12;
  border-radius: var(--radius);
  position: relative;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-badge svg {
  width: 52px;
  height: 52px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.video-card figcaption {
  padding-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.cta-final {
  background: var(--red);
  color: #fff;
  text-align: left;
}

.cta-final .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 56px 24px;
}

.cta-final h2 { color: #fff; margin-bottom: 8px; }
.cta-final p { color: #ffd9d9; margin: 0; }

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

.site-footer {
  background: var(--ink);
  color: #cfcac2;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #3a352e;
}

.footer-grid .logo { color: #fff; }
.footer-grid .logo span { color: #9c968b; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #fff;
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { text-decoration: none; color: #cfcac2; font-size: 0.92rem; }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #8a857c;
}

/* -------------------- WhatsApp flutuante -------------------- */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--safe-bottom));
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(23,19,15,0.35);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 340px; order: -1; }
  .hero-text { padding: 40px 24px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-list { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about .img-slot { max-width: 320px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--stone-line);
  }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-final .container { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
}
