/* PT ADVANCED FREIGHT MANAGEMENT GLOBAL LOGISTIC (AFM GL)
   Modern Mobile-First Design System with Section Roll/Drawer (Fungsi Gulung)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --navy-dark: #0A192F;
  --navy-primary: #0F2C59;
  --navy-secondary: #1E3A8A;
  --navy-subtle: #243B6A;
  --gold-accent: #C58B24;
  --gold-hover: #B27B1D;
  --gold-light: #FBF4E8;
  --slate-bg: #F8FAFC;
  --slate-border: #E2E8F0;
  --slate-card: #FFFFFF;
  --slate-text: #1E293B;
  --slate-muted: #64748B;
}

* {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: #FFFFFF;
  color: var(--slate-text);
  line-height: 1.6;
}

/* Modern Navbar */
.modern-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* ============================================================
   FUNGSI GULUNG (SECTION ROLL / EXPANDABLE DRAWER) STYLING
   ============================================================ */
.roll-section {
  transition: all 0.3s ease;
}

.roll-trigger {
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease-in-out;
}

.roll-trigger:hover {
  background-color: #F8FAFC;
}

.roll-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

/* When unrolled / expanded */
.roll-section.unrolled .roll-content {
  max-height: 5000px;
  opacity: 1;
  visibility: visible;
}

.roll-section.unrolled .roll-chevron {
  transform: rotate(180deg);
}

.roll-section.unrolled .roll-trigger {
  border-bottom: 1px solid #E2E8F0;
  background-color: #F8FAFC;
}

.roll-section.unrolled .roll-badge-state {
  background-color: #0F2C59;
  color: #FFFFFF;
}

.roll-chevron {
  transition: transform 0.3s ease-in-out;
}

/* Subtle Card borders */
.corporate-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease-in-out;
}

.corporate-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px -2px rgba(15, 44, 89, 0.06);
}

/* Smooth Accordion inside sections */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 700px;
  opacity: 1;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

/* Mobile Sticky Bar with iOS Safe-Area Inset */
.mobile-sticky-cta {
  box-shadow: 0 -4px 20px -2px rgba(15, 44, 89, 0.12);
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

/* Touch Feedback Micro-Interactions */
button, .quick-dest-chip, .roll-trigger, .accordion-header {
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

button:active:not(:disabled), 
.btn-touch-active:active {
  transform: scale(0.97);
}

/* Scroll To Top Button */
#scrollToTopBtn {
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
