/* ============================================================
   Novo Patamar Construções — Landing Page
   ============================================================ */

:root {
  --navy: #0E2A4E;
  --navy-dark: #0A1F3A;
  --gold: #E8A81C;
  --yellow: #FFC72C;
  --offwhite: #F7F8FA;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #1Fb457;
  --ink: #16233A;
  --muted: #5A6B82;
  --line: #E2E7EE;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(14, 42, 78, 0.08);
  --shadow-soft: 0 4px 16px rgba(14, 42, 78, 0.06);
  --header-h: 74px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: "Montserrat", sans-serif; line-height: 1.15; color: var(--navy); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.section { padding: 88px 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  line-height: 1.1; text-align: center;
}
.br-mob { display: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28); }
.btn-whatsapp:hover { background: var(--wa-dark); box-shadow: 0 12px 26px rgba(37, 211, 102, 0.34); }
.btn-gold { background: var(--gold); color: var(--navy-dark); box-shadow: 0 8px 20px rgba(232, 168, 28, 0.28); }
.btn-gold:hover { background: var(--yellow); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.ico-wa { width: 22px; height: 22px; flex: none; }
.btn-sm .ico-wa { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy); height: var(--header-h);
  transition: height .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.site-header.shrink { height: 60px; box-shadow: 0 6px 20px rgba(10, 31, 58, 0.35); background: var(--navy-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.logo img { height: 40px; width: auto; transition: height .22s var(--ease); }
.site-header.shrink .logo img { height: 34px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 15px; color: rgba(255,255,255,0.86);
  position: relative; transition: color .15s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width .2s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.header-cta { flex: none; }

/* ---------- Hero ---------- */
.hero { background: var(--offwhite); padding: calc(var(--header-h) + 64px) 0 76px; position: relative; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.5px; }
.hero-sub { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 32em; }
.microcopy { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- Slider antes/depois ---------- */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 10 / 11; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); user-select: none; -webkit-user-select: none;
  touch-action: none; background: var(--navy);
  border: 1px solid rgba(14,42,78,0.06);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* DEPOIS fica por cima, revelada só à direita da alça via clip-path */
.ba-depois { clip-path: inset(0 0 0 50%); will-change: clip-path; }
.ba-label {
  position: absolute; top: 14px; font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 1.5px; padding: 6px 12px; border-radius: 6px; z-index: 3;
  color: #fff; backdrop-filter: blur(2px);
}
.ba-label-antes { left: 14px; background: rgba(10, 31, 58, 0.72); }
.ba-label-depois { right: 14px; background: rgba(232, 168, 28, 0.92); color: var(--navy-dark); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%);
  background: transparent; border: none; cursor: ew-resize; z-index: 4; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.ba-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%);
  background: #fff; box-shadow: 0 0 0 1px rgba(10,31,58,0.15);
}
.ba-handle-circle {
  position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px rgba(10, 31, 58, 0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--ease);
}
.ba-handle:hover .ba-handle-circle { transform: scale(1.06); }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-handle-circle { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Barra de credibilidade ---------- */
.cred-bar { background: var(--navy); color: #fff; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 24px; }
.cred-item { display: flex; flex-direction: column; gap: 3px; position: relative; padding-left: 18px; }
.cred-item::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--gold); border-radius: 2px; }
.cred-item strong { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 17px; color: var(--yellow); }
.cred-item span { font-size: 14px; color: rgba(255,255,255,0.78); }

/* ---------- Cabeçalho de seção ---------- */
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.kicker {
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.3px; }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.obra-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.obra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.obra-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.obra-pair figure { position: relative; margin: 0; }
.obra-pair img { aspect-ratio: 1 / 1.05; object-fit: cover; width: 100%; }
.obra-pair figcaption {
  position: absolute; bottom: 8px; left: 8px; font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border-radius: 5px;
  background: rgba(10, 31, 58, 0.75); color: #fff;
}
.obra-pair figure:last-child figcaption { background: rgba(232, 168, 28, 0.92); color: var(--navy-dark); }
.obra-body { padding: 14px 18px 16px; }
.obra-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.obra-body .ticks li { font-size: 13.5px; margin-bottom: 4px; padding-left: 22px; color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- A dor ---------- */
.section-dor { background: var(--offwhite); }
.dor-cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; counter-reset: none; }
.dor-cycle li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.dor-num {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; background: var(--navy); color: var(--yellow);
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
.dor-cycle li strong { display: block; font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.dor-cycle li p { color: var(--muted); font-size: 15px; }
.dor-fecho { text-align: center; }
.dor-fecho-top { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--gold); font-size: 18px; letter-spacing: 0.3px; margin-bottom: 18px; }
.dor-fecho-big { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--navy); font-size: clamp(26px, 4vw, 44px); line-height: 1.12; }
.dor-fecho-big .hl { color: var(--gold); position: relative; }
.dor-fecho-big .hl::after {
  content: ""; display: block; width: 84px; height: 4px; background: var(--yellow); border-radius: 3px; margin: 14px auto 0;
}

/* ---------- Como trabalhamos ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-soft); transition: transform .2s var(--ease); }
.step-card:hover { transform: translateY(-4px); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--yellow); font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 15px; }

/* ---------- Serviços ---------- */
.section-servicos { background: var(--offwhite); }
.serv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.serv-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 18px;
  font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--navy); font-size: 16px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.serv-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.serv-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--offwhite); display: flex; align-items: center; justify-content: center; }
