:root {
  --cream: #f5f2ec;
  --dusty-pink: #d4867a;
  --sage: #6b7f5e;
  --sage-dark: #4a5c3f;
  --td: #2e2820;
  --tm: #5a4e46;
  --tl: #8c7e76;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  background-color: var(--cream);
  background-image: url('invitation.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--td);
  overflow-x: hidden;
}

.page { display: none; }
.page.active { display: block; }

/* ═══ SECTIONS — content scrolls over fixed background ═══ */
.bg-wrap { position: relative; width: 100%; }
.bg-content {
  position: relative;
  width: 100%; max-width: 620px;
  margin: 0 auto; padding: 0 1.5rem;
  text-align: center;
}

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  padding: .9rem 1.5rem;
  background: rgba(245, 242, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 127, 94, .15);
}
nav a {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tm); text-decoration: none; transition: color .2s;
}
nav a:hover { color: var(--sage); }
.nav-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem; font-style: italic; color: var(--td);
}

/* ═══ HERO ═══ */
.hero-inner {
  padding: calc(70px + 4rem) 1.5rem 5rem;
  display: flex; flex-direction: column; align-items: center;
}
.eyebrow {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1.8rem;
  animation: fadeUp .9s .2s both;
}
.names {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 300; line-height: .9; color: var(--td);
  animation: fadeUp 1s .5s both;
}
.amp {
  display: block; font-style: italic; color: var(--sage);
  font-size: clamp(2.8rem, 7vw, 5rem); margin: .05em 0;
}
.tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(.95rem, 2.4vw, 1.25rem); font-style: italic;
  color: var(--tm); margin: 1.8rem 0 1.4rem; line-height: 1.6;
  animation: fadeUp 1s .75s both;
}
.date-line {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.8vw, 1.4rem); font-weight: 400;
  color: var(--td); letter-spacing: .05em;
  animation: fadeUp 1s .9s both;
}
.loc-line {
  font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--tl); margin-top: .5rem;
  animation: fadeUp 1s 1s both;
}

/* Countdown */
.cd-bar {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.8rem; animation: fadeUp 1s 1.1s both;
}
.cd-item { text-align: center; min-width: 58px; }
.cd-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 300; line-height: 1; color: var(--td);
}
.cd-lbl {
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tl); margin-top: .25rem;
}
.cd-sep {
  font-family: "Cormorant Garamond", serif; font-size: 2.2rem;
  color: var(--dusty-pink); opacity: .5; align-self: flex-start; padding-top: .2rem;
}

/* CTAs */
.ctas {
  display: flex; flex-direction: column; gap: .8rem; align-items: center;
  margin-top: 3rem; animation: fadeUp 1s 1.2s both; padding-bottom: 1rem;
}
.btn-sage {
  display: inline-block; padding: .95rem 2.8rem;
  background: var(--sage); color: #fff; border: none; border-radius: 2px;
  font-family: "Jost", sans-serif; font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; cursor: pointer;
  transition: background .25s, transform .2s; width: 250px;
}
.btn-sage:hover { background: var(--sage-dark); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; padding: .85rem 2.8rem;
  background: transparent; border: none; color: var(--tm);
  font-family: "Jost", sans-serif; font-size: .75rem;
  letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: color .2s; width: 250px;
}
.btn-ghost:hover { color: var(--sage); }

/* ═══ INNER SECTIONS ═══ */
.sec-inner {
  padding: 6rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
}
/* Subtle scrim behind section text so it reads over busy floral areas */
#detalii .sec-inner,
#program .sec-inner,
#rsvp .sec-inner { background: transparent; }
.sec-eyebrow {
  font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sage); margin-bottom: .8rem;
}
.sec-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 300; font-style: italic;
  color: var(--td); margin-bottom: 2.5rem;
}

/* Detail cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1.1rem; width: 100%; max-width: 560px;
}
.card {
  background: rgba(245, 242, 236, .90);
  border: 1px solid rgba(107, 127, 94, .2);
  border-radius: 3px; padding: 1.6rem 1rem;
  backdrop-filter: blur(6px); transition: transform .25s;
}
.card:hover { transform: translateY(-3px); }
.card-icon { font-size: 1.3rem; margin-bottom: .6rem; }
.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem; font-style: italic; color: var(--td); margin-bottom: .35rem;
}
.card p { font-size: .78rem; line-height: 1.7; color: var(--tm); }

/* Timeline */
.tl-location {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 2rem; margin-top: -1.2rem;
}

.tl {
  list-style: none; text-align: left; max-width: 400px; width: 100%;
  position: relative; padding-left: 2.2rem;
}
.tl::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(to bottom, var(--dusty-pink), var(--sage), transparent);
}
.tl li { position: relative; padding-bottom: 2.2rem; }
.tl li::before {
  content: ""; position: absolute; left: -2.2rem; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dusty-pink); border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--dusty-pink);
}
.tl-time {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sage); margin-bottom: .2rem;
}
.tl-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem; font-style: italic; color: var(--td);
}
.tl-desc { font-size: .78rem; color: var(--tl); margin-top: .15rem; line-height: 1.6; }

