:root {
  --blue-950: #06263d;
  --blue-900: #083a5f;
  --blue-760: #0f5f89;
  --cyan-600: #1d9db6;
  --amber-500: #f7b538;
  --amber-620: #d89112;
  --gray-950: #14202a;
  --gray-700: #4a5a66;
  --gray-200: #d9e1e7;
  --gray-120: #eef3f6;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(6, 38, 61, 0.14);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 32px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-950);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-900);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--white);
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  color: var(--gray-950);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(6, 38, 61, 0.12);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: min(246px, 54vw);
  height: auto;
}

.brand-logo-dark {
  display: none;
}

.site-header.scrolled .brand-logo-light,
.site-header.menu-active .brand-logo-light {
  display: none;
}

.site-header.scrolled .brand-logo-dark,
.site-header.menu-active .brand-logo-dark {
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-menu a:not(.btn) {
  opacity: 0.88;
}

.nav-menu a:not(.btn):hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-action {
  color: #231b08;
  background: var(--amber-500);
  border-color: var(--amber-500);
}

.btn-action:hover {
  background: #ffc859;
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.btn-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.86rem;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(590px, 86svh, 760px);
  overflow: hidden;
  color: var(--white);
  background: var(--blue-950) url("../img/hero/impermeabilizacao-laje-1280.jpg") 76% center / cover no-repeat;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  object-fit: cover;
  object-position: 76% center;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 38, 61, 0.96) 0%, rgba(6, 38, 61, 0.86) 34%, rgba(6, 38, 61, 0.32) 58%, rgba(6, 38, 61, 0) 100%),
    linear-gradient(180deg, rgba(6, 38, 61, 0.08) 0%, rgba(6, 38, 61, 0.02) 50%, rgba(6, 38, 61, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  max-width: 1120px;
  padding-top: 94px;
}

.hero-content h1 {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--amber-500);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.18rem;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.hero-points li {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-strip {
  background: var(--blue-900);
  color: var(--white);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-grid a {
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-align: center;
}

.strip-grid a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(247, 181, 56, 0.16);
}

.section {
  padding: clamp(72px, 10vw, 118px) 0;
}

.section-problems,
.section-types {
  background: var(--gray-120);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 7vw, 76px);
}

.split-layout.reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.section-copy p,
.section-heading p,
.contact-copy p {
  max-width: 720px;
  color: var(--gray-700);
  font-size: 1.03rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.problem-visual,
.application-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--gray-200);
}

.problem-visual img,
.application-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--blue-900);
  font-weight: 900;
}

.text-link::after,
.service-card a::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(18% 46%, 64% 46%, 44% 26%, 56% 14%, 96% 54%, 56% 94%, 44% 82%, 64% 62%, 18% 62%);
}

.card-grid,
.services-grid,
.cases-grid {
  display: grid;
  gap: 16px;
}

.problem-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
}

.card-grid {
  grid-template-columns: repeat(4, 1fr);
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.service-card,
.case-slot,
.step {
  border: 1px solid rgba(8, 58, 95, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.info-card,
.service-card,
.case-slot {
  padding: 24px;
}

.info-card {
  min-height: 208px;
}

.card-number,
.step span,
.case-slot span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cyan-600);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card p,
.service-card p,
.case-slot p,
.step p {
  color: var(--gray-700);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  background:
    linear-gradient(180deg, rgba(238, 243, 246, 0.74), rgba(255, 255, 255, 0) 56%),
    var(--white);
}

.service-card p {
  flex: 1;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-900);
  font-weight: 900;
}

.service-featured {
  color: var(--white);
  background: var(--blue-900);
  border-color: var(--blue-900);
}

.service-featured p,
.service-featured a {
  color: rgba(255, 255, 255, 0.86);
}

.section-applications {
  background: linear-gradient(180deg, var(--white), #f9fbfc);
}

.application-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.application-list span {
  padding: 10px 13px;
  border: 1px solid rgba(8, 58, 95, 0.14);
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--white);
  font-weight: 800;
}

.cta-band {
  padding: clamp(58px, 8vw, 84px) 0;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(8, 58, 95, 0.98), rgba(15, 95, 137, 0.94)),
    var(--blue-900);
}

.cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 34px;
}

.cta-content h2 {
  max-width: 760px;
}

.cta-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  min-height: 220px;
  padding: 26px;
}

.step span {
  color: var(--amber-620);
}

