/* ============================================
   SIGMA ALUTECH - Page-Specific Styles
   ============================================ */

/* ---- Hero Section ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__slide.active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-padding);
  max-width: 800px;
}

.hero__partner {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.hero__partner-line {
  width: 30px;
  height: 1px;
  background: var(--gold-primary);
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: var(--ls-tight);
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-light);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-loose);
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ---- About Section ---- */
.about__image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image-container img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__image-accent {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__text {
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-xl);
}

.about__partner-note {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--gold-subtle);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
}

.about__partner-note p {
  font-size: var(--fs-small);
  color: var(--text-primary);
}

/* ---- Product Categories Overview ---- */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card__image {
  transform: scale(1.05);
}

.category-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: background var(--transition-base);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.category-card__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.category-card__arrow {
  color: var(--gold-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.category-card:hover .category-card__arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Featured Projects on Homepage ---- */
.featured-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .featured-projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Why Choose Us ---- */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .why-us__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-us__item {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--transition-base);
}

.why-us__item:hover {
  border-color: var(--border-gold);
}

.why-us__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.why-us__item-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.why-us__item-text {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

/* ---- Contact Section ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

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

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border-radius: var(--radius-sm);
  color: var(--gold-primary);
  font-size: 1.25rem;
}

.contact__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.contact__value {
  color: var(--text-primary);
  font-size: var(--fs-body);
}

.contact__value a {
  color: var(--text-primary);
}

.contact__value a:hover {
  color: var(--gold-primary);
}

.contact__map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) brightness(0.6) contrast(1.2);
}

.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding: 12px 24px;
  background: #25d366;
  color: white;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  transition: background var(--transition-fast);
}

.contact__whatsapp:hover {
  background: #1da851;
  color: white;
}

/* ---- Product Catalog Page ---- */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  background: var(--bg-secondary);
}

.page-header__title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
}

.page-header__subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product card specifics */
.product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.product-card__feature-tag {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ---- Product Modal Specs Table ---- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td {
  padding: var(--space-sm) 0;
  font-size: var(--fs-small);
}

.specs-table td:first-child {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--text-primary);
}

/* Feature list in modal */
.feature-list {
  margin: var(--space-lg) 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '✓';
  color: var(--gold-primary);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* Finish swatches */
.finishes {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.finish-swatch {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* ---- Projects Page ---- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: background var(--transition-base);
}

.project-card:hover .project-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 50%);
}

.project-card__category {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--gold-primary);
  margin-bottom: var(--space-xs);
}

.project-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.project-card__meta {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* No results message */
.no-results {
  text-align: center;
  padding: var(--space-4xl);
  color: var(--text-muted);
}

.no-results__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}
