/* ==================== VARIÁVEIS CSS ==================== */
:root {
  /* Cores principais */
  --color-primary: #3c8c47;
  --color-secondary: #a9cba6;
  --color-accent: #e2b646;
  --color-soft: #fff5e1;
  --color-dark: #2f5233;
  --color-bg: #fafafa;
  --color-text: #444444;
  --color-white: #ffffff;
  
  /* Cores do header de serviços */
  --header-dark: #2f6f39;
  --header-light: #8fcf9a;
  --header-overlay: rgba(0, 0, 0, 0.22);
}

/* ==================== RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  letter-spacing: 0.3px;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

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

a:focus, button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==================== HEADER E NAVEGAÇÃO ==================== */
header {
  margin-bottom: 30px;
  background-color: var(--color-white);
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: "Poppins", sans-serif;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.menu-btn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.menu-btn:hover {
  transform: scale(1.1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  transition: all 0.3s ease;
}

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

nav a {
  color: var(--color-dark);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--color-primary);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ==================== DROPDOWN/SUBMENU ==================== */
.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 0.2rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Submenu - Desktop */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  list-style: none;
  min-width: 240px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 999;
  margin-top: 0.5rem;
}

.submenu li {
  width: 100%;
}

.submenu li a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: var(--color-dark);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.submenu li a::after {
  display: none;
}

.submenu li a:hover {
  background-color: var(--color-soft);
  color: var(--color-primary);
}

/* Desktop hover */
@media (min-width: 769px) {
  .dropdown:hover .submenu {
    display: block;
  }
}

/* ==================== BOTÕES ==================== */
.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(226, 182, 70, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(226, 182, 70, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(226, 182, 70, 0);
  }
}

.btn-primary:hover {
  background-color: #d1a230;
  transform: translateY(-2px);
  animation: none;
}

/* ==================== MAIN CONTAINER ==================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: var(--color-white);
  padding: 4rem 2rem;
  margin-bottom: 30px;
  border-radius: 16px;
}

.hero-text {
  flex: 1 1 450px;
  text-align: left;
  padding-right: 2rem;
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  max-width: 500px;
  clip-path: ellipse(75% 60% at 50% 40%);
  transition: transform 0.4s ease;
  border-radius: 12px;
}

.hero-img img:hover {
  transform: scale(1.02);
}

/* ==================== SEÇÃO ADOÇÃO ==================== */
.secao-adocao {
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--color-soft);
  margin-bottom: 30px;
  border-radius: 16px;
}

.secao-adocao .titulo-secao {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-family: "Poppins", sans-serif;
}

