/* ============================================
   CSS Variables & Base Styles
   ============================================ */

:root {
  /* Colors */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(210, 29%, 24%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 29%, 24%);
  --primary: hsl(45, 75%, 31%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-hover: hsl(45, 75%, 26%);
  --primary-light: hsl(45, 60%, 85%);
  --secondary: hsl(30, 20%, 96%);
  --secondary-foreground: hsl(210, 29%, 24%);
  --muted: hsl(30, 15%, 95%);
  --muted-foreground: hsl(210, 15%, 45%);
  --accent: hsl(45, 75%, 31%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(30, 20%, 88%);
  --hero-overlay: hsl(210, 29%, 10%);
  --hero-overlay-rgb: 18, 20, 23;
  --hero-overlay-opacity-top: 0.6;
  --hero-overlay-opacity-middle: 0.5;
  --hero-overlay-opacity-bottom: 0.6;
  --section-alt: hsl(30, 20%, 98%);
  --text-hero: hsl(0, 0%, 100%);
  
  /* Gradients */
  --gold-gradient: linear-gradient(135deg, hsl(45, 75%, 31%), hsl(35, 70%, 40%));
  
  /* Shadows */
  --shadow-card: 0 4px 20px -4px hsl(210, 29%, 24% / 0.1);
  --shadow-card-hover: 0 8px 30px -4px hsl(210, 29%, 24% / 0.15);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing */
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

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

/* ============================================
   Layout Utilities
   ============================================ */

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding: 0 1.5rem;
  }
}

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

.section {
  width: 100%;
}

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

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

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

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-hero);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.logo-image {
  height: 7rem;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.header.scrolled .logo {
  color: var(--primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-hero);
  cursor: pointer;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
}

.header.scrolled .nav-link {
  color: var(--foreground);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}

.lang-switcher {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-hero);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}

.header.scrolled .lang-switcher {
  color: var(--foreground);
  border-color: var(--border);
}

.lang-switcher:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.lang-switcher--active {
  background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .lang-switcher--active {
  background: var(--muted);
}

.lang-switcher-mobile {
  display: block;
  text-align: center;
  margin: 0.5rem 0;
  color: var(--foreground);
  border-color: var(--border);
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--text-hero);
  transition: var(--transition-smooth);
}

.header.scrolled .mobile-menu-btn {
  color: var(--foreground);
}

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

.mobile-menu-btn .close-icon {
  display: none;
}

.mobile-menu-btn.active .menu-icon {
  display: none;
}

.mobile-menu-btn.active .close-icon {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 7rem;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  background: none;
  border: none;
  text-align: left;
  color: var(--foreground);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.mobile-cta {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.header-cta--lang {
  display: none !important;
}


@media (min-width: 1024px) {
  .header-cta--lang {
    display: inline-flex !important;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  color: var(--primary-foreground);
  background: var(--gold-gradient);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.btn-primary:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-hero);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--hero-overlay-rgb), var(--hero-overlay-opacity-top)) 0%,
    rgba(var(--hero-overlay-rgb), var(--hero-overlay-opacity-middle)) 50%,
    rgba(var(--hero-overlay-rgb), var(--hero-overlay-opacity-bottom)) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-hero);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease-out forwards;
}

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

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

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

.hero-title-accent {
  color: #D4A84B;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

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

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 0.6s ease-out 0.3s both;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  color: var(--text-hero);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================
   Section Headers
   ============================================ */

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

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

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

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

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

/* ============================================
   About Section
   ============================================ */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    /* grid-template-columns: 1fr 1fr; */
    gap: 4rem;
  }
}

.about-text {
  order: 2;
}

@media (min-width: 1024px) {
  .about-text {
    order: 1;
  }
}

.about-content {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-content em {
  font-style: italic;
  color: var(--foreground);
}

.about-highlight {
  color: var(--foreground) !important;
  font-weight: 500 !important;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.feature-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.about-image {
  order: 1;
}

@media (min-width: 1024px) {
  .about-image {
    order: 2;
  }
}

.image-wrapper {
  position: relative;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  inset: -1rem;
  background-color: var(--primary-light);
  border-radius: 1rem;
  transform: rotate(-3deg);
  z-index: -1;
}

.image-wrapper img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.image-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--gold-gradient);
  color: var(--primary-foreground);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.badge-number {
  font-size: 1.875rem;
  font-weight: 700;
}

.badge-text {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ============================================
   Initiatives Section
   ============================================ */

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

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

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

.initiative-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.initiative-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.initiative-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.initiative-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.initiative-card:hover .initiative-image img {
  transform: scale(1.1);
}

.initiative-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: var(--text-hero);
}

.initiative-overlay h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.initiative-overlay p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.initiative-content {
  padding: 1rem;
}

.initiative-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.initiative-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.initiative-card:hover .initiative-link {
  transform: translateX(4px);
}

/* ============================================
   Gallery
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item {
  cursor: pointer;
}

/* Gallery Lightbox (powiększenie zdjęcia) */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox-prev {
  left: 1rem;
}

.gallery-lightbox-next {
  right: 1rem;
}

@media (min-width: 768px) {
  .gallery-lightbox-prev {
    left: 1.5rem;
  }
  .gallery-lightbox-next {
    right: 1.5rem;
  }
}

.gallery-lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Children Slider
   ============================================ */

.children-slider {
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0.75rem;
  border-radius: 9999px;
  background-color: var(--background);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  color: var(--foreground);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: none;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .slider-btn {
    display: flex;
  }
}

.slider-btn:hover {
  background-color: var(--muted);
}

.slider-btn-prev {
  left: 0;
  transform: translate(-100%, -50%);
}

.slider-btn-next {
  right: 0;
  transform: translate(100%, -50%);
}

.slider-btn--hidden {
  display: none !important;
}

.slider-pagination--hidden {
  display: none !important;
}

.children-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.child-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-smooth);
  animation: fadeUp 0.6s ease-out forwards;
}

