.hm-plumbing,
#presenca,
.trust-section,
.start,
.faq,
.contact {
  padding-block: var(--section);
}

.hm-plumbing,
#presenca,
.contact {
  --light-copy: #d9e7e5;
  background-color: var(--dark);
  color: var(--paper);
}

.hm-plumbing h2 em,
#presenca h2 em,
.contact h2 em {
  color: var(--accent);
}

.hm-plumbing h2 {
  font-size: clamp(2.05rem, 4vw, 4rem);
}

.hm-plumbing p,
#presenca p,
.contact p {
  color: var(--light-copy);
}

.hm-plumbing-layout,
.presence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 76px);
}

.hm-plumbing-photo,
.presence-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(247 248 246 / 18%);
  border-radius: clamp(18px, 2.7vw, 32px);
}

.hm-plumbing-photo img,
.presence-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hm-plumbing-copy,
.presence-copy,
.start-intro,
.faq-intro,
.gallery-statement {
  display: grid;
  justify-items: start;
  gap: clamp(16px, 2.2vw, 24px);
}

.hm-plumbing-copy ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-inline-start: 1.25em;
  color: var(--light-copy);
  line-height: 1.55;
}

.hm-plumbing-copy li::marker {
  color: var(--accent);
}

.presence-architecture {
  position: absolute;
  inset: 16px 16px auto auto;
  width: clamp(42px, 6vw, 74px);
  padding: 8px;
  background: rgb(6 46 52 / 85%);
  border: 1px solid rgb(247 248 246 / 18%);
  border-radius: 13px;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

#presenca {
  position: relative;
  isolation: isolate;
  background-color: var(--ink);
}

#presenca::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(760px, 100%);
  content: "";
  background:
    linear-gradient(0deg, var(--ink), transparent 58%),
    linear-gradient(100deg, rgb(6 46 52 / 92%), rgb(6 46 52 / 66%)),
    url("images/hm-presenca-fundo.webp") center / cover;
}

.presence-layout {
  margin-top: clamp(24px, 4vw, 52px);
}

.presence-photo > span {
  position: absolute;
  inset: auto 0 0;
  padding: 36px clamp(14px, 2.4vw, 26px) clamp(13px, 2vw, 22px);
  background: linear-gradient(transparent, rgb(6 46 52 / 94%));
  font-size: .875rem;
  font-weight: 700;
}

.presence-copy h3,
.gallery-statement h3 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.fixed-gallery {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(25px, 5vw, 72px);
  margin-top: clamp(42px, 7vw, 98px);
}

#presenca .eyebrow {
  color: var(--accent);
}

.gallery-statement .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .32em;
}

.gallery-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
}

.gallery-columns figure {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  margin: 0;
  border: 1px solid rgb(247 248 246 / 18%);
  border-radius: 16px;
  background: var(--dark);
}

.gallery-columns figure:nth-child(2) {
  grid-area: 1 / 2 / span 2;
}

.gallery-columns img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-columns figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 23px 14px 12px;
  background: linear-gradient(transparent, rgb(6 46 52 / 98%));
  color: var(--paper);
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.45;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-top: clamp(34px, 5vw, 70px);
}

.value-grid article {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: clamp(17px, 2.4vw, 30px);
  border: 1px solid rgb(247 248 246 / 20%);
  border-radius: 18px;
  background: rgb(247 248 246 / 5%);
}

.value-grid svg,
.step-symbol svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-grid svg {
  color: var(--accent);
}

.value-grid h3 {
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
}

.value-grid p {
  font-size: .925rem;
}

.trust-section {
  background: var(--mist);
}

.trust-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 3.35);
  gap: 18px;
  overflow-x: auto;
  margin-top: clamp(26px, 4vw, 48px);
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.hm-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 224px;
  padding: clamp(18px, 2.1vw, 28px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  scroll-snap-align: start;
}

.hm-quote {
  height: 31px;
  color: var(--green);
  font: 700 3.1rem/.9 Georgia, serif;
}

.hm-review blockquote {
  margin: 0;
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
  line-height: 1.5;
}

.hm-review cite {
  display: grid;
  gap: 3px;
  margin-top: auto;
  font-size: 1rem;
  font-style: normal;
  font-weight: 800;
}

.hm-review cite span {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
}

