/* E-SAMSAT DKI Jakarta — Government Portal Styles */

:root {
  --red-900: #7a0c1e;
  --red-700: #b11226;
  --red-600: #c8102e;
  --red-500: #d62839;
  --red-100: #fde8eb;
  --navy-900: #0f1c2e;
  --navy-800: #1a2d47;
  --navy-700: #243b5c;
  --gold-500: #c9a227;
  --gold-400: #dbb94a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 28, 46, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 28, 46, 0.1);
  --shadow-lg: 0 12px 40px rgba(15, 28, 46, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red-700);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Icons */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}

.icon--xs { width: 0.875rem; height: 0.875rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon--xl { width: 1.75rem; height: 1.75rem; }

.icon-box {
  display: grid;
  place-items: center;
}

.icon-box .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.icon-box--white .icon { color: var(--white); }
.icon-box--red .icon { color: var(--red-700); }
.icon-box--navy .icon { color: var(--navy-800); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Top bar */
.top-bar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: var(--gold-400);
}

.top-bar__contact {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.top-bar a.top-bar__item {
  color: rgba(255, 255, 255, 0.9);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--red-700);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--navy-900);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy-900);
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand__crest {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__title {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand__subtitle {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.brand__title--light { color: var(--white); }
.brand__subtitle--light { color: rgba(255, 255, 255, 0.6); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--navy-800);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--red-100);
  color: var(--red-700);
}

.nav-cta {
  background: var(--red-700) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--red-900) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy-800);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--red-900) 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(209, 40, 57, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--gold-400);
}

.hero__desc {
  font-size: 1.0625rem;
  opacity: 0.9;
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
}

.btn-primary:hover {
  background: var(--red-500);
  color: var(--white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--red-700);
  border: 2px solid var(--red-700);
}

.btn-outline:hover {
  background: var(--red-100);
  color: var(--red-700);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

/* Govtech illustrations — natural aspect ratio, no cropping */
.hero__illustration,
.page-illustration,
.illustration-band__img img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.hero__illustration {
  max-width: 560px;
  margin-inline: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.page-illustration {
  max-width: 480px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.illustration-band__img img {
  max-width: 560px;
  box-shadow: var(--shadow-md);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Page illustrations */
.page-header__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.page-header__art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-band {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 2.5rem 0;
}

.illustration-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.illustration-band__img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-band__text h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.illustration-band__text p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.contact-illustration {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

@media (max-width: 1024px) {
  .page-header__inner,
  .illustration-band__inner {
    grid-template-columns: 1fr;
  }

  .page-header__art {
    order: -1;
  }

  .page-illustration {
    max-width: 400px;
  }

  .hero__illustration {
    max-width: 440px;
  }
}

@media (max-width: 768px) {
  .hero__illustration {
    max-width: 100%;
  }

  .page-illustration {
    max-width: 100%;
  }

  .illustration-band__img img {
    max-width: 100%;
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
}

.stat-card__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card__label {
  font-size: 0.8125rem;
  opacity: 0.85;
  font-weight: 500;
}

/* Quick portals */
.quick-portals {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding-bottom: 1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.portal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.portal-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.portal-card__icon .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.portal-card__icon--red { background: var(--red-100); color: var(--red-700); }
.portal-card__icon--navy { background: #e0e7ff; color: var(--navy-800); }
.portal-card__icon--gold { background: #fef3c7; color: #b45309; }
.portal-card__icon--green { background: #dcfce7; color: #15803d; }

.portal-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.portal-card p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.portal-card__link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red-700);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--red-100);
  color: var(--red-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.0625rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--red-100);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.service-card__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* About */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.instansi-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.instansi-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--red-700);
}

.instansi-item strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.9375rem;
}

.instansi-item span {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.requirements-box {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.requirements-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirements-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.requirements-box li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.95;
}

.requirements-box li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Payment methods */
.payment-section {
  background: var(--gray-100);
}

.payment-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  border-color: var(--red-700);
  background: var(--red-700);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.payment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.payment-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.payment-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--white);
}

.payment-card__logo--bdki { background: #e85d04; }
.payment-card__logo--signal { background: var(--navy-800); }

.payment-card__header h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy-900);
}

.payment-card__header p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.channel-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.channel-item__icon {
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  color: var(--red-700);
}

.channel-item__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.channel-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy-900);
}

.channel-item span {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.steps-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
}

.step-item:last-child {
  border-bottom: none;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  width: 48px;
  height: 48px;
  background: var(--red-100);
  color: var(--red-700);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.step-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.step-item p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.info-alert {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.info-alert__icon {
  flex-shrink: 0;
  color: #d97706;
}

.info-alert__icon .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.info-alert p {
  font-size: 0.9375rem;
  color: #92400e;
  line-height: 1.6;
}

.info-alert strong {
  color: #78350f;
}

.loket-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.loket-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--gray-800);
  padding: 0.625rem 1rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.loket-item .icon {
  color: var(--red-700);
  flex-shrink: 0;
}

/* Rules */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.rules-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

.rules-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red-100);
}

.rules-card ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rules-card li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.rules-card li::marker {
  color: var(--red-700);
  font-weight: 700;
}

/* Wilayah */
.wilayah-section {
  background: var(--white);
}

.wilayah-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.wilayah-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wilayah-card:hover {
  border-color: var(--red-700);
  box-shadow: var(--shadow-sm);
}

.wilayah-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.375rem;
}

.wilayah-card p {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.wilayah-card__type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-700);
  background: var(--red-100);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.625rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question svg,
