/* AutoPrime Distributor — style.css */
/* Palet: #1e3a8a (biru), #dc2626 (merah aksen), tema terang */

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

:root {
  --blue:   #1e3a8a;
  --blue2:  #2d4faa;
  --blue3:  #1a3070;
  --red:    #dc2626;
  --red2:   #b91c1c;
  --light:  #f0f4ff;
  --light2: #e8edf8;
  --white:  #ffffff;
  --gray:   #64748b;
  --dark:   #1e293b;
  --border: #cbd5e1;
  --font:   -apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --shadow: 0 2px 12px rgba(30,58,138,.12);
  --shadow2:0 4px 24px rgba(30,58,138,.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}

/* ── DEMOBAR ──────────────────────────────────────── */
.demobar {
  background: #0f1f5c;
  color: #c7d3f5;
  font-size: .82rem;
  padding: .45rem 1rem;
  text-align: center;
  position: relative;
  z-index: 200;
}
.demobar b { color: #fbbf24; }
.demobar a { color: #93c5fd; text-decoration: underline; margin: 0 .15rem; }
.demobar a:hover { color: #fff; }

/* ── HEADER ───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .5px;
}
.brand-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-sub { font-size: .65rem; font-weight: 400; opacity: .75; display: block; line-height: 1; }

/* checkbox nav hack */
#nav-toggle { display: none; }
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .25s;
}
nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
}
nav a {
  display: block;
  padding: .45rem .85rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
nav a:hover,
nav a.active {
  background: var(--red);
  color: var(--white);
}

@media (max-width: 820px) {
  .burger { display: flex; }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--blue3);
    padding: .5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  #nav-toggle:checked ~ nav ul { display: flex; }
  nav a { border-radius: 0; padding: .7rem 1.25rem; }
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1a3580 50%, #0f2060 100%);
  color: var(--white);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: rgba(220,38,38,.12);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 20px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 span { color: #fbbf24; }
.hero p {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red2); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
  margin-left: .75rem;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue2); }

/* ── STATS BAR ────────────────────────────────────── */
.statsbar {
  background: var(--red);
  color: #fff;
  padding: 1.1rem 1.25rem;
}
.statsbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  opacity: .88;
  letter-spacing: .5px;
}

/* ── SECTION COMMONS ──────────────────────────────── */
section { padding: 4rem 1.25rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .4rem;
}
.section-title {
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.section-sub {
  color: var(--gray);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

/* ── CARDS GRID ───────────────────────────────────── */
.cards { display: grid; gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon.blue { background: var(--light); }
.card-icon.red  { background: #fef2f2; }
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .4rem;
}
.card p { font-size: .9rem; color: var(--gray); }

/* ── PRODUCT CARDS ────────────────────────────────── */
.prod-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.prod-visual {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.prod-card-body { padding: 1.25rem; }
.prod-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 20px;
  margin-bottom: .5rem;
}
.badge-blue { background: var(--light); color: var(--blue); }
.badge-red  { background: #fef2f2; color: var(--red); }
.badge-green{ background: #f0fdf4; color: #16a34a; }
.prod-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.prod-desc  { font-size: .85rem; color: var(--gray); margin-bottom: .75rem; }
.prod-price { font-size: 1.1rem; font-weight: 800; color: var(--red); }

/* ── ABOUT SPLIT ──────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 720px) { .about-split { grid-template-columns: 1fr; } }
.about-visual {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  border-radius: 16px;
  padding: 2.5rem;
  color: #fff;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  min-height: 320px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

/* ── LIST CHECKS ──────────────────────────────────── */
.check-list { list-style: none; margin-top: 1rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-bottom: .65rem;
  font-size: .95rem;
  color: var(--dark);
}
.check-list li::before {
  content: '';
  width: 20px; height: 20px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 00-1.414 0L8 12.586 4.707 9.293a1 1 0 00-1.414 1.414l4 4a1 1 0 001.414 0l8-8a1 1 0 000-1.414z'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
  margin-top: 2px;
}

/* ── BG LIGHT ─────────────────────────────────────── */
.bg-light { background: var(--light); }
.bg-blue  { background: var(--blue); color: #fff; }
.bg-blue .section-title { color: #fff; }
.bg-blue .section-sub   { color: rgba(255,255,255,.75); }
.bg-blue .section-label { color: #fbbf24; }

/* ── TEAM CARD ────────────────────────────────────── */
.team-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.team-avatar {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.team-card-body { padding: 1rem 1.25rem 1.5rem; }
.team-name { font-size: 1rem; font-weight: 700; color: var(--blue); }
.team-role { font-size: .82rem; color: var(--red); font-weight: 600; margin-bottom: .4rem; }
.team-desc { font-size: .83rem; color: var(--gray); }

/* ── PORTFOLIO CARD ───────────────────────────────── */
.porto-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.porto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.porto-visual {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.porto-body { padding: 1.25rem; }
.porto-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: .35rem;
}
.porto-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.porto-desc  { font-size: .85rem; color: var(--gray); }

/* ── TESTIMONIAL ──────────────────────────────────── */
.testi-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}
.testi-text { font-style: italic; color: var(--dark); margin-bottom: 1rem; font-size: .95rem; }
.testi-name { font-weight: 700; color: var(--blue); font-size: .9rem; }
.testi-role { font-size: .8rem; color: var(--gray); }
.stars { color: #f59e0b; margin-bottom: .75rem; font-size: 1rem; }

/* ── CONTACT SECTION ──────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; margin-top: 1rem; }
.contact-info-list li {
  display: flex; align-items: flex-start; gap: .8rem;
  margin-bottom: 1.1rem;
  font-size: .92rem;
  color: var(--dark);
}
.ci-icon {
  width: 38px; height: 38px;
  background: var(--light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-label { font-size: .75rem; color: var(--gray); display: block; }
.ci-val   { font-weight: 600; }

/* ── FORM ─────────────────────────────────────────── */
.form-box {
  background: var(--light);
  border-radius: 12px;
  padding: 2rem;
}
.form-box h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue); margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: .92rem;
  background: var(--white);
  color: var(--dark);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-demo-note {
  font-size: .8rem;
  color: var(--gray);
  margin-top: .75rem;
  font-style: italic;
}

/* ── CTA BANNER ───────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, #b91c1c 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.cta-banner h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: .6rem; }
.cta-banner p  { opacity: .9; margin-bottom: 1.5rem; }
.btn-white { background: #fff; color: var(--red); font-weight: 700; }
.btn-white:hover { background: #f0f0f0; }

/* ── FOOTER ───────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.25rem 1.25rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .6rem;
  display: flex; align-items: center; gap: .5rem;
}
.footer-brand-dot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}
.footer-desc { font-size: .87rem; margin-bottom: 1rem; }
footer h4 { color: #fff; font-size: .92rem; margin-bottom: .9rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .5rem; }
footer ul a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .87rem;
  transition: color .2s;
}
footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}
.footer-bottom span { color: var(--red); font-weight: 600; }

/* ── PAGE HERO (inner pages) ──────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1a3580 100%);
  color: #fff;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .5rem; }
.page-hero p  { opacity: .82; font-size: 1rem; }
.page-hero .breadcrumb {
  font-size: .8rem;
  opacity: .65;
  margin-bottom: .75rem;
}
.page-hero .breadcrumb a { color: #fff; text-decoration: underline; }

/* ── RESPONSIVE UTILS ─────────────────────────────── */
@media (max-width: 600px) {
  .statsbar-inner { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3.5rem 1rem 3rem; }
}

/* ── SERVICE ICON BOX ─────────────────────────────── */
.svc-icon-box {
  background: var(--light);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.svc-icon-box:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.svc-icon {
  width: 64px; height: 64px;
  background: var(--blue);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .9rem;
}
.svc-icon.red-bg { background: var(--red); }
.svc-title { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: .4rem; }
.svc-desc  { font-size: .88rem; color: var(--gray); }

/* ── HIGHLIGHTS TABLE ─────────────────────────────── */
.highlight-row {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.25rem;
}
.hl-num {
  width: 36px; height: 36px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.hl-body h4 { font-size: .97rem; font-weight: 700; color: var(--blue); margin-bottom: .2rem; }
.hl-body p  { font-size: .87rem; color: var(--gray); }

/* map placeholder */
.map-placeholder {
  background: var(--light2);
  border-radius: 12px;
  height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem;
  color: var(--gray);
  font-size: .9rem;
  border: 1.5px dashed var(--border);
}
