/* ============================================================
   DOKUMENTASI PAGE — Luxury Logistics Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --navy-dark:    #0a1628;
  --navy-medium:  #112240;
  --gold:         #c9a84c;
  --gold-bright:  #e8c97a;
  --gold-pale:    #f5e9c8;
  --off-white:    #f8f6f0;
  --white:        #ffffff;
  --muted-blue:   #8a9ab5;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --container-max: 1100px;
  --section-py:    6rem;
}

/* ══════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 420px;
  padding-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: inherit;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.page-hero.loaded::before {
  transform: scale(1);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.65) 0%, rgba(10,22,40,0.45) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.page-hero-content .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.5);
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.breadcrumbs a          { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover    { color: var(--gold); }
.breadcrumbs .sep       { color: var(--gold); }
.breadcrumbs .current   { color: var(--gold); }

/* ══════════════════════════════════════════
   PORTFOLIO SECTION
══════════════════════════════════════════ */
.portfolio-section {
  background-color: var(--off-white);
  padding: var(--section-py) 0;
}

.dok-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section Title ── */
.dok-section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.dok-section-title .label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.dok-section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.dok-section-title .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.dok-section-title .divider::before,
.dok-section-title .divider::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.dok-section-title .divider-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Filter Tabs ── */
.dok-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.dok-filters li {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-blue);
  padding: 0.5rem 1.4rem;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  user-select: none;
}

.dok-filters li:hover {
  color: var(--gold);
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.05);
}

.dok-filters li.filter-active {
  color: var(--navy-dark);
  background: var(--gold);
  border-color: var(--gold);
}

/* ── Portfolio Grid ── */
.dok-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1199px) {
  .dok-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dok-grid {
    grid-template-columns: 1fr 1fr; /* dua kolom kecil */
    gap: 1rem;
  }
}

@media (max-width: 500px) {
  .dok-grid {
    grid-template-columns: 1fr; /* satu kolom di layar sempit */
    gap: 1.25rem;
  }
}

/* ── Portfolio Item ── */
.dok-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(201,168,76,0.12);
  background: var(--white);
  aspect-ratio: 4 / 3;
  transition: border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

/* Link wrapper menutupi seluruh card */
.dok-item__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  text-decoration: none;
  color: inherit;
}

.dok-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

/* Hover efek hanya untuk desktop */
@media (hover: hover) and (pointer: fine) {
  .dok-item:hover {
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.12);
  }

  .dok-item:hover img {
    transform: scale(1.06);
  }

  .dok-item:hover .dok-item__overlay {
    opacity: 1;
  }

  .dok-item:hover .dok-item__overlay h4 {
    transform: translateY(0);
  }

  .dok-item:hover .dok-item__overlay p {
    transform: translateY(0);
  }

  .dok-item:hover .dok-item__action {
    opacity: 1;
    transform: scale(1);
  }
}

/* Overlay */
.dok-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.82) 0%,
    rgba(10, 22, 40, 0.1) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  pointer-events: none;
  z-index: 2;
}

.dok-item__overlay h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.dok-item__overlay p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted-blue);
  margin: 0;
  transform: translateY(8px);
  transition: transform 0.35s ease 0.04s;
}

/* Zoom / Play icon — top right */
.dok-item__action {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(201,168,76,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 4; /* di atas link & overlay */
  pointer-events: none; /* agar klik diteruskan ke link di bawahnya */
}

.dok-item__action svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}

/* Video badge */
.dok-item__video-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10,22,40,0.75);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 2px;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: none;
}

.dok-item__video-badge svg {
  width: 12px;
  height: 12px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.dok-item__video-badge span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Hidden state for filtering */
.dok-item.hidden {
  display: none;
}

/* ══════════════════════════════════════════
   TOUCH DEVICES — Overlay & icon always visible
══════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .dok-item__overlay {
    opacity: 1 !important;
  }
  .dok-item__overlay h4,
  .dok-item__overlay p {
    transform: translateY(0) !important;
  }
  .dok-item__action {
    opacity: 1 !important;
    transform: scale(0.9) !important;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile adjustments
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .page-hero {
    height: 320px;
    padding-top: 60px;
  }

  .page-hero-content .eyebrow {
    font-size: 9px;
    padding: 4px 12px;
    letter-spacing: 0.2em;
  }

  .breadcrumbs {
    font-size: 0.7rem;
    gap: 4px;
  }

  .dok-container {
    padding: 0 1.25rem;
  }

  .portfolio-section {
    padding: 4rem 0;
  }

  .dok-section-title {
    margin-bottom: 2.5rem;
  }

  .dok-filters {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .dok-filters li {
    font-size: 10px;
    padding: 0.4rem 1rem;
  }

  .dok-item__overlay {
    padding: 0.8rem;
  }

  .dok-item__overlay h4 {
    font-size: 0.8rem;
  }

  .dok-item__overlay p {
    font-size: 0.7rem;
  }

  .dok-item__action {
    width: 32px;
    height: 32px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .dok-item__action svg {
    width: 14px;
    height: 14px;
  }

  .dok-item__video-badge {
    top: 0.75rem;
    left: 0.75rem;
    padding: 3px 8px;
  }

  .dok-item__video-badge span {
    font-size: 9px;
  }
}

@media (max-width: 400px) {
  .page-hero {
    height: 260px;
    padding-top: 50px;
  }

  .page-hero-content h1 {
    font-size: 1.8rem;
  }

  .dok-item__overlay {
    padding: 0.7rem;
  }
}
