/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --mauve:        #8A7494;
  --mauve-light:  #B5A3BD;
  --text-dark:    #343434;
  --text-mid:     #595959;
  --text-body:    #656565;
  --white:        #FFF;
  --bg-light:     #F6F6F6;
  --photo-bg:     #D9D9D9;

  --font-heading: 'Cormorant', Georgia, serif;
  --font-body:    'Mukta', 'Helvetica Neue', sans-serif;

  --max-width:    1400px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0.85;
  transition: opacity var(--transition);
}
.nav__link:hover { opacity: 1; }

.nav__logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://api.builder.io/api/v1/image/assets/TEMP/dd97963da1e00c4519924072ec1d90115f9add5b?width=3592') center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
}

.hero__couple {
  font-family: var(--font-heading);
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.hero__divider {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--white);
}

/* ============================================================
   WELCOME
   ============================================================ */
.welcome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 100px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.welcome__title {
  font-family: var(--font-heading);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 28px;
}

.welcome__body {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.5;
  max-width: 440px;
}

.welcome__center {
  display: flex;
  justify-content: center;
}

.welcome__photo-wrap {
  position: relative;
  width: 460px;
  height: 640px;
  flex-shrink: 0;
}

.welcome__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition);
}
.welcome__play-btn:hover { transform: scale(1.08); }

.welcome__right {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.welcome__profile-name {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.welcome__profile-bio {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 280px;
}

/* ============================================================
   B&W BANNER
   ============================================================ */
.bw-banner {
  width: 100%;
  height: 560px;
  overflow: hidden;
}

.bw-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

/* ============================================================
   LOVE STORY
   ============================================================ */
.story {
  padding: 100px 0;
}

.story__header {
  text-align: center;
  margin-bottom: 80px;
  padding: 0 24px;
}

.story__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.story__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  color: var(--text-dark);
}

.story__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 468px;
  margin-bottom: 48px;
}

.story__item--flip .story__photo { order: -1; }

.story__text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}

.story__text-block--right { padding: 60px 80px 60px 60px; }

.story__date {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--mauve);
  display: block;
  margin-bottom: 12px;
}

.story__event-name {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.story__desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 460px;
}

.story__photo {
  position: relative;
  overflow: hidden;
}

.story__photo-bg {
  position: absolute;
  inset: 0;
  background: var(--photo-bg);
}

.story__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.rsvp__form-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  background: var(--white);
}

.rsvp__heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 48px;
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 400px;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid #D9D9D9;
  padding-bottom: 8px;
}

.rsvp__label {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-body);
}

.rsvp__input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: transparent;
  padding: 4px 0;
}

.rsvp__field--select { position: relative; }

.rsvp__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rsvp__select {
  appearance: none;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  width: 100%;
  cursor: pointer;
  padding: 4px 0;
}

.rsvp__chevron {
  position: absolute;
  right: 0;
  pointer-events: none;
}

.rsvp__submit-btn {
  margin-top: 16px;
  width: fit-content;
  padding: 10px 32px;
  background: var(--mauve);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.rsvp__submit-btn:hover {
  background: #7a6384;
  transform: translateY(-1px);
}

.rsvp__couple-photo {
  overflow: hidden;
  background: var(--photo-bg);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  padding: 80px 56px;
  overflow: hidden;
}

.gallery__grid {
  position: relative;
  height: 852px;
  max-width: 1294px;
  margin: 0 auto;
}

.gallery__item {
  position: absolute;
  overflow: hidden;
  background: var(--photo-bg);
}

.gallery__item img,
.gallery__item .gallery__img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item--1 { width: 257px; height: 346px; left: 0; top: 170px; }
.gallery__item--2 { width: 240px; height: 360px; left: 270px; top: 0; }
.gallery__item--3 { width: 257px; height: 346px; left: 520px; top: 60px; }
.gallery__item--4 { width: 275px; height: 372px; left: 144px; top: 362px; }
.gallery__item--5 { width: 253px; height: 346px; right: 200px; top: 90px; }
.gallery__item--6 { width: 258px; height: 354px; right: 0; top: 320px; }

/* ============================================================
   EVENT SCHEDULE
   ============================================================ */
.events {
  display: grid;
  grid-template-columns: 582px 1fr;
  min-height: 1200px;
  position: relative;
}

.events__image-panel {
  position: sticky;
  top: 0;
  height: 900px;
  overflow: hidden;
  background: var(--photo-bg);
}

.events__schedule-panel {
  background: var(--bg-light);
  padding: 60px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-item {
  padding: 40px 0;
  border-bottom: 1px solid #E0E0E0;
}
.schedule-item:first-child { padding-top: 0; }
.schedule-item:last-child { border-bottom: none; }

.schedule-item__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.schedule-item__num {
  color: var(--text-dark);
}

.schedule-item__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.schedule-item__time,
.schedule-item__location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--mauve);
}

