/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --terracotta: #C4724E;
  --terracotta-dark: #A85A3A;
  --terracotta-light: #E8A882;
  --sand: #F5E6D3;
  --sand-light: #FDF6EE;
  --sand-dark: #E8D5C0;
  --cream: #FFF9F5;
  --brown-dark: #3D2B1F;
  --brown-mid: #5C4033;
  --brown-text: #4A3728;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.08);
  --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.10);
  --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--brown-text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--terracotta-dark);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--brown-dark);
  line-height: 1.2;
  font-weight: 700;
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 114, 78, 0.1);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown-dark);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.logo-accent {
  color: var(--terracotta);
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  color: var(--brown-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover {
  background: rgba(196, 114, 78, 0.1);
  color: var(--terracotta);
}

.btn-nav {
  background: var(--terracotta);
  color: var(--white) !important;
  border-radius: var(--radius-xl);
  padding: 10px 24px !important;
  margin-left: 8px;
}

.btn-nav:hover {
  background: var(--terracotta-dark);
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(196, 114, 78, 0.35);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 114, 78, 0.4);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.btn-ghost:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== SECTION HELPERS ===== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.accent {
  color: var(--terracotta);
}

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

.text-center {
  text-align: center;
}

.lead {
  font-size: 1.1rem;
  color: var(--brown-mid);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 50%, #F0DCC8 100%);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196, 114, 78, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 114, 78, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 114, 78, 0.12);
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--brown-dark);
}

.hero-accent {
  color: var(--terracotta);
  display: block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--brown-mid);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--brown-mid);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--sand-dark);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-img-stack {
  position: relative;
  height: 640px;
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-main {
  width: 100%;
  height: 640px;
}

.hero-img-main img,
.hero-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-float {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 280px;
  border: 6px solid var(--sand-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-accent-shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--terracotta);
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-quote-card {
  position: absolute;
  bottom: -30px;
  right: -20px;
  background: var(--terracotta);
  color: var(--white);
  padding: 28px 32px;
  border-radius: var(--radius-md);
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}

.about-quote-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.about-quote-card .quote-label {
  font-size: 0.85rem;
  font-weight: 700;
  font-style: normal;
  opacity: 0.9;
}

.about-content .section-title {
  margin-top: 4px;
}

.about-features {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brown-text);
}

.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== PROGRAMS ===== */
.programs {
  background: var(--sand-light);
  padding: 100px 0;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.program-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img img {
  transform: scale(1.05);
}

.program-age {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.program-body {
  padding: 28px;
}

.program-body h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.program-body p {
  font-size: 0.95rem;
  color: var(--brown-mid);
  line-height: 1.7;
}

/* ===== WHY US ===== */
.why-us {
  background: var(--white);
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content .section-title {
  margin-top: 4px;
}

.why-features {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.why-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(196, 114, 78, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-feature h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.why-feature p {
  font-size: 0.95rem;
  color: var(--brown-mid);
  line-height: 1.7;
}

.why-visual {
  position: relative;
}

.why-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 560px;
}

.why-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-badge {
  position: absolute;
  bottom: 24px;
  left: -16px;
  background: var(--white);
  color: var(--brown-dark);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== COMMUNITY ===== */
.community {
  background: var(--sand-light);
  padding: 100px 0;
}

.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.community-content .section-title {
  margin-top: 4px;
}

.community-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.comm-stat {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown-text);
}

.comm-stat span:first-child {
  font-size: 1.4rem;
}

.community-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.community-visual img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.community-visual img:hover {
  transform: scale(1.03);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title {
  margin-top: 4px;
}

.contact-details {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(196, 114, 78, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  display: block;
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--brown-mid);
  line-height: 1.6;
}

.contact-item a {
  color: var(--terracotta);
}

.contact-item a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

/* Form */
.contact-form-wrap {
  background: var(--sand-light);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--brown-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.full {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.form-group input,
.form-group textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--brown-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 114, 78, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B8A494;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  margin-top: 20px;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #2D6A4F;
  font-weight: 600;
}

.form-success p {
  margin: 0;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brown-dark);
  color: var(--sand);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 300px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--sand);
  opacity: 0.8;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity var(--transition), color var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--terracotta-light);
  text-decoration: none;
}

.footer-contact address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-contact a {
  color: var(--sand);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--terracotta-light);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 230, 211, 0.15);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== MOBILE NAV OVERLAY ===== */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--cream);
    padding: 100px 32px 40px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 1.1rem;
  }

  .btn-nav {
    margin-left: 0;
    text-align: center;
    justify-content: center;
    margin-top: 16px;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 43, 31, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .why-grid,
  .community-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-img-stack {
    height: 400px;
  }

  .hero-img-main {
    height: 400px;
  }

  .hero-img-float {
    width: 200px;
    left: -10px;
    bottom: -20px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .about-quote-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
    max-width: 100%;
  }

  .why-badge {
    left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .community-stats {
    grid-template-columns: 1fr;
  }

  .community-visual {
    grid-template-columns: 1fr;
  }

  .community-visual img {
    height: 160px;
  }
}
