/* Mahir Dhuha Preschool — shared styles */
:root {
  --orange: #FF6A1A;
  --orange-warm: #FFA63D;
  --orange-soft: #FFD9B8;
  --charcoal: #2A2A2A;
  --charcoal-soft: #4A4A4A;
  --cream: #FFF8EE;
  --cream-2: #FFF1DC;
  --sky: #A8DEEC;
  --sky-soft: #DCF2F8;
  --mint: #C8EB6A;
  --mint-soft: #E8F5C4;
  --rose: #FFB8B8;
  --rose-soft: #FFE0E0;
  --lilac: #C9B8FF;
  --yellow: #FFD84D;
  --yellow-soft: #FFF1B5;
  --shadow-sm: 0 4px 12px rgba(42, 42, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(42, 42, 42, 0.10);
  --shadow-lg: 0 20px 60px rgba(255, 106, 26, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; line-height: 1.65; color: var(--charcoal-soft); }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

/* Wrappers */
.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ───────────── HEADER ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px dashed rgba(255, 106, 26, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(42, 42, 42, 0.12));
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.04); }

.brand .tag {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-left: 2px solid rgba(42, 42, 42, 0.12);
  padding-left: 12px;
  line-height: 1.3;
  max-width: 130px;
}

@media (max-width: 720px) {
  .brand-logo { height: 42px; }
  .brand .tag { display: none; }
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal-soft);
  transition: all 0.2s ease;
  position: relative;
}
.nav a:hover { color: var(--orange); background: rgba(255, 106, 26, 0.07); }
.nav a.active {
  color: var(--orange);
  background: rgba(255, 106, 26, 0.10);
}
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-warm) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 106, 26, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 106, 26, 0.42); }
.btn-ghost {
  background: #fff;
  color: var(--charcoal);
  border: 2px solid rgba(42, 42, 42, 0.10);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.30);
}
.btn-whatsapp:hover { transform: translateY(-2px); }

.menu-toggle { display: none; }

/* ───────────── HERO BG / CLOUDS ───────────── */
.cloud {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(42, 42, 42, 0.05));
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

/* ───────────── SHAPES & DOODLES ───────────── */
.dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 4px dashed currentColor;
  pointer-events: none;
}
.squiggle {
  position: absolute;
  pointer-events: none;
}

/* ───────────── SECTION HEADINGS ───────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 106, 26, 0.10);
  color: var(--orange);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-eyebrow .dot-marker {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  position: static;
}
.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.section-title .accent {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.section-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'><path d='M2 8 Q50 2 100 6 T 198 4' stroke='%23FF6A1A' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}

.section-lead {
  font-size: 18px;
  line-height: 1.65;
  max-width: 680px;
  color: var(--charcoal-soft);
}

/* ───────────── CARDS ───────────── */
.card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Cloud-shaped image mask */
.cloud-image {
  --r: 60% 40% 60% 40% / 50% 60% 40% 50%;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.cloud-image-2 {
  --r: 50% 50% 60% 40% / 55% 45% 55% 45%;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.cloud-image img, .cloud-image-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ───────────── GALLERY ───────────── */
.g-filter {
  background: #fff;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 3px 0 var(--charcoal);
}
.g-filter:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--charcoal); }
.g-filter.active { background: var(--orange); color: #fff; border-color: var(--charcoal); }

.g-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 28px 24px;
}
@media (max-width: 980px) { .g-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .g-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .g-grid { grid-template-columns: 1fr; } }