.cards-adocao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card-pet {
  background: var(--color-white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-pet:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-pet img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card-pet h3 {
  color: var(--color-dark);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.pet-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pet-tags span {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.card-pet p {
  margin-bottom: 0.6rem;
}

.card-pet .local {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.card-pet .btn-primary {
  width: 100%;
  display: block;
  text-align: center;
}

/* ==================== SEÇÃO SOBRE ==================== */
.sobre {
  background: linear-gradient(to bottom, var(--color-soft), var(--color-white));
  padding: 3rem 2rem;
  margin-bottom: 30px;
  border-radius: 16px;
}

.sobre-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: space-between;
}

.sobre-texto {
  flex: 1;
}

.sobre-texto h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.sobre-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sobre-imagem {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sobre-imagem img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ==================== SEÇÃO SERVIÇOS ==================== */
.servicos {
  background-color: var(--color-bg);
  padding: 3rem 2rem;
  margin-bottom: 30px;
  border-radius: 16px;
}

.servicos h2 {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-primary);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
  color: var(--color-primary);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.service-card p {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
  text-align: left;
}

/* ==================== PÁGINAS DE SERVIÇO ==================== */
.servico-header {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 3.2rem 1.5rem;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--header-dark) 0%, var(--header-light) 100%);
  box-shadow: 0 10px 30px rgba(30, 70, 30, 0.08);
  margin-bottom: 30px;
}

.servico-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.servico-header p {
  max-width: 920px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.servico-fotos {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
  grid-template-columns: 1fr;
  width: 100%;
}

.servico-fotos img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  height: 260px;
}

.servico-fotos img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.servico-descricao {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  width: 100%;
  text-align: center;
}

.servico-descricao h2 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.servico-descricao h3 {
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.servico-descricao p {
  color: #555;
  line-height: 1.7;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 1rem auto;
}

.servico-descricao ul {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
}

.servico-descricao li {
  margin: 0.8rem 0;
  color: #333;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.servico-descricao li::before {
  content: "🐾";
  position: absolute;
  left: 0;
}

/* ==================== FAQ ==================== */
.faq {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  width: 100%;
}

.faq h2 {
  text-align: center;
  color: var(--color-primary);
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.faq-item {
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: #555;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1rem 1.5rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

/* ==================== FOOTER ==================== */
footer {
  background-color: #3c8c47;
  color: #fff;
  padding: 3rem 2rem 1rem;
  width: 100%;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2rem;
}

.footer-column h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem; 
}

.footer-column p,
.footer-column a, {
  font-size: 0.75rem;
  color: #f2f2f2;
  line-height: 1.6;
}

.footer-column a:hover {
  color: #ffe9a8;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin: 0.5rem 1; 
}


.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social a {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}



/* ==================== WHATSAPP FLUTUANTE - CORRIGIDO ==================== */
.whatsapp-flutuante {
  position: fixed;
  bottom: 90px;
  right: 25px;
  
  /* Círculo perfeito */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  
  /* Cor verde WhatsApp */
  background: #25d366;
  color: #fff;
  
  /* Centraliza ícone */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Efeitos */
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1001;
  transition: all 0.3s ease;
  
  /* Remove decoração de link */
  text-decoration: none;
}

.whatsapp-flutuante:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  background: #20ba5a;
}

.whatsapp-flutuante i {
  font-size: 2rem;
}

/* Mobile - menor */
@media (max-width: 768px) {
  .whatsapp-flutuante {
    bottom: 70px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-flutuante i {
    font-size: 1.7rem;
  }
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
  
  /* Menu mobile */
  .menu-btn {
    display: block;
  }

  .logo-img {
    height: 40px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    background: var(--color-white);
    flex-direction: column;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - 70px);
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    align-items: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    display: block;
  }

  /* Dropdown mobile */
  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }

  /* Submenu mobile */
  .submenu {
    position: static !important;
    display: none;
    box-shadow: none;
    background: rgba(60, 140, 71, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
    padding: 0;
    margin: 0.5rem 0 1rem 0.5rem;
    min-width: auto;
    width: calc(100% - 0.5rem);
  }

  .dropdown.active .submenu,
  .submenu.active {
    display: block;
  }

  .submenu li {
    border-bottom: 1px solid rgba(60, 140, 71, 0.1);
  }

  .submenu li:last-child {
    border-bottom: none;
  }

  .submenu li a {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    background: transparent;
  }

  .submenu li a:hover,
  .submenu li a:focus {
    background-color: rgba(60, 140, 71, 0.15);
  }

  .dropdown:hover .submenu {
    display: none !important;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .hero-text {
    text-align: center;
    padding-right: 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
    max-width: 100%;
  }

  /* Sobre */
  .sobre-container {
    flex-direction: column;
    text-align: center;
  }

  .sobre-imagem {
    order: -1;
  }

  .sobre-texto p {
    text-align: left;
  }

  /* Serviços */
  .servicos h2 {
    font-size: 2rem;
  }

  /* Páginas de serviço */
  .servico-header {
    padding: 2.4rem 1rem;
  }

  .servico-header h1 {
    font-size: 1.9rem;
  }

  .servico-header p {
    font-size: 0.98rem;
  }

  .servico-fotos {
    grid-template-columns: 1fr;
  }

  .servico-fotos img {
    height: 180px;
  }

  .servico-descricao {
    padding: 1.8rem;
  }

  /* Footer mobile */
  footer {
    padding: 2rem 1.5rem 1rem;
  }

  .footer-container {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    grid-template-columns: 1fr;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-column p,
  .footer-column a {
    font-size: 0.85rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 1.5rem;
    font-size: 0.8rem;
  }

  .whatsapp-flutuante {
    bottom: 70px;
    right: 15px;
    padding: 12px;
    font-size: 1.5rem;
  }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 991px) {
  .servico-fotos {
    grid-template-columns: repeat(2, 1fr);
  }

  .servico-fotos img {
    height: 200px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .servico-fotos {
    grid-template-columns: repeat(3, 1fr);
  }

  .servico-fotos img {
    height: 260px;
  }
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visible {
  animation: fadeIn 0.6s ease;
}

/* ==================== SUBMENU ABERTO POR PADRÃO NO MOBILE ==================== */
@media (max-width: 768px) {
  /* Submenu já aberto por padrão */
  .submenu {
    display: block !important;
    position: static !important;
    box-shadow: none;
    background: rgba(60, 140, 71, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
    padding: 0;
    margin: 0.5rem 0 1rem 0.5rem;
    width: calc(100% - 0.5rem);
    max-height: 500px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Remove a seta do dropdown já que está sempre aberto */
  .dropdown-arrow {
    display: none;
  }

  /* Estilização dos links do submenu */
  .submenu li {
    border-bottom: 1px solid rgba(60, 140, 71, 0.1);
  }

  .submenu li:last-child {
    border-bottom: none;
  }

  .submenu li a {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    background: transparent;
    display: block;
    color: var(--color-dark);
    transition: all 0.3s ease;
  }

  .submenu li a:hover,
  .submenu li a:focus {
    background-color: rgba(60, 140, 71, 0.15);
    color: var(--color-primary);
  }

  /* Remove o hover do desktop no mobile */
  .dropdown:hover .submenu {
    display: block !important;
  }
}