/* ============================================ */
/* About Us Page Styles */
/* ============================================ */

.page-about-us {
  padding: 0;
}

/* Hide page title for About Us page - we have custom heading in content */
.page-about-us ~ .page-title,
.page-content.page-about-us ~ .page-title {
  display: none !important;
}

/* Hide title when page-about-us section is present */
body .page-title:has(+ * .page-about-us),
.page-header:has(+ * .page-about-us) .page-title {
  display: none !important;
}

/* Intro Section - same style as other sections */
.about-intro {
  background: hsl(var(--background));
  padding-top: 1rem !important;
  margin-top: 0 !important;
}

/* Reduce spacing between sections */
.page-about-us .section-spacing {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

@media (min-width: 768px) {
  .page-about-us .section-spacing {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }
}

@media (min-width: 1024px) {
  .page-about-us .section-spacing {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Remove gray backgrounds - use white like main page */
.about-pillars,
.about-microsauna {
  background: hsl(var(--background));
}

/* Ensure text colors match main page */
.about-pillars .text-headline,
.about-knowledge .text-headline,
.about-microsauna .text-headline {
  color: hsl(var(--foreground));
  font-family: 'Playfair Display', serif;
}

.about-pillars .text-body,
.about-knowledge .text-body,
.about-microsauna .text-body,
.about-microsauna .text-body-large {
  color: hsl(var(--foreground));
  font-family: 'DM Sans', sans-serif;
}

.about-pillars .text-muted-foreground,
.about-knowledge .text-muted-foreground,
.about-microsauna .text-muted-foreground {
  color: hsl(var(--muted-foreground));
  font-family: 'DM Sans', sans-serif;
}

/* Gallery Styles */
.gallery-section {
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Styles */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  max-width: 80%;
  text-align: center;
}

/* Craftsmanship Images - Two or three images side by side */
.craftsmanship-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.craftsmanship-images.grid-cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.craftsmanship-images .gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.25rem;
  cursor: pointer;
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.craftsmanship-images .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.craftsmanship-images .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.craftsmanship-images .gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .craftsmanship-images {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .craftsmanship-images.grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Benefits List */
.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 1.5rem !important;
  color: hsl(var(--primary)) !important;
  margin-right: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: transparent;
}

.cta-button:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 2rem;
    top: 10px;
    right: 10px;
  }
  
  .about-hero {
    min-height: 50vh;
    padding: 3rem 0;
  }
}
