/* ============================================
   SAFE SPACE — BRAND DESIGN SYSTEM
   Palette: Nana's Palette (from Fotor illustrations)
   ============================================ */

:root {
  --olive: #5B7A2E;
  --olive-dark: #4A6624;
  --olive-light: #7A9E4A;
  --lavender: #9B7CB8;
  --lavender-light: #B99DD2;
  --lavender-soft: #E8DDF0;
  --golden: #E8C96B;
  --golden-light: #F5E0A0;
  --sky: #A8C8D8;
  --sky-light: #D0E4ED;
  --cream: #FAF0E0;
  --cream-dark: #F0E2C8;
  --brown: #5C4033;
  --brown-light: #7A5C4F;
  --white: #FFFDF8;
  --red: #D94F4F;
  --blue: #4A90C4;
  --bright-yellow: #F5D24B;
  --bright-green: #5AAE5A;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --section-padding: 6rem 2rem;
  --max-width: 1100px;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--brown); background-color: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--lavender); }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--brown); line-height: 1.3; }
h2 { font-size: 2.4rem; font-weight: 600; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; }
p { margin-bottom: 1.25rem; font-size: 1.08rem; }

/* NAVIGATION */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(91, 122, 46, 0.1); transition: box-shadow 0.3s ease; }
nav.scrolled { box-shadow: 0 2px 20px rgba(92, 64, 51, 0.08); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; align-items: center; padding: 0.8rem 2rem; }
.nav-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--olive); display: flex; align-items: center; gap: 0.5rem; }
.nav-brand .leaf { font-size: 1.2rem; }
img.nav-logo { height: 400px; width: auto; max-width: none; display: inline-block; vertical-align: middle; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 600; color: var(--brown-light); letter-spacing: 0.02em; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--lavender); border-radius: 2px; transition: width 0.3s ease; }
.nav-links a:hover { color: var(--olive); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--olive); color: var(--white) !important; padding: 0.5rem 1.2rem; border-radius: 25px; font-size: 0.9rem !important; transition: background 0.3s ease, transform 0.2s ease !important; }
.nav-cta:hover { background: var(--olive-dark) !important; color: var(--white) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; border-radius: 2px; transition: all 0.3s ease; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(170deg, var(--cream) 0%, var(--white) 40%, var(--lavender-soft) 100%); padding: 32rem 2rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 201, 107, 0.15) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -80px; left: -80px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(155, 124, 184, 0.1) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-text { animation: fadeInUp 0.8s ease-out; }
.hero-badge { display: inline-block; background: var(--olive); color: var(--cream); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3.8rem; font-weight: 700; color: var(--olive); line-height: 1.1; margin-bottom: 0.5rem; }
.hero .slogan { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; color: var(--lavender); margin-bottom: 1.5rem; font-weight: 400; }
.hero p { font-size: 1.15rem; color: var(--brown-light); max-width: 480px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: 30px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s ease; }
.btn-primary { background: var(--olive); color: var(--white); box-shadow: 0 4px 15px rgba(91, 122, 46, 0.25); }
.btn-primary:hover { background: var(--olive-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(91, 122, 46, 0.3); }
.btn-secondary { background: transparent; color: var(--olive); border: 2px solid var(--olive); }
.btn-secondary:hover { background: var(--olive); color: var(--white); transform: translateY(-2px); }

/* HERO LOGO */
.hero-logo-wrap { text-align: center; margin-bottom: 2rem; position: relative; z-index: 1; animation: fadeInUp 0.8s ease-out; }
.hero-logo { max-width: 350px; width: 100%; height: auto; display: inline-block; filter: drop-shadow(0 8px 30px rgba(91, 122, 46, 0.15)); }

/* HERO ILLUSTRATION */
.hero-illustration { position: relative; display: flex; align-items: center; justify-content: center; animation: fadeInUp 0.8s ease-out 0.2s backwards; }
.illustration-frame { background: var(--cream); border: 3px solid var(--olive); border-radius: 24px; display: flex; align-items: center; justify-content: center; padding: 0; position: relative; overflow: hidden; }
.illustration-frame::before { display: none; }
.illustration-placeholder { text-align: center; color: var(--brown-light); }
.illustration-placeholder .icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.illustration-placeholder p { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--lavender); }
.bunting { position: absolute; top: 15px; left: 10%; right: 10%; height: 40px; display: flex; align-items: flex-start; }
.bunting-flag { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 16px solid var(--golden); margin: 0 4px; transform-origin: top center; }
.bunting-flag:nth-child(2n) { border-top-color: var(--red); }
.bunting-flag:nth-child(3n) { border-top-color: var(--sky); }
.bunting-flag:nth-child(4n) { border-top-color: var(--lavender); }
.bunting-flag:nth-child(5n) { border-top-color: var(--olive-light); }

/* SECTION COMMONS */
section { padding: var(--section-padding); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--lavender); margin-bottom: 0.75rem; }
.section-divider { width: 60px; height: 3px; background: var(--golden); border-radius: 3px; margin: 0 0 2rem; }