.trust-controls,
.trust-controls > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-controls {
  justify-content: space-between;
  margin-top: 11px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 750;
}

.trust-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #a5c2ab;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.trust-controls button:disabled {
  opacity: .45;
  cursor: default;
}

.trust-controls button:hover:enabled {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.start {
  background:
    linear-gradient(90deg, rgb(247 248 246 / 99%), rgb(247 248 246 / 90%) 60%, rgb(247 248 246 / 72%)),
    url("images/v3-processo-fundo.webp") right center / cover, var(--paper);
}

.start-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 7vw, 90px);
}

.start-grid {
  align-items: center;
}

.start h2 em {
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 2px;
}

.step {
  display: grid;
  grid-template-columns: minmax(54px, 68px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(13px, 2vw, 23px);
  padding-block: clamp(12px, 2vw, 22px);
}

.step + .step {
  border-top: 1px solid rgb(6 46 52 / 15%);
}

.step-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--green);
}

.step-number {
  font-size: .69rem;
  font-weight: 800;
  line-height: 1;
}

.step-symbol svg {
  width: 26px;
  height: 26px;
}

.step-copy {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
}

.step-copy strong {
  color: var(--ink);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.faq {
  background: #eef2ef;
  color: var(--ink);
}

.accordion details {
  border-bottom: 1px solid #cedbd2;
}

.accordion details:first-child {
  border-top: 1px solid #cedbd2;
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 13px 4px;
  list-style: none;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  font-weight: 750;
  line-height: 1.5;
}

.accordion summary:hover .faq-question {
  color: var(--green);
}

.faq-toggle {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #a5c2ab;
  border-radius: 50%;
  color: var(--green);
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  content: "";
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion details[open] .faq-toggle {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.accordion details[open] .faq-toggle::after {
  display: none;
}

.accordion .answer {
  padding: 0 36px 18px 4px;
}

.accordion .answer p {
  font-size: .96rem;
  line-height: 1.65;
}

.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ink);
}

.contact-shape {
  position: absolute;
  z-index: -1;
  inset: -25% -8% auto auto;
  width: min(70vw, 780px);
  color: var(--accent);
  opacity: .16;
  pointer-events: none;
}

.contact-shape svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.contact-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: end;
  gap: clamp(16px, 5vw, 60px);
}

.contact-tabs {
  overflow: hidden;
  margin-top: clamp(22px, 4vw, 44px);
  border: 1px solid rgb(247 248 246 / 20%);
  border-radius: clamp(16px, 2vw, 25px);
  background: rgb(247 248 246 / 5%);
}

.contact .tablist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgb(247 248 246 / 14%);
}

.contact .tablist button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgb(247 248 246 / 9%);
  color: var(--paper);
  font-size: clamp(.77rem, 1.2vw, .9rem);
  font-weight: 800;
  cursor: pointer;
}

.contact .tablist button:hover {
  border-color: var(--accent);
}

.contact .tablist button:focus-visible {
  outline-color: var(--accent);
  outline-offset: 2px;
}

.contact .tablist button[aria-selected="true"] {
  background: var(--bright);
  color: #091e11;
}

.contact .tablist button .pest-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: inherit;
  stroke: currentColor;
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(18px, 3.5vw, 45px);
  padding: clamp(14px, 2.5vw, 32px);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel > img {
  width: 100%;
  height: auto;
  max-height: 275px;
  aspect-ratio: 1.7;
  border-radius: clamp(10px, 1.5vw, 17px);
  object-fit: cover;
}

.tab-panel > div {
  display: grid;
  justify-items: start;
  gap: 13px;
}

.tab-panel h3 {
  font-size: clamp(1.5625rem, 2.7vw, 2.7rem);
  line-height: 1.2;
}

.tab-panel > div > .pest-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  stroke: currentColor;
}

.contact-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 30px;
  margin-top: 14px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-height: 44px;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 750;
}

.contact-phone strong {
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
  font-variant-numeric: tabular-nums;
}

.contact-phone:hover strong {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.site-footer {
  padding-block: clamp(34px, 6vw, 72px) calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--mist);
  color: var(--ink);
}

.institutional-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 62px);
}

.institutional-brand,
.institutional-grid nav,
.institutional-contact {
  display: grid;
  align-content: start;
  justify-items: start;
}

.institutional-brand {
  gap: 15px;
}

