/* style.css - Pets em Casa */

/* ========= Reset & Base ========= */

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

:root {
  --cor-principal: #51AEB4;
  --cor-principal-escura: #0B1726;
  --cor-secundaria: #D8E9A8;
  --cinza-fundo: #f4f6fb;
  --cinza-card: #ffffff;
  --cinza-borda: #e3e7f1;
  --texto: #1f2933;
  --texto-suave: #6b778c;
  --erro: #e53e3e;
  --fonte: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-full: 999px;
  --container-max: 1120px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--fonte);
  color: var(--texto);
  background: radial-gradient(circle at top left, #ecfeff 0, #f4f6fb 40%, #f9fafb 100%);
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: 100px;
}

/* ========= Layout util ========= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 0.8rem;
}

section {
  padding: 2.5rem 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1726;
}

p {
  color: var(--texto-suave);
  font-size: 0.98rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========= Header & Navegação ========= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 1.0rem;
  padding-bottom: 1.0rem;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.92), rgba(243, 250, 255, 0.95));
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  backdrop-filter: blur(20px);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(243, 250, 255, 0.98));
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  transition: min-height 0.3s ease;
}

.header.scrolled .header-container {
  min-height: 60px;
}

.header.scrolled .logo {
  height: 50px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 62px;
}

.logo {
  height: 100%;
  width: auto;
  max-width: 190px;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px) scale(1.01);
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

/* Navegação desktop */

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.95rem;
}

.nav-item a {
  position: relative;
  font-weight: 500;
  color: var(--texto-suave);
  padding-bottom: 0.2rem;
}

.nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cor-principal), var(--cor-secundaria));
  transition: width 0.18s ease-out;
}

.nav-item a:hover {
  color: var(--texto);
}

.nav-item a:hover::after {
  width: 100%;
}

/* Botão WhatsApp no menu */

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(80, 174, 180, 0.2);
  background: radial-gradient(circle at top left, rgba(81, 174, 180, 0.15), rgba(81, 174, 180, 0.05));
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-whatsapp i,
.fa-whatsapp {
  font-size: 1.1rem;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at top left, rgba(81, 174, 180, 0.22), rgba(81, 174, 180, 0.08));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

/* Menu mobile */

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
}

/* ========= Hero / Slideshow ========= */

.hero {
  position: relative;
  padding-top: 0rem;
}

.slideshow-container {
  position: relative;
  width: 100%;
  min-height: min(520px, 80vh);
  border-radius: 0px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: var(--shadow-soft);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
  transform: scale(1.02);
}

.slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 3.2rem 8% 3.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  max-width: 520px;
  color: #ffffff;
}

.slide-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.slide-content p {
  color: #f1f5f9;
  font-size: 0.98rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.4) 0%,
      rgba(15, 23, 42, 0.2) 50%,
      rgba(15, 23, 42, 0.3) 100%);
  z-index: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--cor-principal), var(--cor-principal-escura));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(45, 212, 191, 0.25);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 24px 70px rgba(15, 118, 110, 0.35);
}

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.3);
  color: #f9fafb;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  background: rgba(15, 23, 42, 0.55);
  transform: translateY(-50%) scale(1.03);
}

.slideshow-prev {
  left: 1rem;
}

.slideshow-next {
  right: 1rem;
}

.slideshow-dots {
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.slideshow-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.slideshow-dots span.active {
  width: 22px;
  background: #f9fafb;
  transform: translateY(-1px);
}

/* ========= Seção Sobre ========= */

.sobre {
  background: transparent;
}

.sobre-content {
  max-width: 800px;
  margin: 0 auto;
}

.sobre .container {
  display: block;
}

.sobre-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--cor-principal-escura);
  font-size: 1.7rem;
}

.text-destaque {
  font-size: 1.15rem;
  color: var(--texto);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
}

.text-narrativa {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--texto-suave);
  text-align: justify;
}

.sobre-lista-box {
  background-color: #ffffff;
  padding: 2.2rem 2.5rem;
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--cor-principal);
  margin: 2.5rem 0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}

.sobre-lista-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--texto);
}

.lista-sobre {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-sobre li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  font-size: 1.05rem;
  color: var(--texto);
  line-height: 1.4;
}

.lista-sobre li:last-child {
  margin-bottom: 0;
}

.lista-sobre li i {
  color: var(--cor-principal);
  margin-right: 14px;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.text-fechamento {
  margin-top: 2rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--texto);
  line-height: 1.6;
  font-weight: 500;
}

/* ========= Cards / Recursos ========= */

.recursos {
  background: radial-gradient(circle at top, #e0fbff, #f7fafc 48%, #f9fafb);
}

.recursos h2,
.vantagens h2,
.contato h2 {
  text-align: center;
  font-size: 1.7rem;
}

.recursos p,
.vantagens p {
  text-align: center;
  margin-top: 0.35rem;
}

.grid-recursos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.card {
  padding: 2.1rem 1.7rem;
  border-radius: var(--radius-lg);
  background: var(--cinza-card);
  border: 1px solid var(--cinza-borda);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(81, 174, 180, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(81, 174, 180, 0.32);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  font-size: 0.94rem;
}

.card i[class^="fa-"],
.card i[class*=" fa-"] {
  font-size: 1.6rem;
  color: var(--cor-principal-escura);
  margin-bottom: 0.6rem;
}

/* ========= Seção Vantagens / Lista ========= */

.vantagens {
  padding: 80px 0;
  background-color: #f9fefe;
}

.vantagens h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

.vantagem-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.vantagem-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 15px;
}

.vantagem-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.vantagem-item p {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .vantagens-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vantagem-item {
    padding: 25px 20px;
    text-align: left;
  }

  .vantagem-icon {
    font-size: 26px;
    margin-bottom: 10px;
  }
}



/* ========= Seção Contato (Atualizado) ========= */

.contato {
  background: radial-gradient(circle at top, #dbeafe, #f9fafb 55%);
  text-align: center;
}

.contato p {
  text-align: center;
  margin: 0.5rem auto 2rem;
  max-width: 600px;
  font-size: 1.1rem;
}

/* Novo Botão CTA WhatsApp */
.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #25D366;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-whatsapp-cta:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp-cta i {
  font-size: 1.5rem;
}

/* ========= Cookie Consent ========= */

.cookie-consent {
  position: fixed;
  inset: auto 1.5rem 1.5rem;
  max-width: 360px;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.85rem;
  display: none;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.45);
  z-index: 60;
}

