/*
Theme Name: MitraDigi Corporate v5
Theme URI: https://mitradigi.id
Author: CV. AL MAUN
Author URI: https://mitradigi.id
Description: Tema WordPress Resmi MitraDigi (CV. AL MAUN) v5 - Skrip JS dieksternal ke assets/js/main.js agar 100% bebas dari kerusakan newline/minifikasi WordPress. Tombol Order, Form WA, dan Chatbot AI berfungsi penuh.
Version: 5.0.0
License: GNU General Public License v2 or later
Text Domain: mitradigi
*/

:root {
  --primary: #0b132b;
  --secondary: #1c2541;
  --accent: #2563eb;
  --accent-light: #38bdf8;
  --teal: #0d9488;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --bg-soft: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 12px 30px -8px rgba(11, 19, 43, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text-main); line-height: 1.65; }
body { background: #ffffff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-name { font-size: 1.55rem; font-weight: 900; color: var(--primary); letter-spacing: -0.6px; }
.brand-name span { background: linear-gradient(90deg, var(--accent), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-sub { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--secondary); transition: 0.2s; }
.nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 0.92rem;
  cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.38); }
.btn-whatsapp { background: var(--emerald); color: #fff; box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28); }
.btn-whatsapp:hover { background: var(--emerald-dark); transform: translateY(-2px); }

/* Hero */
.hero {
  background: radial-gradient(circle at top right, #1e3a8a 0%, #0b132b 55%, #091e2c 100%);
  color: #fff; padding: 88px 0 96px; position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4); color: #7dd3fc;
  padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: 2.75rem; line-height: 1.18; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.8px; }
.hero h1 span { color: #38bdf8; }
.hero p.tagline-desc { font-size: 1.06rem; color: #cbd5e1; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.sector-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sector-pill {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0; padding: 6px 13px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
}

.hero-summary-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px; padding: 30px;
  backdrop-filter: blur(8px);
}
.hero-summary-card h3 { font-size: 1.2rem; color: #38bdf8; margin-bottom: 16px; }
.hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.metric-box {
  background: rgba(11, 19, 43, 0.65); border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px; border-radius: 12px;
}
.metric-box strong { display: block; font-size: 1.35rem; color: #fff; margin-bottom: 2px; }
.metric-box span { font-size: 0.8rem; color: #94a3b8; }
.hero-legal-note {
  background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 12px 16px; border-radius: 10px; font-size: 0.84rem; color: #a7f3d0; font-weight: 600;
}

/* Sections */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.section-label {
  display: inline-block; color: var(--teal); font-weight: 800; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px;
}
.section-header h2 { font-size: 2.1rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* Company Profile */
.profile-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; }
.profile-text h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 16px; line-height: 1.28; }
.profile-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.98rem; }

.vision-box {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  color: #fff; padding: 26px; border-radius: 16px; margin-top: 22px;
}
.vision-box h4 { color: #38bdf8; font-size: 1.05rem; margin-bottom: 8px; }
.vision-box p { color: #e2e8f0; font-size: 0.92rem; margin: 0; }

.highlight-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.h-card {
  background: var(--bg-soft); border-radius: 14px; padding: 20px 22px;
  border-left: 5px solid var(--accent); transition: 0.2s;
}
.h-card:nth-child(2) { border-left-color: var(--teal); }
.h-card:nth-child(3) { border-left-color: var(--emerald); }
.h-card:nth-child(4) { border-left-color: #6366f1; }
.h-card strong { display: block; color: var(--primary); font-size: 1.02rem; margin-bottom: 4px; }
.h-card span { font-size: 0.88rem; color: var(--text-muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04); display: flex; flex-direction: column; justify-content: space-between;
  transition: 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.service-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 800;
  color: var(--accent); background: #eff6ff; padding: 4px 12px; border-radius: 6px; margin-bottom: 12px;
}
.service-card h3 { font-size: 1.26rem; color: var(--primary); margin-bottom: 10px; }
.service-card p.desc { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; }
.service-features { list-style: none; border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 22px; }
.service-features li { font-size: 0.87rem; color: var(--secondary); margin-bottom: 8px; padding-left: 20px; position: relative; }
.service-features li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 900; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 24px; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative;
}
.price-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: var(--shadow);
}
.badge-pop {
  position: absolute; top: -13px; right: 20px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  color: #fff; font-size: 0.74rem; font-weight: 800; padding: 4px 14px; border-radius: 50px;
}
.price-target { font-size: 0.78rem; font-weight: 800; color: var(--teal); text-transform: uppercase; }
.price-card h3 { font-size: 1.25rem; color: var(--primary); margin: 6px 0; }
.price-amount { font-size: 1.65rem; font-weight: 900; color: var(--primary); margin: 10px 0; }
.price-amount small { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.price-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.price-list { list-style: none; border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 24px; }
.price-list li { font-size: 0.86rem; color: var(--secondary); margin-bottom: 8px; padding-left: 16px; position: relative; }
.price-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

/* Contact & Pre-WhatsApp Form */
.contact-wrapper {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  color: #fff; border-radius: 22px; padding: 46px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
}
.contact-info h3 { font-size: 1.7rem; margin-bottom: 12px; }
.contact-info p { color: #cbd5e1; margin-bottom: 24px; }
.info-item { margin-bottom: 16px; background: rgba(255,255,255,0.06); padding: 14px 16px; border-radius: 10px; }
.info-item strong { display: block; font-size: 0.8rem; color: #38bdf8; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 3px; }
.info-item span { font-size: 0.95rem; color: #f8fafc; }

.order-form-box { background: #fff; color: var(--text-main); padding: 30px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.order-form-box h4 { font-size: 1.25rem; color: var(--primary); margin-bottom: 6px; }
.order-form-box p.sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 5px; color: var(--secondary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 0.92rem; font-family: inherit; transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}

/* Modal Pre-WhatsApp */
.wa-modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 19, 43, 0.78);
  backdrop-filter: blur(4px); z-index: 999999; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.wa-modal-overlay.active { display: flex !important; }
.wa-modal {
  background: #fff; width: 100%; max-width: 440px; border-radius: 16px;
  padding: 26px; box-shadow: 0 25px 50px rgba(0,0,0,0.3); position: relative;
}
.wa-modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 1.6rem; color: var(--text-muted); cursor: pointer; line-height: 1;
}

/* Chatbot Floating */
.chatbot-toggler {
  position: fixed; bottom: 24px; right: 24px; z-index: 99990;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #fff; border: none; border-radius: 50px; padding: 14px 22px;
  font-weight: 700; font-size: 0.92rem; box-shadow: 0 10px 25px rgba(13, 148, 136, 0.45);
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.chatbot-window {
  position: fixed; bottom: 86px; right: 24px; width: 350px; max-width: calc(100vw - 48px);
  background: #fff; border-radius: 16px; box-shadow: 0 20px 45px rgba(0,0,0,0.24);
  border: 1px solid var(--border); z-index: 99991; display: none; flex-direction: column; overflow: hidden;
}
.chatbot-window.active { display: flex !important; }
.chat-header { background: var(--primary); color: #fff; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; }
.chat-body { padding: 16px; height: 290px; overflow-y: auto; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 0.86rem; }
.chat-msg.bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-btn { background: #eff6ff; border: 1px solid #bfdbfe; color: var(--accent); padding: 6px 11px; border-radius: 50px; font-size: 0.76rem; font-weight: 600; cursor: pointer; }
.quick-btn:hover { background: var(--accent); color: #fff; }
.chat-footer { padding: 10px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: #fff; }
.chat-footer input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.86rem; }
.chat-footer button { background: var(--accent); color: #fff; border: none; padding: 8px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; }

footer { background: #070b19; color: #94a3b8; padding: 34px 0; text-align: center; font-size: 0.86rem; }

@media (max-width: 920px) {
  .hero-grid, .profile-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.1rem; }
}
