/* ══════════════════════════════════════════
   RA Window Cleaning – assets/css/gallery.css
   ══════════════════════════════════════════ */

/* ── PAGE HERO ── */
.page-hero {
  min-height: 52vh;
  display: flex; align-items: flex-end;
  padding: 120px 5vw 70px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 60% 80%, rgba(13,127,212,0.22) 0%, transparent 70%),
    repeating-linear-gradient(
      105deg, transparent 0px, transparent 28px,
      rgba(61,184,245,0.02) 29px, transparent 30px
    );
}
.page-hero-content { position: relative; max-width: 700px; }
.page-hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92; letter-spacing: 1px;
  margin: 12px 0 20px;
}
.page-hero-content h1 span { color: var(--brand-light); }
.page-hero-sub {
  font-size: 1.1rem; font-weight: 300;
  color: var(--grey); line-height: 1.65; max-width: 540px;
}

/* ── FEATURED IMAGE ── */
.gallery-featured {
  padding: 90px 5vw;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.featured-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 70px; align-items: center;
}
.featured-img-wrap {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(61,184,245,0.1);
}
.featured-img-wrap img {
  width: 100%; display: block;
  object-fit: cover; aspect-ratio: 4/3;
}
.featured-tag {
  position: absolute; top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-light));
  color: var(--dark); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 4px;
}
.featured-text h2 { margin: 14px 0 18px; }
.featured-text p { font-size: 0.96rem; color: var(--grey); line-height: 1.75; margin-bottom: 20px; }
.featured-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.featured-meta span {
  font-size: 0.82rem; color: var(--grey);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 30px; padding: 7px 16px;
}

/* ── BEFORE & AFTER VIDEOS ── */
.video-pairs-section {
  padding: 80px 5vw;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, transparent, rgba(13,127,212,0.04) 50%, transparent);
}
.video-pairs-inner {
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.video-pairs-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1; margin: 12px 0 14px;
}
.video-pairs-inner h2 span { color: var(--brand-light); }
.video-pairs-sub {
  font-size: 0.98rem; color: var(--grey); margin-bottom: 48px;
}
.video-pairs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.video-pair-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transition: box-shadow 0.25s, transform 0.25s;
}
.video-pair-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.vp-media-wrap {
  position: relative; width: 100%; aspect-ratio: 9/16;
  background: #000; overflow: hidden;
}
.vp-video {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.vp-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 4px;
  pointer-events: none; transition: background 0.3s, color 0.3s;
}
.vp-before {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}
.vp-after {
  background: rgba(34, 197, 94, 0.85);
  color: #fff;
}
.vp-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; gap: 12px;
}
.vp-title {
  font-size: 0.92rem; font-weight: 600; color: var(--white);
  letter-spacing: 0.2px;
}
.vp-toggle {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-light));
  color: var(--dark); border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  padding: 8px 16px; border-radius: 30px;
  cursor: pointer; white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.2px;
}
.vp-toggle:hover { opacity: 0.88; transform: scale(1.03); }

@media (max-width: 700px) {
  .video-pairs-grid { grid-template-columns: 1fr; gap: 20px; }
  .video-pairs-section { padding: 60px 5vw; }
  .vp-info { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── FILTER TABS ── */
.gallery-main {
  padding: 70px 5vw 100px;
  max-width: 1300px; margin: 0 auto;
}
.gallery-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.filter-btn {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--grey); font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem; font-weight: 600;
  padding: 9px 20px; border-radius: 50px;
  cursor: pointer; letter-spacing: 0.3px;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--white); border-color: rgba(61,184,245,0.3); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-light));
  color: var(--dark); border-color: transparent; font-weight: 700;
}

/* ── GALLERY GRID ── */
.gallery-grid {
  columns: 3; column-gap: 18px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 12px; overflow: hidden;
  position: relative; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.5s forwards;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.gallery-item img {
  width: 100%; display: block;
  object-fit: cover; transition: transform 0.4s;
}
.gallery-video-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 2;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,20,31,0.85) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--white);
}
.gallery-item-tag {
  font-size: 0.68rem; color: var(--brand-sky);
  margin-top: 3px;
}

/* Stagger animation delays */
.gallery-item:nth-child(1)  { animation-delay: 0.05s; }
.gallery-item:nth-child(2)  { animation-delay: 0.10s; }
.gallery-item:nth-child(3)  { animation-delay: 0.15s; }
.gallery-item:nth-child(4)  { animation-delay: 0.20s; }
.gallery-item:nth-child(5)  { animation-delay: 0.25s; }
.gallery-item:nth-child(6)  { animation-delay: 0.30s; }
.gallery-item:nth-child(7)  { animation-delay: 0.35s; }
.gallery-item:nth-child(8)  { animation-delay: 0.40s; }
.gallery-item:nth-child(9)  { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.50s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.gallery-empty {
  text-align: center; padding: 60px 20px;
  color: var(--grey); font-size: 0.95rem;
}

/* ── GALLERY CTA ── */
.gallery-cta {
  text-align: center;
  padding: 90px 5vw;
  background: linear-gradient(135deg, #0b1e30, #07141f);
  border-top: 1px solid rgba(61,184,245,0.09);
  position: relative; overflow: hidden;
}
.gallery-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(13,127,212,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.gallery-cta p:not(.section-label) {
  font-size: 1rem; color: var(--grey);
  max-width: 420px; margin: 0 auto 32px; line-height: 1.6;
}
.gallery-cta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1; margin-bottom: 14px;
}
.gallery-cta-btns {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(6px);
}
.lightbox-overlay.active { display: block; }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 301;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw; max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw; max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  object-fit: contain;
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 1.2rem;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s; z-index: 302;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-size: 2rem;
  width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s; z-index: 302;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-caption {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 0.85rem; color: var(--grey);
  background: rgba(7,20,31,0.8); border-radius: 30px;
  padding: 8px 20px; white-space: nowrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .gallery-featured { padding: 60px 5vw; }
  .featured-inner { gap: 44px; }
  .gallery-main { padding: 50px 5vw 80px; }
}
@media (max-width: 900px) {
  .featured-inner { grid-template-columns: 1fr; gap: 32px; }
  .featured-img-wrap { max-width: 540px; margin: 0 auto; }
  .gallery-grid { columns: 2; }
  .page-hero { min-height: 40vh; padding: 100px 5vw 50px; }
}
@media (max-width: 560px) {
  .gallery-grid { columns: 1; }
  .gallery-filters { gap: 6px; }
  .filter-btn { font-size: 0.76rem; padding: 8px 14px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .page-hero { padding: 90px 5vw 40px; }
  .page-hero-sub { font-size: 1rem; }
  .gallery-cta { padding: 60px 5vw; }
}