.institutional-brand img {
  width: clamp(125px, 18vw, 185px);
  height: auto;
}

.institutional-grid h4 {
  margin: 0 0 8px;
  font-size: .92rem;
  font-weight: 800;
}

.institutional-contact {
  gap: 5px;
}

.institutional-brand p,
.institutional-contact address,
.institutional-grid nav a {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.institutional-contact address {
  font-style: normal;
}

.institutional-grid nav a,
.institutional-contact > a:not(.button),
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 750;
}

.institutional-contact > a:not(.button) {
  font-size: .9rem;
}

.institutional-contact > a.footer-big-phone {
  font-size: 1.25rem;
  font-weight: 800;
}

.site-footer .button {
  max-width: 100%;
}

.site-footer a:not(.button):hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  margin-top: clamp(22px, 4vw, 48px);
  padding-top: 12px;
  border-top: 1px solid #cedbd2;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.5;
}

.footer-bottom a {
  color: var(--ink);
}

@media (max-width: 900px) {
  .trust-carousel {
    grid-auto-columns: calc((100% - 36px) / 2.35);
  }

  .institutional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 6vw, 60px);
  }

  .institutional-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .hm-plumbing-layout,
  .presence-layout,
  .fixed-gallery,
  .start-grid,
  .faq-grid,
  .contact-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-plumbing-copy {
    grid-row: 1;
  }

  #presenca::before {
    height: min(630px, 100%);
    background:
      linear-gradient(0deg, var(--ink), transparent 74%),
      linear-gradient(180deg, rgb(6 46 52 / 86%), rgb(6 46 52 / 50%)),
      url("images/hm-presenca-fundo-mobile.webp") 62% center / cover;
  }

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

  .gallery-columns figure:nth-child(2) {
    grid-area: auto;
  }

  .value-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .value-grid article {
    grid-template-columns: 35px minmax(0, 1fr);
    align-items: center;
    gap: 4px 12px;
  }

  .value-grid svg {
    grid-row: span 2;
    align-self: start;
  }

  .value-grid p {
    grid-column: 2;
  }

  .trust-carousel {
    grid-auto-columns: min(83%, 340px);
    gap: 12px;
  }

  .hm-review {
    min-height: 200px;
  }

  .start {
    background:
      linear-gradient(90deg, rgb(247 248 246 / 98%), rgb(247 248 246 / 88%)),
      url("images/v3-processo-fundo-640.webp") center / cover, var(--paper);
  }

  .contact-shape {
    inset: -3% -32% auto auto;
    width: 118vw;
  }
}

@media (max-width: 540px) {
  .presence-copy h3 {
    font-size: 1.8125rem;
    line-height: 1.25;
  }

  .faq-question {
    font-size: .875rem;
  }

  .contact-phones {
    display: grid;
  }

  .contact-phone {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    border-bottom: 1px solid rgb(252 252 251 / 16%);
  }

  .contact-phone strong {
    white-space: nowrap;
  }

  .hm-plumbing-copy .button,
  .presence-copy .button,
  .start-intro .button,
  .faq-intro .button,
  .tab-panel .button,
  .institutional-contact .button {
    width: 100%;
    justify-content: center;
  }

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

  .gallery-columns figure {
    display: grid;
    grid-template-columns: minmax(94px, 34%) minmax(0, 1fr);
    align-items: center;
    min-height: 76px;
    border-radius: 12px;
  }

  .gallery-columns img {
    position: static;
    height: 76px;
  }

  .gallery-columns figcaption {
    position: static;
    padding: 10px 14px;
    background: none;
  }

  .contact .tablist {
    gap: 4px;
    padding: 6px;
  }

  .contact .tablist button {
    flex-direction: column;
    gap: 5px;
    min-height: 56px;
    padding: 6px 2px;
    border-radius: 10px;
    font-size: clamp(.625rem, 3.05vw, .78rem);
    line-height: 1.2;
  }

  .contact .tablist button .pest-icon {
    width: 16px;
    height: 16px;
  }

  .tab-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .tab-panel > img {
    max-height: 152px;
  }

  .tab-panel > div > .pest-icon {
    display: none;
  }

  .institutional-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .institutional-brand {
    grid-column: auto;
  }

  .institutional-contact {
    padding-top: 18px;
    border-top: 1px solid #cedbd2;
  }
}
