/* =========================================
   SMK PGRI Larangan - Landing Page Styles
   Tema minimal terinspirasi vuejs.org
========================================= */

:root {
  --primary: #42B883;
  --primary-dark: #2F9968;
  --primary-light: #64D8A6;
  --primary-tint: #EDFAF4;
  --gray-fill: #F1F3F5;
  --gray-fill-dark: #E4E7EB;
  --secondary: #2C3E50;
  --text-dark: #2C3E50;
  --text-muted: #6B7785;
  --surface: #ffffff;
  --bg-light: #F8F9FA;
  --white: #ffffff;
  --border: #EAECEF;
  --grid-line: rgba(44, 62, 80, 0.055);
  --radius: 8px;
  --shadow: 0 6px 18px rgba(44, 62, 80, 0.06);
  --shadow-lg: 0 16px 36px rgba(44, 62, 80, 0.1);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gray-fill: #171D24;
    --gray-fill-dark: #1F262D;
    --secondary: #E6EDF3;
    --text-dark: #E6EDF3;
    --text-muted: #9BA6B2;
    --surface: #0D1117;
    --bg-light: #10151C;
    --border: #242C34;
    --grid-line: rgba(255, 255, 255, 0.06);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --gray-fill: #171D24;
  --gray-fill-dark: #1F262D;
  --secondary: #E6EDF3;
  --text-dark: #E6EDF3;
  --text-muted: #9BA6B2;
  --surface: #0D1117;
  --bg-light: #10151C;
  --border: #242C34;
  --grid-line: rgba(255, 255, 255, 0.06);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--surface);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg-light); }

.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.section-desc { color: var(--text-muted); font-size: 1rem; }
.section-desc.center { margin: 0 auto; }

/* ===== ICONS (Material Symbols) ===== */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); color: var(--secondary); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-gray { background: var(--gray-fill); color: var(--secondary); }
.btn-gray:hover { background: var(--gray-fill-dark); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--primary-tint); }
.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--primary);
  border-bottom: 1px solid var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 500;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.brand-title { font-family: var(--font-heading); font-weight: 700; font-size: 0.98rem; color: var(--secondary); }
.navbar .brand-title { color: var(--white); }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a { font-weight: 500; font-size: 0.92rem; color: rgba(255,255,255,0.9); }
.nav-menu a:not(.nav-cta):hover { color: var(--white); }
.nav-menu a.nav-cta { padding: 8px 18px; font-size: 0.88rem; background: var(--white); color: var(--primary); }
.nav-menu a.nav-cta:hover { background: var(--primary-tint); color: var(--primary-dark); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.theme-toggle:hover { background: rgba(255,255,255,0.28); }
.theme-toggle .material-symbols-outlined { font-size: 20px; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: inline-block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: inline-block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  background: var(--surface);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 25%, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 25%, black 40%, transparent 80%);
  z-index: 0;
}
.hero-orb {
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(66,184,131,0.22) 0%, rgba(100,126,255,0.12) 45%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--secondary);
  padding: 6px 16px 6px 6px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-eyebrow:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.hero-eyebrow .eyebrow-tag {
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.hero-eyebrow .material-symbols-outlined { font-size: 16px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 8px;
  color: var(--secondary);
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #09e78e 0%, #0d77f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin: 20px auto 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }
.hero-media { position: relative; z-index: 1; max-width: 900px; margin: 56px auto 0; padding: 0 24px; }
.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ===== FEATURES ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--gray-fill);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 18px;
}
.feature-icon .material-symbols-outlined { font-size: 24px; color: var(--primary-dark); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--secondary); }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== JURUSAN ===== */
.jurusan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.jurusan-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jurusan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.jurusan-img { height: 170px; overflow: hidden; }
.jurusan-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.jurusan-card:hover .jurusan-img img { transform: scale(1.06); }
.jurusan-body { padding: 24px; }
.jurusan-icon { font-size: 26px; color: var(--primary); }
.jurusan-body h3 { font-size: 1.05rem; margin: 10px 0 8px; color: var(--secondary); }
.jurusan-body p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== PPDB ===== */
.ppdb { background: var(--primary); color: var(--white); padding: 80px 0; text-align: center; }
.ppdb-inner { max-width: 560px; margin: 0 auto; }
.ppdb h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; }
.ppdb p { color: #E3EFF9; margin-bottom: 28px; }

/* ===== KONTAK ===== */
.kontak-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.kontak-item { display: flex; gap: 14px; align-items: flex-start; }
.kontak-icon {
  width: 44px; height: 44px;
  background: var(--primary-tint);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kontak-icon .material-symbols-outlined { font-size: 22px; color: var(--primary-dark); }
.kontak-item strong { display: block; color: var(--secondary); margin-bottom: 4px; font-size: 0.94rem; }
.kontak-item p { color: var(--text-muted); font-size: 0.88rem; }

/* ===== WHATSAPP FAB ===== */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 600;
  transition: transform 0.2s ease;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab .material-symbols-outlined { font-size: 30px; color: var(--white); font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

@media (max-width: 480px) {
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-fab .material-symbols-outlined { font-size: 26px; }
}

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ===== POST DETAIL ===== */
.post-detail { max-width: 760px; margin: 0 auto; }
.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 20px 0 30px; }
.post-content { color: var(--text-dark); font-size: 1rem; }
.post-content p { margin-bottom: 16px; }
.post-content h2, .post-content h3, .post-content h4 { margin: 26px 0 12px; color: var(--secondary); }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote { border-left: 3px solid var(--primary); padding-left: 16px; color: var(--text-muted); margin: 16px 0; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content img { max-width: 100%; border-radius: 10px; margin: 16px 0; }

.galeri-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.galeri-detail-item { border-radius: 10px; overflow: hidden; height: 200px; }
.galeri-detail-item img { width: 100%; height: 100%; object-fit: cover; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 400;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; }
  .nav-menu a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text-dark); }
  .nav-menu a:not(.nav-cta):hover { color: var(--primary); }
  .nav-cta { border: none; margin-top: 10px; text-align: center; }
  .hamburger { display: flex; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .jurusan-grid { grid-template-columns: 1fr; }
  .kontak-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .galeri-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 0; }
  .hero-actions { margin-bottom: 40px; }
}
