/* components.css - Interactive Components */

/* ============================================================
   1. Interactive Project Cost Estimator
   ============================================================ */
.estimator-section {
  background: radial-gradient(circle at 50% 30%, #171d27 0%, #0d0f12 75%);
  position: relative;
}

.estimator-card {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px var(--gold-glow);
  position: relative;
}

.estimator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 0 15px var(--gold-primary);
}

.calc-step {
  margin-bottom: 2.5rem;
}

.calc-step-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #0d0f12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.type-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.type-option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.type-option-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-accent);
}

.type-option-card.active {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.25);
}

.type-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  color: var(--gold-light);
}

.type-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.size-select-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.size-btn {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--border-accent);
}

.size-btn.active {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
}

.size-btn .size-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: block;
}

.size-btn .size-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.features-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.feature-checkbox-label:hover {
  border-color: var(--border-accent);
}

.feature-checkbox-label.checked {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-label-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-label-cost {
  font-size: 0.78rem;
  color: var(--gold-light);
}

.custom-switch {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-fast);
}

.custom-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.feature-checkbox-label.checked .custom-switch {
  background: var(--gold-primary);
}

.feature-checkbox-label.checked .custom-switch::after {
  transform: translateX(20px);
}

/* Estimator Live Output Bar */
.estimator-result-box {
  background: rgba(13, 15, 18, 0.9);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.result-figures {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.result-price {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.2;
}

.result-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* ============================================================
   2. Filterable Portfolio Gallery
   ============================================================ */
.portfolio-section {
  position: relative;
}

.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #0d0f12;
  border-color: var(--gold-light);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.8rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 18, 0.9) 0%, rgba(13, 15, 18, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.gallery-cat-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.gallery-item-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 9, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

.lightbox-caption h4 {
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--gold-light);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

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

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

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

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

/* ============================================================
   3. Consultation & Quote Booking Form
   ============================================================ */
.contact-section {
  background: radial-gradient(circle at 50% 100%, #171d27 0%, #0d0f12 70%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label span {
  color: var(--gold-light);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.2);
}

.form-select option {
  background: #13171d;
  color: #fff;
}

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

.file-upload-box {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.file-upload-box:hover {
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
}

.file-upload-box svg {
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.file-upload-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-submit-btn {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
}

.form-status-msg {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.form-status-msg.success {
  display: block;
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid #2ed573;
  color: #2ed573;
}

/* Contact Info Column */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-perks-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-subtle);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}

.perk-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.perk-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.direct-connect-card {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.15) 0%, rgba(13, 15, 18, 0.8) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.direct-connect-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.direct-connect-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.direct-phone-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: span 1;
  }
}

/* ============================================================
   4. Right-Hand Gold Sticky Social Bar (Scroll Triggered)
   ============================================================ */
.sticky-social-bar {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(80px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  background: rgba(18, 22, 28, 0.88);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(197, 160, 89, 0.35);
  backdrop-filter: blur(16px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.sticky-social-bar.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.social-gold-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0d0f12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  text-decoration: none;
}

.social-gold-btn svg {
  width: 20px;
  height: 20px;
  fill: #0d0f12;
  transition: transform var(--transition-fast);
}

.social-gold-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.7);
  filter: brightness(1.1);
}

@media (max-width: 860px) {
  .sticky-social-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ============================================================
   5. Interactive Materials & Finishes Studio
   ============================================================ */
.materials-section {
  background: radial-gradient(circle at 50% 40%, #151a24 0%, #0d0f12 80%);
  position: relative;
}

.materials-studio-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.swatch-group {
  margin-bottom: 2rem;
}

.swatch-group-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
}

.swatch-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.swatch-card:hover {
  border-color: var(--border-accent);
  background: rgba(255, 255, 255, 0.06);
}

.swatch-card.active {
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.swatch-color-pill {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.swatch-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

/* Material Spec Preview Card */
.spec-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.spec-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
}

.spec-preview-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.spec-preview-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.spec-item-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.spec-item-label {
  color: var(--text-muted);
}

.spec-item-val {
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .materials-studio-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   7. Comprehensive Architectural FAQ Accordion
   ============================================================ */
.faq-section {
  background: var(--bg-secondary);
  position: relative;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.faq-question-btn {
  width: 100%;
  padding: 1.3rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  cursor: pointer;
}

.faq-question-btn:hover {
  color: var(--gold-light);
}

.faq-icon-cross {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 1px solid var(--border-accent);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon-cross {
  transform: rotate(45deg);
  background: var(--gold-primary);
  color: #0d0f12;
}

.faq-answer-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.8rem;
}

.faq-item.active .faq-answer-body {
  max-height: 350px;
  padding-bottom: 1.4rem;
}

.faq-answer-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   8. Mobile-First Sticky Bottom Action Bar
   ============================================================ */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 15, 18, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-accent);
  padding: 0.65rem 1rem;
  z-index: 997;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 0.6rem;
  align-items: center;
}

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.mobile-btn-call {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.mobile-btn-wa {
  background: var(--gold-gradient);
  color: #0d0f12;
}

.mobile-btn-quote {
  background: var(--gold-gradient);
  color: #0d0f12;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
}

