/* ══════════════════════════════════════════════════════════════════════
   SAVAL — Design system compartilhado
   Usado por: index.html, servicos/paver.html (e próximas páginas de serviço).
   Estilos page-specific ficam no <style> inline de cada página.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --navy:        #141723;
  --navy-2:      #1c2030;
  --navy-3:      #262b3e;
  --lime:        #f7ff90;
  --lime-hover:  #e7f077;
  --steel:       #9096a4;
  --white:       #ffffff;
  --off:         #f4f4f1;

  --steel-08:    rgba(144, 150, 164, 0.08);
  --steel-15:    rgba(144, 150, 164, 0.15);
  --steel-22:    rgba(144, 150, 164, 0.22);
  --steel-30:    rgba(144, 150, 164, 0.30);
  --steel-60:    rgba(144, 150, 164, 0.60);

  --white-soft:  rgba(255, 255, 255, 0.82);
  --white-mute:  rgba(255, 255, 255, 0.62);
  --white-line:  rgba(255, 255, 255, 0.18);

  --navy-veil-1: rgba(20, 23, 35, 0.92);
  --navy-veil-2: rgba(20, 23, 35, 0.72);
  --navy-veil-3: rgba(20, 23, 35, 0.40);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
section { scroll-margin-top: 80px; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  width: fit-content;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn-primary {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}
.btn-primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white-line);
}
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn .arrow { display: inline-block; transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.link-lime {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lime);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  transition: color 0.18s ease;
}
.link-lime:hover { color: var(--lime-hover); }
.link-lime .arrow { transition: transform 0.18s ease; }
.link-lime:hover .arrow { transform: translateX(4px); }

.eyebrow {
  display: inline-block;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ── HEADER ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 35, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--steel-08);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 64px;
  gap: 32px;
}
.logo img { height: 34px; width: auto; }
.menu {
  display: flex;
  gap: 30px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--white-soft);
}
.menu a {
  transition: color 0.18s ease;
  position: relative;
}
.menu a:hover { color: var(--white); }
.nav-cta {
  background: var(--lime);
  color: var(--navy);
  border: 1px solid var(--lime);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  transition: background 0.18s ease;
}
.nav-cta:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--white-line);
  color: var(--white);
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 4px;
}
.menu-btn svg { width: 20px; height: 20px; display: block; }

/* ── HERO ─── foto de fundo vem da página (--hero-bg) ── */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  background-image:
    linear-gradient(90deg, var(--navy-veil-1) 0%, var(--navy-veil-2) 45%, var(--navy-veil-3) 100%),
    var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 96px 64px;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 780px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -4px;
  margin-bottom: 28px;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero p {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--white-soft);
  margin-bottom: 38px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── SECTION SCAFFOLD ────────────────────────── */
section.block {
  padding-block: 110px;
  padding-inline: max(64px, calc((100% - 1320px) / 2));
}
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-title {
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -2.5px;
  color: var(--white);
  margin-bottom: 22px;
}
.section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--white-mute);
  max-width: 580px;
}

/* ── PROCESS ── base ── fotos por etapa vêm via --pc-photo (setado por página) */
.process { background: var(--navy); border-top: 1px solid var(--steel-08); }
.process-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--steel-15);
}
.pc-col {
  position: relative;
  min-height: clamp(300px, 34vw, 420px);
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
}
.pc-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 23, 35, 0.35) 0%, rgba(20, 23, 35, 0.55) 45%, rgba(20, 23, 35, 0.90) 100%),
    var(--pc-photo, none) center / cover no-repeat;
}
.pc-col + .pc-col { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.pc-num {
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 200;
  color: var(--white);
  line-height: 0.85;
  letter-spacing: -3px;
}
.pc-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pc-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
}
.pc-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.pc-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
  max-width: 18ch;
}
.pc-go {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--lime);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pc-go:hover {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
  transform: translate(2px, -2px);
}
.pc-go svg { width: 14px; height: 14px; }

/* ── OBRAS ── grid + card base + variante is-live ── */
.portfolio { background: var(--navy-2); }
.portfolio .section-head { max-width: 760px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  gap: 16px;
  justify-content: start;
}
.obra-card {
  background: var(--navy-2);
  border: 1px solid var(--steel-15);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}
.obra-media {
  position: relative;
  height: 200px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--navy-3);
  isolation: isolate;
}
.obra-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.obra-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--lime);
  color: var(--navy);
}
.obra-types {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.obra-types span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.4px;
  background: rgba(20, 23, 35, 0.65);
  border: 1px solid var(--steel-22);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.obra-body {
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.obra-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.1px;
}
.obra-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--steel);
}
.obra-meta {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--steel);
  text-transform: uppercase;
}
.obra-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.4px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.obra-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.obra-card.is-live .obra-cta {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(144, 150, 164, 0.45);
}
.obra-card.is-live .obra-cta:hover { border-color: var(--lime); }
.obra-card.is-live .obra-cta svg { color: var(--lime); }

/* ── CTA + FORM ────────────────────────────── */
.cta-block { background: var(--navy); border-top: 1px solid var(--steel-08); }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 88px;
  align-items: start;
}
.cta-copy h2 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 0.98;
  letter-spacing: -2.5px;
  font-weight: 400;
  margin-bottom: 22px;
  color: var(--white);
}
.cta-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--white-mute);
  max-width: 460px;
  margin-bottom: 32px;
}
.cta-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--steel-15);
  max-width: 460px;
}
.cta-meta-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
}
.cta-meta-row strong {
  color: var(--steel);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 500;
  min-width: 86px;
}
.cta-meta-row a, .cta-meta-row span { color: var(--white); }
.cta-meta-row a:hover { color: var(--lime); }

