/* ============================================================
   Wedding Invitation - Split Page Styles
   Design tokens: Dark #121F38, Accent #c78665, Gray #818491
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&family=Muli:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap');

@font-face {
  font-family: 'LearningCurve';
  src: url('../fonts/LearningCurve.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --dark: #121F38;
  --accent: #c78665;
  --gray: #818491;
  --header-h: 90px;
  --z-header: 100;
  --z-menu: 9998;
  --z-side-overlay: 10001;
  --z-side-panel: 10002;
  --z-top: 10000;
  --font-body: 'Muli', sans-serif;
  --font-heading: 'Cormorant', serif;
  --font-script: 'LearningCurve', cursive;
}

/* --- Base --- */
html, body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
  color: var(--gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #121f38;
  margin: 25px 0;
  text-transform: uppercase;
}
h1 { font-size: 40px; line-height: 1.3em; font-weight: 300; letter-spacing: 0.095em; }
h2 { font-size: 33px; line-height: 1.36em; font-weight: 300; letter-spacing: 0.095em; }
h3 { font-size: 23px; line-height: 1.6em; font-weight: 300; letter-spacing: 0.055em; }
h4 { font-size: 17px; line-height: 1.4em; font-weight: 300; }
h5 { font-size: 14px; line-height: 1.7em; font-weight: 300; letter-spacing: 0.14em; }
h6 { font-size: 11px; line-height: 1.82em; font-weight: 300; letter-spacing: 0.12em; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  transition: background 0.3s ease;
}

.site-header .site-logo,
.page-header .logo {
  display: block;
  height: 80px;
  width: 80px;
}

/* --- Fixed-position action buttons (top-right, above fullscreen menu) --- */
.header-actions {
  position: fixed;
  top: 0;
  right: 0;
  height: var(--header-h);
  z-index: var(--z-top);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 40px 0 0;
  pointer-events: none;
}

.header-actions > * {
  pointer-events: auto;
}

/* --- Side Panel Toggle --- */
.side-panel-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.side-panel-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  margin: 2px 0;
  border-radius: 1px;
}

.side-panel-toggle span:nth-child(2) {
  width: 14px;
  margin-left: 3px;
}

/* ============================================================
   Side Panel
   ============================================================ */
.side-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: var(--z-side-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.side-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: var(--z-side-panel);
  overflow-y: auto;
  padding: 60px 40px 20px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

.side-panel.open {
  transform: translateX(0);
}

.side-panel .side-logo {
  display: block;
  height: 110px;
  width: 110px;
  margin: 0 auto 30px;
}

.side-panel .side-description {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 22px;
  color: #3c4860;
  line-height: 1.6;
  margin-bottom: 20px;
}

.side-panel .side-nav {
  margin-bottom: 30px;
}

.side-panel .side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-panel .side-nav li {
  border-bottom: 1px solid rgba(18,31,56,0.08);
}

.side-panel .side-nav li:last-child {
  border-bottom: none;
}

.side-panel .side-nav a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 0;
  transition: color 0.3s ease;
}

.side-panel .side-nav a:hover {
  color: var(--accent);
}

.side-panel .side-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.side-panel .side-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-panel .side-close::before,
.side-panel .side-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
}

.side-panel .side-close::before {
  transform: rotate(45deg);
}

.side-panel .side-close::after {
  transform: rotate(-45deg);
}

/* ============================================================
   Side Panel — Language Switcher
   ============================================================ */
.side-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(18,31,56,0.08);
  text-align: center;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #121f38;
  text-transform: uppercase;
  letter-spacing: 2px;
  background-color: transparent;
  border: 0;
  position: relative;
  padding: 0 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  height: 1px;
  width: 19px;
  background-color: #121f38;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn:hover::after {
  width: 100%;
}

.lang-btn.active {
  color: var(--accent);
}

.lang-btn.active::after {
  width: 100%;
  background-color: var(--accent);
}

/* ============================================================
   Back to Top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dark);
  border: none;
  cursor: pointer;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Multiscroll Slide Content
   ============================================================ */

/* Fullscreen background slides */
.ms-section.bg-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content slides — generic centering */
.slide-content {
  text-align: center;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.slide-content .slide-icon {
  margin: 0 auto 30px;
  max-height: 40px;
  width: auto;
}

.slide-content .slide-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 21px;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.slide-content .slide-title {
  font-family: var(--font-heading);
  font-size: 33px;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.36em;
  margin: 0 0 15px;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.slide-content .slide-title.script-title {
  font-family: var(--font-script);
  font-size: 80px;
  font-weight: normal;
  color: var(--dark);
  line-height: 48px;
  letter-spacing: 0px;
  margin: 0 0 10px;
  text-transform: capitalize;
}

.slide-content .slide-venue {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}

.slide-content .slide-venue a {
  color: var(--dark);
  font-weight: 600;
}

.slide-content .slide-venue a:hover {
  color: var(--accent);
}

.slide-content .slide-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray);
  line-height: 25px;
  margin: 0 auto 20px;
  max-width: 500px;
}

