/* =========================================================
   PATA & CIA PET CENTER — stylesheet
   ========================================================= */

:root{
  --purple: #7042A8;
  --purple-hover: #5F3691;
  --purple-dark: #29283D;
  --purple-light: #F1EEFF;
  --orange: #F5A623;
  --orange-hover: #E0951A;
  --white: #FFFFFF;
  --gray: #666666;
  --whatsapp: #25D366;

  --font-display: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --shadow-soft: 0 12px 30px rgba(41, 40, 61, 0.08);
  --shadow-card: 0 8px 24px rgba(112, 66, 168, 0.10);

  --header-height: 84px;
}

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

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--purple-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul{ margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--purple-dark);
}

p{ margin: 0 0 1em; color: var(--gray); }

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.35);
}
.btn-primary:hover{ background: var(--orange-hover); }

.btn-outline{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
}
.btn-outline:hover{ background: rgba(255,255,255,0.12); }

.btn-outline-purple{
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-outline-purple:hover{ background: var(--purple); color: var(--white); }

.btn-whats{
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}
.btn-whats:hover{ background: #1FB955; }
.btn-whats img{ width: 22px; height: 22px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 2px 18px rgba(41,40,61,0.06);
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled{
  box-shadow: 0 8px 24px rgba(41,40,61,0.12);
}

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

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark{ width: 40px; height: 40px; flex-shrink: 0; }
.brand-text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--purple-dark);
}
.brand-amp{ color: var(--orange); }

.main-nav ul{
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link{
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple-dark);
  padding: 8px 2px;
  transition: color 0.2s ease;
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover{ color: var(--purple); }
.nav-link:hover::after{ transform: scaleX(1); }
.nav-link.active{ color: var(--purple); }
.nav-link.active::after{ transform: scaleX(1); }

.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: var(--purple-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span{
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--purple-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background: linear-gradient(160deg, var(--purple) 0%, #5F3691 100%);
  padding: calc(var(--header-height) + 64px) 0 72px;
  overflow: hidden;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1{
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 15ch;
  margin-bottom: 0.4em;
}

.hero-text{
  color: rgba(255,255,255,0.85);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 2em;
}

.hero-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 2.5em;
}

.hero-quick-info{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.quick-info-item{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
}
.quick-info-item img{ width: 20px; height: 20px; }

.hero-media{
  display: flex;
  justify-content: center;
}
.hero-illustration{
  width: 100%;
  max-width: 480px;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

/* =========================================================
   SOBRE NÓS
   ========================================================= */
.about{ padding: 96px 0; background: var(--white); }

.about-inner{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-media img{ width: 100%; border-radius: var(--radius-lg); }

.eyebrow{
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.about-content h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0.3em; }
.about-content p{ font-size: 1.05rem; max-width: 52ch; }

.about-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2em;
}
.stat strong{
  display: block;
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 1.6rem;
}
.stat span{ color: var(--gray); font-size: 0.9rem; }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.services{ padding: 96px 0; background: var(--purple-light); }

.section-title{
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.services-title{ color: var(--orange); margin-bottom: 56px; }

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

.service-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(112,66,168,0.18);
}

.service-icon{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon img{ width: 32px; height: 32px; }

.service-card h3{ color: var(--purple); font-size: 1.15rem; }
.service-card p{ font-size: 0.95rem; margin-bottom: 0; }

/* =========================================================
   BANHO E TOSA
   ========================================================= */
.bath{ padding: 96px 0; background: var(--white); }

.section-heading{ text-align: center; margin-bottom: 56px; }
.section-subtitle{ color: var(--gray); font-size: 1.05rem; margin-top: 6px; }

.bath-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.bath-card{
  background: var(--purple-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bath-img{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.bath-card-body{ padding: 32px; }
.bath-card-body h3{ color: var(--purple); font-size: 1.4rem; }

.check-list{ margin: 18px 0 26px; }
.check-list li{
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--purple-dark);
  font-weight: 500;
  font-size: 0.98rem;
}
.check-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* =========================================================
   CLÍNICA VETERINÁRIA
   ========================================================= */
.clinic{ padding: 96px 0; background: var(--purple); }

.clinic-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.clinic-content h2{ color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.clinic-content p{ color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 44ch; }

.clinic-cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 1.8em 0 2.2em;
}
.clinic-card{
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.clinic-media img{ width: 100%; border-radius: var(--radius-lg); }

/* =========================================================
   INSTAGRAM / GALERIA
   ========================================================= */
.instagram{ padding: 96px 0; background: var(--purple-light); }

.insta-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.insta-item{
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.insta-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.insta-item:hover img{ transform: scale(1.08); }

.insta-footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}
.insta-handle{ font-family: var(--font-display); font-weight: 700; color: var(--purple); font-size: 1.1rem; }

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.testimonials{ padding: 96px 0; background: var(--white); }
.testimonials .section-title{ margin-bottom: 56px; }

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

.testimonial-card{
  background: var(--purple-light);
  border-radius: var(--radius-md);
  padding: 32px;
}
.stars{ display: flex; gap: 4px; margin-bottom: 16px; }
.stars img{ width: 16px; height: 16px; }
.testimonial-card p{ color: var(--purple-dark); font-size: 1.02rem; font-style: italic; }
.testimonial-author{ font-weight: 700; color: var(--purple); font-size: 0.92rem; }

/* =========================================================
   CTA WHATSAPP
   ========================================================= */
.cta-whats{ background: var(--orange); padding: 80px 0; }
.cta-whats-inner{ text-align: center; }
.cta-whats h2{ color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-whats p{ color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 1.8em; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact{ padding: 96px 0; background: var(--white); }
.contact .section-title{ margin-bottom: 48px; }

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-list li{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--purple-light);
  font-weight: 500;
  color: var(--purple-dark);
}
.contact-list li:last-child{ border-bottom: none; }
.contact-list img{ width: 22px; height: 22px; flex-shrink: 0; }
.contact-list a:hover{ color: var(--purple); }

.contact-map{
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
}
.map-placeholder{
  height: 100%;
  min-height: 260px;
  background:
    repeating-linear-gradient(45deg, var(--purple-light), var(--purple-light) 12px, #EAE3FB 12px, #EAE3FB 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.map-pin{ width: 36px; height: 36px; }
.map-placeholder span{ font-weight: 700; color: var(--purple-dark); }
.map-placeholder small{ color: var(--gray); font-size: 0.82rem; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer{ background: var(--purple-dark); color: rgba(255,255,255,0.75); }

.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 24px 48px;
}

.footer-col h4{
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2em;
}
.footer-col p{ color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-col ul li{ margin-bottom: 10px; }
.footer-col ul a{ color: rgba(255,255,255,0.75); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col ul a:hover{ color: var(--orange); }

.brand-footer .brand-text{ color: var(--white); }

.social-icons{ display: flex; gap: 12px; }
.social-icons a{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-icons a:hover{ background: var(--purple); transform: translateY(-3px); }
.social-icons img{ width: 18px; height: 18px; }
.social-whats-icon{ width: 20px !important; height: 20px !important; }

.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  font-size: 0.85rem;
}
.footer-links{ display: flex; gap: 22px; }
.footer-links a:hover{ color: var(--orange); }

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */
.whats-float{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 900;
  opacity: 0;
  transform: scale(0.4);
  animation: pop-in 0.5s ease 1.2s forwards, pulse 2.6s ease-in-out 2.2s infinite;
}
.whats-float img{ width: 28px; height: 28px; }
.whats-float:hover{ filter: brightness(1.05); }

@keyframes pop-in{
  to{ opacity: 1; transform: scale(1); }
}
@keyframes pulse{
  0%, 100%{ box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); }
  50%{ box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid{ grid-template-columns: repeat(2, 1fr); }
  .insta-grid{ grid-template-columns: repeat(3, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; text-align: center; }
  .hero-content h1{ max-width: none; margin-left: auto; margin-right: auto; }
  .hero-text{ margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-quick-info{ justify-content: center; }
  .hero-media{ order: -1; margin-bottom: 12px; }
  .hero-illustration{ max-width: 320px; }

  .about-inner{ grid-template-columns: 1fr; }
  .about-content{ text-align: center; }
  .about-content p{ margin-left: auto; margin-right: auto; }
  .about-stats{ max-width: 420px; margin-left: auto; margin-right: auto; }

  .clinic-inner{ grid-template-columns: 1fr; }
  .clinic-content{ text-align: center; }
  .clinic-content p{ margin-left: auto; margin-right: auto; }
  .clinic-cards{ max-width: 420px; margin-left: auto; margin-right: auto; }
  .clinic-media{ order: -1; }

  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(41,40,61,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open{ max-height: 520px; }
  .main-nav ul{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 24px;
  }
  .main-nav .nav-link{ display: block; width: 100%; padding: 12px 0; }
  .main-nav .nav-link::after{ display: none; }
  .menu-toggle{ display: flex; }

  .bath-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .insta-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; padding-top: 56px; }
  .footer-bottom-inner{ flex-direction: column; text-align: center; }
}

@media (max-width: 480px){
  .about-stats{ grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .clinic-cards{ grid-template-columns: 1fr; }
  .hero-buttons{ flex-direction: column; align-items: stretch; }
  .hero-buttons .btn{ justify-content: center; }
}
