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

:root {
  --color-primary: #7a1220;
  --color-primary-light: #a32233;
  --color-primary-dark: #4a0b13;
  --color-accent: #f2c230;
  --color-accent-light: #f7d666;
  --color-navy: #2c3e8c;
  --color-green: #2e9e49;
  --color-sky: #8fd3f4;
  --color-bg: #fbf9f4;
  --color-bg-alt: #f4ece1;
  --color-text: #291416;
  --color-text-muted: #5c474a;
  --color-white: #ffffff;
  --color-focus-ring: rgba(122, 18, 32, 0.35);
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(122, 18, 32, 0.1);
  --shadow-md: 0 12px 30px rgba(122, 18, 32, 0.15);
  --container-w: 1140px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease-standard);
}
.skip-link:focus {
  top: 16px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard), background 0.2s var(--ease-standard), color 0.2s var(--ease-standard);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-accent);
  color: #2a1e05;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-light); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--color-white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-block { width: 100%; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(28,78,66,0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.brand-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

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

.nav-links a:not(.nav-cta) {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.2s var(--ease-standard);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-standard);
}
.nav-links a:not(.nav-cta):hover { color: var(--color-primary); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-standard), background 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.nav-cta:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a0b13 0%, #7a1220 55%, #a32233 100%);
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  will-change: transform;
}
.hero-bg::before {
  top: -10%; left: -5%;
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(242,194,48,0.32), transparent 70%);
  animation: heroGlowDriftA 16s ease-in-out infinite;
}
.hero-bg::after {
  bottom: -15%; right: -5%;
  width: 52vw; height: 52vw;
  background: radial-gradient(circle, rgba(163,34,51,0.5), transparent 70%);
  animation: heroGlowDriftB 20s ease-in-out infinite;
}

@keyframes heroGlowDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 6%) scale(1.08); }
}
@keyframes heroGlowDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, -4%) scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  width: 100%;
  padding-top: 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-text { max-width: 560px; }

.hero-text > * {
  opacity: 0;
  animation: heroFadeUp 0.7s var(--ease-standard) forwards;
}
.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.25s; }
.hero-text > *:nth-child(3) { animation-delay: 0.4s; }
.hero-text > *:nth-child(4) { animation-delay: 0.55s; }

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

.hero-photo {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-standard) 0.55s forwards;
}

.hero-photo-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 320px;
  animation: heroFloat 5s ease-in-out 1.4s infinite;
}

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

.hero-photo-frame {
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}

.hero-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: bottom;
  transition: transform 0.5s var(--ease-standard);
}

.hero-photo-card:hover img { transform: scale(1.08); }

.hero-photo-card figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.hero-rating-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #2a1e05;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  animation: heroBadgePulse 3s ease-in-out 1.6s infinite;
}
.hero-rating-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-rating-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-rating-badge-text small {
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.75;
}

@keyframes heroBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 34px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  display: block;
  width: 4px; height: 8px;
  background: var(--color-accent-light);
  border-radius: 2px;
  margin: 8px auto 0;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  max-width: 640px;
}

.section-lead {
  color: var(--color-text-muted);
  max-width: 600px;
  font-size: 1.02rem;
  margin-bottom: 48px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-standard), box-shadow 0.25s var(--ease-standard);
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ============ ORG CHART (PENGURUS) ============ */
.orgchart {
  --org-line: var(--color-primary-light);
  --org-gap-y: 28px;
  --org-gap-x: 16px;
  padding-top: 4px;
}

.org-tier {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--org-gap-x);
  position: relative;
}

.org-tier + .org-tier {
  margin-top: var(--org-gap-y);
  padding-top: var(--org-gap-y);
}

/* vertical trunk line connecting this tier up to the one above */
.org-tier + .org-tier::before {
  content: '';
  position: absolute;
  top: calc(var(--org-gap-y) * -1); left: 50%;
  width: 2px;
  height: var(--org-gap-y);
  background: var(--org-line);
  transform: translateX(-50%);
}

.org-node {
  position: relative;
  background: var(--color-white);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 150px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-standard), box-shadow 0.25s var(--ease-standard);
}
.org-node:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.org-node-ketua {
  min-width: 190px;
  padding: 18px 24px;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.org-node-ketua .org-name { color: var(--color-white); }
.org-node-ketua .org-role { color: var(--color-accent); }

.org-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.org-role {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* tick connecting each node up to the shared horizontal bar */
.org-tick {
  position: absolute;
  top: calc(var(--org-gap-y) * -1);
  left: 50%;
  width: 2px;
  height: var(--org-gap-y);
  background: var(--org-line);
  transform: translateX(-50%);
}

/* horizontal bar joining siblings in a branch tier — each node draws a half-width
   segment that overlaps its neighbor's at the midpoint of the flex gap, so the
   bar reads as one continuous line across the row */
.org-tier-branch .org-node::before,
.org-tier-branch .org-node::after {
  content: '';
  position: absolute;
  top: calc(var(--org-gap-y) * -1);
  width: calc(50% + var(--org-gap-x) / 2);
  height: 2px;
  background: var(--org-line);
}
.org-tier-branch .org-node::before { right: 50%; }
.org-tier-branch .org-node::after { left: 50%; }
.org-tier-branch .org-node:first-child::before { background: transparent; }
.org-tier-branch .org-node:last-child::after { background: transparent; }

.org-tier-seksi .org-node { min-width: 130px; padding: 12px 14px; }
.org-tier-seksi .org-name { font-size: 0.85rem; }

.about-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--color-primary);
}
.about-icon svg { width: 26px; height: 26px; }

