/* =================================================================
   KZK · Acompanhamento Domiciliar
   Site institucional: verde, acolhedor, cards arredondados.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --white:      #ffffff;
  --sage:       #eef4ee;
  --sage-2:     #e2ecE3;
  --ink:        #1c2b24;
  --gray:       #5a6b61;
  --green:      #17553c;
  --green-dark: #123b2c;
  --green-deep: #0c2b20;
  --green-soft: #dcebe0;
  --green-mid:  #2e7d5b;
  --mint:       #9cc7af;
  --wa:         #25d366;
  --wa-dark:    #1fb457;

  --line: #e3e9e3;
  --shadow-sm: 0 4px 14px rgba(18, 59, 44, .07);
  --shadow-md: 0 14px 34px rgba(18, 59, 44, .12);
  --shadow-lg: 0 24px 60px rgba(18, 59, 44, .18);

  --head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", cursive;

  --wrap: 1200px;
  --r: 18px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22, .7, .25, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (não hidden) para não quebrar o position: sticky */
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--green-soft); color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4.2rem, 8vw, 6.5rem); }
.section--sage { background: var(--sage); }

.section__head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.section__title {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  color: var(--green-dark);
  overflow-wrap: break-word;
}
.section__title--light { color: var(--white); }
.section__sub {
  margin-top: .9rem;
  color: var(--gray);
  font-size: 1.08rem;
}

.kicker {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: .8rem;
}
.kicker--light { color: var(--mint); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-family: var(--head);
  font-weight: 500;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
  transition: background .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn__ic { width: 1.2em; height: 1.2em; flex: none; }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { padding: .6rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header[data-scrolled] {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

/* --- Estado transparente (no topo, sobre o hero) --- */
.site-header:not([data-scrolled]) .brand__text strong { color: #fff; }
.site-header:not([data-scrolled]) .brand__text small { color: rgba(255, 255, 255, .75); }
.site-header:not([data-scrolled]) .brand__mark { background: rgba(255, 255, 255, .16); color: #fff; }
.site-header:not([data-scrolled]) .nav__link,
.site-header:not([data-scrolled]) .nav__link:hover { color: #fff; }
.site-header:not([data-scrolled]) .nav__link::after { background: var(--mint); }
.site-header:not([data-scrolled]) .nav-toggle span { background: #fff; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: .85rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  transition: background .3s ease, color .3s ease;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .02em;
  color: var(--green-dark);
  transition: color .3s ease;
}
.brand__text small {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .3s ease;
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav__link {
  position: relative;
  font-family: var(--head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  padding-block: .35rem;
  transition: color .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green-mid);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--green); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--green); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 130;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  width: 25px; height: 2.5px;
  border-radius: 2px;
  background: var(--green-dark);
  transition: transform .35s var(--ease), opacity .2s ease, background .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 38, 28, .6) 0%, rgba(9, 38, 28, .12) 16%, transparent 28%),
    linear-gradient(90deg, rgba(9, 38, 28, .93) 0%, rgba(9, 38, 28, .72) 42%, rgba(9, 38, 28, .3) 74%, rgba(9, 38, 28, .18) 100%),
    linear-gradient(0deg, rgba(9, 38, 28, .45) 0%, transparent 28%);
}
.hero__content { position: relative; z-index: 1; color: var(--white); }
.hero__title {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.14;
  max-width: 21ch;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 1.2rem;
  max-width: 50ch;
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  color: rgba(255, 255, 255, .88);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

/* ---------- Quem somos ---------- */
.sobre__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.sobre__media { position: sticky; top: 96px; }
.sobre__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sobre__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sobre__badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  display: flex;
  flex-direction: column;
  padding: .75rem 1.15rem;
  border-radius: 14px;
  background: rgba(18, 59, 44, .88);
  backdrop-filter: blur(4px);
  color: var(--white);
}
.sobre__badge strong { font-family: var(--head); font-weight: 600; font-size: .98rem; }
.sobre__badge span { font-size: .78rem; color: var(--mint); }

.sobre__content .section__title { margin-bottom: 1.2rem; }
.sobre__content > p { color: var(--gray); }
.sobre__content > p + p { margin-top: 1rem; }
.sobre__content strong { color: var(--green-dark); }

.sobre__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1.5rem;
  margin-top: 1.8rem;
}
.sobre__facts li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.fact__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--sage);
  color: var(--green);
}
.fact__ic svg { width: 22px; height: 22px; }

.sobre__quote {
  margin-top: 2rem;
  padding: 1.5rem 1.7rem;
  border-radius: var(--r);
  background: var(--sage);
  border-left: 4px solid var(--green-mid);
}
.sobre__quote p {
  font-family: var(--head);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--green-dark);
  line-height: 1.5;
}
.sobre__sign {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin-top: .8rem;
}
.sobre__script {
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--green);
}
.sobre__role { font-size: .82rem; color: var(--gray); font-weight: 700; }

/* ---------- Serviços ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 1.2rem;
  transition: background .3s ease, color .3s ease;
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--green); color: var(--white); }
.card h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--green-dark);
  margin-bottom: .45rem;
  line-height: 1.35;
}
.card p { color: var(--gray); font-size: .97rem; }

.servicos__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding: 1.3rem 1.7rem;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.servicos__note { color: var(--gray); font-size: .98rem; }
.servicos__note strong { color: var(--green-dark); }

/* ---------- Por que a KZK ---------- */
.diferenciais {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-deep) 100%);
  color: var(--white);
}
.dif__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.dif__sub {
  margin-top: .9rem;
  color: rgba(255, 255, 255, .78);
  font-size: 1.08rem;
}
.checks { margin-top: 2rem; display: grid; gap: 1.4rem; }
.checks li { display: flex; gap: 1rem; align-items: flex-start; }
.check__ic {
  flex: none;
  width: 34px; height: 34px;
  color: var(--mint);
  margin-top: .15rem;
}
.check__ic svg { width: 100%; height: 100%; }
.checks h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}
.checks p { color: rgba(255, 255, 255, .72); font-size: .96rem; margin-top: .15rem; max-width: 52ch; }

