:root {
  --bg: #fdfaf6;
  --bg-alt: #f5eee6;
  --text: #4a3f3a;
  --muted: #8a7d75;
  --accent: #b08968;
  --accent-dark: #8c6a4f;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(74, 63, 58, 0.1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.7; font-weight: 300; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.script { font-family: var(--script); font-weight: 400; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.5rem; transition: background 0.3s, box-shadow 0.3s;
  color: var(--white);
}
.nav.scrolled { background: rgba(253, 250, 246, 0.96); color: var(--text); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.nav-logo { font-family: var(--serif); font-size: 1.4rem; text-decoration: none; letter-spacing: 2px; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: .9; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.6rem; cursor: pointer; }
.cart-btn {
  background: var(--accent); color: var(--white); border: 0; border-radius: 999px;
  padding: 0.4rem 0.9rem; cursor: pointer; font-size: 0.95rem;
}

/* HERO */
.hero {
  position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, #c9a98c, #8c6a4f 60%, #5e4636) center/cover no-repeat;
  color: var(--white);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(40, 28, 20, 0.35); }
.hero-content { position: relative; padding: 2rem 1rem; }
.hero-pre { text-transform: uppercase; letter-spacing: 4px; font-size: 0.85rem; }
.hero h1 { font-size: clamp(3.5rem, 11vw, 7rem); line-height: 1.1; margin: 0.5rem 0; }
.hero-date { font-family: var(--serif); font-size: 1.6rem; }
.hero-city { letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; }
.countdown { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.countdown div {
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius);
  min-width: 78px; padding: 0.7rem 0.5rem; backdrop-filter: blur(4px);
}
.countdown span { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.countdown small { text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1.5px; }

/* SECTIONS */
.section { padding: 5rem 1.5rem; max-width: 1100px; margin: 0 auto; text-align: center; }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-title { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; margin-bottom: 0.5rem; }
.section-title::after { content: "❦"; display: block; color: var(--accent); font-size: 1.4rem; }
.section-sub { color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.intro h2 { font-family: var(--serif); font-size: 2rem; font-weight: 500; margin-bottom: 1rem; }
.intro p { max-width: 700px; margin: 0 auto 2rem; }
.intro-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-block; background: var(--accent); color: var(--white); border: 1px solid var(--accent);
  padding: 0.75rem 1.6rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.75rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 0.7rem; }
.icon-btn { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

/* COUPLE */
.couple { display: flex; align-items: center; justify-content: center; gap: 2rem; margin: 2rem 0; flex-wrap: wrap; }
.couple-photo {
  width: 220px; height: 220px; border-radius: 50%; position: relative;
  background: linear-gradient(135deg, #e8d8c8, #c9a98c) center/cover; box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.couple-photo figcaption {
  position: absolute; bottom: -2.4rem; left: 0; right: 0; font-family: var(--serif); font-size: 1.5rem;
}
.amp { font-size: 4rem; color: var(--accent); }
.story { max-width: 720px; margin: 3.5rem auto 2rem; font-size: 1.05rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* EVENTS */
.event-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 560px; margin: 1.5rem auto 0; padding: 2.5rem 2rem;
}
.event-photo { border-radius: 8px; margin-bottom: 1.5rem; }
.event-card h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.event-when { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin: 0.5rem 0 1rem; }
.event-where { margin-bottom: 1rem; }
.event-obs { color: var(--muted); margin-bottom: 1.2rem; }

/* GIFTS */
.filters { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.chip { border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: 0.35rem 1rem; cursor: pointer; font-family: var(--sans); }
.chip.active, .chip:hover { background: var(--accent); color: var(--white); }
.gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.4rem; }
.gift {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  transition: transform 0.2s;
}
.gift:hover { transform: translateY(-4px); }
.gift-img { width: 100%; aspect-ratio: 4/3; border-radius: 8px; background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; }
.gift-img img { width: 100%; height: 100%; object-fit: cover; }
.gift-img span { font-size: 3.2rem; }
.gift h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.3; flex: 1; }
.gift-price { color: var(--accent-dark); font-weight: 700; margin-bottom: 0.4rem; }

/* FORMS */
.form { max-width: 520px; margin: 1.5rem auto 0; display: grid; gap: 1rem; text-align: left; }
.form label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.form input, .form select, .form textarea, .copy-row input {
  font: inherit; font-size: 1rem; color: var(--text); text-transform: none; letter-spacing: 0;
  padding: 0.7rem 0.9rem; border: 1px solid #ddd0c4; border-radius: 8px; background: var(--white); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-compact { margin-top: 1rem; }

/* DRAWER */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 60; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 100%); background: var(--bg);
  z-index: 70; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.15);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid #eadfd4; }
.drawer-head h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.cart-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid #f0e6dc; }
.cart-emoji { font-size: 1.8rem; }
.cart-info { flex: 1; display: grid; line-height: 1.3; }
.cart-info small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 0.5rem; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); background: none; color: var(--accent); cursor: pointer; }
.empty { color: var(--muted); text-align: center; margin-top: 2rem; }
.cart-footer { padding: 1.2rem 1.4rem; border-top: 1px solid #eadfd4; }
.cart-total { font-size: 1.1rem; }

/* MODAL */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; place-items: center; z-index: 80; padding: 1rem; }
.modal.open { display: grid; }
.modal-box {
  background: var(--bg); border-radius: var(--radius); padding: 2rem 1.6rem; width: min(440px, 100%);
  max-height: 92vh; overflow-y: auto; position: relative; text-align: center;
}
.modal-box h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.modal-close { position: absolute; top: 0.8rem; right: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; margin-top: 0.8rem; }
.qrcode { display: grid; place-items: center; margin: 1.2rem auto; padding: 10px; background: #fff; width: max-content; border-radius: 8px; }
.copy-label { display: grid; gap: 0.3rem; text-align: left; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.copy-row { display: flex; gap: 0.5rem; }
.copy-row input { font-size: 0.8rem; }
.manual { background: var(--white); border-radius: 8px; padding: 1rem; margin: 1rem 0; text-align: left; }
.thanks { padding: 1rem 0; }
.big { font-size: 3.5rem; color: var(--accent); }

/* TOAST */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 150%);
  background: var(--text); color: var(--white); padding: 0.7rem 1.3rem; border-radius: 999px;
  z-index: 90; transition: transform .3s; font-size: 0.9rem;
}
.toast.show { transform: translate(-50%, 0); }

/* FOOTER */
.footer { text-align: center; padding: 3rem 1rem; background: var(--text); color: var(--bg-alt); }
.footer .script { font-size: 2.6rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); color: var(--text); max-height: 0; overflow: hidden; transition: max-height .3s;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 0.9rem 1.5rem; border-bottom: 1px solid #f0e6dc; }
  .cart-btn { margin-left: 0; }
}
@media (max-width: 520px) {
  .section { padding: 4rem 1rem; }
  .couple-photo { width: 150px; height: 150px; }
  .amp { font-size: 3rem; }
  .gifts { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .gift h4 { font-size: 1.05rem; }
}