.schedule-item__time svg,
.schedule-item__location svg { flex-shrink: 0; }

.schedule-item__desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 514px;
  padding-left: 28px;
}

/* ============================================================
   CTA QUOTE
   ============================================================ */
.cta-quote {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  min-height: 700px;
  align-items: center;
  padding: 80px 96px;
  gap: 60px;
}

.cta-quote__side-photo {
  height: 420px;
  overflow: hidden;
  background: var(--photo-bg);
}

.cta-quote__side-photo--right { align-self: flex-end; }

.cta-quote__center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cta-quote__text {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
}

.cta-quote__join-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: var(--mauve);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.cta-quote__join-link:hover { color: #7a6384; }

.cta-quote__join-line {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--mauve);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__bg-wrap {
  position: absolute;
  inset: 0;
}

.footer__bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.25);
  padding: 48px 80px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  margin-bottom: 16px;
}

.footer__caption {
  font-family: var(--font-body);
  font-size: 16px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer__date-location {
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0.7;
  letter-spacing: 0.06em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .welcome {
    grid-template-columns: 1fr;
    padding: 64px 40px;
    text-align: center;
  }

  .welcome__body { max-width: 100%; }
  .welcome__photo-wrap { width: 100%; max-width: 500px; }
  .welcome__right { align-items: center; }
  .welcome__profile-bio { max-width: 400px; }

  .story__text-block { padding: 48px 40px; }
  .story__text-block--right { padding: 48px 40px; }

  .events { grid-template-columns: 1fr; }
  .events__image-panel { height: 400px; position: relative; }
  .events__schedule-panel { padding: 48px 40px; }

  .cta-quote { grid-template-columns: 1fr; padding: 60px 40px; }
  .cta-quote__side-photo { display: none; }

  .gallery { padding: 60px 24px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: center; }

  .hero__couple { font-size: 48px; }

  .welcome { padding: 48px 24px; gap: 32px; }
  .welcome__title { font-size: 72px; }
  .welcome__photo-wrap { height: 480px; }

  .bw-banner { height: 320px; }

  .story { padding: 60px 0; }
  .story__header { margin-bottom: 48px; }
  .story__item { grid-template-columns: 1fr; min-height: unset; }
  .story__item--flip .story__photo { order: unset; }
  .story__photo { height: 320px; }
  .story__text-block,
  .story__text-block--right { padding: 40px 24px; }

  .rsvp { grid-template-columns: 1fr; }
  .rsvp__couple-photo { height: 400px; }
  .rsvp__form-card { padding: 48px 24px; }

  .gallery { padding: 40px 16px; }
  .gallery__grid { height: auto; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery__item { position: static; width: auto !important; height: 200px !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; }

  .events__schedule-panel { padding: 40px 24px; }
  .schedule-item__desc { padding-left: 0; }

  .cta-quote { padding: 60px 24px; }
  .cta-quote__text { font-size: 28px; }

  .footer { height: 400px; }
  .footer__content { padding: 40px 24px; }
}
