/* ==========================================================================
   KADIN Kota Karang Baru - Official Static Website Stylesheet
   ========================================================================== */

:root {
  --navy-900: #081c36;
  --navy-800: #0b2545;
  --navy-700: #134074;
  --navy-600: #1d538f;
  --gold-500: #c89b2b;
  --gold-400: #e2b93b;
  --gold-100: #fbf5e6;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 10px 25px rgba(11, 37, 69, 0.1);
  --container-max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--slate-700);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--gold-500);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy-800);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
}
.skip-link:focus {
  top: 16px;
  color: var(--white);
}

/* Top Bar */
.topbar {
  background-color: var(--navy-900);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a {
  color: #e2e8f0;
}
.topbar a:hover {
  color: var(--gold-400);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-800);
}
.brand:hover {
  color: var(--navy-800);
}
.brand img {
  width: 44px;
  height: 44px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: var(--navy-800);
}
.brand-subtitle {
  font-size: 0.78rem;
  color: var(--slate-600);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1.25rem;
  color: var(--navy-800);
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--slate-700);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--navy-800);
  background-color: var(--slate-100);
}
.main-nav a.active {
  box-shadow: inset 0 -2px 0 var(--gold-500);
}
.main-nav a.nav-cta {
  background-color: var(--navy-800);
  color: var(--white);
  margin-left: 8px;
}
.main-nav a.nav-cta:hover {
  background-color: var(--navy-700);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 84px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 185, 59, 0.18) 0%, rgba(226, 185, 59, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(226, 185, 59, 0.18);
  color: var(--gold-400);
  border: 1px solid rgba(226, 185, 59, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--white);
}
.hero p {
  font-size: 1.08rem;
  color: #dbeafe;
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-card h2 {
  font-size: 1.15rem;
  color: var(--gold-400);
  margin-bottom: 16px;
}
.stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-item {
  background: rgba(8, 28, 54, 0.5);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.stat-label {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* Page Header (Subpages) */
.page-header {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 56px 0 48px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}
.breadcrumb a {
  color: var(--gold-400);
}
.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-header p {
  color: #dbeafe;
  max-width: 720px;
  font-size: 1.02rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-gold {
  background-color: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover {
  background-color: var(--gold-400);
  color: var(--navy-900);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}
.btn-primary {
  background-color: var(--navy-800);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--navy-700);
  color: var(--white);
}

/* Sections */
.section {
  padding: 72px 0;
}
.section-alt {
  background-color: var(--slate-50);
}
.section-header {
  max-width: 700px;
  margin-bottom: 40px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--gold-500);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  color: var(--navy-800);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--slate-600);
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--gold-100);
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.15rem;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.card p {
  color: var(--slate-600);
  font-size: 0.96rem;
}

/* Prose & Lists */
.content-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.content-box h2 {
  color: var(--navy-800);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.content-box h3 {
  color: var(--navy-700);
  font-size: 1.15rem;
  margin: 22px 0 10px;
}
.content-box p {
  margin-bottom: 14px;
}
.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-500);
  font-weight: 800;
}

/* Vision & Mission Highlight */
.vision-box {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.vision-box .section-eyebrow {
  color: var(--gold-400);
}
.vision-box blockquote {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  margin-top: 8px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}
table.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}
table.info-table th,
table.info-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}
table.info-table th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
}
table.info-table tr:nth-child(even) td {
  background: var(--slate-50);
}

/* Contact Form */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--slate-900);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.12);
}
.form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.cta-banner p {
  color: #dbeafe;
  max-width: 600px;
}

/* Footer */
.site-footer {
  background-color: var(--navy-900);
  color: #cbd5e1;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--gold-400);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav a.nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
  .cta-banner {
    padding: 32px 24px;
  }
}
