/* ==============================================================================
   RAMA PANEL ELEKTRIK — BLUE & WHITE INDUSTRIAL ARCHITECTURE
   Strict 3-Color Palette: Primary (#1E4477), Neutral (#FFFFFF), Accent (#0369A1)
   ============================================================================== */

:root {
  --primary: #1E4477;   /* Rama Panel Navy Blue (from logo) */
  --neutral: #FFFFFF;   /* Pure White */
  --accent: #0369A1;    /* Technical Blue Accent */

  --bg: var(--neutral);
  --surface: var(--neutral);
  --surface-tint: color-mix(in srgb, var(--primary) 4%, var(--neutral));
  --ink: color-mix(in srgb, var(--primary) 85%, #000000);
  --ink-secondary: color-mix(in srgb, var(--primary) 72%, var(--neutral));
  --ink-muted: color-mix(in srgb, var(--primary) 52%, var(--neutral));
  --border: color-mix(in srgb, var(--primary) 14%, var(--neutral));
  --border-strong: color-mix(in srgb, var(--primary) 28%, var(--neutral));
  --accent-soft: color-mix(in srgb, var(--accent) 9%, var(--neutral));
  --accent-hover: color-mix(in srgb, var(--accent) 80%, var(--primary));

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p { color: var(--ink-secondary); }
a { color: inherit; text-decoration: none; }

/* ==============================================================================
   TOP UTILITY BAR + NAVBAR
   ============================================================================== */
.topbar {
  background: var(--primary);
  color: var(--neutral);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar a {
  color: var(--neutral);
  font-weight: 600;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--neutral);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-link img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 8px 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
}

.mobile-drawer {
  display: none;
  background: var(--neutral);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer a {
  padding: 10px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* ==============================================================================
   BUTTONS
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--neutral);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-white {
  background: var(--neutral);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--surface-tint);
}

.btn-outline {
  background: var(--neutral);
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--surface-tint);
}

.btn-outline-light {
  background: transparent;
  color: var(--neutral);
  border-color: color-mix(in srgb, var(--neutral) 40%, transparent);
}

.btn-outline-light:hover {
  border-color: var(--neutral);
  background: color-mix(in srgb, var(--neutral) 10%, transparent);
}

.btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 26px;
  font-size: 1rem;
}

/* ==============================================================================
   HERO: FULL-WIDTH NAVY ARCHITECTURAL BLOCK + FRAMED WIDE PHOTOGRAPH
   ============================================================================== */
.hero-band {
  background: var(--primary);
  color: var(--neutral);
  padding: 64px 0 0;
}

.hero-header-center {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 44px;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.hero-band h1 {
  color: var(--neutral);
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

.hero-band p {
  color: color-mix(in srgb, var(--neutral) 82%, var(--primary));
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-showcase-wrap {
  position: relative;
  margin-bottom: -80px;
  z-index: 2;
}

.hero-showcase-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--neutral);
  box-shadow: 0 20px 45px color-mix(in srgb, var(--primary) 22%, transparent);
  background: var(--neutral);
}

.hero-showcase-frame img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* Clients Strip below overlapped photo */
.clients-bar {
  padding: 116px 0 36px;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border);
}

.clients-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.clients-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clients-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.clients-logos img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.78;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.clients-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==============================================================================
   SERVICES: 3-COLUMN ARCHITECTURAL GRID WITH TOP ACCENT RULE
   ============================================================================== */
.services-section {
  padding: 84px 0;
  background: var(--neutral);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.services-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-col {
  padding: 32px 28px;
  border-top: 4px solid var(--accent);
  border-right: 1px solid var(--border);
  background: var(--neutral);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.service-col:last-child {
  border-right: none;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.service-col h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-col p {
  font-size: 0.95rem;
}

.service-specs-ul {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==============================================================================
   PANEL PRODUCTS: INTERACTIVE TABBED SPEC SHEET
   ============================================================================== */
.panel-spec-section {
  padding: 84px 0;
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.spec-tabs-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.spec-tab-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-tab-btn {
  text-align: left;
  padding: 16px 20px;
  background: var(--neutral);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.spec-tab-btn:hover {
  border-color: var(--accent);
}

.spec-tab-btn.active {
  background: var(--primary);
  color: var(--neutral);
  border-color: var(--primary);
}

.spec-detail-panel {
  background: var(--neutral);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.spec-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.spec-detail-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-tint);
}

.spec-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spec-detail-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 12px;
}

.spec-detail-panel h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.spec-detail-panel p {
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .spec-detail-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==============================================================================
   PROJECTS: ASYMMETRIC FEATURED + 2 STACKED CARDS (Index) & GRID (Proyek)
   ============================================================================== */
.projects-section {
  padding: 84px 0;
  background: var(--neutral);
}

.projects-featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.projects-side-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--neutral);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
}

.project-body h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.project-body p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.project-cat {
  color: var(--accent);
  font-weight: 700;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--neutral);
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary);
  color: var(--neutral);
  border-color: var(--primary);
}

/* ==============================================================================
   CONTACT CTA & FOOTER (Integrated Blue Footer Block)
   ============================================================================== */
.footer-cta-wrap {
  background: var(--primary);
  color: var(--neutral);
  margin-top: auto;
}

.footer-cta-band {
  padding: 64px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--neutral) 15%, var(--primary));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-cta-band h2 {
  color: var(--neutral);
  font-size: 2rem;
  margin-bottom: 8px;
}

.footer-cta-band p {
  color: color-mix(in srgb, var(--neutral) 80%, var(--primary));
  max-width: 560px;
}

.footer {
  padding: 28px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: color-mix(in srgb, var(--neutral) 78%, var(--primary));
}

.footer-nav a:hover {
  color: var(--neutral);
}

/* ==============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================== */
@media (max-width: 960px) {
  .services-3col,
  .spec-tabs-layout,
  .projects-featured-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .service-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-inner {
    height: 64px;
  }

  .brand-link img {
    height: 34px;
    width: 34px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-sub {
    font-size: 0.7rem;
  }

  .hero-band {
    padding-top: 36px;
  }

  .hero-header-center {
    padding-bottom: 28px;
  }

  .hero-band p {
    font-size: 0.98rem;
  }

  .hero-showcase-wrap {
    margin-bottom: -36px;
  }

  .hero-showcase-frame img {
    aspect-ratio: 16 / 10;
    max-height: 260px;
  }

  .clients-bar {
    padding: 64px 0 28px;
  }

  .clients-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .clients-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    align-items: center;
    justify-items: center;
  }

  .clients-logos img {
    height: 24px;
    max-width: 100%;
  }

  .services-section,
  .panel-spec-section,
  .projects-section {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .service-col {
    padding: 24px 20px;
  }

  /* Compact 2x2 grid for panel tabs on mobile so detail card stays visible right below */
  .spec-tab-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .spec-tab-btn {
    padding: 12px 12px;
    font-size: 0.85rem;
    min-height: 48px;
  }

  .spec-tab-btn span:last-child {
    display: none;
  }

  .spec-detail-panel {
    padding: 18px;
  }

  .spec-detail-panel h3 {
    font-size: 1.25rem;
  }

  .footer-cta-band {
    padding: 44px 0;
  }

  .footer-cta-band h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn,
  .footer-cta-band .btn,
  .spec-detail-card .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

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