.g-card {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.g-card:hover { transform: rotate(0deg) scale(1.04) !important; z-index: 2; }
.g-card.g-tall { grid-row: span 2; }
.g-card.g-wide { grid-column: span 2; }

.g-frame {
  background: #fff;
  border-radius: 8px;
  padding: 12px 12px 8px;
  box-shadow: 0 8px 24px rgba(42, 42, 42, 0.18), 0 2px 4px rgba(42, 42, 42, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.g-image {
  position: relative;
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-2);
}
.g-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-pin {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF8A66, #C73D2A);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35), inset -2px -2px 4px rgba(0, 0, 0, 0.25);
  z-index: 3;
}
.g-meta {
  padding: 10px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  font-weight: 700;
  color: var(--charcoal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.lightbox-frame {
  background: #fff;
  padding: 18px 18px 10px;
  border-radius: 10px;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop-in { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-frame img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 4px;
  object-fit: contain;
  display: block;
}
.lightbox-meta {
  padding: 6px 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ───────────── FOUNDERS ───────────── */
@media (max-width: 720px) {
  .founders-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ───────────── JOURNEY ROADMAP ───────────── */
.journey-path {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.journey-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.journey-stop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  margin-bottom: 60px;
  z-index: 2;
}
.journey-stop.left .journey-card { grid-column: 1; text-align: right; }
.journey-stop.left .journey-marker { grid-column: 2; }
.journey-stop.right .journey-marker { grid-column: 2; }
.journey-stop.right .journey-card { grid-column: 3; text-align: left; }
.journey-marker {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), inset 0 -4px 0 rgba(0,0,0,0.08);
  border: 5px solid #fff;
  position: relative;
  z-index: 3;
  animation: journey-bob 3s ease-in-out infinite;
}
.journey-stop:nth-child(even) .journey-marker { animation-delay: 0.5s; }
.journey-stop:nth-child(3n) .journey-marker { animation-delay: 1s; }
.journey-emoji { font-size: 38px; line-height: 1; }
.journey-card {
  padding: 22px 24px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.25s ease;
}
.journey-card:hover { transform: translateY(-4px); }
.journey-year {
  display: inline-block;
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: 18px;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
@keyframes journey-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@media (max-width: 720px) {
  .journey-stop {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    margin-bottom: 40px;
  }
  .journey-stop.left .journey-card,
  .journey-stop.right .journey-card { grid-column: 2; text-align: left; }
  .journey-stop.left .journey-marker,
  .journey-stop.right .journey-marker { grid-column: 1; }
  .journey-marker { width: 64px; height: 64px; border-width: 4px; }
  .journey-emoji { font-size: 30px; }
  .journey-svg { display: none; }
  .journey-path::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(180deg, var(--orange) 0 10px, transparent 10px 20px);
    border-radius: 2px;
    z-index: 0;
  }
}

/* ───────────── FOOTER ───────────── */
.site-footer {
  position: relative;
  background: transparent;
  color: #fff;
  padding: 0;
  margin-top: 0;
}

.playground-scene-wrap {
  position: relative;
  /* Just the SVG scene at the bottom — no sky fade. */
  height: 360px;
  background: transparent;
  display: flex;
  align-items: flex-end;
}
.playground-scene {
  display: block;
  width: 100%;
  height: 360px;
  max-height: 360px;
}
.footer-panel {
  position: relative;
  background: var(--charcoal);
  padding: 56px 0 32px;
  margin-top: -2px;
  z-index: 2;
}
.site-footer::before { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid a, .footer-grid p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 2;
  transition: color 0.18s;
}
.footer-grid a:hover { color: var(--orange-warm); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.socials { display: flex; gap: 10px; }
.social {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  color: #fff;
  transition: all 0.2s;
}
.social:hover { background: var(--orange); transform: translateY(-2px); }

/* ───────────── ANIMATIONS ───────────── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes pop-in {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float-slow 8s ease-in-out infinite; }
.wiggle { animation: wiggle 4s ease-in-out infinite; }
.pop-in { animation: pop-in 0.6s ease-out both; }

/* ───────────── MODAL ───────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 42, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
  animation: fade-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff;
  border-radius: 32px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: pop-in 0.35s ease-out both;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(42, 42, 42, 0.06);
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--charcoal);
  cursor: pointer;
  z-index: 2;
  transition: background 0.18s;
}
.modal-close:hover { background: rgba(255, 106, 26, 0.15); color: var(--orange); }
.modal-header {
  padding: 36px 36px 0;
  position: relative;
}
.modal-body { padding: 24px 36px 36px; }
.modal h2 { font-size: 28px; }

/* Form */
.form-row { display: flex; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; }
.field label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border-radius: 14px;
  border: 2px solid rgba(42, 42, 42, 0.08);
  font: inherit;
  font-size: 15px;
  background: var(--cream);
  transition: all 0.18s;
  color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
}
.field-check {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--charcoal-soft);
}
.field-check input { width: 18px; height: 18px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  animation: pop-in 0.3s ease-out;
}

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; position: fixed; top: 80px; right: 16px; left: 16px; flex-direction: column; background: #fff; padding: 16px; border-radius: 24px; box-shadow: var(--shadow-md); align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 106, 26, 0.10); color: var(--orange); font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* utility */
.text-center { text-align: center; }
.relative { position: relative; }
