/* =========================================================
   CLIVEP — Clínica Veterinária Popular
   Cores tiradas do cartão de visita da clínica
   ========================================================= */
:root {
  --teal: #4fbd9f;          /* verde do logo */
  --teal-strong: #0f9e88;   /* faixa do cartão (um pouco mais escuro) */
  --teal-deep: #0b7d6c;     /* botões: contraste AA com texto branco */
  --teal-soft: #e8f6f2;
  --navy: #2f3f86;          /* azul do "CLIVEP" */
  --navy-deep: #232f66;
  --ink: #1f2540;
  --muted: #5b6380;
  --bg: #ffffff;
  --line: #e3e7ef;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 37, 64, .08);
  --font-title: "DM Serif Display", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-title); font-weight: 400; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: .8rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-deep); color: #fff; box-shadow: 0 8px 20px rgba(11, 125, 108, .28); }
.btn--primary:hover { background: #096b5c; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .6rem 1.15rem; font-size: .95rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #dfe4f7; font-size: .88rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar a { text-decoration: none; font-weight: 700; color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__icon { width: 56px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-title); font-weight: 400; font-size: 1.75rem; color: var(--navy); letter-spacing: .02em; }
.brand__text small { font-weight: 700; color: var(--teal-strong); font-size: .86rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--ink); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--teal); transition: width .2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, var(--teal-soft) 0, transparent 45%),
    linear-gradient(180deg, #fff 0%, #f6faf9 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0 5.5rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34rem; }
.lead strong { color: var(--teal-deep); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.4rem; }
.hero__note { font-weight: 700; color: var(--navy); font-size: .95rem; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero__blob {
  width: min(360px, 80vw);
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  box-shadow: 0 30px 60px rgba(47, 63, 134, .12), inset 0 0 0 10px var(--teal-soft);
}
.hero__blob img { width: 58%; }

.paw { position: absolute; fill: var(--teal); opacity: .22; }
.paw--1 { width: 54px; top: 4%; left: 8%; transform: rotate(-20deg); }
.paw--2 { width: 38px; bottom: 10%; left: 2%; transform: rotate(15deg); opacity: .15; }
.paw--3 { width: 46px; top: 12%; right: 2%; transform: rotate(25deg); fill: var(--navy); opacity: .12; }

.hero__badge {
  position: absolute; bottom: 6%; right: 0;
  background: var(--navy); color: #fff;
  padding: .9rem 1.2rem; border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.3;
}
.hero__badge strong { font-size: 1rem; }
.hero__badge span { font-size: .85rem; color: #c9d1f2; }

/* ---------- Seções ---------- */
.section { padding: 5.5rem 0; }
.section--tint { background: var(--teal-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: #c9d1f2; }
.section__head--light .eyebrow { color: var(--teal); }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--teal-soft);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--teal-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); margin: 0; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__text p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.8rem; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.perks li {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 14px rgba(31, 37, 64, .05);
}
.perks__num { font-family: var(--font-title); font-size: 2rem; color: var(--teal); line-height: 1; }
.perks h3 { color: var(--navy); margin-bottom: .25rem; }
.perks p { margin: 0; color: var(--muted); }

/* ---------- Como chegar ---------- */
.location { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: stretch; }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 1.6rem; }
.hours { border-left: 4px solid var(--teal); padding-left: 1rem; margin-bottom: 1.8rem; }
.hours h3 { color: var(--navy); margin-bottom: .2rem; }
.hours p { margin: 0; }
.location__map {
  border-radius: var(--radius); overflow: hidden; min-height: 360px;
  box-shadow: var(--shadow); background: var(--teal-soft);
}
.location__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Contato ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr 1.35fr 1.25fr; gap: 1.2rem; }
.contact {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.5rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  overflow-wrap: anywhere;
}
.contact:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.contact__label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.contact__value { font-weight: 700; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #c9d1f2; padding: 2.5rem 0; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer .muted { color: #9aa4cf; }
.brand--footer .brand__icon { width: 40px; background: #fff; border-radius: 10px; padding: 4px; }
.brand--footer .brand__text strong { color: #fff; font-size: 1.4rem; }
.brand--footer .brand__text small { color: var(--teal); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ---------- Equipe ---------- */
.section__head--center { margin-inline: auto; text-align: center; }
.team {
  display: grid;
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
  gap: 2rem;
}
.vet {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.vet:hover { transform: translateY(-4px); }
.vet__photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block; }
.vet__photo--placeholder {
  display: grid; place-items: center; align-content: center; gap: .6rem;
  background: linear-gradient(160deg, var(--teal-soft), #d4eee6);
  color: var(--teal-deep);
}
.vet__photo--placeholder svg { width: 38%; fill: var(--teal); opacity: .55; }
.vet__photo--placeholder span { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.vet__body { padding: 1.4rem 1.5rem 1.6rem; }
.vet__name { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--teal-deep); margin-bottom: .2rem; }
.vet__crmv { font-weight: 800; font-size: .9rem; color: var(--navy); margin-bottom: .8rem; }
.vet__bio { color: var(--muted); font-size: .95rem; margin: 0; }
.vet__body .vet__name:last-child { margin-bottom: 0; text-align: center; }

/* ---------- Avaliações (carrossel) ---------- */
.reviews { position: relative; display: flex; align-items: center; gap: .8rem; }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.4rem) / 3);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem .2rem 1.2rem;
  scrollbar-width: none;
  flex: 1;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 4px; border-radius: var(--radius); }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: .9rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 4px 14px rgba(31, 37, 64, .06);
}
.review__stars { color: #f5b301; font-size: 1.15rem; letter-spacing: .12em; }
.review__text { color: var(--ink); margin: 0; flex: 1; }
.review__author { font-weight: 800; color: var(--navy); }
.reviews__nav {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.reviews__nav:hover { background: var(--navy); color: #fff; }
.reviews__nav:disabled { opacity: .3; cursor: default; background: #fff; color: var(--navy); }
.reviews__cta { text-align: center; margin-top: 1.6rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .about, .location { grid-template-columns: 1fr; gap: 2.5rem; }
  .reviews__track { grid-auto-columns: calc((100% - 1.4rem) / 2); }
}

@media (max-width: 820px) {
  .topbar__inner span { display: none; }
  .topbar__inner { justify-content: center; }

  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 12px 24px rgba(31, 37, 64, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; padding: 3rem 0 3.5rem; gap: 2rem; text-align: center; }
  .lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { min-height: 280px; order: -1; }
  .hero__blob { width: 230px; }
  .hero__badge { right: 50%; transform: translateX(50%); bottom: -4%; white-space: nowrap; }
  .section { padding: 4rem 0; }
}

@media (max-width: 560px) {
  .team { grid-template-columns: minmax(0, 380px); }
  .reviews__track { grid-auto-columns: 88%; gap: 1rem; }
  .reviews__nav { display: none; }
  .services, .contacts { grid-template-columns: 1fr; }
  .brand__icon { width: 46px; }
  .brand__text strong { font-size: 1.45rem; }
  .brand__text small { font-size: .78rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
