/* =====================================================
   GingerLove.org - Main Stylesheet
   Theme: Warm yellow / amber + soft neutrals
   Fully responsive + bilingual ready
   ===================================================== */

:root {
  /* Primary palette - yellow / amber */
  --yellow-50:  #FFFBEB;
  --yellow-100: #FEF3C7;
  --yellow-200: #FDE68A;
  --yellow-300: #FCD34D;
  --yellow-400: #FBBF24;
  --yellow-500: #F59E0B;
  --yellow-600: #D97706;
  --yellow-700: #B45309;
  --yellow-800: #92400E;
  --yellow-900: #78350F;

  /* Neutrals */
  --gray-50:  #FAFAF9;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --gray-900: #1C1917;

  /* Semantic */
  --primary:        var(--yellow-500);
  --primary-dark:   var(--yellow-700);
  --primary-light:  var(--yellow-100);
  --accent:         var(--yellow-600);
  --text:           var(--gray-800);
  --text-light:     var(--gray-600);
  --bg:             #FFFFFF;
  --bg-alt:         var(--yellow-50);
  --border:         var(--gray-200);
  --shadow:         0 4px 20px rgba(245, 158, 11, 0.12);
  --shadow-lg:      0 10px 40px rgba(245, 158, 11, 0.18);
  --radius:         12px;
  --radius-lg:      20px;
  --transition:     all 0.25s ease;
  --font:           'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Language visibility helpers */
[data-lang="en"] .lang-es { display: none !important; }
[data-lang="es"] .lang-en { display: none !important; }

/* ========== HEADER / NAV ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--yellow-100);
  color: var(--primary-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--gray-600);
  transition: var(--transition);
}

.lang-switch button.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-600));
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

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

.btn-outline:hover {
  background: var(--yellow-100);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray-700);
  padding: 0.3rem;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(160deg, var(--yellow-50) 0%, #FFF 45%, var(--yellow-100) 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.2rem;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 340px;
  border: 1px solid var(--yellow-200);
}

.hero-card .emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-card h3 {
  margin-bottom: 0.5rem;
}

/* ========== SECTIONS ========== */
.section {
  padding: 4.5rem 1.5rem;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 0.8rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--yellow-300);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  flex-grow: 1;
  font-size: 0.95rem;
}

.card .card-link {
  margin-top: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card .card-link:hover {
  gap: 0.5rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--yellow-200);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* About / Mission */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-content h2 {
  margin-bottom: 1rem;
}

.values-list {
  margin-top: 1.5rem;
}

.values-list li {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.values-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--yellow-100);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Campaigns / News cards with image placeholder */
.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card .media {
  height: 180px;
  background: linear-gradient(135deg, var(--yellow-200), var(--yellow-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.media-card .content {
  padding: 1.4rem 1.5rem 1.6rem;
}

.media-card .tag {
  display: inline-block;
  background: var(--yellow-100);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.7rem;
}

.media-card .date {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.8rem;
}

/* Adoption cards */
.pet-card .media {
  height: 200px;
  background: linear-gradient(145deg, #FEF3C7, #FDE68A);
}

.pet-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.pet-meta span {
  background: var(--gray-100);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* Care tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: white;
  border-left: 4px solid var(--yellow-400);
  padding: 1.4rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.tip-card h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--yellow-500), var(--yellow-700));
  color: white;
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 0.8rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  font-size: 1.1rem;
}

.cta-banner .btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta-banner .btn-primary:hover {
  background: var(--yellow-50);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--yellow-400);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.55rem;
}

.footer a {
  color: var(--gray-400);
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--yellow-400);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, var(--yellow-100) 0%, var(--yellow-50) 100%);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.6rem;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--primary-dark);
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--yellow-400);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 0.8rem 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none !important; }
