/* ─────────────────────────────────────────
   POS PAUD JAYA II — style.css
   ───────────────────────────────────────── */

/* ─── CSS VARIABLES ─── */
:root {
  --sun: #FFB800;
  --sky: #00B4D8;
  --grass: #2DC653;
  --coral: #FF6B6B;
  --lavender: #A78BFA;
  --cream: #FFFBF0;
  --dark: #1E1E2E;
  --card-bg: #ffffff;
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
}

/* ─────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 251, 240, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(255, 184, 0, 0.25);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}

.nav-logo .emblem {
  width: 42px;
  height: 42px;
  background: var(--sun);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* penting biar gambar ikut bulat */
  box-shadow: 0 3px 10px rgba(255, 184, 0, 0.4);
  flex-shrink: 0;
}

/* gambar logo */
.nav-logo .emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo span {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nav-logo span small {
  display: block;
  font-size: 0.65rem;
  color: var(--sky);
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--sun);
  color: #fff;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  background: var(--sun);
  border-radius: 12px;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: white;
  border-radius: 99px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: linear-gradient(160deg, #FFF3B0 0%, #C8F5C8 40%, #B3ECFF 100%);
}

/* Decorative blobs */
#home::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.25), transparent 70%);
  top: -80px;
  right: -120px;
  animation: float 7s ease-in-out infinite;
}

#home::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.2), transparent 70%);
  bottom: -60px;
  left: -100px;
  animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-24px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--sun);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--sun);
  margin-bottom: 20px;
  animation: fadeUp 0.7s both;
}

.hero-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 16px;
  animation: fadeUp 0.7s 0.1s both;
}

.hero-title .accent {
  color: var(--grass);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: #555;
  max-width: 540px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.3s both;
}

/* Buttons */
.btn-primary,
.btn-outline {
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--sun);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 184, 0, 0.5);
}

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

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

/* Floating emoji icons in hero */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fi {
  position: absolute;
  font-size: 2.4rem;
  animation: spin-float 10s ease-in-out infinite;
  opacity: 0.7;
}

.fi:nth-child(1) { top: 12%;    left: 8%;   animation-delay: 0s; }
.fi:nth-child(2) { top: 20%;    right: 10%; animation-delay: -2s; }
.fi:nth-child(3) { bottom: 22%; left: 14%;  animation-delay: -4s; }
.fi:nth-child(4) { bottom: 18%; right: 12%; animation-delay: -6s; }
.fi:nth-child(5) { top: 55%;    left: 5%;   animation-delay: -1s; }
.fi:nth-child(6) { top: 40%;    right: 5%;  animation-delay: -3s; }

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

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

.hero-content {
  position: relative;
  z-index: 1;
}

/* Stat chips below CTA */
.stat-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
  animation: fadeUp 0.7s 0.45s both;
}

.stat-chip {
  background: white;
  border-radius: 18px;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-width: 110px;
}

.stat-chip .num {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--grass);
  line-height: 1;
}

.stat-chip .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #777;
  margin-top: 3px;
}

/* ─────────────────────────────────────────
   SHARED SECTION STYLES
   ───────────────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: auto;
}

.section-tag {
  display: block;
  width: fit-content;
  margin: 0 auto 12px auto;
  background: var(--sun);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-sub {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  max-width: 560px;
  margin-bottom: 40px;
}

/* ─────────────────────────────────────────
   PROFIL SECTION
   ───────────────────────────────────────── */
#profil {
  background: white;
}

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

.profil-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #C8F5C8 0%, #B3ECFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}

.profil-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,184,0,0.15), rgba(0,180,216,0.15));
}

.profil-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.profil-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
}

.profil-list li .icon {
  width: 34px;
  height: 34px;
  background: var(--cream);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   VISI & MISI SECTION
   ───────────────────────────────────────── */
#visimisi {
  background: var(--dark);
  color: white;
}

#visimisi .section-title { color: white; }
#visimisi .section-sub   { color: rgba(255, 255, 255, 0.6); }
#visimisi .section-tag   { background: var(--lavender); }

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vm-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px;
}

.vm-card .vm-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.vm-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sun);
  margin-bottom: 10px;
}

.vm-card p,
.vm-card li {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.vm-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.vm-card ul li::before {
  content: '✦ ';
  color: var(--sun);
}

/* ─────────────────────────────────────────
   GURU SECTION
   ───────────────────────────────────────── */
#guru {
  background: var(--cream);
}

.guru-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.guru-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.guru-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.guru-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #FFE5B4, #B3ECFF);
}

