/* ============================================================
   shared.css — Supet Website Shared Styles
   Digunakan oleh: index.html, artikel.html, direktori.html,
                   konten.html, produk.html, store.html
   ============================================================ */

/* --- Self-hosted Fonts --- */
@font-face { font-family:'Aileron'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/Aileron-Regular.woff') format('woff'); }
@font-face { font-family:'Aileron'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/Aileron-Bold.woff') format('woff'); }
@font-face { font-family:'Aileron'; font-style:normal; font-weight:900; font-display:swap; src:url('fonts/Aileron-Black.woff') format('woff'); }
@font-face { font-family:'Arimo'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/Arimo-Regular.woff2') format('woff2'); }
@font-face { font-family:'Arimo'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/Arimo-Bold.woff2') format('woff2'); }
@font-face { font-family:'Arimo'; font-style:italic; font-weight:400; font-display:swap; src:url('fonts/Arimo-Italic.woff2') format('woff2'); }
@font-face { font-family:'Space Mono'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/SpaceMono-Regular.woff2') format('woff2'); }
@font-face { font-family:'Space Mono'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/SpaceMono-Bold.woff2') format('woff2'); }

/* --- CSS Variables --- */
:root {
  --yellow:  #F7C948;
  --red:     #D62828;
  --black:   #111;
  --cyan:    #00B4D8;
  --green:   #2D6A4F;
  --orange:  #E85D04;
  --cream:   #F5F0E8;
  --gray:    #888;
}

/* --- Navigation --- */
nav {
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 3px solid var(--black);
  transition: padding .3s;
}

/* --- Hamburger Button --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 600;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--yellow);
  z-index: 499;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  border-bottom: 3px solid var(--black);
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  margin-bottom: 2rem;
}
.mobile-menu ul li a {
  font-family: 'Aileron', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -2px;
  color: var(--black);
  text-decoration: none;
  line-height: 1.15;
  display: block;
  padding: .2rem 0;
  transition: color .15s;
}
.mobile-menu ul li a:hover { color: var(--red); }
.mobile-menu .mob-cta {
  font-family: 'Aileron', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  background: var(--black);
  color: var(--yellow);
  padding: .85rem 2.5rem;
  text-decoration: none;
  border: 2px solid var(--black);
  transition: all .2s;
  display: inline-block;
  margin-top: .5rem;
}
.mobile-menu .mob-cta:hover { background: var(--red); border-color: var(--red); }

/* --- Responsive: show hamburger on mobile --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* --- Hide custom cursor on touch devices --- */
@media (pointer: coarse) {
  .cursor, .cursor-ring { display: none !important; }
  body { cursor: auto !important; }
}

/* --- Angkot Loader (shared loading animation) --- */
.angkot-loader { padding:2.5rem 2rem; display:flex; flex-direction:column; align-items:center; gap:1.25rem; }
.angkot-road { width:100%; position:relative; height:28px; }
.angkot-road::before { content:''; position:absolute; bottom:4px; left:0; right:0; height:2px; background:repeating-linear-gradient(90deg, currentColor 0, currentColor 14px, transparent 14px, transparent 28px); opacity:.25; }
.angkot-bus { position:absolute; bottom:0; font-size:1.75rem; line-height:1; animation:angkot-drive 2s linear infinite; }
@keyframes angkot-drive { 0% { left:-50px } 100% { left:calc(100% + 10px) } }
.angkot-lbl { font-family:'Space Mono',monospace; font-size:.55rem; letter-spacing:2px; text-transform:uppercase; opacity:.35; }
.angkot-loader.on-dark .angkot-lbl { color:#fff; }
.angkot-loader.on-dark .angkot-road::before { color:#fff; }
.angkot-loader.on-light .angkot-road { color:var(--black); }
