/* ============================================================
   GALLERY.CSS — Gallery page
   ============================================================ */

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 999px;
  letter-spacing: .2px;
  transition: transform .35s var(--ease), background .35s var(--ease),
              box-shadow .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 12px; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(240, 22, 38, .35);
}
.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ---------------- EYEBROW / SECTION HEAD ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.eyebrow span {
  width: 32px; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.eyebrow-light { color: var(--color-gold); }
.eyebrow-light span { background: var(--color-gold); }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.section-head p {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.7;
  padding-bottom: 6px;
}

/* ============================================================
   1. PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  background: var(--color-primary-dk);
  isolation: isolate;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(12, 26, 68, .96) 0%, rgba(18, 38, 97, .88) 45%, rgba(29, 52, 115, .74) 100%);
}
.page-hero-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}
.page-hero-decor-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(240, 22, 38, .5), transparent 70%);
  top: -160px; left: -120px;
}
.page-hero-decor-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(29, 52, 115, .9), transparent 70%);
  bottom: -150px; right: -100px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 820px;
}
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 24px;
}
.page-breadcrumb a {
  color: rgba(255, 255, 255, .6);
  transition: color .3s var(--ease);
}
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb i { font-size: 9px; }
.page-breadcrumb span { color: var(--color-gold); }

.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 22px;
}
.page-hero h1 em {
  display: inline-block;
  color: var(--color-gold);
  font-style: italic;
  font-weight: 700;
}
.page-hero p {
  font-size: 17.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  max-width: 620px;
  margin-bottom: 40px;
}
.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  flex-wrap: wrap;
}
.page-hero-meta-item { display: flex; align-items: center; gap: 14px; }
.page-hero-meta-item strong {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.page-hero-meta-item span {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .68);
  letter-spacing: .4px;
  text-transform: uppercase;
  font-weight: 500;
}
.page-hero-meta-sep {
  width: 1px; height: 44px;
  background: rgba(255, 255, 255, .15);
}

/* ============================================================
   2. GALLERY SECTION
   ============================================================ */
.gallery-section { padding: 130px 0; background: #fff; }

/* ---- GRID ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-light);
  aspect-ratio: 1 / 1;
}

.gallery-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gallery-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease);
}
.gallery-item:hover .gallery-link img { transform: scale(1.08); }

/* ---- OVERLAY (only magnify icon, no captions) ---- */
.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(12, 26, 68, 0) 40%, rgba(12, 26, 68, .55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 17px;
  box-shadow: var(--shadow-accent);
  transform: scale(.7);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.gallery-item:hover .gallery-overlay-icon {
  transform: scale(1);
  opacity: 1;
}

/* ---- GALLERY FOOTER ---- */
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding: 28px 36px;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.gallery-footer p {
  font-size: 16px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -.2px;
}

/* ============================================================
   3. LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 34, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.94);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.lightbox.open .lightbox-figure {
  transform: scale(1);
  opacity: 1;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  display: block;
}

/* ---- CLOSE ---- */
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 5;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: background .3s var(--ease), transform .4s var(--ease), border-color .3s var(--ease);
}
.lightbox-close:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: rotate(90deg);
}

/* ---- NAV ARROWS ---- */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

/* ---- COUNTER ---- */
.lightbox-counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .75);
  padding: 8px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

body.lightbox-open { overflow: hidden; }

/* ============================================================
   4. FINAL CTA
   ============================================================ */
.final-cta {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
  background: var(--color-primary-dk);
  text-align: center;
}
.final-cta-media { position: absolute; inset: 0; z-index: 0; }
.final-cta-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.final-cta-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 26, 68, .95) 0%, rgba(18, 38, 97, .88) 50%, rgba(186, 43, 47, .82) 100%);
}
.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.final-cta h2 {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 22px;
}
.final-cta p {
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 40px;
}
.final-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .gallery-section { padding: 90px 0; }
  .page-hero { padding: 100px 0 80px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .gallery-grid { gap: 14px; }

  .lightbox-nav { width: 48px; height: 48px; font-size: 16px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { width: 44px; height: 44px; top: 14px; right: 14px; font-size: 16px; }
  .lightbox-counter { bottom: 16px; font-size: 12px; }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-overlay-icon { width: 44px; height: 44px; font-size: 14px; }

  .gallery-footer {
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 18px;
  }
  .gallery-footer .btn { justify-content: center; }

  .lightbox-figure img { max-height: 78vh; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .page-hero-meta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .page-hero-meta-sep { display: none; }
  .final-cta { padding: 100px 0; }
  .final-cta-actions { flex-direction: column; align-items: stretch; }
  .final-cta-actions .btn { justify-content: center; }

  .gallery-grid { gap: 10px; }

  .lightbox-nav { width: 42px; height: 42px; font-size: 14px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}