@font-face {
  font-family: Manrope;
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url("./assets/fonts/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --ink: #062e34;
  --dark: #0b3137;
  --green: #0d780a;
  --bright: #11a600;
  --accent: #82cf79;
  --paper: #fcfcfb;
  --mist: #e9f4e6;
  --muted: #455e5b;
  --line: #d3e2d6;
  --heading-font: Sora, Manrope, sans-serif;
  --body-font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: max(clamp(16px, 3.4vw, 52px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(54px, 7vw, 108px);
  --header-height: 76px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 14px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.65 var(--body-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #119600;
  outline-offset: 3px;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2.05rem, 4.25vw, 3.7rem);
  line-height: 1.13;
  letter-spacing: -.05em;
  text-wrap: pretty;
}
h3 { font-size: clamp(1.35rem, 2.55vw, 2.6rem); }
em { font-style: normal; }

.container {
  width: min(calc(100% - 2 * var(--gutter)), 1320px);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 6vw, 104px);
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-heading p {
  max-width: 48ch;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.8;
}

.eyebrow, .hero-place {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.button, .header-whatsapp {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px clamp(16px, 2vw, 25px);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease;
}

.button-primary, .button-small, .header-whatsapp {
  background: var(--green);
  color: var(--paper);
}

.button-primary:hover, .button-small:hover, .header-whatsapp:hover {
  background-color: #096108;
}

.button-secondary {
  border-color: #9db4b5;
  background: #062e3480;
  color: var(--paper);
}

.button-secondary:hover { background: #ffffff1a; }

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .28em;
  text-decoration-color: color-mix(in srgb, currentColor 52%, transparent);
}

.text-link:hover { text-decoration-color: currentColor; }
.hm-link { margin-top: 4px; color: var(--green); }

.pest-icon, .nav-icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  top: 8px;
  left: var(--gutter);
  z-index: 20;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus { transform: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid #062e341c;
  background: var(--paper);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  flex: none;
  width: clamp(108px, 12vw, 152px);
  margin-right: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav > a:not(.button) {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.2;
}

.primary-nav > a:not(.button):hover,
.primary-nav > a[aria-current] { background: var(--mist); }

.primary-nav .nav-icon { width: 18px; height: 18px; }
.primary-nav .nav-direct { margin-inline: 7px; }

.nav-direct small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: .64rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.header-whatsapp, .menu-toggle, .primary-nav > a.nav-phones { display: none; }

/* Main introduction */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(560px, calc(100svh - var(--header-height)), 764px);
  align-items: center;
  overflow: clip;
  background: var(--dark);
  color: var(--paper);
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 43%;
  clip-path: polygon(21% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b3137b0, #0b313710 72%),
    linear-gradient(0deg, #062e3470, transparent 58%);
  content: "";
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 59%; }

.hero-content { padding-block: clamp(44px, 6vw, 90px); }
.hero-copy { max-width: min(690px, 58%); }
.hero-place { margin-bottom: 20px; color: var(--accent); letter-spacing: .17em; }

.hero h1 {
  font-size: clamp(3rem, 5.3vw, 5rem);
  line-height: 1.08;
  text-wrap: pretty;
}

.hero h1 em { color: var(--accent); }

.hero-copy > p:not(.hero-place) {
  max-width: 44ch;
  margin-top: clamp(15px, 2.3vw, 27px);
  color: #e1eeeb;
  font-size: 1.0625rem;
}

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

.hero-target {
  position: absolute;
  z-index: -1;
  right: 3%;
  bottom: 10%;
  width: min(33vw, 480px);
  opacity: .27;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  pointer-events: none;
}

.hero-edge { position: absolute; inset: auto 0 0; height: 5px; background: #082b30; }
.hero-edge span { display: block; width: 47%; height: 100%; background: var(--bright); }

.signals, .pest-chapter, #servicos { position: relative; padding-block: var(--section); }

.floating-motif {
  position: absolute;
  z-index: 1;
  top: 15px;
  right: var(--gutter);
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 8px;
  border: 1px solid #82cf7960;
  border-radius: 14px;
  background: var(--dark);
  color: var(--accent);
}

.hero > .floating-motif { top: auto; bottom: 25px; }
.motif-svg { width: 100%; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.motif-svg.trail-art, .motif-svg.seam-art { stroke-width: 3; }
.motif-ring { display: none; }
.connection-art { stroke-width: 3; }

/* Signs */
.signals { background: var(--mist); }
.signals .container { position: relative; }
.signals .section-heading { position: relative; z-index: 1; }

.signal-cutout {
  position: absolute;
  top: -22px;
  right: 5%;
  width: 135px;
  opacity: .13;
  pointer-events: none;
}

.signal-rule { border-top: 1px solid #062e3426; margin-bottom: clamp(15px, 2.4vw, 30px); }
.depth-carousel { min-width: 0; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.signal-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #062e341b;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px #062e3409;
  scroll-snap-align: start;
}

.signal-card:hover { border-color: var(--green); }
.signal-image { display: block; aspect-ratio: 1.65; overflow: hidden; }
.signal-image img { width: 100%; height: 100%; object-fit: cover; }
.signal-copy { display: grid; gap: 6px; padding: clamp(15px, 2vw, 24px); }
.signal-copy > span { color: var(--muted); font-size: .95rem; }

.signal-copy strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 700 1.07rem/1.3 var(--heading-font);
}

.signal-copy strong span { color: var(--green); }

/* Pest catalogue */
.pest-chapter { background: #f0f4f2; }
.horizontal-pin { display: flow-root; }
.horizontal-scene.is-scroll-linked { min-height: var(--rail-scene-height); }

.is-scroll-linked .horizontal-pin {
  position: sticky;
  top: var(--rail-top);
  background: #f0f4f2;
}

.is-scroll-linked .horizontal-window { scroll-snap-type: none; }

.pest-chapter .section-heading { margin-bottom: 25px; }
.grouped-index { display: grid; gap: 9px; margin-bottom: clamp(20px, 3vw, 34px); }
.category-tabs, .category-links { display: flex; flex-wrap: wrap; gap: 8px; }

.category-tabs button, .category-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  line-height: 1.25;
  font-size: .83rem;
}

.category-tabs button { font-weight: 750; }
.category-links a { color: var(--muted); font-weight: 700; }
.category-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.category-tabs button:hover, .category-links a:hover { border-color: var(--green); }

.rail-caption, .rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
}

.rail-caption { margin-bottom: 13px; }
.rail-caption small { display: block; font-size: .72rem; font-weight: 600; line-height: 1.35; }
.rail-caption > div, .trust-controls > div { display: flex; align-items: center; gap: 8px; }
.rail-caption > div { flex: none; }
.rail-count { min-width: 49px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rail-caption button, .trust-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.18rem;
}

.rail-caption button:hover:not(:disabled), .trust-controls button:hover:not(:disabled) { border-color: var(--green); }
.rail-caption button:disabled, .trust-controls button:disabled { opacity: .45; }

.horizontal-window, .carousel-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #88ae89 #e2ece2;
  scroll-snap-type: x mandatory;
}

.horizontal-window {
  --card-size: clamp(300px, 31vw, 395px);
  --rail-gap: clamp(12px, 1.65vw, 22px);
  padding-bottom: 10px;
}

.horizontal-track {
  display: flex;
  gap: var(--rail-gap);
}

.horizontal-track::before,
.horizontal-track::after {
  flex: 0 0 max(0px, calc((100% - var(--card-size)) / 2 - var(--rail-gap)));
  content: "";
}

.pest-service {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 0 0 var(--card-size);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #175057;
  border-radius: 22px 7px 22px 7px;
  background: var(--ink);
  color: var(--paper);
  scroll-snap-align: center;
}

.pest-service-media { position: relative; aspect-ratio: 1.75; overflow: hidden; }
.pest-service-media img { width: 100%; height: 100%; object-fit: cover; }

.pest-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
}

.pest-service-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: clamp(15px, 2.1vw, 24px);
}

.catalog-heading { display: flex; align-items: center; gap: 8px; }
.catalog-heading h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.035em; }
.catalog-heading .pest-icon { color: var(--accent); }
.pest-service-copy p { flex: 1; color: #dfede8; font-size: .875rem; line-height: 1.7; }
.pest-places { color: #b4cfca; font-size: .81rem; }

.catalog-cta {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #ffffff27;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 800;
}

.catalog-cta:hover { text-decoration: underline; }
.rail-foot { justify-content: flex-end; margin-top: 8px; }
.rail-foot a { display: inline-flex; min-height: 44px; align-items: center; color: var(--green); }
.rail-foot a:hover { text-decoration: underline; }

/* Service details */
#servicos { background: #f0f7ee; }
.solutions-stack { display: grid; gap: clamp(15px, 2.5vw, 30px); }

.solution-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid #32863466;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.solution-image { min-height: 290px; }
.solution-image img { width: 100%; height: 100%; object-fit: cover; }

.solution-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: clamp(23px, 4vw, 52px);
}

.solution-copy h3 { font-size: clamp(1.6875rem, 2.7vw, 2.7rem); line-height: 1.2; }
.solution-copy p { max-width: 54ch; color: #dfede8; font-size: .9375rem; line-height: 1.75; }

.solution-copy ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #dfede8;
  font-size: .94rem;
}

.solution-copy li::before { margin-right: 8px; color: var(--accent); content: "↗"; }
.solution-tags { color: var(--accent); font-size: .83rem; font-weight: 700; }

@media (max-width: 1080px) {
  :root { --header-height: 68px; }
  .header-inner { flex-wrap: wrap; }
  .header-whatsapp { display: inline-flex; min-height: 44px; }
  .primary-nav { width: 100%; flex-wrap: wrap; padding-bottom: 8px; }
  .primary-nav > .button { display: none; }

  .js-enhanced .menu-toggle {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--bright);
    color: var(--ink);
  }

  .menu-toggle svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
  }

  .js-enhanced .primary-nav {
    position: absolute;
    inset: calc(100% + 6px) var(--gutter) auto auto;
    display: none;
    width: min(360px, calc(100% - 2 * var(--gutter)));
    max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px) - 26px);
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--paper);
    box-shadow: 0 12px 30px #062e3429;
  }

  .js-enhanced .primary-nav.is-open { display: flex; }
  .primary-nav > a.nav-phones { display: flex; }
  .primary-nav .nav-direct { margin: 0; padding-top: 11px; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  h2 { font-size: clamp(2rem, 7.3vw, 3.15rem); line-height: 1.15; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .section-heading p { font-size: .875rem; }
  .hero { display: flex; min-height: 0; align-items: stretch; flex-direction: column; }
  .hero-content { order: 0; padding-block: 30px 24px; }
  .hero-copy { max-width: 570px; }
  .hero h1 { font-size: clamp(2.08rem, 8.6vw, 3.5rem); line-height: 1.1; }
  .hero-place { margin-bottom: 12px; font-size: .625rem; line-height: 1.75; }
  .hero-copy > p:not(.hero-place) { margin-top: 14px; font-size: .9375rem; line-height: 1.75; }
  .hero-actions { margin-top: 19px; }
  .hero-media {
    position: relative;
    order: 1;
    inset: auto;
    height: clamp(160px, 47vw, 320px);
    clip-path: none;
  }
  .hero-media::after { background: linear-gradient(#0b313790, transparent 55%); }
  .hero-media img { object-position: center 51%; }
  .hero-target { display: none; }
  .hero-edge { height: 4px; }
  .floating-motif { top: 7px; width: 44px; height: 44px; }
  .hero > .floating-motif { bottom: 13px; }
  .signal-cutout { display: none; }
  .pest-chapter .section-heading { margin-bottom: 22px; }
  .horizontal-window { --card-size: min(85vw, 380px); --rail-gap: 12px; }
  .pest-service-media { height: min(23svh, 190px); aspect-ratio: auto; }
  .catalog-heading h3 { font-size: clamp(1rem, 5vw, 1.35rem); }
  .solution-card { grid-template-columns: minmax(0, 1fr); }
  .solution-image { min-height: 0; aspect-ratio: 1.85; }
  .solution-copy p { font-size: .875rem; }
}

@media (min-width: 1081px) {
  .primary-nav > a:not(.button) { font-size: .75rem; }
}

@media (max-width: 650px) {
  .carousel-viewport { padding: 3px 2px 10px; scroll-padding-inline: 2px; }
  .mosaic { display: flex; gap: 12px; }
  .signal-card { flex: 0 0 min(82%, 330px); }
}

@media (max-width: 500px) {
  .hero-actions { flex-direction: column; gap: 8px; }
  .hero-actions .button, .solution-copy .button { width: 100%; justify-content: space-between; text-align: left; }
  .category-tabs, .category-links { gap: 6px; }
  .category-tabs button, .category-links a { padding-inline: 10px; }
  .rail-caption > div { gap: 4px; }
  .rail-count { min-width: 45px; }
}

@media (max-width: 350px) {
  .header-inner { gap: 7px; }
  .brand { width: 96px; }
  .header-whatsapp { padding-inline: 11px; font-size: .8rem; }
}

@media (min-width: 761px) and (max-height: 700px) {
  .pest-service-media { height: 145px; aspect-ratio: auto; }
}

@media (max-width: 760px) and (max-height: 650px) {
  .pest-service-media { height: 115px; }
  .pest-service-copy { gap: 10px; }
}

@media (max-width: 760px) and (max-height: 600px) {
  .pest-service-media { height: 92px; }
  .pest-service-copy { padding-block: 12px; }
  .rail-caption { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
