/* ========================================
   WEBSITE TNI - NISKALA AKASHA YUDHA
   Tema dark modern + gold accent
   ======================================== */

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

:root {
  --dark:       #1a1f24;
  --dark-2:     #161a1f;
  --jingga:        #E8722C;   /* jingga baret Kopasgat (interaktif) */
  --jingga-soft:   #f0934f;
  --jingga-gelap:  #c75d1e;
  --navy:       #0F2557;
  --merah-tua:  #810606;
  --putih:      #F5F5F5;
  --abuterang:  #EEEEEA;
  --merah:      #C0392B;
  --emas-logo:      #BF9C3B;  /* emas asli dari logo (aksen premium) */
  --emas-logo-soft: #d4b358;
  --abu-tua:    #2A2A2A;
  --abu-gelap:  #1A1A1A;
  --abu-medium: #3A3A3A;
  --bg-dark:    #1b1f24;
  --font-h:     'Rajdhani', sans-serif;
  --font-b:     'Inter', sans-serif;
  --radius-sm:  8px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(15,37,87,0.06), 0 1px 2px rgba(15,37,87,0.04);
  --shadow-md:  0 4px 16px rgba(15,37,87,0.08);
  --shadow-lg:  0 12px 30px rgba(15,37,87,0.13);
  --shadow-hover: 0 18px 42px rgba(15,37,87,0.17);
  --ease:       cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast:     0.2s var(--ease);
  --t:          0.3s var(--ease);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-b); color: #20242e; background-color: #f4f6fb; background-image: repeating-linear-gradient(135deg, rgba(15,37,87,0.04) 0px, rgba(15,37,87,0.04) 1px, transparent 1px, transparent 13px); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(232,114,44,0.24); color: inherit; }