.about-card h3 { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 10px; }
.about-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ============ GALLERY / FASILITAS ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ph-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: center;
  padding: 12px;
}

.ph-1 { background: linear-gradient(135deg,#a32233,#4a0b13); }
.ph-2 { background: linear-gradient(135deg,#f2c230,#a3760f); }
.ph-3 { background: linear-gradient(135deg,#2c3e8c,#182350); }
.ph-4 { background: linear-gradient(135deg,#2e9e49,#155225); }
.ph-5 { background: linear-gradient(135deg,#8fd3f4,#2c6f8c); }
.ph-6 { background: linear-gradient(135deg,#7a1220,#2c3e8c); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============ IG-STYLE GALLERY ============ */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}

.ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ig-tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.35), transparent 55%);
}

.ig-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(41, 20, 22, 0.72);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s var(--ease-standard);
}
.ig-tile-overlay svg { width: 26px; height: 26px; }
.ig-tile:hover .ig-tile-overlay,
.ig-tile:focus-visible .ig-tile-overlay { opacity: 1; }

.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 26px;
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.ig-follow-btn:hover { background: var(--color-primary); color: var(--color-white); }

.gallery-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.gallery-note code {
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.amenities-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============ PROGRAM ============ */
.program-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.schedule-card, .extracurricular-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.schedule-card h3, .extracurricular-card h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.activity-note {
  margin-top: -12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.extra-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-bg-alt);
  font-size: 0.95rem;
}

.activity-link {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1.5px solid var(--color-accent);
  transition: color 0.2s var(--ease-standard);
}
.activity-link:hover { color: var(--color-primary-light); }
.extra-list li:last-child { border-bottom: none; }
.extra-icon {
  display: inline-flex;
  color: #a3760f;
  flex-shrink: 0;
}
.extra-icon svg { width: 20px; height: 20px; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent-light);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
}

.requirements-grid { margin-bottom: 56px; }

/* ============ TESTIMONI ============ */
.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimoni-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimoni-card p {
  font-size: 0.98rem;
  color: var(--color-text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimoni-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.testimoni-card footer strong { display: block; font-size: 0.92rem; color: var(--color-primary); }
.testimoni-card footer span { font-size: 0.82rem; color: var(--color-text-muted); }

.testimoni-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.rating-score {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.rating-score span { font-size: 1.2rem; font-weight: 600; color: var(--color-text-muted); }
.rating-stars {
  display: flex;
  gap: 4px;
  color: var(--color-accent);
  margin: 12px 0;
}
.rating-stars svg { width: 20px; height: 20px; }
.testimoni-rating p {
  font-style: normal;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.rating-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}
.rating-link:hover { color: var(--color-primary-light); }

/* ============ KONTAK ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info { display: flex; flex-direction: column; gap: 26px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
}

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

@media (max-width: 640px) {
  .map-embed { aspect-ratio: 4 / 3; }
}

.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--color-primary);
}
.info-icon svg { width: 22px; height: 22px; }
.info-item strong { display: block; color: var(--color-primary); margin-bottom: 4px; font-size: 0.98rem; }
.info-item p { color: var(--color-text-muted); font-size: 0.92rem; }

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e3ddcf;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  transition: border-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
}
.footer-brand .brand-logo { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }

/* ============ SCROLL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }

  .org-tier { flex-direction: column; align-items: center; flex-wrap: wrap; gap: 14px; }
  .org-tier + .org-tier { padding-top: 20px; }
  .org-tier + .org-tier::before { height: 20px; }
  .org-tick { display: none; }
  .org-tier-branch .org-node::before,
  .org-tier-branch .org-node::after { display: none; }
  .org-node { min-width: 220px; }
  .org-tier-seksi .org-node { min-width: 220px; }

  .program-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimoni-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .hero-photo { display: none; }
  .hero-bg {
    background:
      linear-gradient(160deg, rgba(74,11,19,0.55) 0%, rgba(122,18,32,0.45) 50%, rgba(163,34,51,0.4) 100%),
      url("../assets/Profile.jpg") center 78% / cover no-repeat;
  }
  .hero-bg::before, .hero-bg::after { opacity: 0.45; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%); }
  .eyebrow, .hero h1, .hero-tagline { text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .amenities-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
