/* =====================================================
   NASH Childcare – Modernes Design
   ===================================================== */

/* 1. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* 2. DESIGN TOKENS */
:root {
  --primary:       #c55a3e;
  --primary-light: #e07a5f;
  --primary-dark:  #a84532;
  --accent:        #f2cc8f;
  --accent-dark:   #ddb05a;
  --bg:            #faf8f5;
  --bg-alt:        #f2ede4;
  --text:          #1e1b18;
  --text-muted:    #6b6560;
  --text-light:    #9a9490;
  --white:         #ffffff;
  --border:        #e2d9d0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --radius:        12px;
  --radius-lg:     20px;
  --nav-h:         72px;
  --max-w:         1100px;
  --ease:          0.25s ease;
}

/* 3. BODY */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 4. TYPOGRAPHY */
h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem,2vw,1.3rem); font-weight: 600; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary-dark); }
strong { font-weight: 600; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* 5. LAYOUT */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }

/* 6. NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.navbar-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.brand-text { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand-text em { font-style: normal; color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: block; padding: 0.45rem 0.8rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-alt); color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: #fff !important; padding: 0.45rem 1rem !important; }
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* 7. HERO */
.hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 5rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 550px; height: 550px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.28; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.18; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--primary-dark);
  padding: 0.35rem 1rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 580px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 8. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(197,90,62,0.3); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-alt); transform: translateY(-1px); }
.btn-lg { padding: 0.9rem 2.1rem; font-size: 1rem; border-radius: 12px; }

/* 9. SECTION HEADERS */
.section-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.6rem;
}
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }
.section-header h2 { color: var(--text); margin-bottom: 0.6rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* 10. STATS BAR */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-inner { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -0.03em; }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* 11. SPLIT LAYOUT */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-alt); }
.split-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 12. CARDS */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.5rem; }
.card h3 { margin-bottom: 0.4rem; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.93rem; }

/* 13. PARTNER LIST */
.partner-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.partner-item {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}
.partner-item h4 { color: var(--text); margin-bottom: 0.5rem; }
.partner-item p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.partner-item .partner-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
.partner-item .partner-links a { font-size: 0.82rem; font-weight: 600; padding: 0.2rem 0; border-bottom: 1px solid var(--primary); }

/* 14. PROJECT ITEMS */
.project-list { display: flex; flex-direction: column; gap: 0; }
.project-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
  padding: 4rem 0; border-bottom: 1px solid var(--border);
}
.project-item:last-child { border-bottom: none; }
.project-item.reverse { direction: rtl; }
.project-item.reverse > * { direction: ltr; }
.project-content h2 { margin-bottom: 0.75rem; color: var(--text); }
.project-content p, .project-content ul { color: var(--text-muted); }
.project-content ul { margin-top: 0.5rem; }
.project-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }

/* 15. GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 9999;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* 16. DONATION CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 5rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; left: -10%;
  width: 50%; height: 200%;
  background: rgba(255,255,255,0.06); transform: rotate(-12deg);
  pointer-events: none;
}
.cta-section .inner { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section .lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 580px; margin: 0 auto 2rem; }
.bank-box {
  display: inline-block; text-align: left;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 1.25rem 1.75rem;
  margin-top: 1.75rem; backdrop-filter: blur(4px);
}
.bank-box p { font-size: 0.88rem; color: rgba(255,255,255,0.9); margin-bottom: 0.25rem; }
.bank-box p:last-child { margin-bottom: 0; }
.bank-box strong { color: var(--accent); }

/* 17. CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-icon { width: 40px; height: 40px; background: var(--bg-alt); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-row-text strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.2rem; font-weight: 600; }
.contact-row-text p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }
.contact-row-text a { font-size: 0.92rem; font-weight: 500; }

.donation-box { background: linear-gradient(135deg, var(--accent) 0%, #f5d89a 100%); border-radius: var(--radius-lg); padding: 2.25rem; }
.donation-box h3 { color: var(--primary-dark); margin-bottom: 0.4rem; }
.donation-box .subtitle { color: rgba(100,50,30,0.75); font-size: 0.93rem; margin-bottom: 1.5rem; }
.bank-details { background: rgba(255,255,255,0.65); border-radius: var(--radius); padding: 1.25rem; }
.bank-details p { font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--text); }
.bank-details p:last-child { margin-bottom: 0; }
.bank-details strong { color: var(--primary-dark); }

/* 18. PAGE HEADER */
.page-header {
  padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 3rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.page-header h1 { color: var(--text); margin-bottom: 0.4rem; font-size: clamp(1.8rem,4vw,2.75rem); }
.page-header .page-lead { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* 19. LEGAL PAGES */
.legal-content { max-width: 780px; }
.legal-content h2 { color: var(--primary); margin-top: 2.5rem; margin-bottom: 0.6rem; font-size: 1.2rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 { color: var(--text); margin-top: 1.75rem; margin-bottom: 0.4rem; font-size: 1.05rem; }
.legal-content h4 { color: var(--text); margin-top: 1.25rem; margin-bottom: 0.35rem; font-size: 0.95rem; font-weight: 600; }
.legal-content p, .legal-content ul, .legal-content ol { color: var(--text-muted); font-size: 0.93rem; }
.legal-content li { margin-bottom: 0.35rem; }
.toc-box { background: var(--bg-alt); border-radius: var(--radius); padding: 1.25rem 1.75rem; margin-bottom: 2.5rem; border: 1px solid var(--border); }
.toc-box h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-light); margin-bottom: 0.75rem; }
.toc-box ol { margin: 0; padding-left: 1.4rem; }
.toc-box li { margin-bottom: 0.25rem; }
.toc-box a { font-size: 0.88rem; }

/* 20. FOOTER */
.footer { background: #1c1916; color: rgba(255,255,255,0.65); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { max-width: 320px; }
.footer-brand-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand-logo .icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1rem; }
.footer-brand-logo span { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 0.87rem; line-height: 1.6; }
.footer h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.9); margin-bottom: 0.85rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.87rem; transition: color var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color var(--ease); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* 21. UTILS */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* 22. RESPONSIVE */
@media (max-width: 900px) {
  .split, .project-item, .contact-grid { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
  .split.reverse, .project-item.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 2rem; }
}
@media (max-width: 700px) {
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); padding: 0.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta { background: none !important; color: var(--primary) !important; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .section { padding: 3rem 0; }
  .stats-inner { gap: 1.5rem; }
}
