:root {
  --color-primary: #429032;
  --color-primary-dark: #357a28;
  --color-accent: #fcba24;
  --color-blue: #2b7fd4;
  --color-orange: #f07c2b;
  --color-brown: #5c3d2e;
  --color-background: #f5f3ff;
  --color-white: #ffffff;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(66, 144, 50, 0.1);
  --max-width: 1100px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.75rem;
  opacity: 0.9;
  font-style: italic;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 1.25rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-brown) !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: #e5ab1f !important;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d6e24 55%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(252, 186, 36, 0.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero .tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 36rem;
}

.hero-logo {
  justify-self: center;
  background: var(--color-white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-logo img {
  max-height: 220px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-brown);
}

.btn-primary:hover {
  background: #e5ab1f;
  color: var(--color-brown);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.btn-green {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-green:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
}

.section-alt {
  background: var(--color-white);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-icon.green { background: rgba(66, 144, 50, 0.15); }
.card-icon.yellow { background: rgba(252, 186, 36, 0.25); }
.card-icon.blue { background: rgba(43, 127, 212, 0.15); }
.card-icon.orange { background: rgba(240, 124, 43, 0.15); }

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Program cards */
.program-card {
  border-top: 4px solid var(--color-primary);
}

.program-card.lkg { border-top-color: var(--color-blue); }
.program-card.ukg { border-top-color: var(--color-orange); }
.program-card.daycare { border-top-color: var(--color-brown); }
.program-card.afterschool { border-top-color: var(--color-accent); }

/* Video / Map */
.embed-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
}

.embed-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
}

.map-wrap iframe {
  height: 380px;
}

.video-embed {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.btn-call {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-call:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background: #1da851;
  color: var(--color-white);
}

.btn-secondary-outline {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary-outline:hover {
  background: rgba(66, 144, 50, 0.08);
  color: var(--color-primary-dark);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

#site-contact-details p {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

#site-contact-details a {
  color: var(--color-primary);
  font-weight: 500;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.youtube-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(66, 144, 50, 0.08), rgba(252, 186, 36, 0.12));
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.youtube-cta h3 {
  margin-top: 0;
  color: var(--color-primary);
}

/* Page header */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2.5rem 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
}

/* Content */
.content-block {
  max-width: 48rem;
}

.content-block h2 {
  color: var(--color-primary);
  font-size: 1.35rem;
  margin-top: 2rem;
}

.content-block ul,
.content-block ol {
  padding-left: 1.25rem;
}

.content-block li {
  margin-bottom: 0.5rem;
}

/* Forms */
.form-card {
  max-width: 36rem;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(66, 144, 50, 0.15);
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.form-status.error {
  display: block;
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.35);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
}

.gallery-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-photo figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
}

.gallery-loading,
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem 1rem;
}

.gallery-empty code {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* Contact info */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--color-brown);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer a {
  color: var(--color-accent);
}

.site-footer h4 {
  color: var(--color-white);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.footer-brand img {
  height: 64px;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    padding: 1rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-inline: auto;
  }

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

  .hero-logo {
    max-width: 280px;
    margin-inline: auto;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    display: none;
  }
}
