:root {
  --black: #090909;
  --ink: #171717;
  --muted: #686868;
  --line: #dddddd;
  --white: #ffffff;
  --red: #d71920;
  --red-dark: #8f0f14;
  --green: #18814a;
  --steel: #edf0f3;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(6, 6, 6, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand:hover .brand-mark {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.26);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Archivo, Inter, sans-serif;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.header-action {
  color: var(--white);
  background: var(--red);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  padding: 112px clamp(18px, 4vw, 64px) 66px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-fumigadora-quepos.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 38%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  animation: fadeUp 760ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: #ff4b4f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Archivo, Inter, sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  font-size: clamp(36px, 5.6vw, 68px);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(32px, 4.5vw, 58px);
  text-transform: uppercase;
}

h3 {
  font-size: 23px;
}

.hero-copy {
  max-width: 570px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.65vw, 20px);
}

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

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 34px rgba(215, 25, 32, 0.34);
}

.btn-primary:hover,
.header-action:hover {
  background: #f0262e;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(215, 25, 32, 0.42);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.trust-strip span {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease;
}

.trust-strip span:hover {
  transform: translateY(-2px);
  background: rgba(215, 25, 32, 0.32);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-item {
  min-height: 150px;
  padding: 34px clamp(20px, 4vw, 52px);
  background: var(--white);
  transition: transform 240ms ease, background 240ms ease;
}

.intro-item:hover {
  background: #fafafa;
  transform: translateY(-3px);
}

.intro-item strong {
  display: block;
  margin-bottom: 10px;
  font-family: Archivo, Inter, sans-serif;
  font-size: 25px;
  text-transform: uppercase;
}

.intro-item span {
  color: var(--muted);
}

.section,
.split-section,
.contact-section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 4vw, 64px);
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 20px 40px rgba(12, 12, 12, 0.06);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 25, 32, 0.36);
  box-shadow: 0 26px 60px rgba(12, 12, 12, 0.16);
}

.service-card p {
  color: var(--muted);
}

.service-photo {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #111;
}

.service-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 560ms ease, filter 320ms ease;
}

.service-photo-chris img {
  object-position: center 42%;
}

.service-card:hover .service-photo img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
}

.service-photo span {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  padding: 8px 10px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  min-height: 56px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.95), rgba(15, 15, 15, 0.95)),
    radial-gradient(circle at 20% 20%, rgba(215, 25, 32, 0.24), transparent 36%);
}

.split-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--red);
}

.certificate-panel {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 58px);
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(215, 25, 32, 0.92), rgba(70, 7, 10, 0.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 13px);
  box-shadow: var(--shadow);
  transition: transform 260ms ease;
}

.certificate-panel:hover {
  transform: translateY(-6px);
}

.certificate-paper {
  position: relative;
  width: min(420px, 100%);
  padding: clamp(28px, 5vw, 44px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.certificate-paper::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(215, 25, 32, 0.26);
  pointer-events: none;
}

.cert-kicker {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-paper strong {
  display: block;
  margin: 12px 0 16px;
  font-family: Archivo, Inter, sans-serif;
  font-size: clamp(32px, 4.1vw, 48px);
  line-height: 1;
  max-width: 100%;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.certificate-paper p {
  color: #555;
  margin: 0 0 26px;
}

.cert-seal {
  display: inline-grid;
  place-items: center;
  min-height: 82px;
  width: 82px;
  padding: 8px;
  color: var(--red-dark);
  border: 3px solid var(--red-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.story-section {
  padding: clamp(76px, 10vw, 135px) clamp(18px, 4vw, 64px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.84), rgba(9, 9, 9, 0.42)),
    url("assets/hero-fumigadora-quepos.png") center / cover fixed;
}

.story-inner {
  width: min(850px, 100%);
}

.story-inner p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.gallery-section {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 4vw, 64px);
  background:
    radial-gradient(circle at 18% 12%, rgba(215, 25, 32, 0.12), transparent 26%),
    linear-gradient(180deg, #f6f6f2, #ffffff);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(12, 12, 12, 0.08);
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.12);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
  transition: transform 520ms ease, filter 320ms ease;
}

.gallery-contain img {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    #101010;
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.06);
}

.gallery-contain:hover img {
  transform: scale(1.015);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
  pointer-events: none;
}

.gallery-card figcaption {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--white);
  font-family: Archivo, Inter, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.compact {
  padding-top: clamp(60px, 7vw, 90px);
  padding-bottom: clamp(60px, 7vw, 90px);
}

.section.compact {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(8, 8, 8, 0.94), rgba(26, 26, 26, 0.92)),
    url("assets/hero-fumigadora-quepos.png") center / cover;
}

.section.compact .section-heading p:not(.eyebrow),
.section.compact .section-heading h2 {
  color: var(--white);
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zone-list span {
  padding: 13px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 220ms ease, color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.zone-list span:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
  transform: translateY(-4px);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 80px);
  color: var(--white);
  background: var(--black);
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.phone-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.phone-lines a {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #f9f9f9;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12);
}

textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
  margin-top: 6px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.74);
  background: #050505;
}

.site-footer strong {
  color: var(--white);
  text-transform: uppercase;
}

.floating-whatsapp {
  position: fixed;
  z-index: 25;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: auto;
  min-width: 154px;
  height: 60px;
  padding: 9px 18px;
  color: var(--white);
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  font-weight: 900;
  line-height: 1.05;
  animation: whatsappPulse 2.8s ease-in-out infinite;
}

.floating-whatsapp span,
.floating-whatsapp strong {
  display: block;
}

.floating-whatsapp span {
  font-size: 11px;
  text-transform: uppercase;
}

.floating-whatsapp strong {
  font-size: 16px;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  animation-play-state: paused;
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item:nth-child(2) {
  transition-delay: 80ms;
}

.reveal-item:nth-child(3) {
  transition-delay: 150ms;
}

.reveal-item:nth-child(4) {
  transition-delay: 220ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 0 rgba(24, 129, 74, 0.38);
  }
  50% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 10px rgba(24, 129, 74, 0);
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .intro-band,
  .service-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .brand strong {
    font-size: 15px;
  }

  .hero {
    min-height: 84vh;
    padding: 98px 18px 46px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.05));
  }

  h1 {
    font-size: 34px;
    max-width: 360px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 16px;
  }

  .hero-actions,
  .trust-strip,
  .site-footer {
    flex-direction: column;
  }

  .btn,
  .header-action {
    width: 100%;
  }

  .intro-item {
    min-height: auto;
    padding: 26px 18px;
  }

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

  .service-photo {
    height: 210px;
  }

  .service-body h3 {
    min-height: auto;
  }

  .section,
  .split-section,
  .gallery-section,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .certificate-panel {
    min-height: 330px;
    padding: 22px;
  }

  .certificate-paper {
    padding: 28px;
  }

  .certificate-paper strong {
    font-size: clamp(30px, 9vw, 42px);
  }

  .story-section {
    background-attachment: scroll;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-width: 134px;
    height: 54px;
    padding: 8px 14px;
  }
}

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

  .reveal,
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
