/* ═══════════════════════════════════════════════════════
   BAMBAL INFRASTRUCTURE — Subpages & Deep Interaction System
   Universal Luxury Subpage Styles, Galleries & Navigation
   ═══════════════════════════════════════════════════════ */

/* ── Top Navigation Bar for Subpages ── */
.subpage-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.subpage-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subpage-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--clr-surface);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-full);
  color: var(--clr-accent-light);
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.subpage-back-btn:hover {
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
  border-color: var(--clr-accent);
  transform: translateX(-3px);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.25);
}

.subpage-back-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.subpage-back-btn:hover svg {
  transform: translateX(-3px);
}

.subpage-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.subpage-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.subpage-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subpage-brand-text {
  display: flex;
  flex-direction: column;
}

.subpage-brand-name {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.subpage-brand-tagline {
  font-family: var(--ff-heading);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-accent);
}

.subpage-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subpage-nav-link {
  color: var(--clr-text-muted);
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.subpage-nav-link:hover {
  color: var(--clr-accent);
}

.subpage-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-family: var(--ff-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subpage-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.subpage-nav-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── Breadcrumb Bar ── */
.subpage-breadcrumb {
  background: var(--clr-bg-card);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.65rem 5%;
  font-size: 0.78rem;
  color: var(--clr-text-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.subpage-breadcrumb a {
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.subpage-breadcrumb a:hover {
  color: var(--clr-accent);
}

.subpage-breadcrumb-sep {
  color: var(--clr-text-subtle);
  font-size: 0.7rem;
}

.subpage-breadcrumb-current {
  color: var(--clr-accent);
  font-weight: 500;
}

/* ── Subpage Hero ── */
.subpage-hero {
  position: relative;
  padding: var(--space-3xl) 5% var(--space-2xl);
  background: radial-gradient(circle at 80% 20%, rgba(201, 169, 110, 0.08), transparent 60%),
              linear-gradient(180deg, var(--clr-bg-deep) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--glass-border);
}

.subpage-hero-header {
  max-width: 1100px;
  margin: 0 auto;
}

.subpage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.subpage-kicker::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--clr-accent);
}

.subpage-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.subpage-title em {
  font-style: italic;
  color: var(--clr-accent);
}

.subpage-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
}

.subpage-location svg {
  width: 18px;
  height: 18px;
  color: var(--clr-accent);
}

.subpage-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--ff-heading);
}

.badge-ready {
  background: rgba(46, 204, 113, 0.15);
  color: #2ECC71;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.badge-construction {
  background: rgba(201, 169, 110, 0.15);
  color: var(--clr-accent);
  border: 1px solid rgba(201, 169, 110, 0.35);
}

.badge-upcoming {
  background: rgba(52, 152, 219, 0.15);
  color: #3498DB;
  border: 1px solid rgba(52, 152, 219, 0.35);
}

.badge-rarity {
  background: rgba(231, 76, 60, 0.15);
  color: #FF6B6B;
  border: 1px solid rgba(231, 76, 60, 0.35);
}

/* ── Key Specs Ribbon Bar ── */
.specs-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-top: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.spec-ribbon-item {
  display: flex;
  flex-direction: column;
}

.spec-ribbon-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-subtle);
  font-family: var(--ff-heading);
  margin-bottom: 0.3rem;
}

.spec-ribbon-val {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--clr-text);
}

.spec-ribbon-val span {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--clr-text-muted);
}

/* ── Content Layout ── */
.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) 5%;
}

.subpage-section {
  margin-bottom: var(--space-4xl);
}

.subpage-section-header {
  margin-bottom: var(--space-xl);
}

.subpage-sec-kicker {
  font-family: var(--ff-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-accent);
  display: block;
  margin-bottom: 0.4rem;
}

.subpage-sec-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--clr-white);
  line-height: 1.25;
}

.subpage-sec-title em {
  color: var(--clr-accent);
  font-style: italic;
}

.subpage-sec-desc {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-top: 0.5rem;
  max-width: 780px;
}

/* ── Interactive Photo & Plan Gallery ── */
.gallery-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-main-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg-deep);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-main-viewport:hover .gallery-main-img {
  transform: scale(1.02);
}

.gallery-overlay-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.gallery-overlay-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: var(--ff-heading);
  color: var(--clr-text);
  border: 1px solid var(--glass-border);
  max-width: 70%;
}

.gallery-thumbs-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.gallery-thumb-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  background: var(--clr-bg-card);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-item.active {
  border-color: var(--clr-accent);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.4);
}

.gallery-thumb-item:hover {
  transform: translateY(-2px);
}

/* ── Lightbox Modal ── */
.subpage-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.subpage-lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--clr-text);
  font-family: var(--ff-heading);
  font-size: 0.9rem;
  text-align: center;
  max-width: 700px;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: var(--clr-accent);
  color: #000;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: var(--clr-accent);
  color: #000;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: -40px; right: 10px; }
}

/* ── Specifications Grid ── */
.specs-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.spec-matrix-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.spec-matrix-card:hover {
  border-color: rgba(201, 169, 110, 0.4);
  transform: translateY(-2px);
}

.spec-matrix-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.spec-matrix-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(201, 169, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
}

.spec-matrix-icon svg {
  width: 20px;
  height: 20px;
}

.spec-matrix-title {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
}

.spec-matrix-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spec-matrix-list li {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.spec-matrix-list li::before {
  content: "•";
  color: var(--clr-accent);
  font-weight: bold;
}

/* ── Location Advantages ── */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.location-item-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.location-time-badge {
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-accent);
  background: rgba(201, 169, 110, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.location-item-info h4 {
  font-size: 0.92rem;
  color: var(--clr-text);
  margin-bottom: 0.2rem;
}

.location-item-info p {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* ── Project Action / Booking Card ── */
.project-cta-banner {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.12) 0%, rgba(10, 10, 10, 0.8) 100%),
              var(--clr-bg-card);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.project-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.15), transparent 70%);
  pointer-events: none;
}

.project-cta-header h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}

.project-cta-header p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 650px;
}

.project-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
  border-radius: var(--radius-full);
  font-family: var(--ff-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-gold:hover {
  background: var(--clr-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.35);
}

.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--ff-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-family: var(--ff-heading);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ── Service Steps & Ecosystem ── */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  position: relative;
}

.process-step-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.step-num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.process-step-card h4 {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}

.process-step-card p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ── Achievements Gallery ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.award-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.award-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 169, 110, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.award-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--clr-bg-deep);
  cursor: pointer;
  position: relative;
}

.award-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.award-card:hover .award-card-img img {
  transform: scale(1.05);
}

.award-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.award-kicker {
  font-family: var(--ff-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-accent);
  margin-bottom: 0.35rem;
}

.award-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.award-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ── Interactive Category Filter Pills ── */
.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.5rem 1.1rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-muted);
  font-family: var(--ff-heading);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
  border-color: var(--clr-accent);
}

/* ── Responsive adjustments ── */
@media (max-width: 900px) {
  .subpage-nav {
    padding: 0.75rem 4%;
  }
  .subpage-nav-link {
    display: none;
  }
  .specs-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .specs-ribbon {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .project-cta-banner {
    padding: 1.5rem;
  }
  .project-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .project-cta-actions a {
    justify-content: center;
  }
}