.faq-question .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--red-700);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  background: var(--red-100);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--red-700);
}

.contact-card__icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-card h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.9375rem;
  color: var(--navy-900);
  font-weight: 600;
}

.contact-form-panel {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-panel h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-form-panel > p {
  opacity: 0.85;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.pengaduan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pengaduan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.9;
}

.pengaduan-list li span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.contact-hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Network page */
.network-section {
  padding-bottom: 4rem;
}

.network-intro {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.network-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.net-group {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.net-group__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy-900);
  user-select: none;
}

.net-group__summary::-webkit-details-marker {
  display: none;
}

.net-group__summary::after {
  content: "";
  margin-left: auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.net-group[open] .net-group__summary::after {
  transform: rotate(-135deg);
}

.net-group__crest {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.net-group__label {
  flex: 1;
  min-width: 0;
}

.net-group__count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-right: 0.5rem;
}

.net-group__list {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--gray-100);
}

.net-site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.net-site:last-child {
  border-bottom: none;
}

.net-site__link {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  color: var(--navy-800);
  text-decoration: none;
}

.net-site__link:hover {
  color: var(--brand-primary);
}

.net-site__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.net-site__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.net-site__badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--navy-50, #f0f4f8);
  color: var(--navy-700);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.net-site__domain {
  font-family: var(--font-mono, ui-monospace, monospace);
}

.page-header__art--crest {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-crest {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  opacity: 0.75;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar__contact {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav a {
    width: 100%;
    padding: 0.875rem 1rem;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
  }

  .hero {
    padding: 2.5rem 0 4rem;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-grid,
  .services-grid,
  .about-grid,
  .rules-grid,
  .wilayah-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .channels-grid {
    grid-template-columns: 1fr 1fr;
  }

  .loket-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }
}

/* Page header (inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--red-900) 100%);
  color: var(--white);
  padding: 3rem 0;
}

.page-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-header p {
  opacity: 0.9;
  max-width: 640px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  opacity: 0.75;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--gold-400);
}

.breadcrumb span {
  opacity: 0.5;
}

.page-content {
  padding: 3.5rem 0 4.5rem;
}

/* Home SEO hub */
.home-seo-hub {
  padding: 3.5rem 0;
  background: var(--gray-50, #f9fafb);
}

.home-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.home-seo-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.home-seo-block__head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}

.home-seo-block__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.home-seo-block__icon--navy {
  background: var(--navy-100, #e8edf5);
  color: var(--navy-700, #1e3a5f);
}

.home-seo-block__icon--red {
  background: var(--red-100);
  color: var(--red-700);
}

.home-seo-block__icon--gold {
  background: #fef3c7;
  color: #b45309;
}

.home-seo-block__icon--green {
  background: #dcfce7;
  color: #15803d;
}

.home-seo-block h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  padding-top: 0.375rem;
}

.home-seo-block p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 0.875rem;
}

.home-seo-block a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red-700);
  text-decoration: none;
}

.home-seo-block a:hover {
  text-decoration: underline;
}

.home-seo-cities {
  margin-top: 2.5rem;
}

.home-faq-preview {
  padding: 3.5rem 0 4.5rem;
}

.home-faq-preview .faq-list {
  max-width: none;
}

.home-faq-preview__more {
  text-align: center;
  margin-top: 1.5rem;
}

.home-faq-preview__more a {
  font-weight: 700;
  color: var(--red-700);
  text-decoration: none;
}

.home-faq-preview__more a:hover {
  text-decoration: underline;
}

/* Home quick links */
.quick-links {
  padding: 3.5rem 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quick-link-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-link-card:hover {
  border-color: var(--red-700);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.quick-link-card__icon {
  width: 40px;
  height: 40px;
  background: var(--red-100);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--red-700);
}

.quick-link-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.quick-link-card p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.quick-link-card__arrow {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red-700);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.subsection-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.page-content .info-pkb-section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--gray-200, #e5e7eb);
}

.page-content .info-pkb-section:first-child,
.page-content .info-pkb-section--intro {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-content .info-pkb-section .subsection-title {
  margin-bottom: 1.5rem;
}

.page-content .info-pkb-section .content-prose--compact {
  margin-bottom: 1.25rem;
}

.page-content .info-pkb-section .seo-topics-grid {
  margin-bottom: 0;
}

.page-content .info-pkb-section .seo-city-links {
  margin-bottom: 0;
}

.page-content .info-pkb-section .faq-list {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .home-seo-grid,
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-content .portal-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .page-content .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-content .portal-grid {
    grid-template-columns: 1fr;
  }
}

.seo-topics {
  padding: 4rem 0;
  background: var(--gray-50, #f9fafb);
}

.seo-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.seo-topic-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.seo-topic-card:hover {
  border-color: var(--red-600);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.seo-topic-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900, #111827);
}

.seo-topic-card p {
  font-size: 0.875rem;
  color: var(--gray-600, #4b5563);
  line-height: 1.5;
  flex: 1;
}

.seo-topic-card__link {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red-700);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.seo-city-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
}

.seo-city-links a {
  font-weight: 600;
  color: var(--red-700);
  text-decoration: none;
}

.seo-city-links a:hover {
  text-decoration: underline;
}

.content-prose {
  max-width: 42rem;
  color: var(--gray-600, #4b5563);
  line-height: 1.7;
  margin-bottom: 0;
}

.page-content--info-pkb .info-pkb-section--intro .content-prose {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .seo-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-seo-grid,
  .quick-links-grid,
  .seo-topics-grid,
  .seo-city-links {
    grid-template-columns: 1fr;
  }
}
