/* ============================================
   An-Nisaa Foundation - Main Stylesheet
   Color Scheme: Sea Blue (#0f6b7c)
   ============================================ */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f9fc;
  color: #1a2a3a;
  line-height: 1.6;
}

:root {
  --sea-blue: #0f6b7c;
  --sea-blue-light: #1d8f9e;
  --sea-blue-dark: #0a4e5c;
  --sea-blue-soft: #d4eef3;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-light: #eef2f6;
  --gray-mid: #cbd5e1;
  --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

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

/* Header & Navigation */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(15, 107, 124, 0.1);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.3rem;
  color: var(--sea-blue-dark);
  letter-spacing: -0.3px;
}

.logo-text p {
  font-size: 0.7rem;
  color: var(--sea-blue);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #2c3e4e;
  transition: 0.3s;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sea-blue);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--sea-blue);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--sea-blue-soft) 0%, var(--white) 100%);
  padding: 60px 20px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(15, 107, 124, 0.12);
  color: var(--sea-blue);
  border-radius: 40px;
  padding: 5px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 2.8rem;
  color: var(--sea-blue-dark);
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 25px;
  color: #2c3e50;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--sea-blue-soft) 0%, var(--white) 100%);
  padding: 50px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--sea-blue-dark);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  color: #2c3e50;
}

/* Buttons */
.btn-primary {
  background: var(--sea-blue);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--sea-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(15, 107, 124, 0.3);
}

/* Splash Grid (Home Page) */
.splash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 50px 0;
}

.splash-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}

.splash-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.splash-card p {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: var(--sea-blue-dark);
}

/* Grid Systems */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* Cards */
.card {
  background: white;
  padding: 25px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  border: 1px solid rgba(15, 107, 124, 0.08);
}

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

.card i {
  font-size: 2.5rem;
  color: var(--sea-blue);
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--sea-blue-dark);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sea-blue);
}

/* Impact Section */
.impact-section {
  text-align: center;
  margin: 50px 0;
}

.impact-section h2 {
  color: var(--sea-blue-dark);
  margin-bottom: 20px;
}

/* Mission & Story Sections */
.mission-text,
.story-section {
  background: var(--off-white);
  padding: 30px;
  border-radius: 28px;
  margin: 30px 0;
}

.mission-text h2,
.story-section h2 {
  color: var(--sea-blue-dark);
  margin-bottom: 15px;
}

.vision-card,
.mission-card {
  text-align: center;
}

/* Upcoming Section */
.upcoming-section {
  background: var(--sea-blue-soft);
  border-radius: 28px;
  padding: 30px;
  margin: 40px 0;
}

.upcoming-section h2 {
  color: var(--sea-blue-dark);
  margin-bottom: 20px;
}

.upcoming-section ul {
  list-style: none;
}

.upcoming-section li {
  padding: 8px 0;
  font-weight: 500;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.gallery-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  cursor: pointer;
}

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

.gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--sea-blue-dark);
  background: white;
}

.gallery-note {
  text-align: center;
  background: var(--off-white);
  padding: 20px;
  border-radius: 20px;
  margin: 20px 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
}

.close-light {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 50px 0;
}

.contact-info h3 {
  color: var(--sea-blue-dark);
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  margin: 8px 0;
  color: #2c3e50;
}

.support-box {
  background: var(--sea-blue-soft);
  padding: 20px;
  border-radius: 20px;
  margin-top: 25px;
  text-align: center;
}

.support-box i {
  font-size: 2rem;
  color: var(--sea-blue);
  margin-bottom: 10px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  color: var(--sea-blue-dark);
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sea-blue);
}

#form-feedback {
  margin-top: 15px;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: #0f2c33;
  color: #b0c4ce;
  text-align: center;
  padding: 30px;
  margin-top: 50px;
}

footer p {
  margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 800px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: white;
    padding: 20px 0;
    gap: 15px;
    text-align: center;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .splash-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .grid-3,
  .grid-2 {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .splash-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .container {
    padding: 0 15px;
  }
}