/* ============================================================
   LEGALITAS 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-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.page-hero-content .eyebrow {
  display: inline-block;
  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: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Breadcrumb */
.breadcrumbs {
  padding-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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); }

/* ── Gallery Section ── */
.gallery.section {
  background-color: var(--off-white);
  padding: var(--section-py) 0;
}

/* Section Title */
.legalitas-section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.legalitas-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;
}

.legalitas-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;
}

.legalitas-section-title .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.legalitas-section-title .divider::before,
.legalitas-section-title .divider::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.legalitas-section-title .divider-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.legalitas-section-title p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: #5a6a80;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Gallery Container ── */
.legalitas-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Gallery Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ── Gallery Card ── */
.gallery-card {
  background: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.12);
  border-color: rgba(201, 168, 76, 0.45);
}

/* Thumbnail wrapper */
.gallery-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* Anchor GLightbox jadi block penuh */
.gallery-card__thumb > a.glightbox:first-of-type {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.gallery-card:hover .gallery-card__thumb img {
  transform: scale(1.06);
}

/* Overlay — ada di dalam <a> supaya klik tetap jalan */
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.0) 0%,
    rgba(10, 22, 40, 0.65) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* overlay tidak memblokir klik anchor */
}

.gallery-card:hover .gallery-card__overlay {
  opacity: 1;
}

.gallery-card__overlay-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transform: scale(0.7);
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-card__overlay-icon {
  transform: scale(1);
}

.gallery-card__overlay-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

/* Caption */
.gallery-card__caption {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gallery-card__caption-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.gallery-card__caption h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-dark);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Featured Card (Legalitas Perusahaan) ── */
.gallery-card--featured {
  grid-column: span 1;
  border-color: rgba(201, 168, 76, 0.3);
  background: var(--navy-medium);
}

.gallery-card--featured .gallery-card__caption {
  border-top-color: rgba(201, 168, 76, 0.2);
}

.gallery-card--featured .gallery-card__caption h4 {
  color: var(--off-white);
}

.gallery-card--featured .gallery-card__badge {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 1px;
  white-space: nowrap;
}

/* ── Hidden GLightbox triggers ── */
.glightbox-hidden {
  display: none !important;
}

/* ── AOS base (fallback jika AOS tidak diload) ── */
[data-aos] {
  opacity: 1;
}

/* Fix swipe mobile GLightbox */
.gslide-image img {
    touch-action: pan-y !important;
}

.glightbox-container {
    touch-action: manipulation;
}
/* ============================= */
/* FIX GLIGHTBOX MOBILE SWIPE */
/* ============================= */

html.glightbox-open,
body.glightbox-open {
    overflow: hidden !important;
    touch-action: auto !important;
}

/* container lightbox */
.glightbox-container {
    touch-action: pan-x !important;
}

/* wrapper slide */
.gslider,
.gslide,
.ginner-container {
    touch-action: pan-x !important;
}

/* gambar */
.gslide-image img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-x !important;
}