/* ═══ RSVP WIZARD ═══ */
.rsvp-shell {
  background: rgba(245, 242, 236, .95);
  border: 1px solid rgba(107, 127, 94, .22);
  border-radius: 5px; padding: 2.6rem 2rem;
  max-width: 500px; width: 100%;
  backdrop-filter: blur(8px);
}
.rsvp-shell h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem; font-style: italic; font-weight: 300;
  color: var(--td); text-align: center; margin-bottom: .35rem;
}
.rsvp-sub {
  font-size: .76rem; color: var(--tl);
  text-align: center; margin-bottom: 1.8rem; line-height: 1.6;
}

.step { display: none; }
.step.active { display: block; }



/* Form elements */
.fg { margin-bottom: 1.2rem; }
.fg label {
  display: block; font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tm); margin-bottom: .4rem;
}
.fg input, .fg textarea, .fg select {
  width: 100%;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(107, 127, 94, .3);
  border-radius: 2px; padding: .68rem .9rem;
  font-family: "Jost", sans-serif; font-size: .86rem;
  font-weight: 300; color: var(--td); outline: none; transition: border-color .2s;
}
.fg input:focus, .fg textarea:focus { border-color: var(--sage); }
.fg textarea { resize: vertical; min-height: 72px; }

.search-result {
  padding: .9rem 1rem; border-radius: 3px;
  font-size: .85rem; margin-top: .5rem; display: none;
}
.sr-found {
  background: rgba(107, 127, 94, .1);
  border: 1px solid rgba(107, 127, 94, .25); color: var(--sage-dark);
}
.sr-notfound {
  background: rgba(184, 90, 74, .08);
  border: 1px solid rgba(184, 90, 74, .2); color: #b85a4a;
}
.sr-suggest {
  background: rgba(232, 200, 122, .12);
  border: 1px solid rgba(200, 170, 80, .35); color: #7a6020;
}
.sr-label {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tl); margin-bottom: .5rem;
}

.big-choices { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.big-btn {
  padding: 1rem 1.5rem; border: 1px solid rgba(107, 127, 94, .35); border-radius: 3px;
  background: rgba(255, 255, 255, .7); font-family: "Jost", sans-serif;
  font-size: .84rem; color: var(--tm); cursor: pointer; transition: all .2s; text-align: left;
}
.big-btn:hover, .big-btn.selected {
  background: var(--sage); color: #fff; border-color: var(--sage);
}
.bb-title { font-size: .95rem; font-weight: 400; display: block; }
.bb-sub { font-size: .76rem; opacity: .8; display: block; margin-top: .2rem; }

.menu-person { margin-bottom: 1.4rem; }
.menu-person-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem; font-style: italic; color: var(--td); margin-bottom: .5rem;
}
.menu-opts { display: flex; gap: .6rem; flex-wrap: wrap; }
.menu-opt {
  padding: .5rem 1rem; border: 1px solid rgba(107, 127, 94, .3); border-radius: 2px;
  background: rgba(255, 255, 255, .7); font-size: .78rem;
  color: var(--tm); cursor: pointer; transition: all .2s;
}
.menu-opt:hover, .menu-opt.sel {
  background: var(--sage); color: #fff; border-color: var(--sage);
}

