/* ============================================
   EFENDI NAKLIYAT - IMPROVED TYPOGRAPHY & CARDS
   ============================================ */

:root {
  --brand: #0b2a5f;
  --brand-light: #1a4a8f;
  --accent: #ff7a00;
  --accent-hover: #e66d00;
  --text: #1a1a2e;
  --text-light: #555;
  --muted: #64748b;
  --bg-light: #f8fafc;
  --white: #fff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Typography */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
}

/* TOPBAR */
.topbar {
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.topbar a:hover {
  opacity: 0.85;
}

/* BUTTONS */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-accent {
  background: var(--accent);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.btn-outline-dark {
  border: 2px solid #e2e8f0;
  color: var(--text);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--bg-light);
  border-color: #cbd5e1;
  color: var(--text);
}

.btn-outline-success {
  border: 2px solid #25D366;
  color: #25D366;
}

.btn-outline-success:hover {
  background: #25D366;
  color: #fff;
}

/* HERO */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      rgba(11, 42, 95, 0.92) 0%,
      rgba(11, 42, 95, 0.75) 50%,
      rgba(11, 42, 95, 0.55) 100%
    ),
    url("/assets/images/hero-kamyon.jpg");
  background-size: cover;
  background-position: center;
  padding: 80px 0 60px;
}

.hero-badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}

.trust-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: rgba(255,255,255,0.95);
  font-size: 0.8125rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* HERO CARD - Improved */
.hero-card {
  background: rgba(255,255,255,0.97);
  border: none;
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 10px 20px rgba(0,0,0,0.08),
    0 25px 50px rgba(0,0,0,0.12);
  color: var(--text);
  overflow: hidden;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brand);
}

.hero-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.5;
}

.icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(11, 42, 95, 0.25);
}

/* SECTIONS */
.section {
  padding: 72px 0;
}

.section.bg-light {
  background: var(--bg-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.text-muted2 {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* FEATURE CARDS - Improved */
.feature-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all 0.25s ease;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 12px 32px rgba(0,0,0,0.08);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.feature-card .icon-circle {
  font-size: 1.25rem;
}

/* SOFT CARD - Improved */
.card-soft {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.06);
}

.card-soft h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--brand);
}

.card-soft ul {
  padding-left: 1.25rem;
  margin: 0;
}

.card-soft li {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.card-soft li:last-child {
  margin-bottom: 0;
}

/* STEPS */
.step {
  border-left: 3px solid var(--brand);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.step .fw-semibold {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.step .text-muted2 {
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

/* FORM */
.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-control,
.form-select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 42, 95, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #94a3b8;
}

/* FOOTER */
.footer {
  background: var(--brand);
  color: #fff;
}

.footer .fw-semibold {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.footer a {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
}

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  border-radius: 100px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow:
    0 4px 12px rgba(37, 211, 102, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(37, 211, 102, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: #fff;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Animations */
.hero-badge {
  animation: fadeInUp 0.6s ease-out forwards;
}

.hero h1 {
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

.hero p.lead {
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.hero .d-flex.flex-wrap.gap-2.mb-4 {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

.hero .trust-pill {
  animation: fadeIn 0.5s ease-out 0.5s forwards;
  opacity: 0;
}

.hero-card {
  animation: slideInRight 0.7s ease-out 0.3s forwards;
  opacity: 0;
}

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

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* Card hover enhancements */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover .icon-circle {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.icon-circle {
  transition: transform 0.3s ease;
}

/* Button hover animations */
.btn {
  transition: all 0.25s ease;
}

.btn-accent:active {
  transform: scale(0.98);
}

/* Step hover animation */
.step {
  transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.step:hover {
  border-left-color: var(--accent);
  padding-left: 1.5rem;
}

/* Trust pill hover */
.trust-pill {
  transition: transform 0.2s ease, background 0.2s ease;
}

.trust-pill:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}

/* Form focus animation */
.form-control,
.form-select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  transform: translateY(-1px);
}

/* WhatsApp float animation */
.wa-float {
  animation: fadeInUp 0.5s ease-out 1s forwards;
  opacity: 0;
}

.wa-dot {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* MOBILE RESPONSIVE */

/* Tablet */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .section {
    padding: 56px 0;
  }

  /* Hero card on tablet */
  .hero-card {
    margin-top: 2rem;
  }
}

/* Large mobile */
@media (max-width: 767.98px) {
  /* Topbar adjustments */
  .topbar {
    font-size: 0.8125rem;
  }

  .topbar .d-flex.flex-wrap.gap-3 {
    gap: 0.5rem !important;
  }

  .topbar .opacity-75 {
    display: none;
  }

  /* Hero buttons - stack on mobile */
  .hero .d-flex.flex-wrap.gap-2.mb-4 {
    flex-direction: column;
  }

  .hero .d-flex.flex-wrap.gap-2.mb-4 .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero card steps */
  .hero-card .icon-circle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.875rem;
  }

  /* Feature card icons */
  .feature-card .icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.125rem;
  }

  /* Steps section */
  .step {
    padding-left: 1rem;
  }

  .step:hover {
    padding-left: 1.25rem;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .hero {
    background:
      linear-gradient(
        to bottom,
        rgba(11, 42, 95, 0.92),
        rgba(11, 42, 95, 0.85),
        rgba(11, 42, 95, 0.75)
      ),
      url("/assets/images/hero-kamyon.jpg");
    background-size: cover;
    background-position: 70% center;
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 1.625rem;
    line-height: 1.15;
  }

  .hero p.lead {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .hero-badge {
    font-size: 0.8125rem;
    padding: 0.4rem 0.875rem;
  }

  .trust-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }

  .hero-card {
    margin-top: 1.5rem;
    padding: 1.25rem !important;
    border-radius: 16px;
  }

  .hero-card h2 {
    font-size: 1.125rem;
  }

  .hero-card p {
    font-size: 0.875rem;
  }

  .hero-card .p-3 {
    padding: 0.75rem !important;
  }

  .hero-card .icon-circle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.8125rem;
    border-radius: 10px;
  }

  .hero-card .fw-semibold {
    font-size: 0.9375rem;
  }

  .hero-card .small {
    font-size: 0.8125rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .text-muted2 {
    font-size: 0.9375rem;
  }

  /* Feature cards */
  .feature-card {
    padding: 1rem !important;
    border-radius: 14px;
  }

  .feature-card .icon-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  /* Card soft */
  .card-soft {
    padding: 1.25rem !important;
    border-radius: 14px;
  }

  .card-soft h3 {
    font-size: 1rem;
  }

  .card-soft li {
    font-size: 0.875rem;
  }

  /* Steps */
  .step .fw-semibold {
    font-size: 0.9375rem;
  }

  .step .text-muted2 {
    font-size: 0.875rem;
  }

  /* Form */
  .form-label {
    font-size: 0.8125rem;
  }

  .form-control,
  .form-select {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
  }

  textarea.form-control {
    min-height: 100px;
  }

  /* Buttons */
  .btn {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    border-radius: 8px;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }

  /* WhatsApp float */
  .wa-float {
    right: 12px;
    bottom: 12px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 100px;
  }

  .wa-dot {
    width: 6px;
    height: 6px;
  }

  /* Footer */
  .footer {
    text-align: center;
  }

  .footer .row {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  .footer .col-md-5 {
    text-align: center !important;
  }

  .footer .fw-semibold {
    font-size: 1rem;
  }
}

/* Extra small mobile (iPhone SE, etc.) */
@media (max-width: 374px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .trust-pill {
    font-size: 0.6875rem;
    padding: 0.3rem 0.6rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .btn-lg {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}
