/* ==========================================================================
   PT. Mantra Aji Logistik — Light Luxury (putih + aksen merah MAL)
   Fonts: Playfair Display (display) + Plus Jakarta Sans (body)
   ========================================================================== */

:root {
  --bg: #FBF9F4;
  --bg-tint: #F5F1E8;
  --white: #FFFFFF;
  --ink: #1F1B16;
  --muted: #6E675C;
  --gold: #E0202A;
  --gold-deep: #B0121A;
  --gold-light: #F0B4B6;
  --red: #E0202A;
  --red-deep: #B0121A;
  --line: #EDE6D6;
  --shadow: 0 10px 40px rgba(31, 27, 22, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 27, 22, 0.14);
  --radius: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0; width: min(1180px, 92%); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-text {
  font-weight: 800; letter-spacing: 0.04em; font-size: 0.98rem; line-height: 1.15;
}
.brand-text em { font-style: normal; color: var(--red); display: block; letter-spacing: 0.28em; font-size: 0.72rem; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 600; color: var(--muted); position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-deep); }
.nav-burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  padding: 12px 24px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(224, 32, 42, 0.3); }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(224, 32, 42, 0.14), transparent 60%),
    radial-gradient(900px 420px at 0% 20%, rgba(224, 32, 42, 0.06), transparent 55%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: "—"; color: var(--gold); margin: 0 10px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.08;
  letter-spacing: -0.01em;
  min-height: 2.2em; /* reservasi 2 baris agar tak ada content shift saat typewriter ganti frasa */
}
#typewriter { display: inline-block; min-height: 1.1em; }
.type-cursor {
  display: inline-block; color: var(--gold); font-weight: 400;
  margin-left: 4px; animation: blink 0.85s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.accent-gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--muted); margin: 18px 0 14px; font-weight: 500; }
.hero-desc { max-width: 640px; margin: 0 auto 30px; color: var(--muted); font-size: 1.02rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }
.hero-stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 2.6rem; color: var(--ink); line-height: 1;
}
.stat span { font-size: 0.86rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.18; margin: 8px 0 14px;
}
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-ic { font-size: 1.6rem; }
.pillar h3 { font-size: 1.02rem; margin: 10px 0 6px; font-weight: 700; }
.pillar p { font-size: 0.9rem; color: var(--muted); }

/* ============ PRODUCTS ============ */
.produk-hero {
  display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); margin-bottom: 40px;
}
.produk-logo { width: 240px; height: 240px; object-fit: contain; margin: 0 auto; }
.produk-tag { font-weight: 800; color: var(--red); letter-spacing: 0.04em; margin-bottom: 12px; font-size: 0.98rem; }
.produk-hero-text p { color: var(--muted); font-size: 0.98rem; }
.produk-by { margin-top: 16px; color: var(--muted); }
.gtb-logo { margin-top: 12px; height: 48px; width: auto; }
.produk-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.produk-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.produk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.produk-card img { height: 170px; object-fit: contain; margin: 0 auto 12px; }
.produk-card h4 { font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.produk-note {
  margin-top: 32px; text-align: center; font-size: 0.95rem; color: var(--gold-deep);
  border-top: 1px solid var(--line); padding-top: 24px; font-weight: 600;
}

/* ============ MAP ============ */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
#map { height: 520px; width: 100%; background: #eee; }
.map-legend {
  position: absolute; top: 16px; right: 16px; z-index: 500;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  font-size: 0.8rem; max-width: 200px; box-shadow: var(--shadow);
}
.map-legend h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.map-cities { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.city-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.8rem; font-weight: 600; color: var(--muted);
}
/* Leaflet custom marker */
.spo-marker {
  background: var(--red); color: #fff; width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold); box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.spo-marker span { transform: rotate(45deg); font-size: 11px; font-weight: 800; }
.spo-popup strong { font-size: 0.9rem; }
.spo-popup .ao { color: var(--red); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.spo-popup .addr { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ============ NEWS ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card img { height: 180px; object-fit: cover; width: 100%; }
.news-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 0.74rem; color: var(--gold-deep); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.news-body h3 { font-size: 1.06rem; margin: 8px 0; line-height: 1.35; }
.news-body p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.news-body a { margin-top: 14px; font-weight: 700; color: var(--red); font-size: 0.88rem; }
.news-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }
.news-cta { text-align: center; margin-top: 30px; }

/* ============ ADVANTAGES ============ */
.unggul-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.unggul-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.unggul-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.unggul-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: 0.7; line-height: 1;
}
.unggul-card h3 { font-size: 1.08rem; margin: 14px 0 8px; }
.unggul-card p { font-size: 0.9rem; color: var(--muted); }

/* ============ CONTACT ============ */
.contact-actions { display: flex; justify-content: center; margin-bottom: 28px; }
.contact-meta { text-align: center; color: var(--muted); font-size: 0.95rem; }
.contact-meta strong { color: var(--ink); }

/* ============ FOOTER ============ */
.footer { background: #171410; color: #D9D2C4; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 44px; height: 44px; object-fit: contain; }
.footer-name { font-weight: 800; letter-spacing: 0.04em; color: #fff; }
.footer-name em { font-style: normal; color: var(--red); }
.footer-tag { font-size: 0.82rem; color: #9a907e; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: #c9bfa9; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { border-top: 1px solid #2a251e; margin-top: 36px; padding-top: 22px; font-size: 0.82rem; color: #8d8472; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .about-grid, .produk-hero { grid-template-columns: 1fr; }
  .unggul-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 30px; }
  #map { height: 400px; }
}
@media (max-width: 560px) {
  .unggul-grid, .about-cards { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .hero-title { min-height: 3.3em; } /* mobile: frasa terpanjang bisa 3 baris */
}
