/* =======================
   Gallery Page Foundation
======================= */
body.gallery-page {
  background: radial-gradient(120% 120% at 50% 0%, rgba(26,106,103,0.15) 0%, rgba(15,23,42,0) 60%) #f5f7fb;
  color: #0f172a;
}

/* CTA Button Styles */
.cta-btn {
  background: #f4b400;
  color: #000;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #e0a700;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(135deg, #f4b400, #ffdd57);
  box-shadow: 0 10px 25px rgba(244, 180, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(244, 180, 0, 0.3);
}

/* =======================
   Gallery Hero
======================= */
.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 20px 120px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.9), rgba(26,106,103,0.85)),
    url('../images/gallery-hero-texture.jpg') center/cover;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.24), transparent 55%);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.hero-eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5f5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(203,213,255,0.6);
}

.gallery-hero h1 {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: 1px;
  color: #ffd86b;
  text-shadow: 0 12px 35px rgba(0,0,0,0.7);
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 720px;
  color: rgba(255,255,255,0.86);
}

.hero-metrics {
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  .hidden { display: none !important; }

}

.hero-metrics li {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 22px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  .hidden { display: none !important; }

}

.hero-metrics li strong {
  font-size: 1.6rem;
  letter-spacing: normal;
  color: #fff;
  .hidden { display: none !important; }

}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.hero-note {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* =======================
   Showcase Section
======================= */
.gallery-showcase {
  padding: 80px 20px 40px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #0B3550;
}

.section-heading p {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 28px 0;
  flex-wrap: wrap;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(11,53,80,0.12);
  color: #0B3550;
}

.service-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.service-chip--outline {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.4);
  color: #475569;
}

.gallery-card figcaption {
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-card h3 {
  font-size: 1.35rem;
  color: #0f172a;
}

.gallery-card p {
  color: #4a5568;
  line-height: 1.65;
}

/* =======================
   Slider Core
======================= */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0b1220;
  touch-action: none;
  user-select: none;
  margin: 24px 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.ba-slider img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider .after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.12s ease-out;
  will-change: clip-path;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.divider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(244,180,0,0.9), rgba(26,106,103,0.9));
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: #ffffff;
  border: 4px solid rgba(15,23,42,0.65);
  border-radius: 50%;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: ew-resize;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.35);
}

.slider-handle:active {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.4);
}

.slider-handle .chevrons span {
  color: #0B3550;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

/* =======================
   Call-to-Action
======================= */
.gallery-cta {
  padding: 80px 20px 110px;
  text-align: center;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  background: #0f172a;
  color: #f8fafc;
  padding: 48px 36px;
  border-radius: 24px;
  box-shadow: 0 34px 45px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #fff;
}

.cta-inner p {
  color: rgba(226,232,240,0.85);
  line-height: 1.7;
  font-size: 1.05rem;
}

.cta-inner .btn-primary {
  align-self: center;
}

/* =======================
   Responsive Adjustments
======================= */
@media (max-width: 992px) {
  .hero-metrics {
    gap: 18px;
  }

  .hero-metrics li {
    min-width: 140px;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 120px 20px 100px;
  }

  .hero-eyebrow {
    align-self: center;
  }

  .hero-inner {
    align-items: stretch;
  }

  .hero-metrics {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics li {
    align-items: flex-start;
  }

  .card-header {
    padding: 20px 22px 0;
  }

  .ba-slider {
    margin: 20px 22px;
  }

  .gallery-card figcaption {
    padding: 20px 22px 28px;
  }

  .gallery-grid {
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .slider-handle {
    width: 48px;
    height: 48px;
  }

  .divider-line {
    width: 3px;
  }

  .btn-primary {
    width: 100%;
  }
}

/* =======================
   Modal Popups
======================= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

.modal-content .close:hover {
  color: #000;
}

.modal-content h2 {
  color: #0B3550;
  margin-bottom: 20px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
}

.modal-content textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-content button {
  background: #f4b400;
  border: none;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 16px;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: #e0a700;
}
