/*=============================================
   THE CONSCIOUS FAMILY CENTRE
   style.css — Green Educational Family Palette
   Inspired by Phenomenon Edu structure
===============================================*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --green-900: #0a1f12;
  --green-800: #0f2d1b;
  --green-700: #1a4a2b;
  --green-600: #1f5c34;
  --green-500: #2d8a4e;
  --green-400: #3ea862;
  --green-300: #6bc485;
  --green-200: #a3e0b5;
  --green-100: #d4f2dc;
  --green-50: #edfaf1;
  
  --accent: #f0a82e;
  --accent-hover: #d8921a;
  --white: #ffffff;
  --gray-100: #f7f8f7;
  --gray-200: #e8ede8;
  --gray-300: #c5cdc5;
  --gray-600: #5a6b5a;
  --gray-800: #2a382a;
  
  --max-width: 1200px;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(10,31,18,0.92);
  backdrop-filter: blur(12px);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green-500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
}

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

.nav-links a {
  color: var(--green-100);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: var(--green-900) !important;
  padding: 0.7rem 1.8rem !important;
  border-radius: 50px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--green-900);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,168,46,0.35);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--green-900);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green-500);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,138,78,0.35);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 30%, var(--green-700) 60%, var(--green-600) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

/* Decorative background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(62,168,98,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240,168,46,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--green-200);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--green-100);
  line-height: 1.7;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating shapes in hero */
.floating-shapes {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 { width: 80px; height: 80px; background: var(--green-300); top: 15%; left: 8%; animation: floatA 18s infinite ease-in-out; }
.shape-2 { width: 50px; height: 50px; background: var(--accent); top: 25%; right: 12%; animation: floatB 20s infinite ease-in-out; }
.shape-3 { width: 100px; height: 100px; background: var(--green-400); bottom: 20%; left: 15%; animation: floatA 22s infinite ease-in-out reverse; }
.shape-4 { width: 65px; height: 65px; background: var(--green-200); top: 60%; right: 20%; animation: floatB 16s infinite ease-in-out; }
.shape-5 { width: 40px; height: 40px; background: var(--accent); bottom: 30%; right: 35%; animation: floatA 14s infinite ease-in-out; }
.shape-6 { width: 90px; height: 90px; background: var(--green-300); top: 40%; left: 40%; animation: floatB 19s infinite ease-in-out reverse; }

@keyframes floatA {
  0%, 100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(30px,-25px) scale(1.1); }
  50% { transform: translate(-15px,-40px) scale(0.95); }
  75% { transform: translate(-25px,15px) scale(1.05); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-25px,30px) scale(1.08); }
  66% { transform: translate(20px,-35px) scale(0.92); }
}

/* ---------- SECTION STYLES ---------- */
.section {
  padding: 5rem 2rem;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-500);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 650px;
  margin: 0 auto;
}

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

.mission-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--green-800);
  margin-bottom: 1.2rem;
}

.mission-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.mission-image {
  position: relative;
}

.mission-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mission-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--green-300);
  border-radius: 16px;
  z-index: -1;
}

/* ---------- PROGRAMS CARDS ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--green-100);
  text-align: center;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
}

.program-icon {
  width: 70px;
  height: 70px;
  background: var(--green-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.program-card h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green-800);
  margin-bottom: 0.8rem;
}

.program-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- BENEFITS / WHY CHOOSE US ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.benefit-item:hover {
  transform: translateX(5px);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--green-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.benefit-text h4 {
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 0.3rem;
}

.benefit-text p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ---------- WHO IT'S FOR / CRITERIA ---------- */
.criteria-section {
  background: var(--green-900);
  color: var(--white);
}

.criteria-section .section-title {
  color: var(--white);
}

.criteria-section .section-subtitle {
  color: var(--green-200);
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.criteria-check {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 24px;
}

.criteria-item p {
  color: var(--green-100);
  font-size: 0.95rem;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  text-align: center;
  padding: 5rem 2rem;
  color: var(--white);
}

.cta-banner .section-title {
  color: var(--white);
}

.cta-banner .section-subtitle {
  color: var(--green-100);
}

.cta-banner .btn {
  margin-top: 1.5rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--green-900);
  padding: 4rem 2rem 2rem;
  color: var(--green-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer-col p, .footer-col a {
  color: var(--green-200);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--green-900);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: var(--green-300);
}

.footer-bottom .accent {
  color: var(--accent);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--green-900);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.4);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-image::before {
    display: none;
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .section {
    padding: 3.5rem 1.5rem;
  }
  
  .shape { display: none; }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}
