/* ============================================
   CoKom — Shared Design System
   Primary: #1A2B4A | Accent: #2A9D8F | BG: #F8F9FA
   Fonts: Plus Jakarta Sans + Inter
   ============================================ */

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

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

:root {
  --primary:       #1A2B4A;
  --primary-light: #243659;
  --accent:        #dc0028;
  --accent-light:  #E8F4F3;
  --accent-dark:   #1f7a6e;
  --bg:            #F8F9FA;
  --card:          #FFFFFF;
  --body-text:     #2D3748;
  --muted:         #6B7280;
  --border:        #E2E8F0;
  --border-dark:   #CBD5E0;

  --font-head:  'Plus Jakarta Sans', sans-serif;
  --font-body:  'Inter', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

/* ---- Skip to content ---- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-to-content:focus {
  left: 8px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  padding-top: 68px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { line-height: 1.7; color: var(--body-text); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ---- Layout ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42,157,143,0.35);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-phone {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  font-size: 1rem;
}
.btn-phone:hover {
  background: var(--accent);
  color: #fff;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.nav-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: #25D366;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-whatsapp:hover { background: rgba(37,211,102,0.12); color: #25D366; }
@media (max-width: 768px) { .nav-whatsapp { display: none; } }

/* ---- Section label ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ---- Photo placeholder ---- */
.photo-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #dde3ed,
    #dde3ed 4px,
    #e8edf5 4px,
    #e8edf5 14px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.photo-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: #8a95a5;
  letter-spacing: 0.05em;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s 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; }

/* ---- Nav ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26,43,74,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.2s;
}
.site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-phone {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-phone:hover { color: var(--accent); }

/* ---- CTA Band ---- */
.cta-band {
  background: var(--primary);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.72); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; margin-bottom: 32px;}
.cta-band-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: rgba(255,255,255,0.95);
  font-size: 0.875rem;
  margin-bottom: 16px;
  font-family: var(--font-head);
}
.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  display: block;
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Partners strip ---- */
.partners-strip {
  padding: 28px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.partners-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
}
/* Marquee track */
.partners-logos {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.partners-logos-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: partners-scroll 28s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}
.partners-logos:hover .partners-logos-track {
  animation-play-state: paused;
}
@keyframes partners-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-logos-track { animation: none; }
  .partners-logos { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 0 24px; }
}
.partner-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: #aab0be;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.partner-logo:hover { color: var(--primary); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-white { color: #fff; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* ---- Mobile nav hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--primary);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links, .nav-phone { display: none; }
  .nav-right .btn { display: none; }
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-band { padding: 56px 0; }
  .cta-band-buttons { flex-direction: column; align-items: center; }
  .cta-band-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.85rem; }
  .container { padding: 0 16px; }
  .cta-band { padding: 40px 0; }
  section { padding: 44px 0; }
}

/* ---- Chatbot Widget ---- */
@keyframes cokom-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(26, 43, 74, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(26, 43, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 43, 74, 0); }
}

#cokom-chat-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9998;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.2s ease;
}
#cokom-chat-btn:hover { transform: scale(1.08); }
#cokom-chat-btn.open  { background: #2b4a8a; }
#cokom-chat-btn.pulse { animation: cokom-pulse-ring 3s ease-out 3; }

#cokom-chat-container {
  position: fixed;
  bottom: 100px; right: 24px;
  z-index: 9997;
  width: 400px; height: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
#cokom-chat-container.open {
  opacity: 1; transform: scale(1) translateY(0);
  pointer-events: all;
}
#cokom-chat-container iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 480px) {
  #cokom-chat-btn { bottom: 20px; right: 20px; }
  #cokom-chat-container {
    bottom: 0; right: 0;
    width: 100vw; height: 100dvh;
    border-radius: 0;
  }
}