.form-card {
  background: var(--navy-2);
  border: 1px solid var(--steel-15);
  border-radius: 8px;
  padding: 40px 36px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  background: var(--navy);
  border: 1px solid var(--steel-22);
  color: var(--white);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border-radius: 6px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--steel-60); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--navy-3);
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--steel) 50%),
    linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-actions .btn { width: auto; }
.form-note {
  font-size: 12.5px;
  color: var(--steel);
  max-width: 260px;
  line-height: 1.5;
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--steel-15);
  padding: 64px 64px 32px;
  color: var(--steel);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--steel-08);
}
.foot-grid p, .foot-grid a {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--steel);
}
.foot-grid a:hover { color: var(--white); }
.foot-grid h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  font-weight: 500;
  color: var(--white);
}
.foot-logo img { height: 34px; width: auto; }
.foot-tag {
  margin-top: 20px;
  max-width: 280px;
}
.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--steel-60, var(--steel));
  letter-spacing: 0.3px;
}
.foot-bottom a { color: var(--steel); }
.foot-bottom a:hover { color: var(--white); }

/* ── FORM STATES ────────────────────────────── */
.form-feedback {
  grid-column: 1 / -1;
  display: none;
  padding: 16px 18px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.form-feedback.visible { display: block; }
.form-feedback.success {
  background: rgba(247, 255, 144, 0.10);
  border: 1px solid var(--lime);
  color: var(--white);
}
.form-feedback.error {
  background: rgba(255, 100, 100, 0.10);
  border: 1px solid rgba(255, 100, 100, 0.5);
  color: var(--white);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .cta-inner { grid-template-columns: 1fr; gap: 56px; }
}

/* Menu vira hambúrguer cedo (7 itens só cabem em 1 linha ≥1215px) */
@media (max-width: 1240px) {
  .menu { display: none; }
  .menu.open {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: absolute;
    top: 78px;
    left: 24px;
    right: 24px;
    background: var(--navy-2);
    padding: 24px;
    border: 1px solid var(--steel-15);
    border-radius: 8px;
    z-index: 60;
  }
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
}

@media (max-width: 900px) {
  .nav { padding: 18px 24px; gap: 12px; }
  .menu.open { top: 64px; }

  .hero {
    min-height: 92vh;
    padding: 80px 24px 100px;
    background-image:
      linear-gradient(180deg, var(--navy-veil-1) 0%, var(--navy-veil-2) 50%, var(--navy-veil-1) 100%),
      var(--hero-bg, none);
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(38px, 10vw, 60px);
    letter-spacing: -2px;
    margin-bottom: 22px;
  }
  .hero p { font-size: 16px; margin-bottom: 30px; }
  .hero-actions { gap: 12px; }

  section.block { padding: 72px 24px; }
  .section-title {
    font-size: clamp(34px, 9vw, 52px);
    letter-spacing: -1.5px;
  }
  .section-lead { font-size: 16px; }
  .section-head { margin-bottom: 44px; }

  /* Como funciona: 4 → 2 colunas (480–899px) e 1 coluna (<480px) */
  .process-cols { grid-template-columns: repeat(2, 1fr); }
  .pc-col + .pc-col { border-left: none; }
  .pc-col:nth-child(1),
  .pc-col:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .pc-col:nth-child(2),
  .pc-col:nth-child(4) { border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .pc-col { min-height: clamp(240px, 56vw, 320px); padding: 24px 18px 20px; }

  /* Obras */
  .obra-card { max-width: none; }
  .obra-media { height: 180px; }

  /* Form */
  .form-card { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .form-note { max-width: none; }

  footer { padding: 56px 24px 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .foot-bottom { font-size: 11.5px; }
}

@media (max-width: 480px) {
  .process-cols { grid-template-columns: 1fr; }
  .pc-col,
  .pc-col + .pc-col,
  .pc-col:nth-child(2),
  .pc-col:nth-child(4) { border-left: none; }
  .pc-col:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .pc-col { min-height: clamp(220px, 65vw, 300px); }
}

/* ── LIGHTBOX ── clique na foto do card .obra-card abre ampliada ── */
.obra-card { cursor: zoom-in; }
.obra-card .obra-cta { cursor: pointer; }
.reg-obra-media { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20, 23, 35, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  min-height: 0;
}
.lightbox-fig img {
  max-height: calc(100% - 40px);
  min-height: 0;
  object-fit: contain;
}
.lightbox-fig figcaption {
  color: var(--steel);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 900px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; }
}

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

/* ── BOTÃO FLUTUANTE DE WHATSAPP ──
   z-index 90 fica ABAIXO do lightbox (100), então o fundo escuro
   da foto ampliada cobre o botão — é o comportamento desejado. */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(20, 23, 35, .35);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, visibility .18s ease;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 23, 35, .45);
}
.wa-float:active { transform: translateY(0); }
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  display: block;
}
.wa-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
@media (min-width: 900px) {
  .wa-float { right: 24px; bottom: 24px; }
}

/* Links das cidades na seção "Onde atendemos" das páginas de serviço.
   Mesmo padrão dos links no FAQ das páginas de região. */
#onde-atendemos .section-lead a {
  color: var(--white);
  border-bottom: 1px solid var(--steel-30);
}
#onde-atendemos .section-lead a:hover {
  border-bottom-color: var(--lime);
}