.guru-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #FFE5B4 0%, #B3ECFF 100%);
}

.guru-info {
  padding: 20px;
}

.guru-info h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

.guru-info p {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky);
  margin-top: 4px;
}

.guru-badge {
  display: inline-block;
  margin-top: 10px;
  background: var(--cream);
  color: var(--grass);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--grass);
}

/* ─────────────────────────────────────────
   GALERI SECTION
   ───────────────────────────────────────── */
#galeri {
  background: white;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.galeri-item {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  cursor: pointer;
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  display: block;
}

.galeri-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.35s;
}

.galeri-item:nth-child(1) .galeri-placeholder { background: linear-gradient(135deg, #FFE5B4, #FFB800); }
.galeri-item:nth-child(2) .galeri-placeholder { background: linear-gradient(135deg, #B3ECFF, #00B4D8); }
.galeri-item:nth-child(3) .galeri-placeholder { background: linear-gradient(135deg, #C8F5C8, #2DC653); }
.galeri-item:nth-child(4) .galeri-placeholder { background: linear-gradient(135deg, #E8D5FF, #A78BFA); }
.galeri-item:nth-child(5) .galeri-placeholder { background: linear-gradient(135deg, #FFD5D5, #FF6B6B); }
.galeri-item:nth-child(6) .galeri-placeholder { background: linear-gradient(135deg, #FFE5B4, #FFB800); }

.galeri-item:hover img,
.galeri-item:hover .galeri-placeholder {
  transform: scale(1.07);
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 30, 46, 0.65), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.galeri-item:hover .galeri-overlay {
  opacity: 1;
}

.galeri-overlay span {
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ─────────────────────────────────────────
   KONTAK SECTION
   ───────────────────────────────────────── */
#kontak {
  background: var(--cream);
}

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

.kontak-info {
  display: grid;
  gap: 18px;
}

.kontak-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  padding: 18px 20px;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.kontak-item .kicon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kontak-item:nth-child(1) .kicon { background: rgba(255, 184, 0,   0.15); }
.kontak-item:nth-child(2) .kicon { background: rgba(45,  198, 83,  0.15); }
.kontak-item:nth-child(3) .kicon { background: rgba(0,   180, 216, 0.15); }
.kontak-item:nth-child(4) .kicon { background: rgba(167, 139, 250, 0.15); }

.kontak-item h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.kontak-item p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.kontak-map {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: 350px; /* atur tinggi */
}

.kontak-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .kontak-map {
    height: 250px;
  }
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 24px;
  text-align: center;
}

footer .footer-logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

footer .footer-logo span {
  color: var(--sun);
}

footer p {
  font-size: 0.88rem;
  font-weight: 600;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0;
}

footer .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--sun);
}

footer .divider {
  width: 40px;
  height: 3px;
  background: var(--sun);
  border-radius: 99px;
  margin: 16px auto;
}

/* ─────────────────────────────────────────
   SCROLL REVEAL ANIMATION
   ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(15px); /* diperkecil biar tidak terlalu turun */
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal img {
  width: 80%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: auto;
}

/* Mobile */
@media (max-width: 768px) {
  .reveal img {
    width: 100%;
    height: 300px; /* biar tidak terlalu tinggi di HP */
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET (≤ 900px)
   ───────────────────────────────────────── */
@media (max-width: 900px) {
  .profil-grid,
  .vm-grid,
  .kontak-grid {
    grid-template-columns: 1fr;
  }

  .profil-visual {
    aspect-ratio: 16 / 9;
    font-size: 5rem;
  }

  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 640px)
   ───────────────────────────────────────── */
@media (max-width: 640px) {
  /* Slide-down mobile nav */
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(255, 251, 240, 0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 0 24px;
    gap: 6px;
    border-bottom: 2px solid rgba(255, 184, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s,
                visibility 0.35s;
    pointer-events: none;
  }

  .nav-links.open {
    max-height: 400px;
    padding: 20px 24px;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  /* Logo: perkecil teks & sembunyikan subtitle di mobile */
  .nav-logo span {
    font-size: 0.9rem;
  }

  .nav-logo span small {
    display: none;
  }

  .nav-logo .emblem {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .galeri-grid  { grid-template-columns: 1fr 1fr; }
  .guru-grid    { grid-template-columns: 1fr 1fr; }
  .stat-row     { gap: 12px; }
}

/* ─── VERY SMALL SCREENS (≤ 420px) ─── */
@media (max-width: 420px) {
  .galeri-grid { grid-template-columns: 1fr; }
  .guru-grid   { grid-template-columns: 1fr; }
}