/* ============================================================
   dedetizamed — design system (v3, full rebuild)
   Direction: confident/corporate, near-black base, red spent
   deliberately, yellow as rare accent, real photography.
   References: dedetizadoraberbert.com.br, vetpragas.com.br
   (translated into dedetizamed's own red/yellow/charcoal brand —
   no blue introduced, the logo has none).
   ============================================================ */

:root {
  --ink: #161616; /* near-black — hero and major dark sections */
  --ink-2: #232323; /* slightly lighter dark, for layered panels */
  --charcoal: #323232;
  --red: #ff0000; /* brand red — large surfaces, icon fills */
  --red-action: #e60000; /* buttons/text needing AA on white — 4.81:1 */
  --red-action-dark: #c40000;
  --yellow: #fff000; /* rare accent on dark grounds only (15:1 on --ink) */
  --white: #ffffff;
  --paper: #f6f6f6;
  --ink-soft: #ececec;
  --ink-muted: #9c9c9c;
  --border-soft: #e3e3e3;
  --border-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Barlow Condensed", "Oswald", system-ui, sans-serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 5.5rem;

  --container: 72rem;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.14);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 6vw + 1rem, 4.25rem);
  font-weight: 800;
  text-transform: uppercase; /* short headline only, never a long h2/h3 sentence */
}

h2 {
  font-size: clamp(1.85rem, 3.2vw + 1rem, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 var(--space-2);
  max-width: 68ch;
}

a {
  color: var(--red-action);
  text-decoration-color: rgba(230, 0, 0, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

ul {
  padding-left: 1.1em;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--space-5);
}

.section--tight {
  padding-block: var(--space-4);
}

.section--dark {
  background: var(--ink);
  color: var(--ink-soft);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark a:not(.btn) {
  color: var(--yellow);
}

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

.section--red h1,
.section--red h2,
.section--red h3 {
  color: var(--white);
}

.section--red a:not(.btn) {
  color: var(--white);
}

.section--paper {
  background: var(--paper);
}

/* Two-tone heading: first line ink, second line red — the signature
   heading treatment (structural styling, not a kicker/eyebrow label). */
.heading-duo {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  font-size: clamp(1.85rem, 3.4vw + 1rem, 2.75rem);
}

.heading-duo span {
  display: block;
}

.heading-duo .line-1 {
  color: var(--ink);
}

.heading-duo .line-2 {
  color: var(--red-action);
}

.section--dark .heading-duo .line-1,
.section--red .heading-duo .line-1 {
  color: var(--white);
}

.section--dark .heading-duo .line-2,
.section--red .heading-duo .line-2 {
  color: var(--yellow);
}

/* ---------- Urgency bar ---------- */

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

.urgency-bar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-block: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.urgency-bar__row a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.urgency-bar .icon {
  width: 1em;
  height: 1em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

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

.btn .icon {
  width: 1.2em;
  height: 1.2em;
}

.btn-primary {
  background: var(--red-action);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--red-action-dark);
  box-shadow: var(--shadow-strong);
}

.btn-on-dark {
  background: var(--white);
  color: var(--ink);
}

.btn-on-dark:hover {
  background: var(--yellow);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: var(--red-action);
  text-decoration: none;
}

.btn-text:hover {
  text-decoration: underline;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow-strong);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float .icon {
  width: 1.9rem;
  height: 1.9rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.85rem;
}

.site-header__logo {
  display: block;
  height: 2.75rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav__links {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a:not(.btn) {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  border-bottom: 3px solid transparent;
}

.site-nav__links a:not(.btn):hover,
.site-nav__links a:not(.btn)[aria-current="page"] {
  border-bottom-color: var(--red-action);
  text-decoration: none;
}

.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.site-nav__toggle .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.site-nav__cta-item {
  display: none;
  list-style: none;
}

@media (max-width: 63.99rem) {
  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .site-nav[data-open="true"] .site-nav__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav__links a:not(.btn) {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
  }

  .site-nav__cta {
    display: none;
  }

  .site-nav__cta-item {
    display: block;
    padding: 1rem 1.25rem;
  }

  .site-nav__cta-item .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding-block: var(--space-6);
}

.hero::before {
  /* subtle diagonal panel, echoes the references' geometric hero cuts */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 55%, rgba(255, 255, 255, 0.035) 55%, rgba(255, 255, 255, 0.035) 78%, transparent 78%);
  pointer-events: none;
}

.hero__arc {
  position: absolute;
  inset: auto -8% -32% auto;
  width: 46rem;
  max-width: 75vw;
  height: auto;
  color: var(--red);
  opacity: 0.45;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
  align-items: center;
}

.hero__content {
  position: relative;
  max-width: 46rem;
}

.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 4 / 5;
}

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

@media (max-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    max-width: 20rem;
    margin-inline: auto;
  }
}

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

.hero p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-3);
}