:focus-visible { outline: 2px solid var(--jingga); outline-offset: 2px; border-radius: 3px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5,
.nav-link, .hero-title, .section-heading, .logo-nama {
  font-family: var(--font-h);
}

/* ===== TOP BAR ===== */
.topbar { background: var(--jingga); color: #fff; font-size: 0.8rem; padding: 7px 0; border-bottom: none; }
.topbar .container { max-width: 100%; padding: 0 20px; }
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; }

/* ===== HEADER LOGO ===== */
.site-header { background: #0F2557; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.site-header .container { max-width: 100%; padding: 0 20px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.header-sosmed { display: flex; gap: 0.8rem; align-self: flex-start; margin-top: -8px; }
.header-sosmed-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.2s;
}
.header-sosmed-link .bi-youtube { color: #FF0000 !important; }
.header-sosmed-link .bi-instagram { color: #E4405F !important; }
.header-sosmed-link .bi-facebook { color: #1877F2 !important; }
.header-sosmed-link .bi-whatsapp { color: #25D366 !important; }
.header-sosmed-link:hover { background: rgba(255,255,255,0.18); }
.header-logo { display: inline-flex; align-items: center; }

.logo-placeholder-header { display: flex; align-items: center; gap: 20px; }
.logo-circle-big {
  width: 95px; height: 95px; border-radius: 50%;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--emas-logo);
  overflow: hidden;
}
.logo-circle-big img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 6px;
}
.logo-header-text { display: flex; flex-direction: column; text-align: left; }
.logo-nama { font-size: 1.4rem; font-weight: 700; color: var(--emas-logo); letter-spacing: 3px; text-transform: uppercase; }
.logo-sub { font-size: 0.75rem; color: #bbb; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-top: 2px; }

/* ===== NAVBAR ===== */
.navbar { background: #0a1a3f; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { display: flex; align-items: center; justify-content: center; min-height: 52px; position: relative; }
.nav-menu { display: flex; align-items: center; }
.nav-link { font-size: 0.88rem; letter-spacing: 1px; color: #eaeaea; padding: 16px 16px; display: block; transition: all 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: var(--abu-gelap); color: var(--jingga); }
.nav-link.active { border-bottom: 3px solid var(--jingga); }
.arrow { font-size: 0.65rem; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--abu-gelap); min-width: 220px;
  border-top: 3px solid var(--jingga);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease; z-index: 999;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 10px 18px; font-size: 0.83rem; color: #ccc; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.2s; }
.dropdown-menu li a:hover { background: rgba(201,168,76,0.12); color: var(--jingga); padding-left: 24px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; position: absolute; right: 20px; }
.hamburger span { width: 24px; height: 2px; background: #ddd; display: block; border-radius: 2px; transition: 0.3s; }

/* ===== HERO SLIDER ===== */
.hero { position: relative; height: 700px; min-height: 500px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; filter: blur(2px); transform: scale(1.06); }
.hero-slide::after { content: ''; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide.active { opacity: 1; }
.slide-1 { background-image: url('../images/hero1.jpg'); background-size: cover; background-position: center; }
.slide-2 { background-image: url('../images/hero2.jpg'); background-size: cover; background-position: center; }
.slide-3 { background-image: url('../images/hero3.jpg'); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(ellipse at center, rgba(10,20,45,0.25) 0%, rgba(8,14,28,0.78) 100%),
  linear-gradient(to bottom, rgba(10,25,55,0.45), rgba(8,14,28,0.85)); }
.hero::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 140px; background: linear-gradient(to bottom, rgba(0,0,0,0), #1c2127); z-index: 2; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 1rem; }
.hero-logo-wrap { margin-bottom: 1.25rem; }
.hero-logo-img { width: 110px; height: 110px; object-fit: contain; }
.hero-label { font-size: 0.72rem; letter-spacing: 6px; color: var(--emas-logo-soft); text-transform: uppercase; margin-bottom: 0.6rem; }
.hero-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; color: var(--putih); letter-spacing: 1px; text-transform: uppercase; line-height: 1.1; margin-bottom: 1rem; text-shadow: 0 2px 16px rgba(0,0,0,0.7); }
.hero-desc { color: rgba(245,245,245,0.82); font-size: 0.97rem; line-height: 1.75; margin-bottom: 0.75rem; max-width: 560px; }

/* Slider dots */
.slider-dots { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.3s; }
.dot.active { background: var(--jingga); }

/* ===== SECTION DIVIDER ===== */
.section-divider { background: #1f252c; padding: 18px 0; display: flex; align-items: center; justify-content: center; gap: 20px; }
.divider-line { width: 120px; height: 1px; background: rgba(255,255,255,0.08); }
.divider-center { display: flex; align-items: center; gap: 12px; }
.divider-text { color: var(--emas-logo); letter-spacing: 3px; font-size: .8rem; font-weight: 600; }

/* ===== SECTION HEADING ===== */
.section-heading { font-size: 1.65rem; font-weight: 700; color: var(--putih); letter-spacing: 0.5px; margin-bottom: 1.25rem; display: inline-block; }
.section-heading.center { display: block; text-align: center; margin-bottom: 2rem; position: relative; padding-bottom: 16px; }
.section-heading.center::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 52px; height: 3px; background: var(--jingga); border-radius: 3px; }
.section-heading.white { color: var(--putih); }

/* ===== SEJARAH ===== */
.section-sejarah { padding: 80px 0; background: #fff; }
.section-sejarah.alt { background: #f6f6f3; }
.sejarah-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3.5rem; align-items: center; }
.sejarah-text p { color: #444; font-size: 0.95rem; line-height: 1.85; margin-bottom: 1rem; }
.section-sejarah .section-heading { color: var(--abu-tua); }
.sejarah-foto { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.sejarah-foto .foto-wrap { aspect-ratio: 3/4; overflow: hidden; background: #f0f0f0; }
.sejarah-foto img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #fff; }
.foto-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 1.5rem; background: #f0f0f0; color: #888; }
.foto-icon { font-size: 3.5rem; opacity: 0.5; }
.foto-placeholder p { font-size: 0.85rem; font-weight: 600; }
.foto-caption { padding: 12px 8px 12px; text-align: center; background: #fff; }
.foto-caption h4 { font-size: 1rem; font-weight: 700; color: #222; margin: 0 0 3px 0; }
.foto-caption p { font-size: 0.82rem; color: #666; margin: 0 !important; }

/* Footer logo circle */
.footer-logo-circle { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-circle span { font-size: 0.78rem; font-weight: 700; color: var(--jingga); letter-spacing: 1px; }

/* Institusi logo image */
.institusi-item img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(20%); transition: filter 0.2s; }
.institusi-item:hover img { filter: grayscale(0%); }

/* ===== VISI MISI ===== */
.section-vismis { background: #20262d; padding: 65px 0; position: relative; }
.vismis-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 3.5rem; align-items: start; }
.vismis-divider { background: rgba(255,255,255,0.15); }
.vismis-card p { color: rgba(245,245,245,0.85); font-size: 0.95rem; line-height: 1.85; font-style: italic; }
.misi-list li { color: rgba(245,245,245,0.82); font-size: 0.92rem; padding: 0.5rem 0 0.5rem 1.2rem; position: relative; line-height: 1.6; border-bottom: 1px solid rgba(255,255,255,0.05); }
.misi-list li::before { content: '•'; position: absolute; left: 0; color: #888; }

/* ===== GALERI ===== */
.section-galeri { padding: 80px 0; background-color: #f4f6fb; background-image: repeating-linear-gradient(135deg, rgba(15,37,87,0.04) 0px, rgba(15,37,87,0.04) 1px, transparent 1px, transparent 13px); }
.section-galeri.alt { background: #f6f6f3; }
.section-galeri .section-heading.center { color: var(--abu-tua); }
.galeri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.galeri-item { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; position: relative; transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.2,0.8,0.2,1); }
.galeri-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,37,87,0.22); z-index: 2; }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1); }
.galeri-item:hover img { transform: scale(1.08); }
.galeri-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(232,114,44,0.16)); opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.galeri-item:hover::after { opacity: 1; }
.galeri-ph-home { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f0f0f0; border: 2px dashed #d5d5d5; border-radius: 4px; color: #999; transition: all 0.2s; }
.galeri-ph-home i { font-size: 2rem; opacity: 0.5; }
.section-galeri.alt .galeri-ph-home { background: #fff; border-color: #e0e0d8; }
.galeri-item:hover .galeri-ph-home { background: #f7f7f3; border-color: var(--jingga); color: var(--jingga); }

/* ===== SECTION LABEL ===== */
.section-label { font-size: 0.72rem; letter-spacing: 4px; color: var(--jingga); text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 600; }
.section-label.center { text-align: center; }

/* ===== INSTITUSI TERKAIT ===== */
.section-institusi { padding: 70px 0; background-color: #f4f6fb; background-image: repeating-linear-gradient(135deg, rgba(15,37,87,0.04) 0px, rgba(15,37,87,0.04) 1px, transparent 1px, transparent 13px); border-top: 1px solid #e5e5e0; }
.section-institusi .section-heading.center { color: var(--abu-tua); }
.institusi-grid { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.institusi-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 1.3rem 1.5rem; border: 1px solid #eee; border-radius: var(--radius); transition: all var(--t); text-align: center; min-width: 110px; box-shadow: var(--shadow-sm); background: #fff; }
.institusi-item:hover { border-color: rgba(232,114,44,0.3); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.inst-logo { font-size: 1.1rem; font-weight: 700; color: var(--abu-tua); letter-spacing: 1px; }
.institusi-item:hover .inst-logo { color: var(--jingga-gelap); }
.institusi-item span { font-size: 0.7rem; color: #999; }

/* ===== FOOTER ===== */
.footer { background: #0a1a3f; color: #ccc; padding: 50px 0 0; border-top: 3px solid var(--jingga); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr 1.5fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-logo-nama { display: block; font-size: 0.88rem; color: var(--emas-logo); letter-spacing: 1.5px; text-transform: uppercase; }
.footer-logo-sub { display: block; font-size: 0.7rem; color: #888; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.footer-tagline { font-size: 0.82rem; color: #888; line-height: 1.7; margin-bottom: 1rem; }
.footer-sosmed { display: flex; gap: 0.6rem; }
.sosmed-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: all 0.2s; }
.sosmed-icon .bi-youtube { color: #FF0000 !important; }
.sosmed-icon .bi-instagram { color: #E4405F !important; }
.sosmed-icon .bi-facebook { color: #1877F2 !important; }
.sosmed-icon .bi-whatsapp { color: #25D366 !important; }
.sosmed-icon:hover { background: rgba(255,255,255,0.18); }
.footer-heading { font-size: 0.85rem; letter-spacing: 2px; color: var(--emas-logo-soft); text-transform: uppercase; margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(191,156,59,0.3); }
.footer-menu li { margin-bottom: 0.5rem; }
.footer-menu a { font-size: 0.85rem; color: #999; transition: all 0.2s; display: flex; align-items: center; gap: 4px; }
.footer-menu a::before { content: '›'; color: var(--jingga); opacity: 0; transition: 0.2s; }
.footer-menu a:hover { color: var(--jingga); padding-left: 6px; }
.footer-menu a:hover::before { opacity: 1; }
.footer-kontak li { font-size: 0.82rem; color: #999; margin-bottom: 0.75rem; line-height: 1.6; display: flex; align-items: flex-start; gap: 10px; }
.footer-icon { font-size: 14px; color: var(--jingga); width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(232,114,44,0.4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.visitor-box { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius); padding: 1rem; }
.visitor-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: #888; padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.visitor-row:last-child { border-bottom: none; }
.visitor-row span:last-child { font-weight: 700; color: var(--jingga); }
.footer-bottom { border-top: 1px solid rgba(201,168,76,0.15); padding: 1.25rem 20px; text-align: center; font-size: 0.78rem; color: #666; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sejarah-grid { grid-template-columns: 1fr 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .galeri-grid { grid-template-columns: repeat(3, 1fr); }
  .hamburger { display: flex; }
  .nav-container { justify-content: flex-start; padding-left: 16px; }
  .nav-menu { display: none; position: fixed; top: 52px; left: 0; right: 0; bottom: 0; background: var(--abu-gelap); flex-direction: column; align-items: stretch; overflow-y: auto; z-index: 998; padding-bottom: 2rem; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-link.active { border-bottom: 1px solid rgba(255,255,255,0.05); border-left: 3px solid var(--jingga); }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; border-left: 3px solid var(--jingga); margin-left: 20px; min-width: auto; }
}
@media (max-width: 768px) {
  .site-header { padding: 14px 0; }
  .site-header .container { padding: 0 16px; }
  .logo-circle-big { width: 62px; height: 62px; border: 2px solid var(--emas-logo); }
  .logo-placeholder-header { gap: 13px; }
  .logo-nama { font-size: 1.15rem; letter-spacing: 1.2px; line-height: 1.2; }
  .logo-sub { font-size: 0.65rem; letter-spacing: 1px; }
  .header-sosmed-link { width: 28px; height: 28px; font-size: 0.75rem; }
  .header-sosmed { gap: 0.5rem; align-self: center; margin-top: 0; }
  .hero { height: 520px; min-height: 480px; }
  .hero-slide { background-position: center center; }
  .hero-slide::after { background-size: contain; transform: scale(1.45); }
  .hero-logo-img { width: 80px; height: 80px; }
  .hero-logo-wrap { margin-bottom: 0.75rem; }
  .hero-label { letter-spacing: 4px; font-size: 0.65rem; }
  .hero-desc { font-size: 0.85rem; line-height: 1.6; }
  .slider-dots { bottom: 40px; }
  .sejarah-grid { grid-template-columns: 1fr; }
  .sejarah-foto { max-width: 340px; margin: 0 auto; }
  .vismis-grid { grid-template-columns: 1fr; gap: 2rem; }
  .vismis-divider { display: none; }
  .galeri-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .divider-line { width: 60px; }
  .section-sejarah, .section-galeri { padding: 56px 0; }
  .section-institusi { padding: 48px 0; }
  .section-vismis { padding: 48px 0; }
  .section-quickmenu { padding: 32px 0 8px; }
  .section-heading { font-size: 1.5rem; }
  .dot { width: 14px; height: 14px; }
  .slider-dots { gap: 12px; }
}
@media (max-width: 480px) {
  .hero { height: 450px; min-height: 450px; }
  .hero-title { font-size: 1.45rem; }
  .section-heading { font-size: 1.35rem; }
  .section-sejarah, .section-galeri { padding: 44px 0; }
  .site-header .container { padding: 0 12px; }
  .logo-circle-big { width: 54px; height: 54px; }
  .logo-placeholder-header { gap: 10px; }
  .logo-nama { font-size: 0.92rem; letter-spacing: 0.5px; }
  .logo-sub { font-size: 0.58rem; }
  .header-sosmed { gap: 0.4rem; }
  .header-sosmed-link { width: 26px; height: 26px; font-size: 0.72rem; }
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.galeri-item.reveal { transition-delay: 0.05s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== SCROLL TO TOP ===== */
#scrollTopBtn { position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--jingga); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; z-index: 1400; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; }
#scrollTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTopBtn:hover { background: var(--jingga-gelap); transform: translateY(-3px); }

/* ===== QUICK MENU (BERANDA) ===== */
.section-quickmenu { padding: 40px 0 10px; background-color: #f4f6fb; background-image: repeating-linear-gradient(135deg, rgba(15,37,87,0.04) 0px, rgba(15,37,87,0.04) 1px, transparent 1px, transparent 13px); position: relative; z-index: 2; }
.quickmenu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.quickmenu-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 2rem 1rem; background: #fff; border: 1px solid #e9ecf3; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none; transition: all var(--t); border-bottom: 3px solid transparent;
}
.quickmenu-item:hover { background: var(--navy); border-color: var(--navy); border-bottom-color: var(--jingga); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.quickmenu-item i { font-size: 1.8rem; color: var(--jingga); transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1); }
.quickmenu-item:hover i { transform: scale(1.15); }
.quickmenu-item span {
  font-family: var(--font-h); font-weight: 600; font-size: 0.92rem;
  color: var(--abu-tua); letter-spacing: 0.5px; text-transform: uppercase;
}
.quickmenu-item:hover span { color: #fff; }

@media (max-width: 768px) {
  .quickmenu-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== FOCUS STATE — aksesibilitas keyboard (Tab) ===== */
/* Muncul hanya saat navigasi keyboard, tidak saat klik mouse. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--jingga, #E8722C);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Elemen di atas latar gelap (navbar, footer) — outline putih agar terlihat */
.navbar a:focus-visible,
.footer a:focus-visible,
.topbar a:focus-visible,
.header-sosmed-link:focus-visible,
.footer-sosmed-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
/* Lompat ke konten utama — muncul saat Tab pertama kali */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--jingga, #E8722C); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0;
  font-family: 'Inter', sans-serif; font-size: 0.86rem; font-weight: 600;
}
.skip-link:focus { left: 0; }


/* ===== TOMBOL KEMBALI KE WEBSITE DIVISI (resimen) =====
   Desain identik dengan tombol PIA (ukuran, radius, shadow, animasi),
   hanya warna mengikuti jingga baret. Posisi kiri bawah karena pojok
   kanan sudah dipakai tombol scroll-to-top. */
.float-back {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  right: auto; width: auto;
  z-index: 1500;
  background: var(--jingga-gelap, #c75d1e);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px; border-radius: 30px;
  min-height: 44px;                       /* target sentuh nyaman (WCAG 2.5.5) */
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  text-decoration: none;
  transition: all 0.25s ease;
}
.float-back:hover {
  background: var(--jingga, #E8722C);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  border-color: #fff;
}
.float-back:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .float-back {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    left: calc(14px + env(safe-area-inset-left, 0px));
    right: auto; width: auto;
    font-size: 0.8rem; padding: 10px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .float-back { transition: none; }
  .float-back:hover { transform: none; }
}


/* ===== TOMBOL KEMBALI (resimen): transparansi halus — sama dengan PIA ===== */
.float-back {
  opacity: 0.9;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.float-back:hover,
.float-back:focus-visible,
.float-back:active { opacity: 1; }

@media (hover: none) {
  .float-back { opacity: 0.94; }
}


/* ===== TOMBOL KEMBALI (resimen) — perilaku MOBILE, identik dengan PIA ===== */
@media (max-width: 600px) {
  .float-back {
    width: 46px; min-width: 46px; height: 46px; min-height: 46px;
    padding: 0; border-radius: 50%;
    justify-content: center;
    font-size: 1.05rem;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
  }
  .float-back .fb-teks { display: none; }
  .float-back i { margin: 0; }
}

/* Sembunyikan saat menu hamburger terbuka */
.nav-menu.open ~ .float-back,
body:has(.nav-menu.open) .float-back {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}


/* Pengaman untuk peramban yang belum mendukung :has() */
body.menu-terbuka .float-back {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}


/* ===== TOMBOL KEMBALI — bentuk MOBILE =====
   Pil ringkas berteks "Divisi": tetap jelas maksudnya, tapi jauh lebih kecil
   daripada teks penuh sehingga tidak menutupi konten. */
.float-back .fb-teks-mini { display: none; }       /* di desktop: sembunyi */
@media (max-width: 600px) {
  .float-back {
    width: auto; min-width: 0;
    height: 44px; min-height: 44px;
    padding: 0 15px; border-radius: 30px;
    gap: 6px;
    font-size: 0.82rem;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
  }
  .float-back .fb-teks { display: none; }           /* "Website Divisi" → sembunyi */
  .float-back .fb-teks-mini { display: inline; }    /* "Divisi" → tampil */
}


/* Saat pembaca sampai footer (mobile): tombol "Kembali ke Divisi" mundur,
   digantikan tombol "naik ke atas". Fungsinya tidak hilang — di footer
   sudah tersedia tautan "← Website Divisi" pada menu. */
@media (max-width: 600px) {
  body.di-footer .float-back {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
  }
}