.contact-toggle { display: flex; gap: .7rem; margin-bottom: 1rem; }
.ctog {
  flex: 1; padding: .65rem; border: 1px solid rgba(107, 127, 94, .3);
  border-radius: 2px; background: rgba(255, 255, 255, .7);
  font-size: .78rem; color: var(--tm); cursor: pointer;
  transition: all .2s; text-align: center;
}
.ctog:hover, .ctog.sel { background: var(--sage); color: #fff; border-color: var(--sage); }

.step-nav { display: flex; gap: .8rem; margin-top: 1.4rem; }
.btn-next {
  flex: 1; padding: .85rem; background: var(--sage); color: #fff; border: none;
  border-radius: 2px; font-family: "Jost", sans-serif; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.btn-next:hover { background: var(--sage-dark); }
.btn-back {
  padding: .85rem 1.2rem; background: transparent;
  border: 1px solid rgba(107, 127, 94, .3); border-radius: 2px;
  font-family: "Jost", sans-serif; font-size: .74rem;
  color: var(--tm); cursor: pointer; transition: all .2s;
}
.btn-back:hover { border-color: var(--sage); color: var(--sage); }

.err-msg { font-size: .76rem; color: #b85a4a; margin-top: .5rem; min-height: 1em; }

.success-box { text-align: center; padding: 1rem 0; }
.success-box .big {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem; font-style: italic; color: var(--td);
}
.success-box p { font-size: .84rem; color: var(--tm); margin-top: .7rem; line-height: 1.6; }

/* ═══ FOOTER ═══ */
.footer-inner-content {
  padding: 4rem 1.5rem 4rem;
  display: flex; flex-direction: column; align-items: center;
}
.f-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem; font-style: italic; color: var(--td); margin-bottom: .35rem;
}
.f-info { font-size: .73rem; letter-spacing: .1em; color: var(--tl); margin-bottom: 0; }



/* ── FOOTER CARD ── */
.footer-card {
  background: rgba(245, 242, 236, .85);
  border: 1px solid rgba(107, 127, 94, .2);
  border-radius: 4px;
  padding: 1.8rem 2.5rem;
  backdrop-filter: blur(6px);
  display: inline-block;
}

/* ── SEARCH RESULT EXTRAS ── */
.sr-hint {
  font-size: .78rem;
  color: var(--sage-dark);
  margin-top: .55rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(107,127,94,.2);
}
.sr-not-found-hint {
  font-size: .76rem;
  color: var(--tl);
  margin-top: .6rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(200,170,80,.25);
  font-style: italic;
}

/* ═══ ADMIN ═══ */
.admin-page { background: var(--cream); min-height: 100vh; padding: 5rem 1.5rem 4rem; }
.aw { max-width: 940px; margin: 0 auto; }
.a-hdr {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem;
}
.a-hdr h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem; font-style: italic; font-weight: 300; color: var(--td);
}
.a-hdr p { font-size: .73rem; color: var(--tl); letter-spacing: .1em; }
.acard {
  background: #fff; border: 1px solid rgba(107, 127, 94, .18);
  border-radius: 5px; padding: 1.8rem; margin-bottom: 1.8rem;
}
.acard h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem; font-style: italic; color: var(--td); margin-bottom: 1.1rem;
}
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.stat { background: var(--cream); border-radius: 4px; padding: .9rem 1.3rem; text-align: center; }
.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem; font-weight: 300; color: var(--td);
}
.stat-lbl { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tl); }
.upload-area {
  border: 2px dashed rgba(107, 127, 94, .3); border-radius: 4px;
  padding: 2rem; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; margin-bottom: .7rem;
}
.upload-area:hover { border-color: var(--sage); background: rgba(107, 127, 94, .04); }
.upload-area input { display: none; }
.upload-area p { font-size: .78rem; color: var(--tl); margin-top: .35rem; }
.manual-row {
  display: flex; gap: .7rem; flex-wrap: wrap;
  align-items: flex-end; margin-top: 1rem;
}
.manual-row input {
  flex: 1; min-width: 170px;
  border: 1px solid rgba(107, 127, 94, .25); border-radius: 2px;
  padding: .62rem .85rem; font-family: "Jost", sans-serif;
  font-size: .84rem; background: var(--cream); outline: none;
}
.manual-row input:focus { border-color: var(--sage); }
.abtn {
  display: inline-block; padding: .65rem 1.4rem;
  background: transparent; border: 1px solid var(--sage);
  font-family: "Jost", sans-serif; font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--td); cursor: pointer; border-radius: 2px;
  transition: background .2s, color .2s;
}
.abtn:hover { background: var(--sage); color: #fff; }
.abtn-d { border-color: #b85a4a; color: #b85a4a; }
.abtn-d:hover { background: #b85a4a; color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th {
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--tl); padding: .5rem .65rem; text-align: left;
  border-bottom: 1px solid rgba(107, 127, 94, .18);
}
td {
  padding: .6rem .65rem;
  border-bottom: 1px solid rgba(107, 127, 94, .08); color: var(--tm);
}
tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: .16rem .55rem; border-radius: 20px; font-size: .65rem; }
.b-yes { background: rgba(107, 127, 94, .14); color: var(--sage-dark); }
.b-no { background: rgba(184, 90, 74, .12); color: #b85a4a; }
.b-pend { background: rgba(184, 169, 201, .2); color: #7a6a90; }
.login-box {
  max-width: 350px; margin: 7rem auto 0; background: #fff;
  border: 1px solid rgba(107, 127, 94, .18); border-radius: 5px;
  padding: 2.6rem 2rem; text-align: center;
}
.login-box h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem; font-style: italic; font-weight: 300;
  color: var(--td); margin-bottom: .35rem;
}
.login-box p { font-size: .76rem; color: var(--tl); margin-bottom: 1.6rem; }
.login-box input {
  width: 100%; border: 1px solid rgba(107, 127, 94, .25); border-radius: 2px;
  padding: .72rem .95rem; font-family: "Jost", sans-serif;
  font-size: .86rem; background: var(--cream); margin-bottom: .9rem; outline: none;
}
.login-box input:focus { border-color: var(--sage); }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  nav { gap: .8rem; padding: .8rem 1rem; }
  nav a { font-size: .62rem; }
  .names { font-size: 3.5rem; }
  .btn-sage, .btn-ghost { width: 100%; max-width: 260px; }
  .rsvp-shell { padding: 2rem 1.2rem; }
  .sec-inner { padding: 4.5rem 1rem; }
}
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--tm);
  font-size: .78rem;
  line-height: 1.7;
  text-decoration: none;
}

.maps-link:hover {
  opacity: 0.8;
}

.maps-icon {
  width: 12px;
  height: 12px;
}
