/* ─────────────────────────────────────────
   style_bisnis.css — Bisnis page only
   Requires: style_shared.css
───────────────────────────────────────── */

body { padding-top: 64px; }

/* ── BUSINESS HERO: 4 PANELS ── */
.biz-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(100vh - 64px);
  min-height: 480px;
  max-height: 740px;
}

.biz-panel {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.biz-panel img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.biz-panel:hover img { transform: scale(1.06); }

.biz-panel__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,40,0.85) 0%, rgba(10,18,40,0.35) 60%, rgba(10,18,40,0.15) 100%);
  transition: background 0.3s ease;
}

.biz-panel:hover .biz-panel__overlay {
  background: linear-gradient(to top, rgba(10,18,40,0.9) 0%, rgba(10,18,40,0.5) 60%, rgba(10,18,40,0.25) 100%);
}

/* Active panel indicator (orange left border) */
.biz-panel::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--orange);
  transition: height 0.35s ease;
}
.biz-panel:hover::after,
.biz-panel:focus-visible::after { height: 100%; }

.biz-panel__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.5rem;
  color: var(--white);
}

.biz-panel__num {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.biz-panel__content h2 {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.biz-panel__content p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.biz-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.biz-panel:hover .biz-panel__cta {
  border-bottom-color: var(--orange);
  gap: 0.55rem;
}

/* ── BUSINESS SECTIONS ── */
.biz-section {
  display: none;
  padding: 5rem 0;
  background: var(--white);
  animation: bizFadeIn 0.45s ease both;
}

.biz-section--visible { display: block; }
.biz-section--alt { background: var(--surface); }

@keyframes bizFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.biz-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.biz-section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.biz-section__header p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

/* Close button */
.biz-section__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.biz-section__close:hover {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
}

/* Active panel indicator */
.biz-panel--active::after { height: 100% !important; }
.biz-panel--active .biz-panel__overlay {
  background: linear-gradient(to top, rgba(10,18,40,0.92) 0%, rgba(10,18,40,0.55) 60%, rgba(10,18,40,0.25) 100%);
}
.biz-panel--active .biz-panel__cta { border-bottom-color: var(--orange); }

/* Content grid */
.biz-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.biz-content-grid--reverse { direction: rtl; }
.biz-content-grid--reverse > * { direction: ltr; }

.biz-content-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* List */
.biz-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.biz-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.biz-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 0.55rem;
}

.biz-content-image img {
  width: 100%; height: 340px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Gallery */
.biz-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.biz-gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
}

.biz-gallery-item img,
.biz-gallery-item video {
  width: 100%; height: 240px;
  object-fit: cover; display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.biz-gallery-item:hover img,
.biz-gallery-item:hover video { transform: scale(1.04); opacity: 0.85; }

.biz-gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.625rem 0.875rem;
  background: linear-gradient(transparent, rgba(10,18,40,0.75));
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
}

/* Empty gallery slot (placeholder) */
.biz-gallery-item--empty { background: var(--surface); border: 1px dashed var(--border); }

.biz-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
  gap: 0.5rem;
  color: var(--muted-light);
}

.biz-gallery-placeholder i { font-size: 2rem; }

.biz-gallery-placeholder p {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .biz-hero {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: auto;
    max-height: none;
  }
  .biz-panel { min-height: 300px; }
  .biz-content-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  /* ── MOBILE: vertical card stack ── */
  .biz-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset;
    max-height: none;
    gap: 2px;
    background: var(--navy-dark);
  }

  .biz-panel {
    flex: none;
    width: 100%;
    height: 130px;
    min-height: unset;
    aspect-ratio: unset;
  }

  /* On mobile show content row-style inside each panel */
  .biz-panel__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    inset: 0;
    bottom: auto;
    height: 100%;
  }

  .biz-panel__content-left {
    display: flex;
    flex-direction: column;
  }

  .biz-panel__num { margin-bottom: 0.25rem; }

  .biz-panel__content h2 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .biz-panel__content p {
    font-size: 0.72rem;
    margin-bottom: 0;
    color: rgba(255,255,255,0.6);
  }

  .biz-panel__cta {
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-bottom: none;
    background: rgba(229,103,23,0.15);
    border: 1.5px solid var(--orange);
    border-radius: 6px;
    padding: 0.5rem 0.875rem;
    color: #fff;
    white-space: nowrap;
  }

  .biz-panel__cta i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
  }

  .biz-panel--active .biz-panel__cta {
    background: var(--orange);
    color: #fff;
  }

  .biz-panel--active .biz-panel__cta i {
    transform: rotate(180deg);
  }

  /* Active panel: brighter overlay + orange left bar */
  .biz-panel--active .biz-panel__overlay {
    background: linear-gradient(to right, rgba(229,103,23,0.25) 0%, rgba(10,18,40,0.7) 100%);
  }

  .biz-panel::after {
    width: 0; height: 3px;
    top: auto; bottom: 0; left: 0;
    transition: width 0.3s ease;
  }

  .biz-panel:hover::after,
  .biz-panel:focus-visible::after,
  .biz-panel--active::after {
    width: 100% !important;
    height: 3px !important;
  }

  /* Section content mobile */
  .biz-content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .biz-content-grid--reverse { direction: ltr; }

  .biz-gallery { grid-template-columns: 1fr 1fr; }
  .biz-content-image img { height: 220px; }
  .biz-section { padding: 2.5rem 0; }

  .biz-section__header {
    flex-direction: row;
    align-items: center;
  }

  .biz-section__header > div { flex: 1; }

  .biz-section__close {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.45rem 0.875rem;
  }
}

@media (max-width: 480px) {
  .biz-panel { height: 110px; }

  .biz-panel__content h2 { font-size: 0.95rem; }

  .biz-gallery { grid-template-columns: 1fr; }
  .biz-section { padding: 2rem 0; }

  .biz-section__header { flex-direction: column; }
  .biz-section__close { align-self: flex-start; }
}
