/* =====================================================
   FOCINHO FELIZ — site demo de petshop
   Paleta, tipografia e componentes em blocos
   ===================================================== */


/* ---------- 1. Variáveis ---------- */
:root {
  --navy: #1b2b4b;
  --navy-soft: #2c3f66;
  --sol: #ffc53d;
  --sol-soft: #fff1c7;
  --coral: #ff6f59;
  --coral-dark: #e65540;
  --menta: #d5f0e3;
  --menta-soft: #eef9f3;
  --branco: #ffffff;
  --texto: #1b2b4b;
  --texto-suave: #55627d;
  --linha: #dde5ee;
  --raio: 18px;
  --raio-grande: 32px;
  --fonte-titulo: "Fredoka", "Trebuchet MS", sans-serif;
  --fonte-texto: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}


/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fbfdfc;
  color: var(--texto);
  display: flex;
  flex-direction: column;
  font-family: var(--fonte-texto);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  min-height: 100vh;
}

main {
  flex: 1;
  min-height: 70vh;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-menta {
  background: var(--menta-soft);
}

.section-head {
  margin-bottom: 36px;
  max-width: 640px;
}

.section-head p {
  color: var(--texto-suave);
}

.centro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* ---------- 3. Botões ---------- */
.btn {
  background: var(--coral);
  border: 0;
  border-radius: 999px;
  color: var(--branco);
  cursor: pointer;
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.btn-claro {
  background: var(--branco);
  box-shadow: inset 0 0 0 2px var(--navy);
  color: var(--navy);
}

.btn-claro:hover {
  background: var(--sol-soft);
}

.btn-sol {
  background: var(--sol);
  color: var(--navy);
}

.btn-sol:hover {
  background: #ffb800;
}


/* ---------- 4. Cabeçalho centralizado ---------- */
.site-header {
  background: var(--navy);
  color: var(--branco);
  padding: 18px 0 14px;
  position: relative;
  text-align: center;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--fonte-titulo);
  font-size: 1.8rem;
  font-weight: 600;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  background: var(--sol);
  border-radius: 50%;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.nav a {
  border-radius: 999px;
  color: #dbe4f5;
  font-family: var(--fonte-titulo);
  font-size: 1rem;
  padding: 7px 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--navy-soft);
  color: var(--branco);
}

.nav a.ativo {
  background: var(--sol);
  color: var(--navy);
}

.nav-toggle {
  background: transparent;
  border: 2px solid #4a5d85;
  border-radius: 999px;
  color: var(--branco);
  cursor: pointer;
  display: none;
  font-family: var(--fonte-titulo);
  font-size: 1rem;
  margin-top: 10px;
  padding: 6px 20px;
}


/* ---------- 5. Abertura animada (só na home) ---------- */
.hero {
  background: var(--menta);
  overflow: hidden;
  padding: 56px 0 90px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.1fr 0.9fr;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .linha {
  display: block;
}

.hero .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
  vertical-align: top;
}

.hero .w > span {
  animation: palavra-sobe 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 0.09s + 0.15s);
  display: inline-block;
}

.hero-sub {
  animation: aparece 0.7s ease both;
  animation-delay: 1s;
  color: var(--navy-soft);
  font-size: 1.15rem;
  max-width: 480px;
}