.systems-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: clamp(28px, 5vw, 46px);
  border-left: 6px solid var(--amber-500);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue-950);
}

.systems-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cases-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.case-slot {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  border-style: solid;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(8, 58, 95, 0.08);
}

.case-media {
  display: block;
  width: 100%;
  height: clamp(220px, 19vw, 280px);
  overflow: hidden;
  background: #dfe9ee;
}

.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.case-slot-laje .case-media img {
  object-position: center 52%;
}

.case-slot-area-molhada .case-media img {
  object-position: center 62%;
}

.case-slot-reservatorio .case-media img {
  object-position: center 54%;
}

.case-slot:hover .case-media img {
  transform: scale(1.035);
}

.case-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 24px 24px;
}

.case-body h3,
.case-body p {
  margin: 0;
}

.case-body h3 {
  font-size: 1.18rem;
  line-height: 1.05;
}

.case-body p {
  font-size: 1rem;
  line-height: 1.55;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.88fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 108px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(8, 58, 95, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 18px 20px;
  border: 0;
  color: var(--gray-950);
  background: transparent;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-trigger::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-left: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-900);
}

.faq-trigger[aria-expanded="true"]::after {
  content: "-";
}

.faq-panel {
  padding: 0 20px 18px;
  color: var(--gray-700);
}

.faq-panel p {
  margin: 0;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 38, 61, 0.97), rgba(8, 58, 95, 0.98)),
    var(--blue-950);
  padding-bottom: clamp(88px, 10vw, 126px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 76px);
  align-items: start;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-methods a,
.contact-methods span {
  display: block;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-950);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 900;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(8, 58, 95, 0.18);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--gray-950);
  background: #fbfdfe;
}

textarea {
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff8f7;
}

.field-error {
  min-height: 18px;
  color: #b42318;
  font-size: 0.82rem;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--blue-900);
  font-weight: 800;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.form-consent input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue-900);
}

.contact-form [hidden] {
  display: none;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.site-footer {
  padding: 48px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  background: #041c2d;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 8px;
}

.footer-brand {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  top: auto;
  left: auto;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  color: var(--white);
  background: #15a778;
  box-shadow: 0 18px 42px rgba(6, 38, 61, 0.26);
  font-weight: 900;
  transform: translateZ(0);
  transition: background 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #128c65;
  transform: translateY(-2px);
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .nav-menu {
    gap: 14px;
    font-size: 0.86rem;
  }

  .problem-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .process-timeline,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-content,
  .systems-panel,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sticky-copy {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header {
    color: var(--gray-950);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(6, 38, 61, 0.1);
  }

  .nav-shell {
    min-height: 68px;
  }

  .site-header .brand-logo-light {
    display: none;
  }

  .site-header .brand-logo-dark {
    display: block;
  }

  .nav-toggle {
    display: block;
    background: rgba(8, 58, 95, 0.08);
  }

  .nav-menu {
    position: fixed;
    inset: 68px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 12px 16px 18px;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(6, 38, 61, 0.14);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(8, 58, 95, 0.08);
  }

  .nav-menu .btn {
    margin-top: 12px;
  }

  .hero {
    min-height: clamp(620px, 88svh, 760px);
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 38, 61, 0.82) 0%, rgba(6, 38, 61, 0.72) 48%, rgba(6, 38, 61, 0.94) 100%),
      linear-gradient(90deg, rgba(6, 38, 61, 0.68), rgba(6, 38, 61, 0.12));
  }

  .hero-content {
    padding-top: 92px;
    align-self: end;
    padding-bottom: 44px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 220px;
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
  }

  .application-visual {
    order: 2;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100vw - 24px);
  }

  h1 {
    font-size: clamp(1.78rem, 7vw, 2.25rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.8rem, 7.2vw, 2.2rem);
    line-height: 1.12;
  }

  .hero h1 span {
    display: block;
  }

  .hero-text {
    max-width: 34ch;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section {
    padding: 66px 0;
  }

  .strip-grid {
    grid-template-columns: 1fr;
  }

  .strip-grid a {
    min-height: 62px;
    font-size: 0.9rem;
  }

  .problem-grid,
  .card-grid,
  .services-grid,
  .process-timeline,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .service-card,
  .case-slot,
  .step {
    min-height: auto;
  }

  .whatsapp-float {
    display: grid;
    place-items: center;
    right: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 50%;
  }

  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .site-footer {
    padding-bottom: 92px;
  }
}