.slide-content .slide-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #121f38;
  text-transform: uppercase;
  letter-spacing: 2px;
  background-color: transparent;
  border: 0;
  vertical-align: middle;
  position: relative;
  padding: 0 !important;
  transition: color 0.2s ease;
}
.slide-content .slide-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  height: 1px;
  width: 19px;
  background-color: #121f38;
  transition: all 0.2s ease;
}
.slide-content .slide-btn:hover::after {
  width: 100%;
}
.slide-content .slide-btn:hover {
  color: #c78665;
}

.slide-content .slide-btn-outline {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #c78665;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid #c78665;
  padding: 12px 40px;
  position: relative;
  background-color: transparent;
  transition: color 0.35s ease-out;
  overflow: hidden;
}
.slide-content .slide-btn-outline::before,
.slide-content .slide-btn-outline::after {
  content: '';
  position: absolute;
  background-color: #c78665;
  transition: transform 0.35s ease-out;
}
/* top line */
.slide-content .slide-btn-outline::before {
  left: 4px;
  top: 4px;
  height: 1px;
  width: calc(100% - 8px);
  transform: scaleX(1);
  transform-origin: right center;
}
/* right line */
.slide-content .slide-btn-outline::after {
  right: 4px;
  top: 4px;
  width: 1px;
  height: calc(100% - 8px);
  transform: scaleY(1);
  transform-origin: center top;
}
/* Inner wrapper for bottom and left lines */
.slide-btn-outline .btn-lines-inner::before,
.slide-btn-outline .btn-lines-inner::after {
  content: '';
  position: absolute;
  background-color: #c78665;
  transition: transform 0.35s ease-out;
}
/* bottom line */
.slide-btn-outline .btn-lines-inner::before {
  right: 4px;
  bottom: 4px;
  height: 1px;
  width: calc(100% - 8px);
  transform: scaleX(1);
  transform-origin: left center;
}
/* left line */
.slide-btn-outline .btn-lines-inner::after {
  left: 4px;
  bottom: 4px;
  width: 1px;
  height: calc(100% - 8px);
  transform: scaleY(1);
  transform-origin: center bottom;
}
/* Hover effects */
.slide-content .slide-btn-outline:hover::before {
  transform: scaleX(0);
}
.slide-content .slide-btn-outline:hover::after {
  transform: scaleY(0);
}
.slide-btn-outline:hover .btn-lines-inner::before {
  transform: scaleX(0);
}
.slide-btn-outline:hover .btn-lines-inner::after {
  transform: scaleY(0);
}

/* ============================================================
   Mobile Layout — separate stacked view (hidden on desktop)
   ============================================================ */

/* Hidden by default on desktop */
.mobile-layout {
  display: none;
}

/* Each section fills the full viewport, stacked vertically */
.mobile-section {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

/* Image background slides */
.mobile-section.mobile-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   Multiscroll Navigation — Vertical Thin Lines
   ============================================================ */

/* Override multiscroll defaults: replace circular dots with thin vertical lines */
#multiscroll-nav,
#multiscroll-nav.right {
  position: fixed;
  top: 50%;
  right: 37px;
  margin-top: -10px;
  opacity: 1;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
}

#multiscroll-nav ul {
  margin: 0;
  padding: 0;
}

#multiscroll-nav ul li {
  position: relative;
  display: block;
  margin: 12px 3px;
  overflow: hidden;
  width: auto;
  height: auto;
}

#multiscroll-nav ul li a {
  position: relative;
  display: block;
  width: 1px;
  height: 21px;
  padding: 0 5px;
  margin: 0 auto;
  z-index: 1;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

#multiscroll-nav ul li a.active {
  height: 38px;
  transition: all 0.2s ease;
}

#multiscroll-nav ul li a.active span {
  background-color: #121f38;
}

#multiscroll-nav ul li a span {
  display: block;
  position: absolute;
  top: 0;
  left: 5px;
  height: 100%;
  width: 1px;
  background-color: #818491;
  border: none;
  border-radius: 0;
}

/* Show mobile layout, hide multiscroll on screens ≤1024px */
@media (max-width: 1024px) {
  .mobile-layout {
    display: block;
  }

  #multiscroll {
    display: none !important;
  }

  #multiscroll-nav {
    display: none !important;
  }

  html, body {
    overflow: visible !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet (max 1025px) */
@media (max-width: 1025px) {
  .site-header {
    padding: 0 25px;
  }

  .header-actions {
    padding: 0 25px 0 0;
  }

  .slide-content .slide-title {
    font-size: 34px;
  }

  .slide-content .slide-title.script-title {
    font-size: 60px;
  }
}

/* Tablet small (max 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-actions {
    padding: 0 20px 0 0;
    height: 70px;
  }

  .slide-content {
    padding: 30px 20px;
  }

  .slide-content .slide-title {
    font-size: 28px;
  }

  .slide-content .slide-title.script-title {
    font-size: 48px;
  }

  .side-panel {
    width: 320px;
    padding: 40px 25px;
  }

  .side-panel .side-description {
    font-size: 18px;
  }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
  .site-header {
    padding: 0 15px;
    height: 60px;
  }

  .header-actions {
    padding: 0 15px 0 0;
    height: 60px;
  }

  .site-header .site-logo,
  .page-header .logo {
    height: 80px;
    width: 80px;
  }

  .slide-content .slide-title {
    font-size: 22px;
  }

  .slide-content .slide-title.script-title {
    font-size: 36px;
  }

  .slide-content .slide-body {
    font-size: 14px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .side-panel {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }
}