.dif__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dif__photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.2rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid rgba(255, 255, 255, .16);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  color: var(--white);
}
.stat__label {
  display: block;
  margin-top: .3rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .68);
}

/* ---------- Depoimentos em vídeo (carrossel coverflow) ---------- */
.vdepo {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
}
.vdepo__viewport {
  /* corta só na horizontal (esconde os cards laterais); deixa a sombra
     do card ativo aparecer embaixo. 'clip' não força o eixo Y para auto. */
  overflow-x: clip;
  overflow-y: visible;
  padding-block: clamp(.5rem, 2vw, 1.4rem);
}
.vdepo__track {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  width: max-content;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.vcard {
  position: relative;
  flex: 0 0 auto;
  width: clamp(226px, 30vw, 300px);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: var(--green-deep);
  box-shadow: var(--shadow-md);
  transform: scale(.82);
  opacity: .5;
  transition: transform .55s var(--ease), opacity .55s var(--ease), box-shadow .3s ease;
  cursor: pointer;
}
.vcard.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 22px 46px -16px rgba(12, 43, 32, .34);
  cursor: default;
}
.vcard video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--green-deep);
}
.vcard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  color: var(--green);
  box-shadow: 0 10px 26px rgba(12, 43, 32, .4);
  transition: transform .25s var(--ease), background .2s ease, opacity .3s ease;
}
.vcard__play svg { width: 26px; height: 26px; margin-left: 3px; }
.vcard:not(.is-active) .vcard__play { width: 50px; height: 50px; }
.vcard:not(.is-active) .vcard__play svg { width: 20px; height: 20px; }
.vcard__play:hover { transform: scale(1.08); background: #fff; }
.vcard.is-playing .vcard__play { opacity: 0; pointer-events: none; }

/* setas laterais */
.vdepo__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
}
.vdepo__nav--prev { left: clamp(-.4rem, 1vw, 1.2rem); }
.vdepo__nav--next { right: clamp(-.4rem, 1vw, 1.2rem); }
.vdepo__nav:hover { transform: translateY(-50%) scale(1.06); }

.vdepo__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

/* botões de seta e bolinhas */
.depo__nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  box-shadow: var(--shadow-md);
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}
.depo__nav:hover { background: var(--green); color: var(--white); }
.depo__nav svg { width: 22px; height: 22px; }
.depo__dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--green);
  opacity: .25;
  cursor: pointer;
  transition: opacity .3s ease, width .3s var(--ease), background .3s ease;
}
.depo__dot.is-active { opacity: 1; width: 28px; background: var(--green-mid); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255, 255, 255, .78); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(3rem, 6vw, 4.2rem);
}
.brand--light .brand__mark { background: rgba(255, 255, 255, .12); color: var(--mint); }
.brand--light .brand__text strong { color: var(--white); }
.brand--light .brand__text small { color: rgba(255, 255, 255, .55); }
.footer__about { margin-top: 1.1rem; max-width: 32ch; font-size: .95rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  transition: background .25s ease, transform .25s var(--ease);
}
.footer__social a:hover { background: var(--wa); transform: translateY(-3px); }
.footer__social svg { width: 21px; height: 21px; }

.footer__col h4 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a { font-size: .95rem; transition: color .2s ease; }
.footer__col a:hover { color: var(--mint); }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255, 255, 255, .55);
  transition: color .2s ease;
}
.footer__credit img { height: 34px; width: auto; }
.footer__credit:hover { color: var(--white); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  z-index: -1;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%       { transform: scale(1);    opacity: .55; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Revelações no scroll ---------- */
.reveal,
[data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .85s var(--ease);
}
.reveal.in,
[data-stagger] > *.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .hero { min-height: 100svh; }
}

@media (max-width: 900px) {
  .sobre__grid,
  .dif__grid,
  .contato__grid { grid-template-columns: 1fr; }
  .sobre__media { max-width: 440px; position: static; }
  .dif__media { order: -1; max-width: 480px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.7rem;
    background: var(--green-dark);
    transform: translateY(-102%);
    transition: transform .45s var(--ease);
  }
  .nav[data-open] { transform: none; box-shadow: var(--shadow-lg); }
  .nav[data-open] .nav__link { color: #fff; font-size: 1.5rem; }
  .nav__cta { margin-top: .6rem; }
  .nav-toggle { display: flex; }
  /* hambúrguer branco enquanto o menu está aberto (sobre o fundo verde) */
  .site-header .nav-toggle[aria-expanded="true"] span { background: #fff; }

  .hero { min-height: 100svh; }

  /* no mobile, ignora a quebra fixa do desktop e deixa o texto fluir natural */
  .hero__title br { display: none; }
  .hero__title { font-size: clamp(1.9rem, 8vw, 2.4rem); }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; font-size: 1.08rem; padding: 1.05rem 1.7rem; }

  .servicos__foot { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 600px) {
  .section__title { font-size: clamp(1.5rem, 6.2vw, 1.95rem); }
  .cards { grid-template-columns: 1fr; }
  .sobre__facts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .wa-float::before { animation: none; opacity: 0; }
}
