:root {
  --bg: #F8F4EE;
  --bg-soft: #E9DFD2;
  --gold: #BFA37A;
  --text: #2B2B2B;
  --muted: #7A6A58;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

section {
  scroll-margin-top: 110px;
}

.section {
  padding: 80px 20px;
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 32px;
  background: rgba(20, 20, 20, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar.scrolled {
  background: rgba(20, 20, 20, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-menu a:hover {
  opacity: 0.75;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 34px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  background:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
    url('images/cover.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero .intro {
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: 14px;
}

.hero h1 {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--gold);
}

.hero .date {
  font-size: 20px;
  margin-bottom: 30px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 40px;
  transition: 0.3s ease;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.btn-secondary {
  border: 1px solid var(--gold);
  color: var(--text);
}

/* Grids */
.countdown-grid,
.card-grid,
.gallery-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.countdown-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-grid div {
  background: var(--white);
  padding: 25px 15px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.countdown-grid span {
  display: block;
  font-size: 42px;
  font-weight: 600;
  color: var(--gold);
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

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

.photo-placeholder {
  background: var(--bg-soft);
  height: 260px;
  border-radius: 20px;
}

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

.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

/* Weather */
.weather-card {
  max-width: 420px;
  margin: 30px auto 0;
}

.weather-temp {
  font-size: 48px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
  margin: 10px 0;
}

/* Section backgrounds */
.stay,
.music,
.weather,
.song-request {
  background: var(--white);
}

.beauty,
.transport,
.city-guide,
.message-couple {
  background: var(--bg);
}

/* Form */
.rsvp-form {
  max-width: 650px;
  margin: 30px auto 0;
  display: grid;
  gap: 16px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #d8cdbf;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
}

.rsvp-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
  .topbar {
    padding: 16px 18px;
  }

  .nav-container {
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    font-size: 24px;
    text-align: left;
    flex: 1;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: 16px;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 230px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    display: block;
    width: 100%;
    font-size: 15px;
    line-height: 1.3;
    padding: 4px 0;
  }

  .hero-content {
  padding: 20px 10px;
}

.hero .intro {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero .date {
  font-size: 15px;
  margin-bottom: 24px;
}

.btn-primary {
  padding: 13px 24px;
  font-size: 13px;
}

  .countdown-grid,
  .card-grid,
  .gallery-grid,
  .two-cols,
  .three-cols {
    grid-template-columns: 1fr;
  }
}