/* 
  Global Stylesheet: Ashley and Ashley Wedding
  Architecture: Editorial Split-Screen Minimalism
*/

:root {
  /* Colors */
  --color-sage: #8A9A5B;
  --color-white: #FFFFFF;
  --color-charcoal: #333333;
  --color-slate: #E5E9EC; /* Pale slate-grey for hero background */
  --color-off-white: #F9F9F9;
  --color-grey-light: #F0F0F0;
  --color-grey-dark: #666666;

  /* Typography */
  --font-heading: 'Playfair Display', serif; /* Didone Style */
  --font-body: 'Inter', sans-serif; /* Geometric Sans */
  
  /* Font Sizes */
  --fs-display: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: 1rem;
  --fs-micro: 0.75rem;

  /* Spacing */
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 1); /* 8px */
  --space-sm: calc(var(--space-unit) * 2); /* 16px */
  --space-md: calc(var(--space-unit) * 3); /* 24px */
  --space-lg: calc(var(--space-unit) * 4); /* 32px */
  --space-xl: calc(var(--space-unit) * 6); /* 48px */
  --space-xxl: calc(var(--space-unit) * 8); /* 64px */
  --space-huge: calc(var(--space-unit) * 16); /* 128px */

  /* Layout */
  --split-point: 50%;
  --container-max: 600px; /* Max width for content in the right pane */

  /* Transitions */
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Structure */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sticky Left Pane */
.pane-left {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--split-point);
  height: 100vh;
  z-index: 10;
  overflow: hidden;
  color: var(--color-white);
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.left-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.left-image.active {
  opacity: 1;
}

.left-pane-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xxl);
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: 2;
}

.brand-lockup {
  max-width: 400px;
}

.display-title {
  font-size: var(--fs-display);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.event-date {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.3em;
}

.carousel-indicators {
  position: absolute;
  bottom: var(--space-xxl);
  left: var(--space-xxl);
  display: flex;
  gap: var(--space-sm);
}

.indicator-item {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  transition: var(--transition-base);
}

.indicator-item.active {
  background: var(--color-white);
}

.top-nav {
  position: absolute;
  top: var(--space-xxl);
  left: var(--space-xxl);
}

.menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
}

.menu-icon::before { top: -8px; }
.menu-icon::after { bottom: -8px; }

/* Scrolling Right Pane */
.pane-right {
  margin-left: var(--split-point);
  width: calc(100% - var(--split-point));
  background-color: var(--color-white);
}

/* Sections */
.section {
  padding: var(--space-huge) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section--hero {
  background-color: var(--color-slate);
  min-height: 100vh;
  justify-content: center;
}

.section__content {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.15em; }
.text-micro { font-size: var(--fs-micro); }

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  border-radius: 100px;
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.btn--outline {
  background: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}

.btn--outline:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.btn--filled-light {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--filled-light:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  :root {
    --split-point: 0px;
  }

  .layout {
    display: block;
  }

  .pane-left {
    position: relative;
    width: 100%;
    height: 80vh; /* Taller hero on mobile */
    z-index: 10;
  }

  .pane-right {
    margin-left: 0;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .brand-lockup {
    text-align: center;
    margin: 0 auto;
  }

  .display-title {
    font-size: calc(var(--fs-display) * 0.8);
  }

  .carousel-indicators {
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--space-xl);
  }

  .top-nav {
    left: var(--space-lg);
    top: var(--space-lg);
  }

  .section {
    padding: var(--space-xl) 0;
  }
}
