/* =========================================================
   gallery.css — Shared styles for Gallery section pages
   Depends on: variables.css, base.css, utilities.css
   ========================================================= */

/* ── Hero Banner (reuses about-hero pattern) ─────────────── */
.gallery-hero {
  position: relative;
  min-height: 750px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--nd-green-dark) 0%, var(--nd-green) 100%);
  overflow: hidden;
  padding-bottom: 120px;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/static/images/hero_bg.png') center/cover no-repeat;
  opacity: 0.12;
}

.gallery-hero .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.gallery-hero h1 {
  font-family: var(--nd-font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.gallery-hero .hero-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.gallery-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Section Utilities ───────────────────────────────────── */
.section-py {
  padding: 80px 0;
}

.section-py-sm {
  padding: 50px 0;
}

.nd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nd-font-nav);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--nd-gold-dark);
  margin-bottom: 14px;
}

.nd-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--nd-gold);
  border-radius: 2px;
}

.section-heading {
  font-family: var(--nd-font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--nd-text-dark);
  line-height: 1.25;
}

.section-heading .accent {
  background: linear-gradient(90deg, var(--nd-green) 0%, var(--nd-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Filter Buttons ──────────────────────────────────────── */

.gf-btn {
  border: 1.5px solid rgba(14, 90, 79, 0.2);
  background: #fff;
  color: var(--nd-text-mute);
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--nd-font-nav);
}

.gf-btn:hover,
.gf-btn.active {
  background: var(--nd-green);
  border-color: var(--nd-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 90, 79, 0.25);
}

/* ── Masonry / Grid Gallery ──────────────────────────────── */
.gallery-grid {
  columns: 3;
  column-gap: 14px;
}

.gallery-grid .g-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}

.gallery-grid .g-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-grid .g-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 991.98px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 575.98px) {
  .gallery-grid {
    columns: 1;
  }
}

/* ── Category Section Cards ──────────────────────────────── */

/* ── Before / After Comparison ───────────────────────────── */
.ba-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(14, 90, 79, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ba-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(14, 90, 79, 0.12);
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.ba-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: #fff;
  z-index: 2;
}

.ba-divider-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--nd-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.ba-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  position: absolute;
  bottom: 8px;
  border-radius: 4px;
}

.ba-label.before {
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.ba-label.after {
  right: 8px;
  background: var(--nd-green);
  color: #fff;
}

.ba-body {
  padding: 16px 18px 20px;
}

.ba-body .ba-treatment {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nd-gold-dark);
  margin-bottom: 4px;
}

.ba-body .ba-title {
  font-family: var(--nd-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--nd-text-dark);
  margin-bottom: 6px;
}

.ba-body .ba-desc {
  font-size: 0.85rem;
  color: var(--nd-text-mute);
  margin: 0;
  line-height: 1.65;
}

/* ── Comparison Slider ───────────────────────────────────── */
.compare-slider-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  aspect-ratio: 16/9;
  max-width: 100%;
}

.compare-before,
.compare-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare-before img,
.compare-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare-after {
  width: 50%;
  transition: width 0s;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.compare-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: var(--nd-green);
  font-size: 1rem;
}

.compare-before-label,
.compare-after-label {
  position: absolute;
  bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 5;
}

.compare-before-label {
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.compare-after-label {
  right: 16px;
  background: var(--nd-green);
  color: #fff;
}

/* ── Treatment Category Tabs ─────────────────────────────── */
.treatment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.tt-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(14, 90, 79, 0.18);
  background: #fff;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nd-text-mute);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--nd-font-nav);
}

.tt-tab i {
  font-size: 1rem;
}

.tt-tab:hover,
.tt-tab.active {
  background: var(--nd-green);
  border-color: var(--nd-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 90, 79, 0.25);
}

/* ── Testimonial Cards ───────────────────────────────────── */
.gallery-testimonial {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(14, 90, 79, 0.08);
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.gallery-testimonial .gt-quote {
  font-size: 2.8rem;
  color: var(--nd-green-tint);
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 10px;
  display: block;
}

.gallery-testimonial .gt-text {
  font-size: 0.93rem;
  color: var(--nd-text-dark);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 18px;
}

.gallery-testimonial .gt-stars {
  color: var(--nd-gold);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.gallery-testimonial .gt-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--nd-green-dark);
}

.gallery-testimonial .gt-treatment {
  font-size: 0.78rem;
  color: var(--nd-text-mute);
}

/* ── CTA Strip ───────────────────────────────────────────── */
.nd-cta-strip {
  background: linear-gradient(135deg, var(--nd-green-dark) 0%, var(--nd-green) 100%);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nd-cta-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(200, 163, 77, 0.18), transparent 70%);
}

.nd-cta-strip .cta-inner {
  position: relative;
  z-index: 1;
}

.nd-cta-strip h2 {
  font-family: var(--nd-font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.nd-cta-strip p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-nd-green {
  background: var(--nd-green);
  color: #fff;
  border: 2px solid var(--nd-green);
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.btn-nd-green:hover {
  background: var(--nd-green-dark);
  border-color: var(--nd-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 90, 79, 0.35);
}

.btn-nd-gold {
  background: linear-gradient(135deg, var(--nd-gold), var(--nd-gold-dark));
  color: #1C1506;
  border: none;
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 0.93rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.btn-nd-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 163, 77, 0.45);
  color: #1C1506;
}

.btn-nd-white {
  background: #fff;
  color: var(--nd-green);
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 0.93rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.btn-nd-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Lightbox Overlay ────────────────────────────────────── */
.nd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 30, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.nd-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.nd-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  animation: lb-zoom-in 0.3s ease;
}

@keyframes lb-zoom-in {
  from {
    transform: scale(0.88);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.nd-lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.nd-lightbox .lb-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nd-lightbox .lb-prev,
.nd-lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.nd-lightbox .lb-prev {
  left: 16px;
}

.nd-lightbox .lb-next {
  right: 16px;
}

.nd-lightbox .lb-prev:hover,
.nd-lightbox .lb-next:hover {
  background: var(--nd-green);
  border-color: var(--nd-green);
}

.nd-lightbox .lb-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ── Stats Row ───────────────────────────────────────────── */