/* MEET NANA */
.meet-nana { background: var(--white); position: relative; }
.nana-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.nana-portrait { position: relative; }
.portrait-frame { background: linear-gradient(135deg, var(--lavender-soft) 0%, var(--cream) 100%); border-radius: 24px; padding: 2.5rem; position: relative; border: 2px solid rgba(155, 124, 184, 0.2); }
.portrait-placeholder { aspect-ratio: 3/4; border-radius: 16px; background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed var(--lavender); text-align: center; padding: 2rem; }
.portrait-placeholder .icon { font-size: 3rem; margin-bottom: 0.75rem; }
.portrait-placeholder p { font-family: var(--font-display); font-style: italic; color: var(--lavender); font-size: 0.95rem; }
.nana-scarf-accent { position: absolute; top: -12px; right: -12px; width: 80px; height: 80px; border-radius: 50%; background: var(--lavender); opacity: 0.15; }
.nana-text blockquote { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--olive); line-height: 1.5; margin-bottom: 1.5rem; padding-left: 1.5rem; border-left: 3px solid var(--lavender); }
.nana-credential { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--cream); padding: 0.6rem 1.2rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600; color: var(--olive); margin-top: 0.5rem; }

/* PHILOSOPHY */
.philosophy { background: var(--cream); position: relative; overflow: hidden; }
.philosophy::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--olive), var(--lavender), var(--golden), var(--sky), var(--olive)); }
.philosophy-intro { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.philosophy-intro p { font-size: 1.15rem; color: var(--brown-light); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillar { background: var(--white); border-radius: 20px; padding: 2.5rem 2rem; position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(91, 122, 46, 0.08); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(92, 64, 51, 0.08); }
.pillar-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.5rem; }
.pillar:nth-child(1) .pillar-icon { background: rgba(91, 122, 46, 0.12); }
.pillar:nth-child(2) .pillar-icon { background: rgba(155, 124, 184, 0.12); }
.pillar:nth-child(3) .pillar-icon { background: rgba(232, 201, 107, 0.2); }
.pillar h3 { color: var(--olive); }
.pillar p { color: var(--brown-light); font-size: 1rem; margin-bottom: 0; }

/* A DAY AT SAFE SPACE */
.daily { background: var(--white); }
.daily-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.daily-intro { margin-bottom: 2rem; }
.daily-intro p { font-size: 1.1rem; color: var(--brown-light); }
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--olive), var(--lavender), var(--golden)); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 1.8rem; padding-bottom: 0.2rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.5rem; top: 6px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--olive); background: var(--white); }
.timeline-item:nth-child(3n+2)::before { border-color: var(--lavender); }
.timeline-item:nth-child(3n+3)::before { border-color: var(--golden); }
.timeline-time { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--olive); margin-bottom: 0.15rem; }
.timeline-item:nth-child(3n+2) .timeline-time { color: var(--lavender); }
.timeline-item:nth-child(3n+3) .timeline-time { color: var(--brown-light); }
.timeline-desc { font-size: 1rem; color: var(--brown-light); margin-bottom: 0; }
.daily-illustration { position: sticky; top: 120px; }
.daily-scene { background: linear-gradient(135deg, var(--cream) 0%, var(--sky-light) 100%); border-radius: 24px; padding: 2.5rem; border: 2px solid rgba(168, 200, 216, 0.3); }
.scene-placeholder { aspect-ratio: 4/3; border-radius: 16px; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed var(--sky); text-align: center; padding: 2rem; }
.scene-placeholder .icon { font-size: 3rem; margin-bottom: 0.75rem; }
.scene-placeholder p { font-family: var(--font-display); font-style: italic; color: var(--sky); font-size: 0.95rem; }

/* PROGRAM DETAILS */
.program { background: linear-gradient(170deg, var(--olive) 0%, var(--olive-dark) 100%); color: var(--cream); position: relative; overflow: hidden; }
.program::after { content: ''; position: absolute; bottom: -120px; right: -80px; width: 350px; height: 350px; border-radius: 50%; background: rgba(155, 124, 184, 0.08); pointer-events: none; }
.program .section-label { color: var(--golden-light); }
.program h2 { color: var(--cream); }
.program .section-divider { background: var(--golden); }
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; position: relative; z-index: 1; }
.program-card { background: rgba(255, 253, 248, 0.08); backdrop-filter: blur(8px); border: 1px solid rgba(255, 253, 248, 0.12); border-radius: 20px; padding: 2rem; transition: background 0.3s ease; }
.program-card:hover { background: rgba(255, 253, 248, 0.12); }
.program-card h3 { color: var(--golden); font-size: 1.25rem; margin-bottom: 0.75rem; }
.program-card p { color: rgba(250, 240, 224, 0.85); font-size: 1rem; margin-bottom: 0; }
.program-card .detail-tag { display: inline-block; background: rgba(232, 201, 107, 0.15); color: var(--golden-light); padding: 0.3rem 0.75rem; border-radius: 12px; font-size: 0.85rem; font-weight: 600; margin-top: 0.75rem; }

