/* =========================================================
   IKA KOPMA — STYLE.CSS
   -----------------------------------------------------------
   Daftar isi:
   1.  Reset & Variabel Warna/Font
   2.  Utility (container, judul section, tombol)
   3.  Navbar
   4.  Hero / Beranda
   5.  Tentang Kami
   6.  Program Kerja
   7.  Struktur Organisasi
   8.  Kontak
   9.  Footer
   10. Tombol Back to Top
   11. Mode (tablet & desktop)
   12. Animasi
========================================================= */


/* ---------------------------------------------------------
   1. RESET & VARIABEL
--------------------------------------------------------- */
:root {
  /* Warna utama, diambil dari logo IKA KOPMA */
  --navy: #17335E;         /* biru dongker utama: tulisan, tombol, navbar */
  --navy-deep: #0E1F3D;    /* biru dongker lebih gelap: background footer */
  --paper: #F6F7FB;        /* putih keabuan, untuk selang-seling background */
  --white: #FFFFFF;
  --ink: #44506A;          /* warna teks paragraf (bukan hitam pekat) */
  --ink-light: #5C6884;    /* teks sekunder / lebih pudar */
  --border: #E4E8F1;

  /* Gradasi pelangi, diambil dari cincin pada logo.
     Sengaja HANYA dipakai di beberapa tempat kecil saja
     (garis tipis, glow, hover) supaya tidak "ramai". */
  --gradient-brand: linear-gradient(90deg, #E4572E, #F5A623, #F7C948, #3EB489, #2D8CF0, #7B5EA7);

  /* Warna aksen tunggal untuk tiap kartu Program Kerja & ikon */
  --accent-red: #E4572E;
  --accent-orange: #F5A623;
  --accent-teal: #2D8CF0;
  --accent-violet: #7B5EA7;

  /* Font: Lora untuk judul, Inter untuk teks biasa */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Ukuran umum yang dipakai berulang */
  --radius: 14px;
  --container-width: 1140px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth; /* klik menu = scroll halus ke section terkait */
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

/* Garis fokus yang jelas saat navigasi pakai keyboard (Tab) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   2. UTILITY
--------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

.section--alt {
  background: var(--paper);
}

.section__title {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  margin-bottom: 16px;
}

.section__title--light {
  color: var(--white);
}

.section__intro {
  max-width: 60ch; /* biar panjang baris teks tetap nyaman dibaca */
  color: var(--ink-light);
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(23, 51, 94, 0.45);
}

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--block {
  width: 100%;
}


/* ---------------------------------------------------------
   3. NAVBAR
--------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

/* Class ini ditambahkan lewat script.js saat halaman mulai discroll */
.navbar--scrolled {
  box-shadow: 0 4px 20px rgba(23, 51, 94, 0.08);
  border-bottom-color: var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(23, 51, 94, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.logo-badge--sm {
  width: 40px;
  height: 40px;
}

/* Menu navigasi: TAMPILAN HP (default / mobile-first).
   Menu disembunyikan dulu, nanti "slide down" saat hamburger diklik. */
.navbar__nav {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 24px -12px rgba(23, 51, 94, 0.12);

  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

/* Class ini ditambahkan script.js saat tombol hamburger diklik */
.navbar__nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-link {
  position: relative;
  padding: 14px 4px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.navbar__nav .nav-link:last-child {
  border-bottom: none;
}

.nav-link--cta {
  font-weight: 700;
}

/* Menandai menu yang sesuai dengan section yang sedang dilihat
   (ditambahkan otomatis oleh script.js saat pengguna scroll) */
.nav-link.is-active-link {
  color: var(--accent-teal);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Garis hamburger berubah jadi tanda silang (X) saat menu terbuka */
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------------------------------------------------------
   4. HERO / BERANDA
--------------------------------------------------------- */
.hero {
  padding-top: 160px;
  padding-bottom: 96px;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column-reverse; /* di HP: logo di atas, teks di bawah */
  align-items: center;
  gap: 56px;
  text-align: center;
}

.hero__text {
  max-width: 640px;
}

.hero__title {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem);
  margin-bottom: 20px;
}

.hero__subtitle {
  color: var(--ink-light);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #E4572E, #F5A623, #F7C948, #3EB489, #2D8CF0, #7B5EA7, #E4572E);
  filter: blur(50px);
  opacity: 0.4;
}

.hero__logo-plate {
  position: relative;
  width: 220px;
  height: 220px;
  background: var(--white);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 24px 50px -18px rgba(23, 51, 94, 0.4);
}

.hero__logo-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}


/* ---------------------------------------------------------
   5. TENTANG KAMI
--------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr; /* satu kolom di HP */
  gap: 48px;
}

.about__story p {
  margin-bottom: 16px;
  max-width: 65ch;
}

.about__panel {
  display: grid;
  gap: 24px;
}

.about__block {
  background: var(--paper);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px;
}

.about__block h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.about__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}


/* ---------------------------------------------------------
   6. PROGRAM KERJA
--------------------------------------------------------- */
.program-grid {
  display: grid;
  grid-template-columns: 1fr; /* satu kolom di HP */
  gap: 24px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-teal);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -18px rgba(23, 51, 94, 0.25);
}

/* Tiap kartu punya warna aksen sendiri, diambil dari palet pelangi logo */
.program-card--red    { border-top-color: var(--accent-red); }
.program-card--orange { border-top-color: var(--accent-orange); }
.program-card--teal   { border-top-color: var(--accent-teal); }
.program-card--violet { border-top-color: var(--accent-violet); }

.program-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.program-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.program-card p {
  color: var(--ink-light);
  font-size: 0.95rem;
}


/* ---------------------------------------------------------
   7. STRUKTUR ORGANISASI
--------------------------------------------------------- */
.struktur-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.struktur-row--top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
  margin-inline: auto;
}

