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

:root {
  --gold:        #c9a96e;
  --gold-dark:   #a07840;
  --gold-light:  #e8d5b0;
  --cream:       #faf8f5;
  --ivory:       #f5f0e8;
  --text:        #3a3228;
  --text-light:  #7a6e65;
  --white:       #ffffff;
  --shadow:      0 4px 30px rgba(58,50,40,.10);
  --shadow-lg:   0 10px 60px rgba(58,50,40,.15);
  --radius:      12px;
  --transition:  all .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* -- UTILITIES -- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem,4vw,3rem);
  text-align: center;
  margin-bottom: .4rem;
}
.section-sub {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: .6rem auto 1.2rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: var(--gold);
  opacity: .45;
}
.divider-icon { color: var(--gold); font-size: 1.1rem; }

/* -- NAVBAR -- */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 1.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(250,248,245,.97);
  backdrop-filter: blur(10px);
  padding: .9rem 2rem;
  box-shadow: var(--shadow);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}
nav.scrolled .nav-logo { color: var(--text); }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  transition: var(--transition);
}
nav.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover { color: var(--gold); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-close-menu{
cursor: pointer;
  z-index: 1001;
  color: #fff;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 33px;
  }

.nav-hamburger span {
  width: 24px; height: 2px;
  background: #fff;
  transition: var(--transition);
}
nav.scrolled .nav-hamburger span { background: var(--text); }

/* -- HERO -- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e130a 0%, #3d2617 40%, #2c1f14 70%, #1a0e07 100%);
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,169,110,.12) 0%, transparent 68%);
}
.hero-ornament {
  color: var(--gold);
  opacity: .22;
  font-size: 7rem;
  position: absolute;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.hero-ornament.tl { top: 8%;  left: 4%;  transform: rotate(-18deg); }
.hero-ornament.tr { top: 8%;  right: 4%; transform: rotate(18deg);  }
.hero-ornament.bl { bottom: 8%; left: 4%;  transform: rotate(18deg);  }
.hero-ornament.br { bottom: 8%; right: 4%; transform: rotate(-18deg); }

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease both;
}
.hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem,10vw,7rem);
  color: #fff;
  line-height: 1.05;
}
.hero-names em { color: var(--gold); font-style: italic; }
.hero-amp {
  display: block;
  font-size: clamp(1.8rem,5.5vw,4.2rem);
  color: var(--gold);
  opacity: .65;
}
.hero-meta {
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin: 1.6rem 0 .5rem;
}
.hero-location {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 2.8rem;
}
.btn-outline {
  display: inline-block;
  padding: .9rem 2.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--text); }

.hero-scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.35);
  font-size: .65rem;
  letter-spacing: .2em;
  animation: bounce 2.2s infinite;
}

/* -- COUNTDOWN -- */
#countdown {
  background: var(--ivory);
  padding: 4rem 2rem;
}
.cd-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}
.cd-item { text-align: center; min-width: 90px; }
.cd-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem,6vw,4rem);
  color: var(--gold-dark);
  line-height: 1;
  display: block;
}
.cd-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: .4rem;
}
.cd-sep {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--gold);
  opacity: .35;
  padding-top: .15rem;
  line-height: 1;
}

/* -- EVENT DETAILS -- */
#details { padding: 6rem 2rem; background: var(--cream); }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: var(--transition);
}
.detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.detail-icon { font-size: 2rem; margin-bottom: 1rem; }
.detail-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.detail-info { font-size: .88rem; color: var(--text-light); line-height: 2; }
.detail-info strong { color: var(--text); font-weight: 600; }
.btn-map {
  display: inline-block;
  margin-top: 1.2rem;
  padding: .55rem 1.4rem;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
}
.btn-map:hover { background: var(--gold-dark); }

/* -- TIMELINE -- */
#itinerary { padding: 6rem 2rem; background: var(--ivory); }
.timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  transform: translateX(-50%);
}
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.8rem;
  position: relative;
}
.tl-item:nth-child(even) { flex-direction: row-reverse; }
.tl-item:nth-child(even) .tl-content { text-align: right; }
.tl-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--gold);
  margin-top: .4rem;
  flex-shrink: 0;
}
.tl-content {
  flex: 1;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tl-time {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: .2rem;
}
.tl-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: .2rem;
}
.tl-desc { font-size: .85rem; color: var(--text-light); }

