/* =========================
   GLOBAL RESET & BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e293b;           /* slate-800 */
  line-height: 1.6;
  background: #f5f7fb;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

/* Container */
.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* Generic sections */
.section {
  padding: 64px 0;
  background: #ffffff;
}

.section-alt {
  padding: 64px 0;
  background: #eef2ff;      /* light indigo */
}

.section-dark {
  padding: 64px 0;
  background: #0f172a;      /* slate-900 */
  color: #e5e7eb;
}

.center {
  text-align: center;
}

.two-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.mt-3 {
  margin-top: 24px;
}

/* =========================
   LANGUAGE TOGGLE (NO JS)
   ========================= */
/* Hide radio inputs */
#lang-id,
#lang-en {
  position: absolute;
  left: -9999px;
}

/* Smaller, modern language picker */
.lang-switch {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 300;
  padding: 1px 4px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.55); /* slate-900 translucent */
  display: flex;
  gap: 2px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lang-switch label {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.7;
  color: #f9fafb;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Active language */
#lang-id:checked ~ .lang-switch label[for="lang-id"],
#lang-en:checked ~ .lang-switch label[for="lang-en"] {
  background: #7b3fe4; /* purple */
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.7);
}

/* Make it a bit smaller on very small screens */
@media (max-width: 600px) {
  .lang-switch {
    font-size: 10px;
    right: 6px;
    top: 6px;
    padding: 1px 3px;
  }

  .lang-switch label {
    padding: 1px 5px;
  }
}

/* Language visibility */
.lang-id,
.lang-en {
  display: inline;
}

/* Default: Indonesian visible */
#lang-id:checked ~ .site-wrapper .lang-id { display: inline; }
#lang-id:checked ~ .site-wrapper .lang-en { display: none; }

/* English visible */
#lang-en:checked ~ .site-wrapper .lang-id { display: none; }
#lang-en:checked ~ .site-wrapper .lang-en { display: inline; }

/* =========================
   TAB SYSTEM (NO JS)
   ========================= */
/* Hide tab radio inputs */
#tab-home,
#tab-about,
#tab-services,
#tab-products,
#tab-advantages,
#tab-certificates,
#tab-organization,
#tab-clients,
#tab-contact {
  position: absolute;
  left: -9999px;
}

/* Header / tab navigation */
.site-header {
  background: #0f172a;
  color: #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.logo-mark {
  background: #7b3fe4;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
}

.logo-text {
  white-space: nowrap;
}

/* Tab labels (desktop & mobile friendly) */
.tab-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  font-size: 13px;
  overflow-x: auto;              /* allow horizontal scroll on mobile */
  scrollbar-width: thin;
}

.tab-nav::-webkit-scrollbar {
  height: 4px;
}

.tab-nav::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 999px;
}

.tab-nav label {
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.tab-nav label:hover {
  opacity: 0.9;
  background: rgba(123, 63, 228, 0.18);
}

/* Active tab highlighting */
#tab-home:checked         ~ .site-wrapper .tab-nav label[for="tab-home"],
#tab-about:checked        ~ .site-wrapper .tab-nav label[for="tab-about"],
#tab-services:checked     ~ .site-wrapper .tab-nav label[for="tab-services"],
#tab-products:checked     ~ .site-wrapper .tab-nav label[for="tab-products"],
#tab-advantages:checked   ~ .site-wrapper .tab-nav label[for="tab-advantages"],
#tab-certificates:checked ~ .site-wrapper .tab-nav label[for="tab-certificates"],
#tab-organization:checked ~ .site-wrapper .tab-nav label[for="tab-organization"],
#tab-clients:checked      ~ .site-wrapper .tab-nav label[for="tab-clients"],
#tab-contact:checked      ~ .site-wrapper .tab-nav label[for="tab-contact"] {
  background: #7b3fe4;
  opacity: 1;
}

/* Tab panels container */
.main-panels {
  padding: 24px 0 64px;
}

/* Hide all panels by default */
.tab-panel {
  display: none;
}

