/* ==========================================================================
   Vetconfort — Landing page de atendimento veterinário domiciliar
   Mobile-first
   ========================================================================== */

:root {
  --azul: #5B75F3;
  --azul-escuro: #4258d1;
  --rosa: #FF69B4;
  --cinza-azulado: #9BB6BD;
  --texto: #35404A;
  --texto-claro: #6b7680;
  --branco: #FFFFFF;
  --fundo-suave: #F7F8FD;
  --borda: #E7EBF7;

  --fonte: 'Poppins', 'Nunito Sans', sans-serif;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --shadow: 0 20px 40px -20px rgba(91, 117, 243, 0.25);
  --container-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fonte);
  font-weight: 300;
  color: var(--texto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--texto);
}

p {
  line-height: 1.7;
  margin: 0 0 16px;
  color: var(--texto-claro);
}

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--azul);
  color: var(--branco);
}

.btn-primary:hover {
  background: var(--azul-escuro);
}

.btn-cta {
  background: var(--rosa);
  color: var(--branco);
  box-shadow: 0 14px 30px -10px rgba(255, 105, 180, 0.55);
}

.btn-cta:hover {
  background: #ff4fa8;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16px;
  min-height: 54px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borda);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo img {
  height: 34px;
  width: auto;
}

.main-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.main-nav.open {
  max-height: 260px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--texto);
  border-bottom: 1px solid var(--borda);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 26px;
  background: var(--texto);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 130px 0 60px;
  background: linear-gradient(180deg, var(--fundo-suave) 0%, var(--branco) 100%);
  overflow: hidden;
}

.arara-watermark {
  position: absolute;
  top: -60px;
  right: -120px;
  width: 320px;
  opacity: 0.06;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-a {
  width: 280px;
  height: 280px;
  left: -100px;
  top: 60px;
  background: radial-gradient(circle, rgba(91, 117, 243, 0.22), rgba(91, 117, 243, 0));
}

.hero-blob-b {
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: -40px;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.18), rgba(255, 105, 180, 0));
}

/* ---------- Elementos decorativos de vida silvestre ---------- */
.decor-icon {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
}

.decor-fishbowl {
  width: 130px;
  top: 20px;
  right: -20px;
}

.decor-parrot {
  width: 150px;
  left: -30px;
  bottom: 10px;
}

.decor-parrot-alt {
  left: auto;
  right: -30px;
  top: 10px;
  bottom: auto;
  transform: scaleX(-1);
}

.cta-final .decor-fishbowl {
  top: auto;
  right: auto;
  left: -20px;
  bottom: 10px;
}

.decor-pawprints {
  width: 110px;
  right: 6%;
  bottom: -10px;
}

.decor-birdcage {
  width: 120px;
  left: -20px;
  top: 40px;
}

.decor-doghouse {
  width: 110px;
  right: -20px;
  bottom: 30px;
}

.how-it-works-decor {
  left: -20px;
  right: auto;
  top: 10px;
  bottom: auto;
}

.wildlife-decor {
  width: 100px;
  left: -10px;
  bottom: -20px;
}


.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 17px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 380px;
}

/* ---------- Carrossel de cards empilhados do hero ---------- */
.hero-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--branco);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease, box-shadow 0.9s ease;
}

.hero-slide.stack-0 {
  transform: translate(0, 0) rotate(0deg) scale(1);
  z-index: 3;
  opacity: 1;
  box-shadow: 0 24px 48px -16px rgba(53, 64, 74, 0.35);
}

.hero-slide.stack-1 {
  transform: translate(12px, 16px) rotate(4deg) scale(0.96);
  z-index: 2;
  opacity: 0.95;
  box-shadow: 0 16px 32px -14px rgba(53, 64, 74, 0.28);
}

.hero-slide.stack-2 {
  transform: translate(22px, 30px) rotate(7deg) scale(0.92);
  z-index: 1;
  opacity: 0.85;
  box-shadow: 0 12px 24px -12px rgba(53, 64, 74, 0.22);
}

.hero-slide.stack-3 {
  transform: translate(22px, 30px) rotate(7deg) scale(0.9);
  z-index: 0;
  opacity: 0;
  box-shadow: none;
}

.hero-stack-decor {
  position: absolute;
  width: 46%;
  right: -8%;
  bottom: -10%;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.hero-carousel-dots {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 4;
}

.hero-carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--borda);
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-carousel-dots .dot.is-active {
  background: var(--azul);
  transform: scale(1.2);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-title {
  font-size: 26px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  text-align: center;
  max-width: 560px;
  margin: -8px auto 32px;
}

.why {
  position: relative;
  overflow: hidden;
}

/* ---------- Cards genéricos ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  box-shadow: var(--shadow);
}

.card-icon,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--fundo-suave);
  margin-bottom: 16px;
}

.card-icon svg,
.service-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  margin: 0;
}

.services {
  position: relative;
  overflow: hidden;
}

/* ---------- Serviços ---------- */
.services-grid {
  grid-template-columns: 1fr;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--fundo-suave);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.service-item .service-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  background: var(--branco);
}

