/* ==============================================================================
   BARINDERPAL PHOTOGRAPHY • CINEMATIC DARK EDITORIAL THEME
   Engineered for Cloudflare R2 Multi-Domain Architecture
   ============================================================================== */

:root {
  --bg-primary: #08090C;
  --bg-surface: #101218;
  --bg-surface-elevated: #161922;
  --bg-glass: rgba(16, 18, 24, 0.78);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(226, 184, 87, 0.35);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-gold: #E2B857;
  --accent-gold-glow: rgba(226, 184, 87, 0.18);
  --accent-whatsapp: #25D366;
  --font-serif: "Cinzel", "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --container-max: 1280px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #151824 0%, var(--bg-primary) 70%);
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== HEADER & NAVIGATION ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-logo-main {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 700;
}

.brand-logo-main span {
  color: var(--accent-gold);
}

.brand-logo-sub {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 184, 87, 0.12);
  border: 1px solid rgba(226, 184, 87, 0.3);
  color: var(--accent-gold);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.header-cta-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 20px 80px;
  overflow: hidden;
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video,
.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) contrast(1.08);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.4) 0%, rgba(8, 9, 12, 0.8) 75%, var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 184, 87, 0.12);
  border: 1px solid rgba(226, 184, 87, 0.28);
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.8vw, 68px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 19px);
  color: #CBD5E1;
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px var(--accent-gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(226, 184, 87, 0.35);
  background: #ecd07a;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ==================== STATS BAR ==================== */
.stats-bar {
  position: relative;
  z-index: 10;
  margin-top: -40px;
  margin-bottom: 70px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-card {
  background: var(--bg-surface);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ==================== SECTION HEADERS ==================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== PORTFOLIO CATEGORY TABS ==================== */
.portfolio-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.portfolio-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.portfolio-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-tab.is-active {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

/* ==================== PORTFOLIO MASONRY GRID ==================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card.is-landscape {
  aspect-ratio: 16 / 10;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0) 40%, rgba(8, 9, 12, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.portfolio-item-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
  margin-bottom: 6px;
}

.portfolio-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.portfolio-camera-spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #CBD5E1;
}

/* ==================== PACKAGES & PRICING ==================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.package-card.is-featured {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, #181B26 0%, var(--bg-surface) 100%);
  box-shadow: 0 10px 30px var(--accent-gold-glow);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--accent-gold);
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 12px;
}

.package-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.package-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 38px;
}

.package-pricing {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.package-price {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.package-price-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.package-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.package-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #E2E8F0;
  margin-bottom: 12px;
}

.package-feature-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-gold);
  margin-top: 3px;
}

.package-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(226, 184, 87, 0.14);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  transition: all 0.25s ease;
}

.package-cta-btn:hover {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 6px 20px var(--accent-gold-glow);
}

/* ==================== FAQ ACCORDION ==================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(226, 184, 87, 0.4);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-question-btn svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question-btn svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 5, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.is-active {
  display: flex;
  opacity: 1;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: scale(1.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev-btn { left: 24px; }
.lightbox-next-btn { right: 24px; }

.lightbox-content-box {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption-bar {
  margin-top: 16px;
  text-align: center;
  max-width: 600px;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: #FFF;
  margin-bottom: 4px;
}

.lightbox-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==================== FLOATING WHATSAPP PILL ==================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  background: var(--accent-whatsapp);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.25s ease;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 380px;
}

.footer-bio {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-prev-btn { left: 10px; }
  .lightbox-next-btn { right: 10px; }
}