/* Show panel based on selected tab */
#tab-home:checked         ~ .site-wrapper #panel-home        { display: block; }
#tab-about:checked        ~ .site-wrapper #panel-about       { display: block; }
#tab-services:checked     ~ .site-wrapper #panel-services    { display: block; }
#tab-products:checked     ~ .site-wrapper #panel-products    { display: block; }
#tab-advantages:checked   ~ .site-wrapper #panel-advantages  { display: block; }
#tab-certificates:checked ~ .site-wrapper #panel-certificates{ display: block; }
#tab-organization:checked ~ .site-wrapper #panel-organization{ display: block; }
#tab-clients:checked      ~ .site-wrapper #panel-clients     { display: block; }
#tab-contact:checked      ~ .site-wrapper #panel-contact     { display: block; }

/* =========================
   HERO (HOME TAB)
   ========================= */

/* Home panel wrapper */
#panel-home {
  margin-top: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
  background: #f8f9ff;          /* softer backdrop */
  border-radius: 0 0 12px 12px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 0;
}

.hero-text h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 15px;
  max-width: 580px;
  margin-bottom: 14px;
}

.hero-subtext {
  font-size: 14px;
  max-width: 580px;
  margin-top: 8px;
  margin-bottom: 14px;
  color: #4b5563; /* slate-600 */
}

.hero-text p {
  line-height: 1.7;
}

.hero-tagline {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Highlights under the hero text */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-highlight-item {
  background: #f1f5ff;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 130px;
  font-size: 12px;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.hero-highlight-item strong {
  display: block;
  font-size: 16px;
  color: #111827;
}

/* Placeholder box when no image yet */
.hero-placeholder {
  background: #e5e7eb;
  border-radius: 8px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  background: transparent;
}

.btn-primary {
  background: #7b3fe4;
  color: #ffffff;
}

.btn-primary:hover {
  background: #6d28d9;
}

.btn-outline {
  background: transparent;
  color: #0f172a;
  border-color: #0f172a;
}

.btn-outline:hover {
  background: #0f172a;
  color: #ffffff;
}

/* =========================
   LISTS & TIMELINE
   ========================= */
.list {
  padding-left: 18px;
}

.list li {
  margin-bottom: 6px;
}

.timeline {
  list-style: none;
  padding-left: 0;
  border-left: 2px solid #cbd5f5;
  margin-left: 8px;
}

.timeline li {
  padding-left: 12px;
  margin-bottom: 12px;
  position: relative;
}

.timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7b3fe4;
  position: absolute;
  left: -6px;
  top: 4px;
}

/* =========================
   GRID & CARDS
   ========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.section-dark .card,
.section-dark .card-transparent {
  background: transparent;
  box-shadow: none;
}

.card-transparent {
  border-radius: 8px;
  padding: 18px 20px;
}

.card-center {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #7b3fe4;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Certificates placeholder box */
.certificates-grid .cert-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 10px;
}

/* =========================
   ORG CHART
   ========================= */
.org-chart {
  margin-top: 24px;
}

.org-level {
  margin-bottom: 20px;
}

.org-top {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

.org-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.org-column {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* =========================
   CLIENTS
   ========================= */
.clients-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.client-box {
  background: #ffffff;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* =========================
   CONTACT FORM
   ========================= */
.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  display: block;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 16px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

/* =========================
   RESPONSIVE (TABLET & MOBILE)
   ========================= */
@media (max-width: 900px) {
  body {
    font-size: 15px;
  }

  .two-columns,
  .hero-inner {
    grid-template-columns: 1fr;       /* stack vertically */
  }

  .hero-inner {
    gap: 20px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .logo-text {
    display: none;                    /* keep header compact */
  }

  .tab-nav {
    justify-content: flex-start;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .org-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section,
  .section-alt,
  .section-dark {
    padding: 48px 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(100% - 24px, 100%);
  }

  .tab-nav {
    font-size: 12px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .org-columns {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    margin-top: 8px;
  }

  .hero-placeholder {
    height: 180px;
  }
}