@font-face {
  font-family: 'Ferly';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('./Ferly-Regular.woff2') format('woff2'),
       url('./Ferly-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'Auteur Script';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('./Auteur-Script.woff2') format('woff2'),
       url('./Auteur-Script.otf') format('opentype');
}

:root {
  --sand: #E8DFD3;
  --warm-cream: #F5F0EA;
  --sage: #8B9E8B;
  --sage-dark: #6B7E6B;
  --clay: #B8926A;
  --clay-dark: #9A7654;
  --charcoal: #2C2C2C;
  --soft-black: #1A1A1A;
  --warm-white: #FDFBF8;
  --gold: #C9A96E;
  --water-blue: #7B9DAF;
  --blush: #D4B8A0;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Questrial', sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  overflow-x: hidden;
}

/* ========= NAV ========= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transition: all 0.5s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  padding: 0.8rem 2rem;
}

/* Inner pages: nav starts with background */
nav.page-nav {
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  padding: 0.8rem 2rem;
}

nav a {
  text-decoration: none;
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-white);
  transition: all 0.3s ease;
  position: relative;
}

nav.scrolled a,
nav.page-nav a {
  color: var(--charcoal);
}

nav a.active::after {
  width: 100%;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('./images/hero.jpeg') center center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.4) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--warm-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-date-top {
  font-family: 'Questrial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2rem;
  animation: fadeUp 1.2s ease 0.3s both;
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1;
  animation: fadeUp 1.2s ease 0.5s both;
}

.hero-amp {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem);
  opacity: 0.6;
  animation: fadeUp 1.2s ease 0.6s both;
}

.hero-hashtag {
  font-family: 'Questrial', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  opacity: 0.7;
  margin-bottom: 2.5rem;
  animation: fadeUp 1.2s ease 0.7s both;
}

.hero-location {
  font-family: 'Questrial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1rem;
  animation: fadeUp 1.2s ease 0.8s both;
}

.countdown {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
  animation: fadeUp 1.2s ease 0.9s both;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 0.3rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeUp 1.2s ease 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.8);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========= PAGE HEADER (inner pages) ========= */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: var(--warm-cream);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
}

/* ========= SECTIONS ========= */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Auteur Script', 'Cormorant Garamond', cursive;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--sage);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--soft-black);
}

.section-body {
  font-size: 0.95rem;
  line-height: 1.85;
  text-align: center;
  color: #5A5A5A;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--clay);
  margin: 0 auto 2rem;
}

/* ========= RSVP SECTION ========= */
.rsvp-section {
  background: var(--warm-cream);
  position: relative;
}

.rsvp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
}

.rsvp-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 3.5rem;
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--warm-white);
  background: var(--charcoal);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.rsvp-btn:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

/* ========= NOTE CARD ========= */
.note-card {
  background: var(--warm-white);
  border: 1px solid rgba(184, 146, 106, 0.2);
  padding: 3rem;
  margin-top: 2rem;
  position: relative;
}

.note-card::before {
  content: '\2665';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warm-cream);
  padding: 0 1rem;
  color: var(--clay);
  font-size: 1rem;
}

/* ========= DRESS CODE ========= */
.dress-section {
  background: var(--warm-white);
  position: relative;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.color-swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch .tooltip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #888;
}

.color-swatch:hover .tooltip {
  opacity: 1;
}

.dress-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}

.dress-detail-card {
  padding: 2rem;
  background: var(--warm-cream);
}

.dress-detail-card h4 {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--soft-black);
}

.dress-detail-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #777;
}

/* ========= SCHEDULE ========= */
.schedule-section {
  background: var(--soft-black);
  color: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.schedule-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(123, 157, 175, 0.04) 0%, transparent 60%);
}

.schedule-section .section-label {
  color: var(--gold);
}

.schedule-section .section-title {
  color: var(--warm-white);
}

.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 169, 110, 0.3), transparent);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-time {
  width: 45%;
  text-align: right;
  padding-right: 2rem;
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold);
}

.timeline-item:nth-child(even) .timeline-time {
  text-align: left;
  padding-right: 0;
  padding-left: 2rem;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-event {
  width: 45%;
  padding-left: 2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.timeline-item:nth-child(even) .timeline-event {
  padding-left: 0;
  padding-right: 2rem;
  text-align: right;
}

.timeline-event strong {
  color: var(--warm-white);
  font-weight: 400;
}

.timeline-note {
  text-align: center;
  margin-top: 2.5rem;
  font-style: italic;
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
}

/* ========= THINGS TO DO ========= */
.todo-section {
  background: var(--warm-white);
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.todo-card {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
}

.todo-card:hover {
  border-color: var(--clay);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.todo-icon {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.todo-card h4 {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--soft-black);
}

.todo-card .todo-address {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.todo-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #777;
}

/* ========= FAQ ========= */
.faq-section {
  background: var(--warm-cream);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
}

.faq-list {
  margin-top: 2.5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 2rem 0;
}

.faq-item:first-child {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.faq-question {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--soft-black);
  margin-bottom: 0.8rem;
}

.faq-answer {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #666;
}

/* ========= GALLERY ========= */
.gallery-section {
  background: var(--warm-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  font-family: 'Questrial', sans-serif;
  opacity: 0.7;
  transition: opacity 0.3s;
  background: none;
  border: none;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  background: none;
  border: none;
  padding: 1rem;
  font-family: 'Questrial', sans-serif;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* ========= EXPECT SECTION ========= */
.expect-section {
  background: var(--warm-cream);
}

/* ========= WHERE TO STAY ========= */
.stay-section {
  background: var(--warm-white);
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stay-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
}

.stay-card:hover {
  border-color: var(--clay);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.stay-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stay-card h4 {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--soft-black);
}

.stay-card .stay-distance {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

.stay-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #777;
}

.stay-card .stay-names {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.8;
  color: #999;
}

/* ========= FOOTER ========= */
footer {
  background: var(--soft-black);
  color: var(--warm-white);
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-names {
  font-family: 'Ferly', 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 0.3rem;
}

.footer-hashtag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.3;
}

/* ========= ANIMATIONS ========= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  nav {
    gap: 1rem;
    padding: 1rem 0.8rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  .hero-names {
    flex-direction: column;
    gap: 0.5rem;
  }

  .countdown {
    gap: 1.2rem;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .dress-details {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
    margin-bottom: 1.5rem;
  }

  .timeline-time,
  .timeline-item:nth-child(even) .timeline-time {
    width: auto;
    text-align: left;
    padding: 0;
    margin-bottom: 0.2rem;
  }

  .timeline-dot {
    position: absolute;
    left: 16px;
    top: 6px;
  }

  .timeline-event,
  .timeline-item:nth-child(even) .timeline-event {
    width: auto;
    padding: 0;
    text-align: left;
  }

  .todo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stay-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .page-header {
    padding: 6rem 1.5rem 3rem;
  }
}