.hero-cta {
  animation: aparece 0.7s ease both;
  animation-delay: 1.2s;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art {
  animation: cortina 1.2s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: 0.1s;
  background: var(--sol);
  border-radius: var(--raio-grande);
  overflow: hidden;
}

.hero-art img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@keyframes palavra-sobe {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}

@keyframes aparece {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cortina {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}


/* ---------- 6. Cartões de informação (sobem sobre o hero) ---------- */
.info-faixa {
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.info-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: 0 10px 30px rgba(27, 43, 75, 0.12);
  padding: 22px 24px;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-card p {
  color: var(--texto-suave);
  font-size: 0.98rem;
  margin: 0;
}

.status {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
}

.status::before {
  background: #9aa5b8;
  border-radius: 50%;
  content: "";
  height: 10px;
  width: 10px;
}

.status.aberto::before {
  background: #2dbb6e;
}

.status.fechado::before {
  background: var(--coral);
}


/* ---------- 7. Cartões de serviço, produto e plano ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--branco);
  border: 2px solid var(--linha);
  border-radius: var(--raio);
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.card p {
  color: var(--texto-suave);
  flex: 1;
}

.card .preco {
  color: var(--coral-dark);
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.card .btn {
  align-self: flex-start;
  font-size: 0.95rem;
  padding: 10px 20px;
}

.card-icone {
  align-items: center;
  background: var(--sol-soft);
  border-radius: 14px;
  display: flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 16px;
  width: 54px;
}

.card-icone svg {
  height: 30px;
  width: 30px;
}

.cat-cor-0 .card-icone { background: #ffe3dd; }
.cat-cor-1 .card-icone { background: var(--sol-soft); }
.cat-cor-2 .card-icone { background: var(--menta); }

.plano-destaque {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--branco);
}

.plano-destaque p,
.plano-destaque li {
  color: #dbe4f5;
}

.plano-destaque .preco {
  color: var(--sol);
}

.plano ul {
  flex: 1;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.plano li {
  padding: 5px 0 5px 26px;
  position: relative;
}

.plano li::before {
  background: var(--menta);
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  top: 12px;
  width: 14px;
}

.selo {
  background: var(--sol);
  border-radius: 999px;
  color: var(--navy);
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-size: 0.85rem;
  margin-bottom: 12px;
  padding: 3px 12px;
  width: fit-content;
}


/* ---------- 8. Como funciona (sequência real) ---------- */
.passos {
  counter-reset: passo;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.passo {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 28px 26px;
  position: relative;
}

.passo::before {
  align-items: center;
  background: var(--coral);
  border-radius: 50%;
  color: var(--branco);
  content: counter(passo);
  counter-increment: passo;
  display: flex;
  font-family: var(--fonte-titulo);
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  margin-bottom: 14px;
  width: 42px;
}


/* ---------- 9. Depoimentos ---------- */
.depoimento {
  background: var(--branco);
  border-left: 6px solid var(--sol);
  border-radius: var(--raio);
  margin: 0;
  padding: 24px 26px;
}

.depoimento p {
  font-size: 1.05rem;
}

.depoimento footer {
  color: var(--texto-suave);
  font-size: 0.95rem;
}


/* ---------- 10. Faixa de chamada (cartão rápido + pet) ---------- */
.chamada {
  background: var(--menta);
  overflow: hidden;
  padding: 72px 0 92px;
  position: relative;
}

.chamada-grid {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.75fr 1.25fr;
  position: relative;
  z-index: 1;
}

.chamada-pet {
  text-align: center;
}

.chamada-pet img {
  margin: 0 auto;
  max-width: 220px;
}

.balao {
  background: var(--sol);
  border-radius: 18px;
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding: 10px 20px;
  position: relative;
}

.balao::after {
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid var(--sol);
  bottom: -14px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.js .chamada-pet.in .balao {
  animation: balao-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: 0.3s;
}

@keyframes balao-pop {
  from {
    opacity: 0;
    scale: 0.4;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.chamada-card {
  background: var(--branco);
  border-radius: var(--raio-grande);
  box-shadow: 0 14px 34px rgba(27, 43, 75, 0.14);
  padding: 32px;
}

.chamada-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 6px;
}

.chamada-card p {
  color: var(--texto-suave);
}

.form-rapido {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1fr auto;
}

.form-rapido select,
.form-rapido input {
  background: var(--branco);
  border: 2px solid var(--linha);
  border-radius: 999px;
  color: var(--texto);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 18px;
  width: 100%;
}

.form-rapido select:focus,
.form-rapido input:focus {
  border-color: var(--navy);
  outline: none;
}


/* ---------- 10b. Pegadas animadas (decoração) ---------- */
.pegadas {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.pata {
  animation: pata-aparece 0.5s ease both;
  animation-delay: calc(var(--i) * 0.28s + var(--atraso, 1s));
  background: currentColor;
  height: 32px;
  left: var(--x);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='32' cy='42' rx='14' ry='11'/%3E%3Cellipse cx='14' cy='26' rx='6' ry='8'/%3E%3Cellipse cx='26' cy='16' rx='6' ry='8'/%3E%3Cellipse cx='38' cy='16' rx='6' ry='8'/%3E%3Cellipse cx='50' cy='26' rx='6' ry='8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='32' cy='42' rx='14' ry='11'/%3E%3Cellipse cx='14' cy='26' rx='6' ry='8'/%3E%3Cellipse cx='26' cy='16' rx='6' ry='8'/%3E%3Cellipse cx='38' cy='16' rx='6' ry='8'/%3E%3Cellipse cx='50' cy='26' rx='6' ry='8'/%3E%3C/svg%3E") center / contain no-repeat;
  position: absolute;
  rotate: var(--r);
  top: var(--y);
  width: 32px;
}

@keyframes pata-aparece {
  from {
    opacity: 0;
    scale: 0.3;
  }
  to {
    opacity: var(--op, 0.4);
    scale: 1;
  }
}

.p-hero {
  --atraso: 1.4s;
  --op: 0.4;
  color: var(--coral);
}

.p-topo {
  --atraso: 0.6s;
  --op: 0.2;
  color: var(--navy);
}

.p-chamada {
  --atraso: 0.2s;
  --op: 0.7;
  color: #8fd1b3;
}

/* as pegadas da chamada só andam quando ela aparece na tela */
.js .p-chamada:not(.in) .pata {
  animation-play-state: paused;
}

.hero,
.page-top {
  position: relative;
}

.hero .wrap,
.page-top .wrap {
  position: relative;
  z-index: 1;
}


/* ---------- 11. Cabeçalho interno das páginas ---------- */
.page-top {
  background: var(--sol);
  padding: 48px 0 44px;
}

.page-top h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 6px;
}

.page-top p {
  color: var(--navy-soft);
  margin: 0;
  max-width: 560px;
}


/* ---------- 12. Galeria ---------- */
.galeria {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.foto {
  aspect-ratio: 1 / 1;
  background: var(--menta);
  border: 0;
  border-radius: var(--raio);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
}

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

.foto .ph {
  align-items: center;
  color: var(--navy-soft);
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 6px;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.foto .ph svg {
  height: 40px;
  opacity: 0.6;
  width: 40px;
}

.foto:nth-child(4n + 1) { background: var(--menta); }
.foto:nth-child(4n + 2) { background: var(--sol-soft); }
.foto:nth-child(4n + 3) { background: #ffe3dd; }
.foto:nth-child(4n + 4) { background: #dfe8fb; }

.lightbox {
  align-items: center;
  background: rgba(27, 43, 75, 0.88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.lightbox.aberta {
  display: flex;
}

.lightbox-caixa {
  animation: zoom 0.25s ease both;
  background: var(--branco);
  border-radius: var(--raio);
  max-width: 640px;
  overflow: hidden;
  width: 100%;
}

.lightbox-caixa .area {
  aspect-ratio: 4 / 3;
  background: var(--menta);
}

.lightbox-caixa .area img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.lightbox-rodape {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
}

.lightbox-rodape button {
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  color: var(--branco);
  cursor: pointer;
  font-family: var(--fonte-titulo);
  padding: 8px 20px;
}

@keyframes zoom {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


/* ---------- 13. Sobre e equipe ---------- */
.duas-colunas {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 1fr;
}

.arte-redonda {
  background: var(--menta);
  border-radius: var(--raio-grande);
  overflow: hidden;
}

.equipe {
  text-align: center;
}

.avatar {
  background: var(--menta);
  border-radius: 50%;
  height: 110px;
  margin: 0 auto 14px;
  width: 110px;
}

.avatar img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}


/* ---------- 14. Contato, horários e FAQ ---------- */
.contato-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.1fr 0.9fr;
}

.caixa {
  background: var(--branco);
  border: 2px solid var(--linha);
  border-radius: var(--raio);
  padding: 28px;
}

.campo {
  margin-bottom: 16px;
}

.campo label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.campo input,
.campo select,
.campo textarea {
  background: var(--branco);
  border: 2px solid var(--linha);
  border-radius: 12px;
  color: var(--texto);
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  width: 100%;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--navy);
  outline: none;
}

.linha-dupla {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.tabela-horas {
  border-collapse: collapse;
  width: 100%;
}

.tabela-horas td {
  border-bottom: 1px solid var(--linha);
  padding: 9px 0;
}

.tabela-horas td:last-child {
  font-weight: 700;
  text-align: right;
}

.mapa {
  align-items: center;
  background: var(--menta);
  border-radius: var(--raio);
  color: var(--navy-soft);
  display: flex;
  height: 200px;
  justify-content: center;
  margin-top: 20px;
  text-align: center;
}

details {
  background: var(--branco);
  border: 2px solid var(--linha);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 14px 20px;
}

summary {
  cursor: pointer;
  font-family: var(--fonte-titulo);
  font-size: 1.1rem;
  font-weight: 500;
}

details p {
  color: var(--texto-suave);
  margin: 10px 0 0;
}


/* ---------- 15. Rodapé (igual em todas as páginas) ---------- */
.site-footer {
  animation: rodape-entra 0.4s ease both;
  animation-delay: 0.5s;
  background: var(--navy);
  color: #dbe4f5;
  padding: 44px 0 28px;
  position: relative;
}

@keyframes rodape-entra {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.onda {
  height: 36px;
  left: 0;
  line-height: 0;
  position: absolute;
  top: -35px;
  width: 100%;
}

.onda svg {
  display: block;
  height: 100%;
  width: 100%;
}

.pet-rodape {
  height: 62px;
  position: absolute;
  top: -56px;
  width: 62px;
}

.pet-cao {
  right: 9%;
}

.pet-gato {
  right: calc(9% + 74px);
}

.rodape-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.site-footer h3 {
  color: var(--branco);
  font-size: 1.1rem;
}

.site-footer a {
  text-decoration: none;
}

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

.rodape-ig {
  color: var(--sol);
  font-weight: 700;
}

.rodape-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.copy {
  border-top: 1px solid #34466b;
  font-size: 0.9rem;
  margin-top: 28px;
  padding-top: 18px;
  text-align: center;
}


/* ---------- 16. WhatsApp flutuante ---------- */
.wa-flutuante {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  display: flex;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 22px;
  transition: transform 0.2s;
  width: 58px;
  z-index: 50;
}

.wa-flutuante:hover {
  transform: scale(1.08);
}

.wa-flutuante svg {
  fill: var(--branco);
  height: 32px;
  width: 32px;
}


/* ---------- 17. Revelar ao rolar (conteúdo visível por padrão) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}


/* ---------- 18. Responsivo ---------- */
@media (max-width: 860px) {
  .hero-grid,
  .duas-colunas,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-height: 340px;
  }

  .info-grid,
  .passos,
  .rodape-grid,
  .chamada-grid,
  .form-rapido {
    grid-template-columns: 1fr;
  }

  .chamada-pet img {
    max-width: 160px;
  }

  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    flex-direction: column;
  }

  .nav.open {
    display: flex;
  }

  .linha-dupla {
    grid-template-columns: 1fr;
  }
}


/* ---------- 19. Animação na troca de páginas ---------- */
/* A faixa amarela fica parada; só o texto dentro dela anima. */
.page-top h1 {
  animation: titulo-revela 0.7s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: 0.05s;
}

.page-top p {
  animation: aparece 0.6s ease both;
  animation-delay: 0.4s;
}

/* Demais seções: só fade, sem deslocar (evita abrir vãos brancos). */
main > section:not(.page-top):not(.hero) {
  animation: secao-entra 0.5s ease both;
  animation-delay: 0.15s;
}

@keyframes titulo-revela {
  from {
    clip-path: inset(0 100% 0 0);
    transform: translateX(-12px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}

@keyframes secao-entra {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* ---------- 20. Movimento reduzido (só o que é contínuo) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .wa-flutuante:hover {
    transform: none;
  }
}
