/* Common Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 2.5vw, 18px);
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Hero Background and Overlay */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Back Button Styles */
.back-link {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left, 1rem) + 0.5rem);
  z-index: 999;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(141, 119, 82, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.back-link:hover,
.back-link:focus {
  background: #8d7752;
  color: #fff;
  border-color: #8d7752;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(141, 119, 82, 0.2);
}

.back-link:active {
  transform: translateY(0);
}

/* CTA Button Styles */
.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #7B7EF4;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(123, 126, 244, 0.2);
  margin-top: 2rem;
  letter-spacing: 0.02em;
}

.cta-button:hover {
  background: #6366F1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123, 126, 244, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

/* Split Layout */
.split-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .back-link {
    left: max(0.8rem, env(safe-area-inset-left, 0.8rem) + 0.5rem);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .back-link {
    left: max(0.6rem, env(safe-area-inset-left, 0.6rem) + 0.5rem);
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .cta-button {
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
  }
}

/* Image Lightbox */
.lightbox-enabled-image {
  cursor: zoom-in;
}

.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.9);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem 1rem;
}

.image-lightbox-overlay.active {
  display: flex;
}

.image-lightbox-image {
  max-width: min(95vw, 1200px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.image-lightbox-caption {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}