/* ============================================================
   SUVED CREATIONS - Facades Page Styles
   ============================================================ */

/* --- Facade Types Grid --- */
.facades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.facade-type-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.4s ease;
  background: var(--bg-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.facade-type-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.facade-type-image {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.facade-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.facade-type-card:hover .facade-type-image img {
  transform: scale(1.08);
}

.facade-type-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
}

.facade-type-info {
  padding: 25px;
}

.facade-type-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.facade-type-card:hover .facade-type-info h3 {
  color: var(--accent);
}

.facade-type-info p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.facade-type-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  transition: gap 0.3s ease;
}

.facade-type-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.facade-type-card:hover .facade-type-link {
  gap: 12px;
}

.facade-type-card:hover .facade-type-link svg {
  transform: translateX(4px);
}

/* Larger first card spanning 2 columns */
.facade-type-card.featured {
  grid-column: span 2;
}

.facade-type-card.featured .facade-type-image {
  height: 450px;
}

/* --- Facade Detail View (for inline detail, can be used for modals) --- */
.facade-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  color: #ffffff;
}

.facade-detail-overlay.active {
  display: flex;
}

.facade-detail-content {
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.facade-detail-image {
  height: 500px;
  overflow: hidden;
}

.facade-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facade-detail-info h2 {
  margin-bottom: 20px;
  color: #ffffff;
}

.facade-detail-info p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.facade-detail-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.facade-detail-close:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.facade-detail-close svg {
  width: 20px;
  height: 20px;
}

/* --- Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 40px 25px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-primary);
  text-align: center;
  counter-increment: process;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.process-step:hover {
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.85rem;
}

/* Connecting line between steps */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 30px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* --- Materials Section --- */
.materials-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.material-item:hover {
  border-color: rgba(201, 169, 110, 0.3);
}

.material-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.material-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.material-item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .facades-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facade-type-card.featured {
    grid-column: span 2;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .facade-detail-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .facade-detail-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .facades-grid {
    grid-template-columns: 1fr;
  }

  .facade-type-card.featured {
    grid-column: span 1;
  }

  .facade-type-card.featured .facade-type-image {
    height: 300px;
  }

  .facade-type-image {
    height: 280px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .materials-list {
    grid-template-columns: 1fr;
  }
}
