@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Lato:wght@300;400&display=swap');

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

:root {
  --color-gold: #d4a84b;
  --color-gold-light: #e4c078;
  --color-gold-glow: rgba(212, 168, 75, 0.4);
  --color-cream: #faf9f6;
  --color-white: #ffffff;
  --color-text: #1f2937;
  --color-text-light: #6b7280;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px -5px rgba(212, 168, 75, 0.3);

  --transition-fast: 200ms ease-out;
  --transition-medium: 400ms ease-out;
  --transition-slow: 600ms ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 400;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================
   Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-gold);
  box-shadow: 0 0 20px var(--color-gold-glow);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active {
  color: var(--color-gold);
}

.nav-link.active::after {
  width: 60%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-white);
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-medium);
  }

  .nav-list.open {
    right: 0;
  }

  .nav-link {
    padding: 1rem;
    font-size: 1.1rem;
  }
}

/* ============================================
   Sections Layout (Vertical Scrolling)
   ============================================ */

main {
  padding-top: 80px; /* space for fixed header */
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
  background: linear-gradient(180deg, #fff9e6 0%, #f5e6c8 100%);
}

.section-alt {
  background: linear-gradient(180deg, #f5e6c8 0%, #ebdab0 100%);
}

.section-hero {
  background: linear-gradient(180deg, #fffcf0 0%, #f5e6c8 100%);
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 1rem auto 0;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  text-align: center;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.hero-names {
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
}

.countdown {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  min-width: 90px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  background: var(--color-white);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.hero-welcome {
  max-width: 500px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn-primary:hover {
  color: var(--color-white);
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-gold);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold);
}

.card ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.card li {
  margin-bottom: 0.5rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.text-light {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.contact-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-cream);
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
  position: relative;
  max-width: 500px;
  margin: 0 auto 3rem;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--color-gold);
}

.timeline-item {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  gap: 0 1rem;
  align-items: baseline;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  transform: translateX(-4px);
}

.timeline-time {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-gold);
  grid-row: 1;
}

.timeline-event {
  font-weight: 400;
  font-size: 1.1rem;
  grid-row: 1;
}

.timeline-location {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================
   Gallery
   ============================================ */

.story-text {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-gold);
}

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

/* ============================================
   Venues & Maps
   ============================================ */

.venues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.venue-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.venue-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.venue-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.map-container {
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.transport-card,
.hotel-card {
  margin-bottom: 2rem;
}

/* ============================================
   Gifts
   ============================================ */

.gift-message {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 0;
}

.gift-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.swish-info {
  padding: 2rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-gold);
}

.swish-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.swish-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

/* ============================================
   RSVP
   ============================================ */

.rsvp-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 0;
}

.rsvp-deadline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.rsvp-deadline strong {
  color: var(--color-gold);
}

.rsvp-fields {
  text-align: left;
  max-width: 300px;
  margin: 0 auto 2rem;
  padding-left: 1.5rem;
}

.rsvp-fields li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-cream);
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.footer-amp {
  color: var(--color-gold);
  margin: 0 0.25rem;
}

.footer-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================
   Animations
   ============================================ */

.anim-item {
  opacity: 0;
  transform: translateY(20px);
}

.anim-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* Utility for elements that should be visible without JS */
.no-js .anim-item {
  opacity: 1;
  transform: none;
}
