/* =========================================================
   Children's Tree House — Main Stylesheet
   Colors: Forest green + warm brown (like a real treehouse!)
   ========================================================= */

:root {
  --green-dark:   #1b4332;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --brown-dark:   #5c3d1e;
  --brown-mid:    #8b5e3c;
  --brown-light:  #c9a46e;
  --cream:        #fdf8f0;
  --white:        #ffffff;
  --text-dark:    #1a1a1a;
  --text-mid:     #444;
  --text-light:   #777;
  --shadow:       0 4px 24px rgba(27,67,50,0.12);
  --shadow-lg:    0 8px 40px rgba(27,67,50,0.18);
  --radius:       16px;
  --radius-sm:    8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(253,248,240,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(27,67,50,0.08);
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: 0 4px 24px rgba(27,67,50,0.15); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
}
.nav-logo .leaf { font-size: 1.6rem; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-mid);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--green-light);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--green-mid); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--green-dark);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45,106,79,0.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,79,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-secondary:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7rem 6% 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Floating leaves animation */
.hero-leaves { position: absolute; inset: 0; pointer-events: none; }
.floating-leaf {
  position: absolute;
  font-size: 2rem;
  opacity: 0.35;
  animation: floatLeaf 8s ease-in-out infinite;
}
.l1 { top: 10%; left: 5%;  animation-delay: 0s;   font-size: 1.5rem; }
.l2 { top: 20%; right: 10%; animation-delay: 1.5s; font-size: 2.5rem; }
.l3 { top: 60%; left: 8%;  animation-delay: 3s;   font-size: 1.2rem; }
.l4 { bottom: 15%; right: 25%; animation-delay: 0.8s; }
.l5 { top: 40%; right: 5%; animation-delay: 2.2s; font-size: 1.8rem; }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(8deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  animation: fadeUp 0.9s ease both;
}
.hero-tagline {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-pale);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-title em {
  font-style: italic;
  color: var(--brown-light);
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}
.hero-sub strong { color: var(--white); }

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

/* Illustrated tree */
.hero-tree {
  position: relative;
  width: 280px;
  height: 380px;
  flex-shrink: 0;
  z-index: 2;
  animation: fadeUp 1.1s 0.2s ease both;
  margin-right: 24%;

}
.tree-trunk {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 180px;
  background: var(--brown-mid);
  border-radius: 8px 8px 4px 4px;
}
.tree-canopy {
  position: absolute;
  border-radius: 50%;
  background: rgba(82,183,136,0.4);
  border: 3px solid rgba(255,255,255,0.15);
}
.c1 { width: 220px; height: 220px; bottom: 140px; left: 50%; transform: translateX(-50%); background: rgba(27,67,50,0.5); }
.c2 { width: 180px; height: 180px; bottom: 190px; left: 50%; transform: translateX(-50%); background: rgba(45,106,79,0.55); }
.c3 { width: 140px; height: 140px; bottom: 230px; left: 50%; transform: translateX(-50%); background: rgba(82,183,136,0.4); }
.treehouse-box {
  position: absolute;
  bottom: 150px; left: 50%;
  transform: translateX(-50%);
  font-size: 3.5rem;
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--brown-dark);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.trust-item:last-child { border-right: none; }
.trust-item span { font-size: 1.2rem; }

/* ---- GENERIC SECTION STYLES ---- */
.section { padding: 6rem 5%; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: center;
}
.section-inner.center {
  flex-direction: column;
  text-align: center;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}