/* OUR HOME */
.our-home { background: var(--cream); }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.home-text p { color: var(--brown-light); font-size: 1.08rem; }
.home-features { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.home-feature-tag { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--white); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600; color: var(--olive); border: 1px solid rgba(91, 122, 46, 0.15); }
.home-scene-frame { background: linear-gradient(135deg, var(--cream-dark) 0%, var(--golden-light) 50%, var(--cream) 100%); border-radius: 24px; padding: 2.5rem; border: 2px solid rgba(232, 201, 107, 0.25); }
.home-scene-placeholder { aspect-ratio: 4/3; border-radius: 16px; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed var(--golden); text-align: center; padding: 2rem; }
.home-scene-placeholder .icon { font-size: 3rem; margin-bottom: 0.75rem; }
.home-scene-placeholder p { font-family: var(--font-display); font-style: italic; color: var(--golden); font-size: 0.95rem; }

/* REAL PHOTO CALLOUT */
.real-nana { background: var(--white); text-align: center; padding: 4rem 2rem; }
.real-nana-inner { max-width: 600px; margin: 0 auto; }
.real-nana-photo { width: 180px; height: 180px; border-radius: 50%; background: var(--cream); border: 4px solid var(--lavender); margin: 0 auto 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.real-nana-photo .icon { font-size: 2.5rem; margin-bottom: 0.3rem; }
.real-nana-photo p { font-size: 0.8rem; color: var(--lavender); margin-bottom: 0; }
.real-nana h3 { font-size: 1.6rem; color: var(--olive); margin-bottom: 0.5rem; }
.real-nana p { color: var(--brown-light); font-size: 1.05rem; }

/* ENROLLMENT / WAITLIST */
.enrollment { background: linear-gradient(170deg, var(--lavender-soft) 0%, var(--cream) 50%, var(--white) 100%); position: relative; }
.enrollment-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.enrollment .section-label { color: var(--lavender); }
.enrollment h2 { color: var(--olive); }
.enrollment .section-divider { margin: 0 auto 2rem; }
.enrollment-intro { font-size: 1.1rem; color: var(--brown-light); margin-bottom: 2.5rem; }
.enrollment-form { background: var(--white); border-radius: 24px; padding: 2.5rem; box-shadow: 0 8px 30px rgba(92, 64, 51, 0.06); border: 1px solid rgba(155, 124, 184, 0.1); text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--brown); margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea { font-family: var(--font-body); font-size: 1rem; padding: 0.75rem 1rem; border: 2px solid var(--cream-dark); border-radius: 12px; background: var(--cream); color: var(--brown); transition: border-color 0.3s ease, background 0.3s ease; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--lavender); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { text-align: center; margin-top: 1.5rem; }
.form-submit .btn-primary { width: 100%; justify-content: center; padding: 1rem 2rem; font-size: 1.05rem; }
.form-note { text-align: center; font-size: 0.85rem; color: var(--brown-light); margin-top: 1rem; margin-bottom: 0; }

/* CLOSING ILLUSTRATION */
.closing-illustration { background: var(--cream); padding: var(--section-padding); text-align: center; }
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-image { width: 350px; height: 350px; margin: 0 auto 2.5rem; border-radius: 50%; overflow: hidden; border: 3px solid var(--olive); }
.closing-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cream-dark); color: var(--brown-light); }
.closing-placeholder .icon { font-size: 3rem; margin-bottom: 0.5rem; }
.closing-placeholder p { font-size: 0.9rem; margin: 0; }
.closing-message { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; font-style: italic; color: var(--brown); line-height: 1.6; margin-bottom: 0; }

/* FOOTER */
footer { background: var(--brown); color: var(--cream); padding: 4rem 2rem 2.5rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-top { margin-bottom: 2.5rem; }
.footer-name { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--cream); margin-bottom: 0.25rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--lavender-light); margin-bottom: 0; }
.footer-middle { display: flex; justify-content: center; gap: 4rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--golden); margin-bottom: 0.4rem; }
.footer-col p { font-size: 0.95rem; color: rgba(250, 240, 224, 0.8); margin-bottom: 0; }
.footer-col a { color: var(--golden-light); }
.footer-col a:hover { color: var(--golden); }
.footer-bottom { border-top: 1px solid rgba(250, 240, 224, 0.15); padding-top: 1.5rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(250, 240, 224, 0.5); margin-bottom: 0.3rem; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --section-padding: 4rem 1.5rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero .slogan { font-size: 1.3rem; }
  h2 { font-size: 2rem; }
  .hero-inner, .nana-grid, .daily-grid, .home-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillars { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .daily-illustration { position: relative; top: 0; order: -1; }
  .hero-illustration { max-width: 300px; margin: 0 auto; }
  nav { position: relative; }
  .nav-inner { flex-direction: column; align-items: center; padding: 1rem; }
  img.nav-logo { height: 200px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid rgba(91, 122, 46, 0.1); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; position: absolute; top: 1rem; right: 1rem; }
  .hero { padding: 3rem 1.5rem 3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { text-align: center; }
  .footer-middle { gap: 2rem; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .slogan { font-size: 1.15rem; }
  h2 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}