@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ============================================================
   Design System — Sekolah Budi Luhur
   Modern corporate education design system.
   ============================================================ */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Colors — neutral corporate palette + single primary accent */
  --color-bg: #ffffff;
  --color-bg-off: #f6f7f9;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-ink: #111827;
  --color-ink-soft: #4b5563;
  --color-ink-mute: #6b7280;
  --color-accent: #2563eb;
  --color-accent-strong: #1d4ed8;
  --color-accent-soft: #eff6ff;
  --color-on-accent: #ffffff;

  /* Brand Blue */
  --brand-blue: #1a3a8f;
  --brand-blue-dark: #122b6e;
  --brand-blue-mid: #1e45a8;
  --brand-yellow: #fbbf24;

  /* Radius */
  --radius-card: 0.875rem;
  --radius-pill: 9999px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-on-accent);
}

/* ─── UI Utility Components ───────────────────────────────── */
.container-ui {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .container-ui {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container-ui {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.text-display {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.text-h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.text-h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-caption {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Primary Pill Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-on-accent);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background-color: var(--color-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:active {
  transform: scale(0.98);
}

/* Secondary Pill Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background-color: var(--color-surface);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: rgba(17, 24, 39, 0.3);
  background-color: var(--color-bg-off);
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: scale(0.98);
}

/* Card — subtle hairline border */
.card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
}

/* ─── Reveal On Scroll (GPU Safe) ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Hero Slider Animations ──────────────────────────────── */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.hero-slide-bg.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide-bg.active img {
  transform: scale(1.05);
}

/* Grain texture overlay */
.hero-grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px;
  pointer-events: none;
}

/* Animated Hamburger lines */
.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: #ffffff;
  transform-origin: center;
  transition: transform 0.25s, opacity 0.25s, width 0.25s;
}
.hamburger-btn.is-active .line-1 {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-btn.is-active .line-2 {
  opacity: 0;
  width: 0;
}
.hamburger-btn.is-active .line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Horizontal scroll styling for card lists */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Card hover animation */
.unit-card-hover {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s;
}
.unit-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.12);
  border-color: var(--color-border-strong);
}
.unit-card-hover:hover .unit-card-img {
  transform: scale(1.06);
}
.unit-card-hover:hover .card-arrow {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: scale(1.08);
}