.child-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.child-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  width: 100%;
}

.child-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.child-image img {
  object-fit: cover;
}

.child-image > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.child-card:hover .child-image img,
.child-card:hover .child-image > div {
  transform: scale(1.05);
}

.child-badge {
  position: absolute;
  inset: unset !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  background: var(--gold-gradient);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 5;
  white-space: nowrap;
  width: fit-content;
  height: fit-content;
}

/* Karty „pilna pomoc” – tylko imię i wiek (bez zdjęć) */
.child-card--name-only {
  display: flex;
  align-items: stretch;
  min-height: 12rem;
}

.child-card--name-only .child-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  gap: 0.25rem;
}

.child-card--name-only .child-content h3 {
  margin-bottom: 0;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
}

.child-badge--inline {
  position: static !important;
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  letter-spacing: 0.04em;
}

.child-age {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin: 0 0 1rem 0 !important;
  font-weight: 500;
}

.child-supported-by {
  font-size: 0.9375rem;
  color: var(--primary);
  margin: 0 0 1rem 0 !important;
  font-weight: 600;
}

.child-card--name-only .child-btn {
  margin-top: auto;
  max-width: 12rem;
}

.child-content {
  padding: 1.25rem;
}

.child-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.child-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.child-btn {
  width: 100%;
  padding: 0.625rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

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

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

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

.slider-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background-color: rgba(45, 75%, 31%, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pagination-dot.active {
  width: 2rem;
  background-color: var(--primary);
}

/* ============================================
   Scriptures Section
   ============================================ */

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

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

.scripture-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  animation: fadeUp 0.6s ease-out forwards;
}

.scripture-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

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

.scripture-icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scripture-ref {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.scripture-preview {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.scripture-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.scripture-card:hover .scripture-link {
  transform: translateX(4px);
}

/* ============================================
   Works Section
   ============================================ */

.works-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
}

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

.work-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.6s ease-out forwards;
}

.work-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.work-icon {
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  transition: var(--transition-smooth);
}

.work-card:hover .work-link {
  transform: translateX(4px);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-wrapper {
  max-width: 72rem;
  margin: 0 auto;
}

.contact-grid {
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.contact-items {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.contact-icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item:hover .contact-icon {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-weight: 500;
  color: var(--foreground);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: var(--foreground);
  color: var(--text-hero);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 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;
  }
}

.footer-brand {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-hero);
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.footer-badge span {
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-hero);
  margin-bottom: 1rem;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  background: none;
  border: none;
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0;
}

.footer-link:hover {
  color: var(--text-hero);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
  margin-bottom: 0.75rem;
}

.footer-contact-item:hover {
  color: var(--text-hero);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

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

.footer-scroll-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.footer-scroll-top:hover {
  color: var(--text-hero);
}

/* ============================================
   Modals
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--background);
  border-radius: 1rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.3s ease-out forwards;
}

.modal-small {
  max-width: 28rem;
}

.modal-medium {
  max-width: 42rem;
}

.modal-large {
  max-width: 56rem;
}

.modal-close {
  position: sticky;
  top: 1rem;
  left: calc(100% - 5rem);
  padding: 0.5rem;
  background-color: var(--muted);
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--foreground);
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.modal-close:hover {
  background-color: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.modal-header {
  position: sticky;
  top: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.modal-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.modal-body {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .modal-body {
    padding: 2rem;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   Responsive Utilities
   ============================================ */

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   Mobile Adjustments
   ============================================ */

@media (max-width: 767px) {
  .slider-btn {
    display: flex;
    position: static;
    transform: none;
    margin: 1.5rem auto 0;
  }
  
  .slider-btn-prev,
  .slider-btn-next {
    transform: none;
  }
  
  .children-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .slider-pagination {
    margin-top: 1rem;
  }
  
  .children-grid {
    width: 90%;
    margin: 0 auto;
  }
  
  .status-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .modal-body {
    padding: 1rem !important;
  }
  
  .modal-large {
    max-width: 95% !important;
  }
  
  .initiative-modal-image {
    height: 12rem !important;
  }
  
  .initiative-modal-image h3 {
    font-size: 1.5rem !important;
  }
  
  .initiative-modal-image p {
    font-size: 1rem !important;
  }
  
  .modal-body > div {
    padding: 1rem !important;
  }
  
  .modal-body h4 {
    font-size: 1.125rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .status-grid > div {
    padding: 0.75rem !important;
  }
  
  .status-grid svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  .status-grid > div > div {
    font-size: 1.25rem !important;
  }
  
  .modal-body p {
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .modal-body ul li {
    font-size: 0.875rem !important;
  }
}

