/* Grace Haven Day Centre - Main Styles */
/* Following design-spec.md exactly */

:root {
  /* Primary Colors */
  --primary-teal: #00897B;
  --primary-teal-dark: #00695C;
  --primary-teal-light: #4DB6AC;

  /* Accent Colors */
  --accent-coral: #FF6B6B;
  --accent-yellow: #FFD93D;
  --accent-green: #4CAF50;

  /* Neutral Colors */
  --text-dark: #2C3E50;
  --text-gray: #6C757D;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-card: #FFFFFF;
  --border-light: #E0E0E0;

  /* Semantic Colors */
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;

  /* Font Sizes - Mobile First */
  --h1-mobile: 28px;
  --h1-desktop: 42px;
  --h2-mobile: 24px;
  --h2-desktop: 32px;
  --h3-mobile: 20px;
  --h3-desktop: 24px;
  --body-text: 16px;
  --small-text: 14px;

  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing System (8px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--body-text);
  line-height: var(--line-height-normal);
  color: var(--text-dark);
  background: var(--bg-white);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1 {
  font-size: var(--h1-mobile);
  font-weight: var(--font-bold);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--h2-mobile);
  font-weight: var(--font-bold);
  line-height: var(--line-height-tight);
}

h3 {
  font-size: var(--h3-mobile);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--h1-desktop);
  }
  h2 {
    font-size: var(--h2-desktop);
  }
  h3 {
    font-size: var(--h3-desktop);
  }
}

/* Navigation Bar - From design spec */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 16px 0;
}

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

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-teal);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
}

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

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 20px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .nav-links.desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* Hero Section - From design spec */
.hero {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 42px;
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image-container {
  margin-top: 48px;
  position: relative;
}

.hero-image {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 800px;
  height: auto;
}

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

/* Impact Section - From design spec */
.impact-section {
  padding: 80px 24px;
  background: var(--bg-light);
}

.impact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .impact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.impact-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.impact-card.danger {
  border-top: 4px solid var(--danger);
}

.impact-card.hope {
  border-top: 4px solid var(--success);
}

.impact-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.impact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.danger .impact-icon {
  background: #FFEBEE;
  color: var(--danger);
}

.hope .impact-icon {
  background: #E8F5E9;
  color: var(--success);
}

.impact-list {
  list-style: none;
  padding: 0;
}

.impact-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-dark);
}

.impact-item:last-child {
  border-bottom: none;
}

.impact-item::before {
  font-size: 20px;
  font-weight: bold;
}

.danger .impact-item::before {
  color: var(--danger);
  content: '×';
}

.hope .impact-item::before {
  color: var(--success);
  content: '✓';
}

/* Story Section */
.story-section {
  padding: 80px 24px;
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-dark);
}

.story-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Photo Showcase Section - From design spec */
.photo-showcase {
  padding: 80px 24px;
  background: white;
}

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

.showcase-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 48px;
}

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

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

.photo-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.photo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.photo-caption {
  padding: 20px;
  background: white;
}

.photo-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.photo-description {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Sponsorship Section - From design spec */
.sponsorship-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.sponsorship-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.progress-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 48px;
}

.progress-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.progress-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 32px;
}

.progress-visual {
  position: relative;
  margin-bottom: 32px;
}

.progress-bar-bg {
  width: 100%;
  height: 40px;
  background: var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-yellow) 0%, #FFC107 100%);
  border-radius: 20px;
  transition: width 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
}

.progress-bar-text {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.progress-stat {
  text-align: left;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-teal);
}

.stat-label {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 4px;
}

.cost-info {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.cost-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 8px;
}

.cost-description {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* CTA Buttons - From design spec */
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-coral) 0%, #FF8787 100%);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-teal);
  padding: 12px 32px;
  border: 2px solid var(--primary-teal);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-teal);
  color: white;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #E8F5E9;
  color: var(--success);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 32px;
}

.trust-badge::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WhatsApp Floating Button - From design spec */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  color: white;
  width: 28px;
  height: 28px;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #25D366;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Footer - From design spec */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 48px 24px 24px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-teal-light);
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-teal-light);
}

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

.footer-link {
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-teal-light);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 32px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.6;
}

.footer-social {
  display: flex;
  gap: 16px;
}

/* Modal - From design spec */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-gray);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.modal-text {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-option {
  background: #E8F8F0;
  color: #25D366;
}

.whatsapp-option:hover {
  background: #25D366;
  color: white;
}

.email-option {
  background: #E3F2FD;
  color: #2196F3;
}

.email-option:hover {
  background: #2196F3;
  color: white;
}

.contact-icon {
  width: 24px;
  height: 24px;
}

.modal-footer {
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* Animation Classes - From design spec */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}