/* 2M Impermeabilizações & Engenharia — versão clara e direta */

:root {
  --red: #AB2430;
  --red-dark: #8a1d27;
  --red-soft: #fef3f4;
  --ink: #1c1d20;
  --ink-soft: #3a3c41;
  --muted: #6a6c72;
  --line: #e6e3dd;
  --bg: #faf8f4;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, .04), 0 1px 1px rgba(20, 20, 22, .04);
  --shadow-md: 0 4px 14px rgba(20, 20, 22, .06), 0 2px 4px rgba(20, 20, 22, .04);
  --radius: 10px;
  --max: 1180px;
  --gap: clamp(16px, 2vw, 24px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ============ TOPBAR ============ */
.topbar {
  background: var(--ink);
  color: #d8d9dc;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.topbar__contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__contacts span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social a { display: inline-flex; }

/* ============ HEADER ============ */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 54px; width: auto; display: block; }
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name strong {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__name em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color .15s;
}
.nav a:hover { color: var(--red); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .12s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .2s, opacity .2s;
}
.is-menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-menu-open .burger span:nth-child(2) { opacity: 0; }
.is-menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1c1d20 0%, #2a2b2f 100%);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28,29,32,.92) 0%, rgba(28,29,32,.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 9vw, 100px) 0 clamp(48px, 7vw, 80px);
  max-width: 760px;
}
.hero__tag {
  display: inline-block;
  background: rgba(171, 36, 48, .15);
  border: 1px solid rgba(171, 36, 48, .4);
  color: #f3c8cc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.hero h1 span { color: var(--red); }
.hero__lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #d8d9dc;
  max-width: 580px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__actions .btn--ghost {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.hero__trust {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__trust div strong {
  display: block;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.hero__trust div em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: #a8aab0;
  margin-top: 4px;
  letter-spacing: .02em;
}

/* ============ SECTIONS ============ */
section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section__head {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section__kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.section__lede {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
}

/* ============ SERVICES ============ */
.services {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(171,36,48,.3);
}
.service__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}
.service p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
}
.service ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service ul li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.service ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--red);
}

/* ============ WORKS / GALLERY ============ */
.works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.work {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: #ddd;
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.work:hover img { transform: scale(1.06); }
.work__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  color: #fff;
  opacity: 0;
  transition: opacity .25s;
}
.work:hover .work__caption,
.work:focus-visible .work__caption { opacity: 1; }
.work__caption strong { display: block; font-size: 15px; font-weight: 600; }
.work__caption em { font-style: normal; font-size: 12.5px; opacity: .85; }
.works__cta { text-align: center; margin-top: 36px; }

/* ============ ABOUT ============ */
.about {
  background: #fff;
  border-top: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,.96);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.about__badge strong { display: block; color: var(--red); font-size: 17px; }
.about h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 18px;
  line-height: 1.25;
}
.about__kicker {
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.about p {
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
}
.about__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about__facts div strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.about__facts div em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============ DIFFERENTIALS ============ */
.diff {
  background: var(--bg);
}
.diff__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.diff__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.diff__item svg {
  flex-shrink: 0;
  width: 28px; height: 28px;
  color: var(--red);
  margin-top: 2px;
}
.diff__item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.diff__item span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: clamp(40px, 5vw, 64px) 0;
}
.cta-strip h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.cta-strip p {
  font-size: 16px;
  opacity: .9;
  margin: 0 0 24px;
}
.cta-strip .btn {
  background: #fff;
  color: var(--red);
}
.cta-strip .btn:hover { background: #f4f1ec; }

/* ============ CONTACT ============ */
.contact { background: #fff; border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .12s;
}
.channel:hover { border-color: var(--red); transform: translateX(2px); }
.channel__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel__icon svg { width: 20px; height: 20px; }
.channel__body em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 600;
}
.channel__body strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}
.contact__map {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact__map iframe { width: 100%; height: 100%; border: 0; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: #b4b6bb;
  padding: 36px 0 20px;
  font-size: 13.5px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand img { height: 52px; width: auto; display: block; }
.footer__brand div strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.footer__brand div em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  margin-top: 2px;
  opacity: .7;
}
.footer__motto {
  text-align: right;
  font-size: 14px;
  font-style: italic;
  opacity: .85;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  font-size: 12.5px;
  opacity: .7;
}

/* ============ FLOATING WHATSAPP ============ */
.fab-wa {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 60;
  background: #25D366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,.4);
  transition: transform .15s;
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa svg { width: 30px; height: 30px; }

/* ============ LIGHTBOX ============ */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(20,20,22,.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lb.is-open { display: flex; }
.lb img { max-width: 90vw; max-height: 85vh; border-radius: 6px; }
.lb__close {
  position: absolute;
  top: 18px; right: 22px;
  background: rgba(255,255,255,.1);
  border: 0;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
.lb__close:hover { background: rgba(255,255,255,.2); }
.lb__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 0;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.lb__nav:hover { background: rgba(255,255,255,.2); }
.lb__prev { left: 18px; }
.lb__next { right: 18px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 0; gap: 0; }
  .is-menu-open .nav { display: flex; }
  .nav a { padding: 12px 24px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .header__inner { position: relative; }
  .burger { display: block; }
  .header__cta { display: none; }
  .topbar__social { display: none; }
}

@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__image { aspect-ratio: 4/3; order: -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; }
  .footer__motto { text-align: center; }
  .topbar__contacts { font-size: 12px; }
}

@media (max-width: 520px) {
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__trust div strong { font-size: 19px; }
  .works__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work__caption { opacity: 1; padding: 10px 12px; }
}

@media (max-width: 380px) {
  .works__grid { grid-template-columns: 1fr; }
}