/* ---------- Microproof row ---------- */

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-dark);
}

.proof-row__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.proof-row__item .icon {
  color: var(--yellow);
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
}

/* ---------- Pain / dor real section ---------- */

.pain-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: 0.9rem;
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.pain-list .icon {
  color: var(--red-action);
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.15em;
  flex-shrink: 0;
}

.pain-callout {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}

/* ---------- Diferenciais (compact icon chip rows) ---------- */

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.chip-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--red-action);
  color: var(--red-action);
  flex-shrink: 0;
}

.icon-chip .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.icon-chip--on-dark {
  border-color: var(--yellow);
  color: var(--yellow);
}

.chip-row h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.chip-row p {
  font-size: 0.92rem;
  color: #555;
  margin: 0;
}

.section--dark .chip-row p {
  color: var(--ink-muted);
}

/* ---------- Solid icon badge (service cards, richer weight) ---------- */

.icon-badge-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  flex-shrink: 0;
}

.icon-badge-sq .icon {
  width: 1.6rem;
  height: 1.6rem;
}

/* ---------- Steps (como funciona) ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
  counter-reset: step;
}

.steps-grid > div {
  position: relative;
  padding-top: 0.25rem;
}

.steps-grid > div::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-1);
  border-radius: 50%;
  background: var(--red-action);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.steps-grid h3 {
  font-size: 1.05rem;
}

.steps-grid p {
  font-size: 0.92rem;
  color: #555;
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.service-card h3 {
  margin-top: var(--space-2);
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
}

.service-card__tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.service-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- Pest photo grid ("pragas que combatemos") ---------- */

.pest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pest-card {
  text-align: center;
}

.pest-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--red-action);
  margin-bottom: var(--space-1);
}

.pest-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pest-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ---------- Laudo callout ---------- */

.laudo-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.laudo-callout__icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  color: var(--yellow);
}

.laudo-callout__body {
  flex: 1 1 20rem;
}

.laudo-callout h3 {
  margin-bottom: 0.4rem;
  color: var(--white);
}

.laudo-callout p {
  color: var(--ink-muted);
}

/* ---------- Segments trust section ---------- */

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  margin-top: var(--space-4);
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}

.segment-grid__item {
  background: var(--white);
  padding: var(--space-3);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
}

/* ---------- Residencial x Empresa split ---------- */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 45rem) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

.split-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.split-card--dark {
  background: var(--ink);
  color: var(--white);
}

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

.split-card h3 {
  color: var(--white);
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0;
}

.split-card p {
  color: var(--white);
}

/* ---------- Guarantee band ---------- */

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.guarantee-grid .chip-row {
  align-items: center;
}

/* ---------- FAQ accordion ---------- */

.faq-list {
  margin-top: var(--space-4);
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

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

.faq-item summary .icon {
  color: var(--red-action);
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-item__body {
  padding: 0 1.4rem 1.25rem;
  color: #555;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--red-action);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.cta-band h2 {
  color: var(--white);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--ink-muted);
  padding-block: var(--space-4);
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-dark);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.footer-badge .icon {
  color: var(--yellow);
  width: 1.1em;
  height: 1.1em;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-3);
}

.site-footer__heading {
  /* Not a real heading: a footer sitemap label, kept out of the h1-h6
     outline on purpose so it never creates a skipped heading level. */
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__legal {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--white);
}

.site-footer__whatsapp .icon {
  color: var(--yellow);
  width: 1.3em;
  height: 1.3em;
}

@media (max-width: 40rem) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Landing pages (isolated, no nav, no exit links) ---------- */

.lp-topbar {
  display: flex;
  justify-content: center;
  padding: var(--space-2) 0;
  background: var(--white);
}

.lp-topbar img {
  height: 2.75rem;
}

.lp-hero .hero__content {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.lp-hero .hero__actions {
  justify-content: center;
}

.lp-hero .proof-row {
  justify-content: center;
}

.lp-hero .btn-ghost {
  display: none;
}

.lp-hero--photo {
  background-image: linear-gradient(rgba(22, 22, 22, 0.85), rgba(22, 22, 22, 0.92)),
    url("/assets/photos/tecnico-aplicacao.jpg");
  background-size: cover;
  background-position: center 15%;
}

.lp-section-heading {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}

.lp-section-heading .heading-duo {
  text-align: center;
}

.lp-footer {
  text-align: center;
  padding-block: var(--space-3);
  color: #6b6b6b; /* 4.93:1 on --paper, meets AA for small text */
  font-size: 0.8rem;
  background: var(--paper);
}
