/* ==========================================================================
   LUXURY SOFA SERVICE SIALKOT — COMPONENTS STYLESHEET
   Hero, Sliders, Galleries, Lightbox, Forms, WhatsApp & Custom UI
   ========================================================================== */

/* --- Hero Section --- */
.hero-luxury {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--color-emerald-deep);
  color: var(--color-white);
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.04);
  transition: transform 12s ease;
}

.hero-luxury:hover .hero-backdrop img {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(16, 63, 54, 0.94) 0%, rgba(16, 63, 54, 0.78) 50%, rgba(23, 78, 67, 0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(199, 163, 106, 0.18);
  border: 1px solid var(--color-gold-champagne);
  color: var(--color-gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-gold-champagne);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-gold-light);
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-gold-light);
  margin-bottom: 20px;
  line-height: 1.35;
  font-style: italic;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 38px;
  max-width: 680px;
}

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

/* Page Header Banner (for subpages) */
.page-banner {
  background: linear-gradient(135deg, var(--color-emerald-deep) 0%, var(--color-emerald-forest) 100%);
  color: var(--color-white);
  padding: 70px 0;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--color-gold-champagne);
}

.page-banner-title {
  font-size: 2.8rem;
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-banner-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 16px;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumbs a {
  color: var(--color-gold-light);
}

.breadcrumbs a:hover {
  color: var(--color-white);
}

/* --- Interactive Before & After Slider --- */
.ba-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background-color: var(--color-charcoal-dark);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  width: 50%; /* initial position */
}

.ba-before-layer .ba-image {
  width: 100%;
  height: 100%;
  /* Fix image width to match parent container width regardless of clip */
  max-width: none;
}

.ba-label {
  position: absolute;
  bottom: 18px;
  padding: 6px 14px;
  background: rgba(16, 63, 54, 0.85);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 4;
  border: 1px solid var(--color-border);
}

.ba-label-before {
  left: 18px;
  background: rgba(41, 44, 41, 0.85);
}

.ba-label-after {
  right: 18px;
  background: rgba(16, 63, 54, 0.9);
  color: var(--color-gold-light);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--color-gold-champagne);
  z-index: 5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold-champagne);
  border: 3px solid var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal-dark);
  cursor: ew-resize;
}

.ba-info-box {
  padding: 28px;
  border-top: 1px solid var(--color-border-light);
}

.ba-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.ba-title {
  font-size: 1.5rem;
  color: var(--color-emerald-deep);
}

.ba-work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.ba-work-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--color-charcoal-muted);
}

.ba-work-item svg {
  color: var(--color-emerald-deep);
  flex-shrink: 0;
}

/* --- Fabric Showcase Cards --- */
.fabric-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.fabric-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-champagne);
}

.fabric-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.fabric-card:hover .fabric-media img {
  transform: scale(1.08);
}

.fabric-content {
  padding: 22px;
}

.fabric-title {
  font-size: 1.25rem;
  color: var(--color-emerald-deep);
  margin-bottom: 8px;
}

.fabric-desc {
  font-size: 0.9rem;
  color: var(--color-charcoal-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.fabric-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fabric-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  background-color: var(--color-beige-light);
  color: var(--color-charcoal-dark);
  border-radius: var(--radius-sm);
}

/* --- 6-Step Visual Process Timeline --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.process-step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
}

.process-step-card:hover {
  border-color: var(--color-gold-champagne);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold-champagne);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}

.step-title {
  font-size: 1.25rem;
  color: var(--color-emerald-deep);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--color-charcoal-muted);
  line-height: 1.6;
}

/* --- Filterable Gallery & Masonry --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--color-white);
  border: 1.5px solid var(--color-border-light);
  color: var(--color-charcoal-dark);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-emerald-deep);
  color: var(--color-white);
  border-color: var(--color-emerald-deep);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--color-charcoal-dark);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(16, 63, 54, 0.2) 0%, rgba(16, 63, 54, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--color-white);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-badge {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.gallery-item-title {
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 12px;
}

.gallery-zoom-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold-champagne);
  color: var(--color-charcoal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 38, 33, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
}

.lightbox-details {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--color-cream-warm);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--color-gold-champagne);
  color: var(--color-charcoal-dark);
}

/* --- Forms & Inputs --- */
.luxury-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-emerald-deep);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.95rem;
  color: var(--color-charcoal-dark);
  background-color: var(--color-cream-warm);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold-champagne);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(199, 163, 106, 0.18);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* File Upload Zone */
.file-dropzone {
  border: 2px dashed var(--color-gold-champagne);
  background-color: rgba(250, 247, 240, 0.8);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.file-dropzone:hover {
  background-color: rgba(199, 163, 106, 0.1);
  border-color: var(--color-gold-dark);
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  color: var(--color-gold-dark);
  margin-bottom: 10px;
}

.dropzone-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-emerald-deep);
  margin-bottom: 4px;
}

.dropzone-subtitle {
  font-size: 0.82rem;
  color: var(--color-charcoal-muted);
}

.file-selected-text {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--color-emerald-forest);
  font-weight: 600;
}

/* Form Helper & Honeypot */
.form-note {
  font-size: 0.82rem;
  color: var(--color-charcoal-muted);
  margin-top: 6px;
}

.hp-field {
  display: none !important;
  visibility: hidden !important;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-floating-btn {
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-bounce);
  position: relative;
}

.whatsapp-floating-btn:hover {
  background-color: var(--color-whatsapp-dark);
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--color-whatsapp);
  animation: pulse-ring 2.2s infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  background: var(--color-charcoal-dark);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.whatsapp-floating:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* --- Social Icons List --- */
.social-links-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.social-icon-link:hover {
  background: var(--color-gold-champagne);
  color: var(--color-charcoal-dark);
  border-color: var(--color-gold-champagne);
  transform: translateY(-2px);
}

.social-whatsapp:hover {
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
  color: var(--color-white);
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-champagne);
}

.blog-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.blog-card:hover .blog-media img {
  transform: scale(1.06);
}

.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-charcoal-light);
  margin-bottom: 12px;
}

.blog-category {
  color: var(--color-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--color-emerald-deep);
  margin-bottom: 12px;
}

.blog-summary {
  font-size: 0.92rem;
  color: var(--color-charcoal-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

