:root {
  --paper-cream: #F5F5DC;
  --tan: #D2B48C;
  --dark-brown: #8B4513;
  --charcoal: #2C2C2C;
  --black: #1A1A1A;
  --sepia: #704214;
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Crimson Text', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #8B4513 0%, #D2B48C 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--charcoal);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 2px solid var(--dark-brown);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--tan);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  color: var(--paper-cream);
  text-decoration: none;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
}

.nav__link {
  color: var(--tan);
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav__link:hover {
  background: var(--dark-brown);
  color: var(--paper-cream);
  text-decoration: none;
}

.site-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #8B4513 0%, #D2B48C 100%);
}

/* Video Background */
.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.video-background.playing::after {
  opacity: 0;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pages Container */
.pages-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Increased from 900px */
  height: 700px; /* Increased from 500px */
  margin: 0 auto;
  transition: opacity 0.8s ease;
  z-index: 10;
}

.pages-container.fading {
  opacity: 0;
}

/* Individual Pages */
.page {
  position: absolute;
  width: 450px; /* Increased from 350px */
  height: 600px; /* Increased from 450px */
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../../images/redm/page_center.png');
  background-size: cover; /* Changed from 'fill' to 'cover' for better scaling */
  background-position: center;

}

/* Center Page */
.page--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 480px; /* Increased from 350px */
  height: 640px; /* Increased from 480px */
  cursor: default;
}

.page--center:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

.page--left {
  left: 50%;
  top: 50%;
  transform: translate(-480px, -50%) rotate(-8deg) scale(0.9);
  z-index: 1;
}

.page--left:hover {
  transform: translate(-620px, -50%) rotate(-4deg) scale(0.95);
  z-index: 2;
}

.page--right {
  right: 50%;
  top: 50%;
  transform: translate(480px, -50%) rotate(8deg) scale(0.9);
  z-index: 1;
}

.page--right:hover {
  transform: translate(620px, -50%) rotate(4deg) scale(0.95);
  z-index: 2;
}

.page__content {
  padding: 3rem;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.page__text {
  font-size: 1.2rem;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.page__button {
  background: var(--dark-brown);
  color: var(--paper-cream);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.page__button:hover {
  background: var(--sepia);
  transform: translateY(-2px);
}

.main-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.sub-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 1.5rem;
}

.main-logo {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.tagline {
  font-style: italic;
  color: var(--charcoal);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.status-badge {
  background: #F0E68C;
  border: 2px dashed var(--dark-brown);
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

.status-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--sepia);
  font-size: 1rem;
  text-transform: uppercase;
}

.site-footer {
  background: var(--black);
  color: var(--tan);
  padding: 2rem 0;
  border-top: 2px solid var(--dark-brown);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__copy {
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--dark-brown);
  color: var(--paper-cream);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--tan);
  color: var(--black);
  text-decoration: none;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--dark-brown);
  color: var(--paper-cream);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1000px) {
  .pages-container {
    height: 400px;
  }
  
  .page {
    width: 280px;
    height: 380px;
  }
  
  .page--center {
    width: 300px;
    height: 400px;
  }

  .page__button {
    width: 200px;
    height: 60px;
    font-size: 14px;
  }
  
  .page--left {
    transform: translate(-280px, -50%) rotate(-8deg) scale(0.9);
  }
  
  .page--left:hover {
    transform: translate(-380px, -50%) rotate(-4deg) scale(0.95);
  }
  
  .page--right {
    transform: translate(280px, -50%) rotate(8deg) scale(0.9);
  }
  
  .page--right:hover {
    transform: translate(380px, -50%) rotate(4deg) scale(0.95);
  }
}

@media (max-width: 768px) {
  .site-main {
    padding: 100px 1rem 2rem;
  }
  
  .pages-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: auto;
    align-items: center;
  }
  
  .page {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 350px;
    height: 300px;
  }
  
  .page:hover {
    transform: scale(1.02) !important;
  }
  
  .page--center {
    order: -1;
    height: 350px;
  }
  
  .main-logo {
    width: 80px;
    height: 80px;
  }
  
  .main-title {
    font-size: 1.5rem;
  }

  .sub-title {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
}