.cookie-consent a {
  color: #a5f3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#accept-cookies {
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  padding: 0.55rem 1.05rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ========= WhatsApp Floating Button (Corrigido para estilo original) ========= */

.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  /* Retornado para o tamanho original maior */
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: flex;
  /* Melhor para alinhar ícone + texto */
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  /* Verde Oficial */
  color: #fff;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: width 0.4s ease-in-out, border-radius 0.4s ease-in-out, background-color 0.3s;
  text-decoration: none;
  overflow: hidden;
}

.whatsapp-float:hover {
  width: 220px;
  border-radius: 50px;
  background-color: #128C7E;
  /* Verde escuro no hover */
}

/* Ícone com tamanho correto */
.whatsapp-float i {
  font-size: 34px;
  /* Tamanho original grande */
  transition: transform 0.3s;
  margin: 0 13px;
  /* Garante o espaçamento correto */
  flex-shrink: 0;
  /* Evita que o ícone amasse na animação */
}

.whatsapp-float:hover i {
  transform: rotate(360deg);
}

/* O texto (span) */
.whatsapp-text {
  font-size: 16px;
  font-weight: 600;
  color: #FFF;
  white-space: nowrap;
  width: 0;
  opacity: 0;
  transition: width 0.3s ease-in-out, opacity 0.2s ease-in-out 0.1s;
}

.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
  width: 125px;
}

/* ========= Footer ========= */

.footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(to right, #ffffff, #f8fafc);
  padding: 1.6rem 0 2.2rem;
  font-size: 0.86rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

.footer p {
  color: #64748b;
}

/* ========= Scroll Reveal ========= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========= Páginas internas (política) ========= */

.politica {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 2rem;
}

.politica h1 {
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}

.politica h2 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
}

.politica p,
.politica li {
  font-size: 0.95rem;
  margin-top: 0.35rem;
  color: var(--texto-suave);
}

/* ========= Ajustes Mobile (Telas menores que 640px) ========= */
@media (max-width: 640px) {
  .sobre-content h2 {
    font-size: 1.5rem;
    text-align: left;
  }

  .text-destaque {
    font-size: 1.05rem;
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .text-narrativa {
    text-align: left;
    font-size: 0.95rem;
  }

  .sobre-lista-box {
    padding: 1.5rem 1.2rem;
    border-left-width: 4px;
    margin: 1.5rem 0;
  }

  .sobre-lista-box h3 {
    font-size: 1.1rem;
  }

  .lista-sobre li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .lista-sobre li i {
    font-size: 1.1rem;
    margin-right: 10px;
    margin-top: 3px;
  }

  .text-fechamento {
    text-align: left;
    font-size: 1rem;
    margin-top: 1.5rem;
  }
}

/* ========= Responsividade ========= */

@media (max-width: 960px) {
  .header-container {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    inset: 100% 0 auto;
    background: rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
    display: none;
  }

  .nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 1.5rem 1.15rem;
    gap: 0.9rem;
  }

  .nav-item a {
    font-size: 0.98rem;
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .slide-content {
    padding: 2.4rem 1.6rem 2.6rem;
    max-width: 100%;
  }

  .slideshow-prev,
  .slideshow-next {
    display: none;
  }

  .cookie-consent {
    inset: auto 1rem 1rem;
    max-width: calc(100% - 2rem);
  }
}

@media (max-width: 640px) {
  section {
    padding: 1.2rem 0;
  }

  .slideshow-container {
    min-height: 380px;
    border-radius: 0px;
  }

  .slide-content {
    padding: 2rem 1.5rem 2.2rem;
    gap: 1rem;
  }

  .slide-content h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .slide-content p {
    font-size: 0.92rem;
  }

  .grid-recursos {
    gap: 1.4rem;
  }

  .card {
    padding: 1.7rem 1.4rem;
  }

  /* Ajuste no mobile: Mantém 60px no desktop, mas reduz um pouco no mobile se quiser
     ou mantém 60px. Como o original tinha ajuste no mobile, recriei abaixo: */
  .whatsapp-float {
    width: 60px;
    /* Mantém grande mesmo no mobile para facilitar o toque, ou 48px se preferir */
    height: 60px;
    right: 1rem;
    bottom: 1rem;
  }

  .whatsapp-float i {
    font-size: 28px;
    /* Leve ajuste para telas pequenas */
  }

  /* Ajuste do botão CTA no mobile */
  .btn-whatsapp-cta {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    min-height: 250px;
  }

  .slide-content {
    padding: 1.8rem 1.2rem 2rem;
    gap: 0.8rem;
  }

  .slide-content h2 {
    font-size: 1.4rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 1120px) {
  .hero {
    padding-top: 0rem;
  }

  .grid-recursos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
  }

  .grid-recursos .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }
}

.grid-recursos .card {
  transition: all 0.3s ease;
}

.grid-recursos .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  background-color: #ffffff;
}

@media (max-width: 640px) {
  .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: auto;
    min-width: 140px;
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    min-width: 130px;
    max-width: 160px;
    padding: 0.55rem 1rem;
  }
}