/* ===== KandaraMed Global Design System ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ===== Design Tokens ===== */
:root {
  /* Brand Colors */
  --navy:        #1B3B6F;
  --navy-dark:   #0D2247;
  --navy-mid:    #1E4080;
  --navy-light:  #2A5298;
  --orange:      #F5821F;
  --orange-light:#FF9A3C;
  --orange-dark: #D6700F;

  /* Neutrals */
  --white:       #FFFFFF;
  --gray-soft:   #F4F7FC;
  --gray-light:  #E8EEF8;
  --gray-mid:    #8FA8CC;
  --gray-dark:   #3D5A8A;

  /* Text */
  --text-primary:   #0D2247;
  --text-secondary: #4A6FA5;
  --text-muted:     #7A93B8;
  --text-white:     #FFFFFF;

  /* Glassmorphism */
  --glass-bg:     rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-bg-light: rgba(255, 255, 255, 0.6);
  --glass-border-light: rgba(27, 59, 111, 0.15);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(13, 34, 71, 0.08);
  --shadow-md:  0 8px 32px rgba(13, 34, 71, 0.12);
  --shadow-lg:  0 20px 60px rgba(13, 34, 71, 0.18);
  --shadow-xl:  0 30px 80px rgba(13, 34, 71, 0.25);
  --shadow-orange: 0 8px 32px rgba(245, 130, 31, 0.35);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --section-py: 100px;
  --section-px: 24px;

  /* Nav height */
  --nav-height: 80px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

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

ul { list-style: none; }

button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: 'Inter', sans-serif;
  outline: none;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* ===== Typography ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-title span {
  color: var(--orange);
}

.section-title-white {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.section-subtitle-white {
  color: rgba(255,255,255,0.75);
}

.text-center {
  text-align: center;
}

.text-center .section-label {
  justify-content: center;
}

.text-center .section-label::before {
  display: none;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-bounce);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(245, 130, 31, 0.5);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

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

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

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
  transition: all var(--transition-slow);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.glass-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

.glass-card-light {
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-orange {
  background: rgba(245, 130, 31, 0.12);
  color: var(--orange);
  border: 1px solid rgba(245, 130, 31, 0.3);
}

.badge-navy {
  background: rgba(27, 59, 111, 0.1);
  color: var(--navy);
  border: 1px solid rgba(27, 59, 111, 0.2);
}

.badge-green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-glass {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ===== Divider ===== */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: var(--radius-full);
  margin: 20px 0;
}

.divider-center { margin: 20px auto; }

/* ===== Sections ===== */
.section {
  padding: var(--section-py) 0;
}

.section-dark {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.section-gray {
  background: var(--gray-soft);
}

.section-navy {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

/* ===== Decorative Elements ===== */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-orb-orange {
  background: radial-gradient(circle, rgba(245, 130, 31, 0.3) 0%, transparent 70%);
}

.bg-orb-navy {
  background: radial-gradient(circle, rgba(42, 82, 152, 0.4) 0%, transparent 70%);
}

.bg-orb-blue {
  background: radial-gradient(circle, rgba(27, 59, 111, 0.6) 0%, transparent 70%);
}

/* ===== Grid ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== Flex Utilities ===== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* ===== Spacing Utilities ===== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ===== ========== NAVBAR ========== ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  padding: 0 32px;
}

.navbar-transparent {
  background: transparent;
}

.navbar-scrolled {
  background: rgba(13, 34, 71, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-light {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.navbar-light .nav-link { color: var(--navy) !important; }
.navbar-light .nav-link:hover { color: var(--orange) !important; }
.navbar-light .navbar-cta { background: linear-gradient(135deg, var(--orange), var(--orange-light)) !important; }
.navbar-light .hamburger span { background: var(--navy); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-svg {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.navbar-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-orange);
  transition: all var(--transition-bounce) !important;
}

.navbar-cta:hover {
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 10px 30px rgba(245, 130, 31, 0.5) !important;
  background: rgba(255,255,255,0.1) !important; /* Override */
  background: linear-gradient(135deg, var(--orange-light), var(--orange)) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13, 34, 71, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px 32px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  padding: 14px 16px;
  font-size: 1rem;
}

.nav-mobile .navbar-cta {
  margin-top: 8px;
  text-align: center;
  justify-content: center;
}

/* ===== ========== FOOTER ========== ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-base);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.ojk-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(245, 130, 31, 0.1);
  border: 1px solid rgba(245, 130, 31, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-light);
}

.ojk-notice svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Icon Boxes ===== */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  box-shadow: 0 4px 16px rgba(245, 130, 31, 0.35);
}

.icon-box-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
}

.icon-box-glass {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

/* ===== Page Header (for inner pages) ===== */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Form Elements ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label-white {
  color: rgba(255,255,255,0.85);
}

.form-input {
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition-base);
  width: 100%;
}

.form-input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 4px rgba(27, 59, 111, 0.1);
}

.form-input::placeholder {
  color: var(--gray-mid);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Slider */
.slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-light);
  cursor: pointer;
  transition: all var(--transition-base);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  box-shadow: 0 2px 8px rgba(245, 130, 31, 0.4);
  cursor: pointer;
  transition: transform var(--transition-bounce);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]:focus {
  outline: none;
}

/* ===== Stat Cards ===== */
.stat-card {
  padding: 32px;
  text-align: center;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ===== Toast / Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 34, 71, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-slow);
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--navy-dark);
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.credential-box {
  background: var(--gray-soft);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  font-family: 'Courier New', monospace;
}

.credential-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.9rem;
}

.credential-row:last-child { border-bottom: none; }

.credential-row .label {
  color: var(--text-secondary);
  font-weight: 600;
}

.credential-row .value {
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }

  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .navbar { padding: 0 20px; }

  .modal { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 16px 28px; font-size: 0.95rem; }
}
