/*
Theme Name: Duta Prima
Theme URI: https://dutaprima.id
Author: Duta Prima Transport
Author URI: https://dutaprima.id
Description: Custom theme for Duta Prima Transport — sewa bus pariwisata Malang. Built from the Claude Design handoff (fun, professional, animated landing page with fleet, recent trips, and testimonials).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: duta-prima
*/

/* ============ Duta Prima — Design Tokens ============ */
:root {
  --green-900: #0d3d1f;
  --green-800: #14592c;
  --green-700: #1a7a3c;
  --green-600: #1f9648;
  --green-500: #25b056;
  --green-400: #4dc777;
  --green-300: #8fdba6;
  --green-100: #dff5e6;
  --green-50:  #f0faf3;

  --yellow-500: #ffd029;
  --yellow-600: #f5b800;
  --yellow-700: #d99800;
  --yellow-100: #fff4c2;

  --ink-900: #0f1d14;
  --ink-700: #294435;
  --ink-500: #5a7567;
  --ink-300: #9bb3a4;

  --paper: #faf8f3;
  --paper-2: #f3efe5;
  --white: #ffffff;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(13,61,31,0.06);
  --shadow-md: 0 12px 32px -8px rgba(13,61,31,0.18);
  --shadow-lg: 0 30px 60px -20px rgba(13,61,31,0.35);

  --ease-snappy: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform .18s var(--ease-snappy), box-shadow .18s var(--ease-snappy), background .18s;
}
.btn-primary {
  background: var(--yellow-500);
  color: var(--ink-900);
  box-shadow: 0 8px 0 var(--yellow-700), 0 18px 30px -10px rgba(217,152,0,0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 var(--yellow-700), 0 22px 36px -10px rgba(217,152,0,0.65);
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--yellow-700), 0 4px 10px -4px rgba(217,152,0,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-dark {
  background: var(--ink-900);
  color: white;
}
.btn-dark:hover { background: var(--green-800); }

/* ============ Section header ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-600);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.section-title {
  font-size: clamp(36px, 4.4vw, 64px);
  margin: 16px 0 14px;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-500);
  max-width: 640px;
  line-height: 1.5;
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.in {
  animation: revealIn .7s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}
.reveal.delay-1.in { animation-delay: .08s; }
.reveal.delay-2.in { animation-delay: .16s; }
.reveal.delay-3.in { animation-delay: .24s; }
.reveal.delay-4.in { animation-delay: .32s; }
.reveal.delay-5.in { animation-delay: .40s; }

/* ============ Placeholder ============ */
.ph {
  background: repeating-linear-gradient(
    135deg,
    rgba(13,61,31,0.06) 0 12px,
    rgba(13,61,31,0.10) 12px 24px
  );
  background-color: var(--green-50);
  border: 1px dashed rgba(13,61,31,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ph-dark {
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.06) 0 12px,
    rgba(255,255,255,0.10) 12px 24px
  );
  background-color: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}

/* ============ WordPress core alignment helpers ============ */
.alignwide { max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