.service-item .service-icon svg {
  width: 22px;
  height: 22px;
}

.service-item p {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--texto);
}

/* ---------- Como funciona ---------- */
.how-it-works {
  position: relative;
  overflow: hidden;
  background: var(--fundo-suave);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.step {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--branco);
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  margin: 0;
}

.gallery {
  position: relative;
  overflow: hidden;
}

/* ---------- Galeria ---------- */
.gallery-carousel {
  position: relative;
  max-width: var(--container-width);
  margin: 32px auto 0;
  padding: 0 20px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 78%;
  scroll-snap-align: center;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

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

.gallery-nav {
  display: none;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.gallery-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--borda);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-dots .dot.is-active {
  background: var(--azul);
  transform: scale(1.25);
}

/* ---------- Silvestres e exóticos ---------- */
.wildlife {
  position: relative;
  overflow: hidden;
  background: var(--fundo-suave);
}

.wildlife-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.wildlife-text {
  text-align: center;
}

.wildlife-text .section-title {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 12px;
  text-align: inherit;
}

.wildlife-text p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.wildlife-video {
  width: 100%;
  max-width: 320px;
}

.wildlife-video video {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #000;
}

/* ---------- Confiança ---------- */
.trust {
  background: var(--azul);
}

.trust-inner {
  text-align: center;
  max-width: 680px;
}

.trust-inner h2,
.trust-inner p {
  color: var(--branco);
}

.trust-inner p {
  opacity: 0.9;
}

/* ---------- Avaliações ---------- */
.reviews-widget {
  max-width: var(--container-width);
  margin: 32px auto 0;
  min-height: 220px;
}

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef1fe 0%, #fdeef6 100%);
}

.cta-final-inner {
  text-align: center;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-final-inner h2 {
  font-size: 26px;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--fundo-suave);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.faq-item summary {
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--azul);
  font-weight: 700;
  transition: transform 0.2s ease;
}

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

.faq-item p {
  margin: 14px 0 0;
  font-size: 14.5px;
}

/* ---------- Contato ---------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--fundo-suave);
}

.contact-decor {
  width: 110px;
  right: -20px;
  bottom: -20px;
}

.contact-inner {
  text-align: center;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-inner .section-title {
  margin-bottom: 0;
}

.contact-inner .section-lead {
  margin: 0 0 12px;
}

.contact-inner .btn {
  margin-top: 4px;
}

.contact-details {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--texto);
}

.contact-details a {
  color: var(--texto);
}

.contact-details a:hover {
  color: var(--azul);
}

.contact-sep {
  margin: 0 10px;
  color: var(--cinza-azulado);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1f2430;
  color: #c7cbe0;
  padding: 48px 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand img {
  height: 34px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #9aa0bd;
  font-size: 14px;
  max-width: 320px;
}

.footer-contact h3 {
  color: var(--branco);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-contact p {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-contact a {
  color: #c7cbe0;
}

.footer-contact a:hover {
  color: var(--branco);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
  padding: 20px 20px;
  text-align: center;
  font-size: 13px;
  color: #7b8199;
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.6);
  z-index: 90;
  transition: transform 0.2s ease;
}

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

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ---------- Animações de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Tablet e acima
   ========================================================================== */
@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 38px;
  }

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

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

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

  .gallery-slide {
    flex-basis: 46%;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 1024px) {
  .header-inner {
    height: 84px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: none;
    border: none;
  }

  .main-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 32px;
  }

  .main-nav a {
    padding: 0;
    border-bottom: none;
    font-size: 15px;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero {
    padding: 170px 0 100px;
  }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }

  .hero-text {
    text-align: left;
    flex: 1;
  }

  .hero-subtitle {
    margin-left: 0;
  }

  .hero-text h1 {
    font-size: 44px;
  }

  .hero-image {
    flex: 1;
    max-width: 460px;
  }

  .hero-slide.stack-1 {
    transform: translate(20px, 24px) rotate(5deg) scale(0.96);
  }

  .hero-slide.stack-2 {
    transform: translate(38px, 46px) rotate(9deg) scale(0.92);
  }

  .hero-slide.stack-3 {
    transform: translate(38px, 46px) rotate(9deg) scale(0.9);
  }

  .section {
    padding: 100px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .cards-grid.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-slide {
    flex-basis: 23%;
  }

  .gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--branco);
    border: 1px solid var(--borda);
    box-shadow: var(--shadow);
    color: var(--azul);
    cursor: pointer;
    z-index: 5;
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .gallery-nav svg {
    width: 20px;
    height: 20px;
  }

  .gallery-nav:hover {
    background: var(--azul);
    color: var(--branco);
    transform: translateY(-50%) scale(1.06);
  }

  .gallery-nav.prev {
    left: -4px;
  }

  .gallery-nav.next {
    right: -4px;
  }

  .cta-final-inner h2 {
    font-size: 34px;
  }

  .wildlife-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 60px;
  }

  .wildlife-text {
    text-align: left;
    flex: 1;
  }

  .wildlife-text p {
    margin-left: 0;
  }

  .wildlife-video {
    max-width: 280px;
  }
}
