/*
 * File: assets/css/styles.css
 * Garden Roots Children's Academy — Global Styles
 * Theme: Warm, playful, premium, nature-inspired
 */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #2f2f2f;
  background-color: #fdfcf8;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #2f6d2e;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #e2722c; }

/* Layout Helpers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.mb8 { margin-bottom: 0.5rem; }
.mt8 { margin-top: 0.5rem; }
.m0 { margin: 0; }

/* Topbar */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #2f6d2e;
}
.logo .brand img {
  height: 40px;
}
.logo .tagline {
  font-size: 0.85rem;
  color: #777;
}

.nav {
  display: flex;
  gap: 1rem;
}
.nav a {
  font-weight: 500;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero-media img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(47,109,46,0.6), rgba(226,114,44,0.4));
  z-index: -1;
}
.hero-content h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  border: 2px solid #2f6d2e;
  background: #fff;
  color: #2f6d2e;
  font-weight: 600;
  font-size: 1rem;
  gap: 0.4rem;
}
.btn:hover {
  background: #f3f9f3;
}
.btn-cta {
  background: #e2722c;
  color: #fff;
  border: none;
}
.btn-cta:hover {
  background: #cc5f1f;
}

.btn img.icon-img,
.btn img.small-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section.alt {
  background: #f4f9f4;
}
.section h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2f6d2e;
}
.section .lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.card h3 { margin-top: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.program h3 {
  color: #e2722c;
  font-family: 'Fredoka', sans-serif;
}
.program .muted {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.table th, .table td {
  border-bottom: 1px solid #e6e6e6;
  padding: 0.75rem;
}
.table th {
  text-align: left;
  background: #fdf1e6;
}
.table td.right { text-align: right; }

/* Lists */
.checklist li::before {
  content: "✔";
  color: #2f6d2e;
  margin-right: 0.5rem;
}
.fineprint li {
  font-size: 0.85rem;
  color: #555;
  margin: 0.3rem 0;
}

/* Contact */
.contact-cards {
  display: grid;
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.contact-card .icon {
  font-size: 1.5rem;
}
.contact-card .icon-img {
  width: 20px;
  height: 20px;
}

.map-box {
  background: #eaf3ea;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: #555;
}

/* Footer */
.footer {
  background: #2f6d2e;
  color: #fff;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
.footer-nav a {
  color: #fff;
  margin-left: 1rem;
}
.footer-nav a:hover { text-decoration: underline; }

/* Floating WhatsApp Button */
.fab-whatsapp {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 1000;
}
.fab-whatsapp img.icon-img {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}