.struktur-row--staff {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-card {
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 16px;
  transition: transform var(--transition);
}

.person-card:hover {
  transform: translateY(-4px);
}

.person-card__avatar {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Avatar untuk Ketua Umum & Wakil Ketua dibuat sedikit lebih besar
   dan pakai gradasi pelangi, supaya terlihat sebagai pimpinan utama */
.person-card--lead .person-card__avatar {
  width: 76px;
  height: 76px;
  background: var(--gradient-brand);
  color: var(--navy-deep);
}

.person-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.person-card p {
  color: var(--ink-light);
  font-size: 0.9rem;
}


/* ---------------------------------------------------------
   8. KONTAK
--------------------------------------------------------- */
.kontak {
  display: grid;
  grid-template-columns: 1fr; /* satu kolom di HP */
  gap: 40px;
}

.kontak__info {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.kontak__info p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}

.kontak__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.kontak__list i {
  color: var(--accent-orange);
  width: 20px;
}

.kontak__social {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.kontak__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.kontak__social a:hover {
  background: var(--accent-orange);
  transform: translateY(-3px);
}

.kontak__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  outline: none;
}

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--accent-teal);
  min-height: 1.2em;
}


/* ---------------------------------------------------------
   9. FOOTER
--------------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
}

/* Garis gradasi pelangi tipis, menggemakan warna cincin pada logo.
   Dipakai cuma di 2 tempat di seluruh halaman: sini dan hero. */
.footer::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--gradient-brand);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-block: 56px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent-orange);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer__social a:hover {
  background: var(--accent-orange);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}


/* ---------------------------------------------------------
   10. TOMBOL BACK TO TOP
--------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 10px 20px -8px rgba(23, 51, 94, 0.5);

  /* Disembunyikan dulu, dimunculkan lewat script.js saat discroll */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* ---------------------------------------------------------
   11. RESPONSIVE — TABLET & DESKTOP
   Gaya di atas adalah tampilan HP (mobile-first). Mulai dari
   sini, tampilan diperlebar/diubah untuk layar yang lebih besar.
--------------------------------------------------------- */
@media (min-width: 768px) {

  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero__subtitle {
    margin-inline: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .about {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

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

  .struktur-row--staff {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kontak {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__brand {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 1024px) {

  /* Di layar besar, menu navigasi tampil mendatar seperti biasa
     dan tombol hamburger disembunyikan */
  .navbar__nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;

    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    padding: 6px 2px;
    border-bottom: none;
  }

  /* Garis bawah gradasi pelangi saat menu di-hover */
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transition: transform var(--transition);
  }

  .nav-link:hover::after {
    transform: scaleX(1);
  }

  .nav-link--cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 999px;
  }

  .nav-link--cta::after {
    display: none;
  }

  .nav-link--cta:hover {
    opacity: 0.9;
  }

  .hamburger {
    display: none;
  }
}


/* ---------------------------------------------------------
   12. ANIMASI
   Cuma ada SATU momen animasi otomatis: teks & visual di
   Beranda muncul pelan-pelan saat halaman pertama dibuka.
   Animasi lainnya (hover tombol, buka menu, dst) baru jalan
   kalau pengunjung benar-benar berinteraksi.
--------------------------------------------------------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title,
.hero__subtitle,
.hero__actions {
  animation: fadeSlideUp 0.7s ease both;
}

.hero__subtitle { animation-delay: 0.12s; }
.hero__actions  { animation-delay: 0.24s; }

.hero__visual {
  animation: fadeSlideUp 0.8s ease 0.1s both;
}

/* Menghormati pengguna yang mengaktifkan "reduce motion" di sistemnya */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
