:root {
  --green: #3f8a1c;
  --green-light: #45a540;
  --dark: #333333;
  --text: #343434;
  --muted: #686868;
  --soft: #eeeeee;
  --line: #e2e2e2;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  --header-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Lato, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background: var(--white);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner {
  width: min(1170px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px max(24px, calc((100vw - 1170px) / 2));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.brand {
  width: 235px;
  position: relative;
  z-index: 1;
}

.brand img {
  height: 80px;
  object-fit: contain;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.primary-nav a {
  min-width: 93px;
  padding: 31px 10px 24px;
  border-top: 2px solid transparent;
  color: #000000;
  text-align: center;
  text-transform: uppercase;
  font-family: Poppins, Arial, sans-serif;
  font-size: 14px;
  transition: color .2s ease, border-color .2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--green);
  border-color: var(--green);
}

.header-whatsapp {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-size: 0;
  width: 64px;
  height: 64px;
}

.header-whatsapp::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 9px auto;
  background: url("../img/whatsapp-01.svg") center / contain no-repeat;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 790px;
  padding-top: var(--header-height);
  background: url("../img/keypower_mexco.jpg") center bottom / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
  padding-top: 130px;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 5.6vw, 67px);
  line-height: 1;
  text-shadow: 7px 7px 11px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 7px 7px 11px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  margin: 28px 0 8px;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 10px;
  border-radius: 100px;
  padding: 13px 28px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  box-shadow: var(--shadow);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
  transition: transform .2s ease, background .2s ease;
}

.hero-phone:hover {
  transform: translateY(-1px);
  background: #292f36;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 4px;
}

.lead-form span {
  color: #6b6b6b;
  font-size: 14px;
}

.compact-form span {
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .45);
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  padding: 12px 14px;
  color: #575e66;
  background: #ffffff;
  font-size: 16px;
  font-style: italic;
}

.lead-form textarea {
  min-height: 82px;
  resize: vertical;
}

.lead-form button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 100px;
  padding: 12px 34px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  box-shadow: var(--shadow);
  font-family: Poppins, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.lead-form button {
  width: 242px;
  justify-self: center;
  border-radius: 3px;
  min-height: 44px;
  text-transform: uppercase;
}

.button:hover,
.lead-form button:hover {
  transform: translateY(-1px);
  background: #292f36;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #ffffff;
  text-align: center;
}

.footer-form .form-status {
  color: #ffffff;
}

.form-status.error {
  color: #d7244c;
}

.honeypot {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.split-section {
  padding: 100px 0;
}

.services {
  padding: 78px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 48%);
  gap: 30px;
  align-items: center;
}

.why .split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 48%);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--dark);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 700;
}

.services .eyebrow {
  font-size: clamp(28px, 3.3vw, 40px);
}

.services .section-copy h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.section-copy h2,
.equipment h2,
.testimonials h2 {
  margin: 0 0 20px;
  color: var(--dark);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
}

.section-intro,
.feature p,
.problem-copy p {
  font-size: 20px;
  line-height: 1.5;
}

.services .section-intro,
.services .feature p {
  font-size: 17px;
  line-height: 1.42;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 30px;
  margin-top: 40px;
}

.services .feature-grid {
  gap: 20px 24px;
  margin-top: 28px;
}

.feature {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
}

.feature:last-child {
  grid-column: 1 / -1;
  max-width: 430px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

.feature-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.check-icon img {
  width: 32px;
  height: 32px;
}

.feature h3 {
  margin: 7px 0 10px;
  padding-left: 16px;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.2;
}

.services .feature h3 {
  font-size: 20px;
  margin: 5px 0 8px;
}

.feature p {
  grid-column: 1 / -1;
  margin: 0;
}

.image-panel img {
  width: 100%;
  max-height: 860px;
  object-fit: contain;
}

.problem-band {
  display: grid;
  grid-template-columns: minmax(320px, 50%) minmax(0, 1fr);
  background: var(--soft);
  min-height: 603px;
}

.problem-image {
  background: url("../img/keypower_mexco_3.jpg") center top / cover no-repeat;
}

.problem-copy {
  max-width: 570px;
  align-self: center;
  padding: 60px 48px;
}

.problem-copy h2 {
  margin: 0 0 20px;
  color: var(--dark);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
}

.statement {
  min-height: 500px;
  display: grid;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)), url("../img/keypower_mexco.jpg") center / cover no-repeat;
}

.statement h2 {
  max-width: 1170px;
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1;
  text-shadow: 7px 7px 11px rgba(0, 0, 0, 0.5);
}

.statement p {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 7px 7px 11px rgba(0, 0, 0, 0.5);
}

.equipment {
  padding: 70px 0 90px;
}

.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
  margin-top: 52px;
}

.equipment-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111111;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.equipment-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.equipment-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .52));
  pointer-events: none;
}

.equipment-item:hover img {
  transform: scale(1.04);
}

.equipment-item figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.equipment-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.equipment-item-tall {
  grid-row: span 2;
}

