/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-secondary: #10b981;
  --color-secondary-dark: #059669;
  --color-accent: #f59e0b;
  --color-bg: #ffffff;
  --color-bg-alt: #fff7ed;
  --color-text: #334155;
  --color-text-dark: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-dark);
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  transition: var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

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

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

.nav-adopt-btn {
  background: var(--color-primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.35);
  transition: var(--transition);
}

.nav-adopt-btn::after {
  display: none !important;
}

.nav-adopt-btn:hover {
  background: var(--color-primary-dark) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 50%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(249, 115, 22, 0.12);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 64px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: white;
  padding: 24px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 160px;
}

.stat-card strong {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Seções */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-label {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin-bottom: 48px;
}

/* Sobre */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.about-text strong {
  color: var(--color-primary-dark);
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: var(--transition);
}

.about-image:hover {
  transform: rotate(0deg);
}

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

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value:hover {
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.value strong {
  display: block;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.value p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 0;
}

/* Eventos */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-card.event-highlight {
  border: 2px solid var(--color-secondary);
}

.event-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 28px;
}

.event-card.event-highlight .event-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
}

.event-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.event-header h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.event-header p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.event-body {
  padding: 24px;
  flex-grow: 1;
}

.event-body p {
  margin-bottom: 12px;
  color: var(--color-text);
}

.event-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-body a:hover {
  color: var(--color-primary-dark);
}

.event-note {
  padding: 0 24px 16px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
}

.event-card-btn {
  margin: 0 24px 24px;
  align-self: flex-start;
}

/* Como adotar */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.step {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.step:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.step h3 {
  font-family: 'Quicksand', sans-serif;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.step .btn {
  margin-top: auto;
  width: 100%;
}

.donate-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.donate-info-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.donate-info-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.donate-cta {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.donate-cta p {
  font-size: 1.1rem;
  color: var(--color-text);
}

/* Como ajudar */
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.help-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.help-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.help-card h3 {
  font-family: 'Quicksand', sans-serif;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.help-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

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

.gallery-grid img {
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Contato */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(4px);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--color-text-dark);
  color: white;
  padding: 64px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.footer-brand strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
}

/* Responsivo */
@media (max-width: 1024px) {
  .section-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    transform: none;
  }

  .events-grid,
  .help-grid,
  .steps,
  .about-values,
  .donate-info {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: white;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .events-grid,
  .help-grid,
  .steps,
  .about-values,
  .gallery-grid,
  .donate-info {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .stat-card {
    width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}