.section-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}
.section-intro {
  max-width: 600px;
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ---- ABOUT ---- */
.about { background: var(--white); }
.about-text { flex: 1; }
.about-text h2 { color: var(--green-dark); margin-bottom: 1.25rem; }
.about-text p { color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; }
.credentials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.cred-badge {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

.about-photo-frame {
  flex: 0 0 380px;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--green-pale);
}
.photo-placeholder {
  width: 100%; height: 100%;
  background: var(--green-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--green-mid);
  font-size: 1rem;
  text-align: center;
  padding: 2rem;
}
.photo-placeholder p:first-child { font-size: 4rem; }
code {
  background: rgba(45,106,79,0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* ---- PROGRAM CARDS ---- */
.program { background: var(--green-pale); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid var(--green-light);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2.4rem; margin-bottom: 0.75rem; }
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}
.card p { color: var(--text-mid); line-height: 1.7; font-size: 0.95rem; }

/* ---- SCHEDULE ---- */
.schedule { background: var(--brown-dark); }
.schedule h2 { color: var(--brown-light) !important; }
.schedule .section-label { color: var(--brown-light) !important; }
.schedule-list {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.schedule-item:nth-child(odd)  { background: rgba(255,255,255,0.06); }
.schedule-item:nth-child(even) { background: rgba(255,255,255,0.02); }
.stime {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brown-light);
  width: 80px;
  flex-shrink: 0;
}
.sdesc { color: rgba(255,255,255,0.85); font-size: 1rem; }

/* ---- TESTIMONIALS ---- */
.testimonials { background: var(--green-dark); }
.testimonials h2 { color: var(--white) !important; }
.testimonials .section-label { color: var(--green-pale) !important; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.testimonial {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--green-light);
}
.quote {
  color: rgba(255,255,255,0.9);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.reviewer { color: var(--green-pale); font-weight: 700; font-size: 0.9rem; }

/* ---- GALLERY ---- */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.placeholder-photo {
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--green-mid);
  font-size: 0.85rem;
  padding: 1rem;
}
.placeholder-photo span { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }

/* ---- FAQ ---- */
.faq { background: var(--white); }
.faq-list {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1.5px solid var(--green-pale);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--green-pale); }
.faq-q span { font-size: 1.4rem; color: var(--green-light); transition: transform 0.3s; }
.faq-q.open span { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  padding: 1rem 1.5rem 1.2rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- CONTACT ---- */
.contact { background: var(--green-pale); }
.contact-text { flex: 1; }
.contact-text h2 { color: var(--green-dark); margin-bottom: 1rem; }
.contact-text p { color: var(--text-mid); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { font-size: 1.6rem; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--green-dark); font-weight: 800; margin-bottom: 0.2rem; }
.contact-item a, .contact-item span { color: var(--text-mid); font-size: 0.95rem; }
.contact-item a:hover { color: var(--green-mid); }

.contact-form-wrap {
  flex: 0 0 420px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap h3 {
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  background: #fff8e7;
  border: 1px solid #f0d080;
  border-radius: 8px;
  padding: 0.75rem;
  line-height: 1.6;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; color: var(--green-dark); }
.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--green-pale);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.2s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green-light); }

/* ---- FOOTER ---- */
.footer {
  background: var(--green-dark);
  padding: 3rem 5%;
  text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); font-weight: 700; }
.footer p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-copy { color: rgba(255,255,255,0.4) !important; font-size: 0.8rem !important; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-pale); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 6rem; }
  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-tree { display: none; }
  .section-inner { flex-direction: column; }
  .about-photo-frame { flex: none; width: 100%; max-width: 420px; height: 320px; }
  .contact-form-wrap { flex: none; width: 100%; }
  .rates-grid { flex-direction: column; align-items: center; }
  .rate-card.featured { transform: none; }
}

@media (max-width: 640px) {
  .navbar { padding: 1rem 1.2rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 1.5rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .trust-bar { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); justify-content: center; }
}
/* ---- PRICING HIGHLIGHTS ---- */
.pricing-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 2.5rem;
}
.ph-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: transform 0.25s;
}
.ph-item:hover { transform: translateY(-4px); }
.ph-icon { font-size: 2.5rem; }
.ph-item strong {
  font-size: 1.05rem;
  color: var(--green-dark);
  font-family: 'Playfair Display', serif;
}
.ph-item p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; }

.pricing-cta-box {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  width: 100%;
  max-width: 600px;
}
.pricing-cta-box p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.7;
}
