/*
Theme Name: Plantão da Saúde
Theme URI: https://plantaodasaude.org.br
Author: Plantão da Saúde
Description: Tema institucional para ONG de assistência jurídica em saúde
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: plantao-saude
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Cores principais */
  --primary: hsl(210, 80%, 30%);
  --primary-dark: hsl(210, 80%, 20%);
  --primary-foreground: hsl(0, 0%, 100%);
  
  /* Background e texto */
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(210, 40%, 10%);
  
  /* Secundário */
  --secondary: hsl(210, 30%, 92%);
  --secondary-foreground: hsl(210, 40%, 10%);
  
  /* Muted */
  --muted: hsl(210, 20%, 94%);
  --muted-foreground: hsl(210, 15%, 45%);
  
  /* Accent (coral para doações) */
  --accent: hsl(12, 76%, 61%);
  --accent-foreground: hsl(0, 0%, 100%);
  
  /* WhatsApp */
  --whatsapp: hsl(142, 70%, 45%);
  --whatsapp-foreground: hsl(0, 0%, 100%);
  
  /* Cards e bordas */
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 40%, 10%);
  --border: hsl(210, 20%, 88%);
  
  /* Radius e sombras */
  --radius: 0.75rem;
  --shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px -4px rgba(0, 0, 0, 0.12);
}

/* ===== TIPOGRAFIA ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700;900&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-hero {
  background-color: var(--primary-foreground);
  color: var(--primary);
  font-weight: 700;
}

.btn-hero:hover {
  background-color: hsl(210, 40%, 95%);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--whatsapp-foreground);
}

.btn-whatsapp:hover {
  background-color: hsl(142, 70%, 40%);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  background-color: hsl(12, 76%, 55%);
}

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

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

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

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

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

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-title-highlight {
  color: var(--accent);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 500px;
}

.hero-stat {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  text-align: center;
}

.hero-stat-value {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 6rem 0;
  background-color: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-card {
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  background-color: hsl(210, 80%, 30%, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.about-card-text {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.values-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  padding: 1.5rem;
  background-color: hsl(210, 30%, 92%, 0.5);
  border-radius: calc(var(--radius) * 2);
  text-align: center;
}

.value-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.value-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 6rem 0;
  background-color: hsl(210, 30%, 92%, 0.3);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 56px;
  height: 56px;
  background-color: hsl(210, 80%, 30%, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-text {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.features-box {
  padding: 2rem 3rem;
  background-color: var(--primary);
  border-radius: calc(var(--radius) * 2);
}

.features-box-title {
  text-align: center;
  color: white;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.feature-title {
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== IMPACT SECTION ===== */
.impact-section {
  padding: 6rem 0;
  background-color: var(--background);
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background-color: hsl(210, 80%, 30%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.stat-value {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stat-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonials-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 1.5rem;
  background-color: hsl(210, 30%, 92%, 0.5);
  border-radius: calc(var(--radius) * 2);
}

.testimonial-quote {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 6rem 0;
  background-color: hsl(210, 30%, 92%, 0.3);
}

.cta-grid {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cta-card {
  padding: 2.5rem;
  border-radius: calc(var(--radius) * 2);
}

.cta-card-donate {
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-card-partner {
  background-color: var(--primary);
}

.cta-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-card-donate .cta-icon {
  background-color: hsl(12, 76%, 61%, 0.1);
  color: var(--accent);
}

.cta-card-partner .cta-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.cta-card-donate .cta-title {
  color: var(--foreground);
}

.cta-card-partner .cta-title {
  color: white;
}

.cta-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-card-donate .cta-text {
  color: var(--muted-foreground);
}

.cta-card-partner .cta-text {
  color: rgba(255, 255, 255, 0.8);
}

.cta-text {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.cta-list {
  list-style: none;
  margin-bottom: 2rem;
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.cta-list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cta-card-donate .cta-list-dot {
  background-color: var(--accent);
}

.cta-card-partner .cta-list-dot {
  background-color: white;
}

.cta-card-partner .cta-list li {
  color: white;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 4rem 0 0;
  background-color: hsl(210, 40%, 10%);
  color: white;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), hsl(210, 80%, 40%));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-icon {
  margin-top: 2px;
  color: var(--primary);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-legal a:hover {
  color: white;
}

/* ===== DONATIONS PAGE ===== */
.donations-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--accent) 0%, hsl(12, 76%, 50%) 100%);
  text-align: center;
}

.donations-hero-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .donations-hero-title {
    font-size: 3rem;
  }
}

.donations-hero-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.donations-section {
  padding: 4rem 0;
}

.donations-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .donations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.donation-card {
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
}

.donation-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.donation-card-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.donation-amount-btn {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.donation-amount-btn:hover,
.donation-amount-btn.active {
  border-color: var(--accent);
  background-color: hsl(12, 76%, 61%, 0.1);
  color: var(--accent);
}

.donation-custom {
  margin-bottom: 1.5rem;
}

.donation-custom-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.donation-custom-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.donation-custom-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.w-full { width: 100%; }
