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

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

:root {
  --cream:       #F6F1EA;
  --cream-mid:   #EDE6DB;
  --cream-dark:  #E2D9CD;
  --stone:       #C8C2BA;
  --stone-pale:  #DDD8D2;
  --bark:        #2C2420;
  --bark-light:  #6B5D56;
  --sage:        #7D9B76;
  --sage-pale:   #C0D4BC;
  --beni:        #B87B6A;
  --ink:         #1A1614;
  --gold:        #C4AA82;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--bark);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAVIGATION ─────────────────────────────── */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: rgba(246,241,234,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stone-pale);
  transition: padding 0.3s ease;
}

.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bark-light);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1px;
  background: var(--sage);
  transition: right 0.35s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--sage); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--bark);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(125,155,118,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(196,135,110,0.08) 0%, transparent 55%),
    var(--cream);
  z-index: -2;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.save-label {
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 24px;
  font-weight: 300;
}

h1.names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 0;
}

h1.names .amp {
  font-style: italic;
  color: var(--sage);
  font-size: 0.7em;
  display: block;
  margin: 6px 0;
  letter-spacing: 0.05em;
}

.hero-date {
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--bark-light);
  margin: 28px 0 10px;
}

.hero-loc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--bark-light);
}

/* ─── COUNTDOWN ──────────────────────────────── */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin: 52px auto 0;
  justify-content: center;
}

.cd-item { text-align: center; min-width: 58px; }

.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  display: block;
}

.cd-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bark-light);
  margin-top: 8px;
  display: block;
}

.cd-dot {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--stone);
  margin-top: 6px;
  line-height: 1;
}

/* ─── SCROLL INDICATOR ───────────────────────── */
.scroll-ind {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-ind span {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: var(--stone-pale);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--sage);
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ─── DIVIDER ────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 360px;
  margin: 0 auto 48px;
}

.divider-line { flex: 1; height: 1px; background: var(--stone-pale); }

.divider-icon { color: var(--sage); opacity: 0.6; flex-shrink: 0; }

/* ─── SECTIONS ───────────────────────────────── */
.section {
  padding: 90px 48px;
  max-width: 1040px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--sage);
  text-align: center;
  margin-bottom: 14px;
}

h2.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
  margin-bottom: 32px;
}

h2.section-title em { font-style: italic; }

.body-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--bark-light);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 28px;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 40px;
  border: 1px solid var(--bark);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bark);
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}

.btn:hover { background: var(--bark); color: var(--cream); }

.btn-sage { border-color: var(--sage); color: var(--sage); }
.btn-sage:hover { background: var(--sage); color: #fff; border-color: var(--sage); }

/* ─── FORM ───────────────────────────────────── */
.form-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 32px; text-align: left; }

.form-group label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bark-light);
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--stone-pale);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--bark);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--sage); }

.form-group textarea { resize: vertical; min-height: 90px; }

.radio-row { display: flex; gap: 32px; padding: 12px 0; border-bottom: 1px solid var(--stone-pale); }

.radio-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--bark);
}

.radio-opt input[type="radio"] {
  width: 16px; height: 16px;
  border: none; border-bottom: none;
  padding: 0; margin: 0;
  accent-color: var(--sage);
  cursor: pointer;
}

.form-success {
  text-align: center;
  padding: 60px 0;
  display: none;
}

.form-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 16px;
}

.form-success p { font-size: 0.9rem; color: var(--bark-light); }

/* ─── GALLERY ────────────────────────────────── */
.gallery-intro {
  text-align: center;
  padding: 50px 24px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 48px 48px 90px;
  max-width: 1100px;
  margin: 0 auto;
}

.g-item {
  overflow: hidden;
  background: var(--cream-mid);
  position: relative;
  cursor: pointer;
}

.g-item:nth-child(3n+2) { margin-top: 36px; }

.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
  aspect-ratio: 3/4;
}

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

.g-placeholder {
  aspect-ratio: 3/4;
  background: var(--cream-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.g-placeholder svg { color: var(--stone); opacity: 0.5; }

.g-placeholder span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
}

/* ─── VENUE ──────────────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
}

.venue-card {
  background: var(--cream-mid);
  padding: 64px 48px;
  text-align: center;
}

.venue-card:first-child { background: var(--cream-dark); }

.venue-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5.5rem;
  font-weight: 300;
  color: var(--stone-pale);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.venue-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}

.venue-card .vc-sub {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 24px;
}

.venue-card p {
  font-size: 0.87rem;
  color: var(--bark-light);
  line-height: 1.8;
  margin-bottom: 4px;
}

.venue-card .vc-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--beni);
  margin: 20px 0 24px;
}

.map-wrap {
  margin-top: 4px;
  height: 380px;
  overflow: hidden;
  filter: grayscale(20%) sepia(10%);
}

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

/* ─── HOTEL ──────────────────────────────────── */
.hotel-card {
  background: var(--cream-mid);
  padding: 72px 60px;
  text-align: center;
  max-width: 660px;
  margin: 60px auto 0;
  position: relative;
}

.hotel-card::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: 20px; bottom: 20px;
  border: 1px solid var(--stone-pale);
  pointer-events: none;
}

.hotel-badge {
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.hotel-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 6px;
}

.hotel-card .h-stars {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.hotel-card p {
  font-size: 0.88rem;
  color: var(--bark-light);
  line-height: 1.85;
  margin-bottom: 6px;
}

.hotel-card .h-note {
  font-size: 0.78rem;
  color: var(--stone);
  margin-top: 24px;
  margin-bottom: 36px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  text-align: center;
  padding: 60px 40px;
  border-top: 1px solid var(--stone-pale);
  margin-top: 0;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-date {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ─── ANIMATIONS ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ─── DOG EASTER EGG ────────────────────────── */
.dog-easter-egg {
  display: block;
  font-size: 0.9rem;
  opacity: 0.15;
  text-decoration: none;
  margin-top: 20px;
  transition: opacity 0.4s;
  line-height: 1;
}
.dog-easter-egg:hover { opacity: 0.6; }

/* ─── PASSWORD GATE ─────────────────────────── */
.gate {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.gate-inner {
  max-width: 360px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gate-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

.gate-date {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 52px;
}

.gate-prompt {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bark-light);
  margin-bottom: 28px;
}

.gate-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--stone-pale);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--bark);
  outline: none;
  text-align: center;
  letter-spacing: 0.3em;
  margin-bottom: 32px;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}

.gate-input:focus { border-bottom-color: var(--sage); }

.gate-error {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--beni);
  margin-top: 16px;
  min-height: 1.4em;
}

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  body > nav {
    padding: 16px 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--cream);
  }

  .nav-name { margin-bottom: 0; font-size: 1.1rem; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 250;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.85rem; letter-spacing: 0.2em; }
  .hamburger { display: flex; }

  .hero { padding: 110px 24px 90px; }

  h1.names { font-size: clamp(2.8rem,12vw,4.5rem); }

  .countdown { gap: 14px; }
  .cd-num { font-size: 2.4rem; }
  .cd-dot { display: none; }

  .section { padding: 60px 24px; }

  .venue-grid { grid-template-columns: 1fr; }
  .venue-card { padding: 48px 32px; }
  .map-wrap { height: 280px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 36px 24px 60px;
  }

  .g-item:nth-child(3n+2) { margin-top: 0; }
  .g-item:nth-child(2n) { margin-top: 24px; }

  .hotel-card { padding: 48px 28px; }
  .hotel-card::before { display: none; }
}

@media (max-width: 480px) {
  h2.section-title { font-size: 2rem; }
}
