:root {
  --beige: #ead4aa;
  --red: #c90000;
  --dark-red: #8b0000;
  --black: #050505;
  --anthracite: #242827;
  --warm-white: #fff8ea;
  --muted: rgba(36, 40, 39, 0.72);
  --radius: 26px;
  --shadow: 0 24px 60px rgba(5, 5, 5, 0.16);
}

/* Base reset and shared typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--black);
  background: var(--beige);
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 14px 18px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Fixed glass header with mobile-first navigation */
.site-header.is-scrolled {
  background: rgba(255, 248, 234, 0.9);
  box-shadow: 0 10px 30px rgba(5, 5, 5, 0.12);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, 100%);
  height: 66px;
  margin: 0 auto;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(5, 5, 5, 0.09);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.78);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
}

.nav-links {
  position: fixed;
  inset: 90px 18px auto;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: var(--black);
  color: var(--warm-white);
  box-shadow: var(--shadow);
  transform: translateY(-18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links a {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  color: var(--warm-white);
  background: var(--red);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--warm-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: 92px 20px;
}

.hero {
  min-height: 100vh;
  padding-top: 136px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(201, 0, 0, 0.2), transparent 30%),
    linear-gradient(145deg, var(--beige) 0%, var(--warm-white) 55%, #e7c27b 100%);
}

/* Reusable layout containers */
.hero-grid,
.footer-grid,
.result-grid,
.cards-grid,
.steps,
.section-heading,
.problem-panel,
.target-list,
.cta-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font: 800 0.78rem/1 "Montserrat", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 13vw, 6.9rem);
  font-weight: 900;
}

h2 {
  max-width: 880px;
  font-size: clamp(2.2rem, 7vw, 4.7rem);
  font-weight: 900;
}

h3 {
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.12;
}

.hero-text,
.problem-panel p {
  max-width: 720px;
  color: var(--anthracite);
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: var(--warm-white);
  background: var(--red);
  box-shadow: 0 18px 36px rgba(201, 0, 0, 0.28);
}

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

.btn-ghost {
  color: var(--black);
  border: 1px solid rgba(5, 5, 5, 0.16);
  background: rgba(255, 248, 234, 0.62);
}

.btn-light {
  color: var(--red);
  background: var(--warm-white);
  box-shadow: 0 20px 45px rgba(5, 5, 5, 0.2);
}

.hero-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
}

.impact-card {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  padding: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 42px;
  color: var(--warm-white);
  background: linear-gradient(145deg, var(--black), var(--anthracite));
  box-shadow: var(--shadow);
}

/* Hero visual data chips */
.impact-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 248, 234, 0.14);
  border-radius: 30px;
}

.impact-card img {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  border-radius: 24px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.3));
}

.pulse-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  opacity: 0.2;
}

.pulse-grid span {
  border: 1px solid rgba(255, 248, 234, 0.22);
}

.metric {
  position: absolute;
  z-index: 2;
  width: 168px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 248, 234, 0.94);
  color: var(--black);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.metric strong {
  display: block;
  color: var(--red);
  font: 900 1.35rem/1 "Montserrat", sans-serif;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--anthracite);
  font-size: 0.78rem;
  line-height: 1.25;
}

.metric-one {
  top: 28px;
  right: 22px;
}

.metric-two {
  bottom: 28px;
  left: 22px;
}

.problem,
.target {
  background: var(--black);
  color: var(--warm-white);
}

.problem .eyebrow,
.target .eyebrow {
  color: #ffce75;
}

.problem-panel {
  margin-top: 30px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(255, 248, 234, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.06);
}

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

.cards-grid,
.steps,
.result-grid {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.service-card,
.step,
.result-card {
  padding: 28px;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.72);
  box-shadow: 0 16px 35px rgba(5, 5, 5, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.step:hover,
.result-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 0, 0, 0.36);
  box-shadow: 0 26px 50px rgba(5, 5, 5, 0.13);
}

.service-card span,
.step span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red);
  font: 900 0.88rem/1 "Montserrat", sans-serif;
}

.service-card p,
.step p,
.result-card span,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.method {
  background: var(--warm-white);
}

.step {
  background: var(--black);
  color: var(--warm-white);
}

.step p {
  color: rgba(255, 248, 234, 0.72);
}

.target-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.target-list div {
  padding: 20px;
  border: 1px solid rgba(255, 248, 234, 0.14);
  border-radius: 20px;
  background: rgba(255, 248, 234, 0.07);
  font-weight: 800;
}

.results {
  background: var(--beige);
}

.result-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-card strong {
  color: var(--red);
  font: 900 clamp(1.8rem, 8vw, 3.2rem)/1 "Montserrat", sans-serif;
}

.cta-section {
  padding: 90px 20px;
  color: var(--warm-white);
  background: linear-gradient(135deg, var(--red), var(--dark-red));
}

.cta-inner {
  text-align: center;
}

.cta-section .eyebrow {
  color: #ffdc8c;
}

.cta-inner h2 {
  margin: 0 auto 30px;
}

.footer {
  padding: 56px 20px;
  color: var(--warm-white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.footer-logo {
  width: 150px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.footer h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 10px;
  color: rgba(255, 248, 234, 0.72);
}

.footer a:hover {
  color: var(--warm-white);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--warm-white);
  border-radius: 50%;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 18px 38px rgba(5, 5, 5, 0.24);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.whatsapp-float span {
  font: 900 0.92rem/1 "Montserrat", sans-serif;
}

.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.whatsapp-float::before {
  inset: -8px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  animation: whatsapp-pulse 1.8s ease-out infinite;
}

.whatsapp-float::after {
  width: 16px;
  height: 16px;
  right: 5px;
  bottom: 5px;
  background: var(--red);
  border: 2px solid var(--warm-white);
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  background: #1fb85a;
  box-shadow: 0 22px 46px rgba(5, 5, 5, 0.3);
}

.whatsapp-float.is-dragging {
  cursor: grabbing;
  transition: none;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.75;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.reveal {
  transform: translateY(28px);
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* On-scroll animation state toggled by script.js */
.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 760px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 980px) {
  .site-header {
    padding: 18px 28px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    color: var(--black);
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 10px 13px;
    font-size: 0.9rem;
  }

  .nav-links a:hover {
    background: rgba(201, 0, 0, 0.08);
  }

  .nav-cta {
    margin-left: 8px;
    padding: 13px 18px !important;
    color: var(--warm-white) !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: center;
  }

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

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

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

@media (max-width: 420px) {
  .brand img {
    width: 52px;
    height: 52px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .metric {
    width: 145px;
  }

  .impact-card {
    padding: 28px;
    border-radius: 32px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }
}