.equipment-item-wide {
  grid-column: span 2;
}

.centered {
  margin: 65px auto 0;
  display: flex;
  width: max-content;
}

.testimonials {
  padding: 70px 0 40px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  margin-top: 50px;
}

.testimonial-card {
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.2);
}

.testimonial-card img {
  width: 100%;
  aspect-ratio: 370 / 264;
  object-fit: cover;
}

.testimonial-card h3 {
  margin: 20px 0 0;
  padding: 0 22px;
  color: var(--dark);
  font-size: 24px;
}

.testimonial-card p {
  padding: 0 22px;
}

.testimonial-card p:last-child {
  padding-bottom: 26px;
}

.role {
  margin: 4px 0 12px;
  color: var(--green);
  font-size: 14px;
}

.client-mark {
  width: 170px;
  margin: 18px 0 0 auto;
}

.cta-strip {
  color: #ffffff;
  background: linear-gradient(90deg, var(--dark), #7f7f7f);
}

.cta-inner {
  min-height: 204px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.cta-inner p {
  margin: 8px 0 0;
  font-size: 18px;
}

.button.secondary {
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

.contact-section {
  padding: 36px 0 42px;
  color: var(--dark);
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) 342px;
  gap: 34px;
  align-items: center;
  text-align: center;
}

.footer-logo {
  width: 172px;
  margin: 0 auto 14px;
}

.contact-summary p {
  margin: 0 0 10px;
  color: #4b4b4b;
  font-size: 16px;
  line-height: 1.45;
}

address {
  font-style: normal;
}

address h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

address p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #4b4b4b;
}

address p img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

address a:hover {
  color: var(--green-light);
}

.footer-form input {
  border-color: #c4c4c4;
  border-radius: 5px;
  background: #fafafa;
  color: #222222;
  letter-spacing: 2px;
}

.footer-form {
  gap: 9px;
}

.footer-form input {
  padding: 10px 12px;
}

.footer-form span {
  color: #4b4b4b;
  text-align: left;
}

.footer-form .form-status {
  color: var(--dark);
}

.site-footer {
  padding: 38px 0 15px;
  color: #ffffff;
  background: #000000;
}

.site-footer p {
  margin: 0;
  color: #ffffff;
}

.floating-whatsapp {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 15px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
}

.floating-whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1100px) {
  :root {
    --header-height: 82px;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand {
    width: 198px;
  }

  .brand img {
    height: 60px;
  }

  .nav-toggle {
    margin-left: auto;
    width: 70px;
    height: 57px;
    display: grid;
    place-items: center;
    gap: 0;
    border: 1px solid #dedede;
    background: #ffffff;
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    width: 34px;
    height: 3px;
    background: #333333;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 28px;
    width: min(257px, calc(100vw - 56px));
    display: none;
    padding: 58px 20px 37px 13px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    min-width: 0;
    padding: 18px 0;
    border: 0;
    font-size: 25px;
  }

  .header-whatsapp {
    display: none;
  }

  .hero-content,
  .split-grid,
  .why .split-grid,
  .problem-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 76px;
  }

  .problem-image {
    min-height: 444px;
  }

  .problem-copy {
    max-width: none;
    padding: 80px max(24px, calc((100vw - 720px) / 2));
  }

  .contact-grid {
    max-width: 720px;
  }

  .testimonial-grid {
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .section-inner {
    width: min(100% - 30px, 520px);
  }

  .site-header {
    padding-inline: 15px;
  }

  .hero {
    min-height: 735px;
  }

  .hero-content {
    gap: 28px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1;
  }

  .hero-copy p,
  .hero-phone {
    font-size: 21px;
  }

  .hero-phone {
    width: max-content;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 22px;
  }

  .compact-form {
    max-width: 302px;
  }

  .split-section {
    padding: 80px 0;
  }

  .eyebrow,
  .problem-copy h2,
  .cta-inner h2 {
    font-size: 24px;
    line-height: 1;
  }

  .section-intro,
  .feature p,
  .problem-copy p,
  .testimonial-card p {
    font-size: 18px;
  }

  .feature-grid,
  .testimonial-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature:last-child {
    max-width: none;
  }

  .feature h3 {
    font-size: 18px;
    margin-top: 15px;
  }

  .image-panel img {
    max-height: 420px;
  }

  .statement {
    min-height: 500px;
  }

  .statement h2 {
    font-size: 24px;
    line-height: 1;
  }

  .statement p,
  .cta-inner p {
    font-size: 18px;
  }

  .equipment-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    margin-top: 36px;
  }

  .equipment-item,
  .equipment-item-large,
  .equipment-item-tall,
  .equipment-item-wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 282 / 216;
  }

  .testimonial-card img {
    aspect-ratio: 290 / 207;
  }

  .client-mark {
    width: 135px;
    margin-inline: auto;
  }

  .cta-inner {
    min-height: 250px;
    justify-items: center;
    text-align: center;
  }

  .floating-whatsapp {
    width: 66px;
    height: 66px;
    right: 16px;
    bottom: 18px;
  }
}