.serv-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Engenheiro ---------- */
.eng-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.eng-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.eng-copy h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.eng-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); margin-top: 6px; }
.eng-crea { font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px; color: var(--gold); margin-bottom: 18px; }
.eng-copy p { color: var(--muted); margin-bottom: 14px; }
.eng-copy .btn { margin-top: 10px; }

/* ---------- Depoimentos ---------- */
.section-depo { background: var(--navy); }
.section-depo .kicker { color: var(--yellow); }
.section-depo h2 { color: #fff; }
.depo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.depo-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 30px 26px 26px; position: relative;
}
.quote-mark { position: absolute; top: 10px; left: 20px; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 60px; color: var(--gold); opacity: 0.5; line-height: 1; }
.depo-card p { color: rgba(255,255,255,0.9); font-size: 16px; position: relative; z-index: 1; margin-top: 20px; }
.depo-card footer { margin-top: 18px; font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--yellow); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 4px; font-family: "Montserrat", sans-serif;
  font-weight: 700; font-size: 18px; color: var(--navy); display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 20px; height: 20px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.faq-plus::before { top: 9px; left: 0; width: 20px; height: 2.5px; }
.faq-plus::after { left: 9px; top: 0; width: 2.5px; height: 20px; }
.faq-list details[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 4px 22px; }
.faq-answer p { color: var(--muted); font-size: 16px; }

/* ---------- CTA final ---------- */
.cta-final { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 84px 0; text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-final h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.cta-final > .container > p, .cta-inner > p { color: rgba(255,255,255,0.82); font-size: 18px; margin: 16px 0 30px; }
.cta-contatos { margin-top: 26px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 17px; }
.cta-contatos a { color: var(--yellow); }
.cta-contatos a:hover { color: #fff; }
.cta-contatos .sep { margin: 0 12px; color: rgba(255,255,255,0.4); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-logo { height: 44px; width: auto; }
.footer-tagline { font-family: "Montserrat", sans-serif; font-weight: 600; color: #fff; font-size: 15px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--yellow); font-weight: 500; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 6px; }

/* ---------- Botão flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px;
  border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease), background-color .18s var(--ease);
}
.wa-float.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px) scale(1.05); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Reveal (IntersectionObserver) ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { order: 1; }
  .hero-slider { order: 2; }
  .eng-grid { grid-template-columns: 1fr; gap: 32px; }
  .eng-photo { max-width: 420px; margin: 0 auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .dor-cycle { grid-template-columns: repeat(2, 1fr); }
  .cred-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 20px; align-items: start; }
  .depo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .nav-links { display: none; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-sub { font-size: 17px; }
  .gallery { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .dor-cycle { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; gap: 16px; padding: 26px 18px; }
  .cred-item { padding-left: 14px; gap: 2px; }
  .cred-item strong { font-size: 15.5px; line-height: 1.25; }
  .cred-item span { font-size: 13.5px; line-height: 1.4; }
  .header-cta span { display: inline; }
  .btn-lg { width: 100%; }
  .hero-copy .btn-lg { width: 100%; }
  /* CTA WhatsApp: texto alinhado à esquerda e quebra controlada em 2 linhas */
  .btn-lg { justify-content: flex-start; text-align: left; gap: 14px; padding: 16px 20px; }
  .btn-lg .btn-label { line-height: 1.25; }
  .br-mob { display: inline; }
  .cta-final .btn-lg { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .header-cta { padding: 9px 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .obra-card, .step-card, .serv-item, .wa-float, .ba-handle-circle { transition: none; }
  * { animation-duration: 0.001ms !important; }
}
