/* ============================================================
   RIM Indonesia — Global CSS
   Shared across all pages: tokens, reset, header, footer,
   lightbox, breadcrumb, reveal animations
   ============================================================ */

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --rim-black:      #0E0E0E;
  --rim-amber:      #F5B800;
  --rim-amber-dark: #D19A00;
  --rim-gray:       #8A8A8A;
  --rim-gray-light: #C4C4C4;
  --rim-off-white:  #F5F5F2;
  --rim-white:      #FFFFFF;
  --font-display:   'Archivo Black', sans-serif;
  --font-body:      'Inter', sans-serif;
  --header-height:  72px;
  --container:      1280px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--rim-white);
  background: var(--rim-black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ────────────────────────────────────────────── */
.container         { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 1200px; }

/* ── SHARED TYPOGRAPHY ────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.section-eyebrow::before { content: ''; width: 32px; height: 2px; }
.section-eyebrow--amber { color: var(--rim-amber-dark); }
.section-eyebrow--amber::before { background: var(--rim-amber-dark); }
.section-eyebrow--dark { color: var(--rim-amber); }
.section-eyebrow--dark::before { background: var(--rim-amber); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 48px);
  line-height: 1.08; letter-spacing: -0.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.accent-amber      { color: var(--rim-amber); }
.accent-amber-dark { color: var(--rim-amber-dark); }
.section-sub { font-size: 15px; line-height: 1.75; max-width: 520px; }
.section-sub--light { color: var(--rim-gray); }
.section-sub--dark  { color: var(--rim-gray-light); }

/* ── HEADER ───────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height); z-index: 100;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}
.header.is-scrolled {
  background-color: rgba(14,14,14,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 64px; width: auto; }

.nav { display: none; align-items: center; gap: 38px; margin-left: auto; }
.nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--rim-white);
  position: relative; padding: 8px 0; transition: color 0.2s ease;
}
.nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--rim-amber);
  transition: width 0.3s ease;
}
.nav a:hover        { color: var(--rim-amber); }
.nav a:hover::after { width: 100%; }
.nav a.active        { color: var(--rim-amber); }
.nav a.active::after { width: 100%; }

.nav-search {
  display: none; background: none; border: none;
  color: var(--rim-white); cursor: pointer;
  padding: 8px; margin-left: 12px; transition: color 0.2s ease;
}
.nav-search:hover { color: var(--rim-amber); }
.nav-search svg { width: 18px; height: 18px; display: block; }

.hamburger {
  background: none; border: none;
  color: var(--rim-white); cursor: pointer; padding: 8px;
}
.hamburger svg { width: 28px; height: 28px; }

/* ── BREADCRUMB BAR ───────────────────────────────────────── */
.breadcrumb-bar {
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0;
  margin-top: var(--header-height);
}
.breadcrumb-list {
  list-style: none; display: flex; align-items: center;
  flex-wrap: wrap; gap: 4px;
}
.breadcrumb-item { display: flex; align-items: center; gap: 4px; }
.breadcrumb-item a { font-size: 11px; color: rgba(255,255,255,0.35); transition: color 0.2s ease; }
.breadcrumb-item a:hover { color: rgba(255,255,255,0.65); }
.breadcrumb-item--active span { font-size: 11px; color: var(--rim-amber); }
.breadcrumb-sep { font-size: 10px; color: rgba(255,255,255,0.2); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--rim-black); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo img { height: 52px; width: auto; }
.footer-brand-desc {
  font-size: 14px; color: var(--rim-gray);
  line-height: 1.8; margin-top: 18px; max-width: 320px;
}
.footer-social { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.footer-social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--rim-gray);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.footer-social-link:active { color: var(--rim-amber); border-color: var(--rim-amber); background: rgba(245,184,0,0.06); }
.footer-social-link svg { width: 16px; height: 16px; }

.footer-col-title {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--rim-amber); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-links a { font-size: 14px; color: var(--rim-gray); transition: color 0.2s ease; }
.footer-links a:active { color: var(--rim-white); }

.footer-contact-item { display: flex; align-items: center; margin-bottom: 14px; }
.footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact-address {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--rim-gray);
  line-height: 1.6; margin-bottom: 16px;
}
.footer-contact-icon { width: 18px; height: 18px; color: var(--rim-amber); flex-shrink: 0; margin-top: 2px; }
.footer-icon-btn {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--rim-gray); margin-right: 10px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.footer-icon-btn:active { color: var(--rim-amber); border-color: var(--rim-amber); background: rgba(245,184,0,0.06); }
.footer-icon-btn svg { width: 18px; height: 18px; }




.footer-bottom {
  padding: 24px 0; display: flex; flex-direction: column;
  gap: 6px; font-size: 12px; color: rgba(138,138,138,0.6); text-align: center;
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; background: rgba(14,14,14,0.94);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease; cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 100%; max-height: 92vh; width: auto; object-fit: contain;
  cursor: default; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.96); transition: transform 0.35s ease;
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--rim-white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 2px;
}
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--rim-gray-light); font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; text-align: center; white-space: nowrap;
}
body.lb-locked { overflow: hidden; }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ── MOBILE DRAWER ────────────────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.is-open { opacity: 1; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #141414;
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 200;
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 0 0 32px;
  overflow-y: auto;
}
.mobile-drawer.is-open { display: flex; transform: translateX(0); }

.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.mobile-drawer-close {
  background: none; border: none; color: var(--rim-gray);
  cursor: pointer; padding: 6px;
  transition: color 0.2s ease;
}
.mobile-drawer-close:hover { color: var(--rim-white); }
.mobile-drawer-close svg { width: 22px; height: 22px; display: block; }

.mobile-drawer-links {
  list-style: none; flex: 1;
  display: flex; flex-direction: column;
  padding: 12px 0;
}
.mobile-drawer-links a {
  display: block;
  padding: 14px 24px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--rim-gray-light);
  border-left: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  color: var(--rim-amber);
  border-left-color: var(--rim-amber);
  background: rgba(245,184,0,0.04);
}

.mobile-drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 8px 20px 0;
  padding: 14px 20px;
  background: var(--rim-amber);
  color: var(--rim-black);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.mobile-drawer-cta:hover { background: var(--rim-amber-dark); }

body.drawer-open { overflow: hidden; }

/* ── RESPONSIVE: TABLET 640px+ ───────────────────────────── */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .footer { padding: 72px 0 0; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; gap: 48px 40px; padding-bottom: 56px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; padding: 28px 0; }
}

/* ── RESPONSIVE: DESKTOP 1024px+ ────────────────────────── */
@media (min-width: 1024px) {
  :root { --header-height: 88px; }
  .container { padding: 0 32px; }
  .nav         { display: flex; }
  .nav-search  { display: block; }
  .hamburger   { display: none; }
  .logo img    { height: 72px; }

  .footer { padding: 80px 0 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 60px; }
  .footer-logo img { height: 56px; }
  .footer-gmap { height: 160px; margin-top: 24px; }

  /* Desktop hover states */
  .footer-social-link:hover { color: var(--rim-amber); border-color: var(--rim-amber); background: rgba(245,184,0,0.06); }
  .footer-icon-btn:hover    { color: var(--rim-amber); border-color: var(--rim-amber); background: rgba(245,184,0,0.06); }
  .footer-links a:hover     { color: var(--rim-white); }
  .lightbox-close:hover     { background: var(--rim-amber); border-color: var(--rim-amber); color: var(--rim-black); }
}