/* -- RSVP -- */
#rsvp {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--cream), var(--ivory));
}
.rsvp-wrap {
  max-width: 660px;
  margin: 0 auto;
  background: var(--white);
  border-radius: calc(var(--radius)*2);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
}
.rsvp-intro {
  text-align: center;
  font-size: .92rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: .45rem;
}
.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1.05rem;
  border: 1.5px solid #e8e0d5;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: .93rem;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a07840' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,110,.14);
}
.form-group textarea { resize: vertical; min-height: 108px; }
.radio-group { display: flex; gap: 2rem; margin-top: .25rem; }
.radio-opt { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.radio-opt input[type="radio"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.radio-opt span { font-size: .93rem; }
.guests-wrap {
  max-height: 100px;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, margin .35s ease;
  opacity: 1;
}
.guests-wrap.hidden { max-height: 0; opacity: 0; margin-bottom: 0 !important; }
.btn-submit {
  width: 100%;
  padding: 1.05rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: .8rem;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(160,120,64,.38);
}
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }
.form-msg {
  margin-top: 1.4rem;
  padding: 1rem 1.4rem;
  border-radius: 8px;
  font-size: .88rem;
  text-align: center;
  display: none;
}
.form-msg.success { background: #f0faf0; color: #2e7d32; border: 1px solid #c8e6c9; display: block; }
.form-msg.error   { background: #fff5f5; color: #c62828; border: 1px solid #ffcdd2; display: block; }

/* -- FOOTER -- */
footer {
  background: #1a0e07;
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 3.5rem 2rem 2rem;
}
.footer-names {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: .4rem;
}
.footer-date { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-love { font-size: .85rem; color: rgba(255,255,255,.4); }
.footer-credits { font-size: .65rem; opacity: .3; margin-top: 2rem; cursor: default; user-select: none; }

/* -- ADMIN PANEL -- */
#admin-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  padding: 2rem 1rem;
  overflow-y: auto;
}
.adm-box {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
}
.adm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gold-light);
  margin-bottom: 1.5rem;
}
.adm-header h2 { font-family: 'Playfair Display', serif; }
.adm-close {
  background: none;
  border: 1px solid #ccc;
  padding: .4rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  font-size: .85rem;
}
.adm-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.stat { padding: .45rem 1.1rem; border-radius: 50px; font-size: .82rem; font-weight: 700; }
.stat.total   { background: var(--gold-light); color: var(--gold-dark); }
.stat.yes     { background: #e8f5e9; color: #2e7d32; }
.stat.no      { background: #fce4ec; color: #c62828; }
.adm-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th {
  background: var(--ivory);
  padding: .7rem .9rem;
  text-align: left;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 2px solid var(--gold-light);
}
td { padding: .7rem .9rem; border-bottom: 1px solid #f0ebe4; vertical-align: top; }
tr:hover td { background: var(--cream); }
.badge { display: inline-block; padding: .18rem .65rem; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge.y { background: #e8f5e9; color: #2e7d32; }
.badge.n { background: #fce4ec; color: #c62828; }
.btn-export {
  margin-top: 1rem;
  padding: .55rem 1.4rem;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.btn-export:hover { background: var(--gold-dark); }

/* -- REVEAL -- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* -- ANIMATIONS -- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* -- RESPONSIVE -- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
	display: flex; flex-direction: column;
	position: fixed; inset: 0;
	background: rgba(26,14,7,.97);
	align-items: center; justify-content: center;
	gap: 3rem; z-index: 999;
  }
  .nav-links.open a { font-size: 1.2rem; color: #fff; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .rsvp-wrap { padding: 2rem 1.4rem; }
  .timeline::before { left: 18px; }
  .tl-item, .tl-item:nth-child(even) { flex-direction: column !important; padding-left: 46px; }
  .tl-item:nth-child(even) .tl-content { text-align: left; }
  .tl-dot { left: 18px; top: 1.4rem; }
}