/* ============================================================
   Fra & Bene — wedding site
   Palette pulled from the RSVP presentation
   ============================================================ */
:root {
  --gold:      #FAC123;   /* primary accent (from the presentation) */
  --gold-deep: #E0A800;
  --ink:       #353B3D;   /* near-black slate text */
  --cream:     #F3EFE8;   /* warm paper background */
  --cream-2:   #EAE4DA;   /* slightly deeper panel */
  --terra:     #A65E5E;   /* terracotta / rust */
  --terra-2:   #9D6053;
  --taupe:     #968274;   /* earthy taupe */
  --line:      #d9d0c4;

  --display: "Cormorant Garamond", Georgia, serif;
  --body:    "EB Garamond", Georgia, serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

/* The [hidden] attribute must always win over display rules below */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

p { margin: 0 0 1em; }
.muted { color: var(--taupe); }
strong { font-weight: 700; }

/* ============ EMAIL GATE ============ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(rgba(53,59,61,.55), rgba(53,59,61,.7)),
    url("../img/village.jpg") center / cover no-repeat;
}
.gate__card {
  background: var(--cream);
  max-width: 460px;
  width: 100%;
  padding: 48px 40px;
  border-radius: 4px;
  border-top: 6px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  text-align: center;
}
.gate__eyebrow {
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 8px;
}
.gate__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 16px;
}
.gate__text { font-size: 1.02rem; color: var(--ink); }
.gate__form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.gate__input {
  font-family: var(--body);
  font-size: 1.1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  text-align: center;
}
.gate__input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.gate__error {
  margin-top: 14px;
  color: var(--terra-2);
  font-style: italic;
}

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--body);
  font-size: 1.05rem;
  letter-spacing: .04em;
  padding: 13px 18px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn--gold:hover { background: var(--gold-deep); }

/* ============ GREETING BAR ============ */
.greeting {
  background: var(--ink);
  color: var(--cream);
  font-size: .95rem;
  text-align: center;
  padding: 9px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.greeting b { color: var(--gold); font-weight: 600; }
.greeting__logout {
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--cream);
  font-family: var(--body);
  font-size: .85rem;
  padding: 3px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.greeting__logout:hover { border-color: var(--gold); color: var(--gold); }

/* language dropdown */
.lang { position: relative; font-family: var(--body); }
.lang__current {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid rgba(255,255,255,.35);
  color: var(--cream); border-radius: 20px;
  padding: 3px 10px 3px 8px; cursor: pointer; font-size: .85rem;
}
.lang__current:hover { border-color: var(--gold); color: var(--gold); }
.lang__caret { font-size: .65rem; opacity: .85; }
.lang__flag {
  width: 22px; height: 15px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
  display: inline-block; vertical-align: middle; flex: none;
}
.lang__cur-flag { display: inline-flex; }
.lang__cur-flag .lang__flag { width: 20px; height: 14px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  z-index: 300; margin: 0; padding: 6px; list-style: none;
  background: var(--cream); color: var(--ink);
  border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.3);
  min-width: 158px;
}
.lang__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 8px 12px; border-radius: 6px; text-align: left;
}
.lang__item:hover { background: var(--cream-2); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url("../img/groppo.jpg") center / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(53,59,61,.35), rgba(53,59,61,.55));
}
.hero__content { position: relative; padding: 24px; }
.hero__eyebrow {
  font-size: .95rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--gold);
}
.hero__names {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero__names .amp { font-style: italic; color: var(--gold); }
.hero__date {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: .05em;
  margin: 18px 0 0;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 3vw, 38px);
  padding: 14px 16px;
}
.nav a {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }

/* ============ SECTIONS ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px;
}
.section--gold { background: var(--gold); max-width: none; }
.section--gold .section__kicker { color: rgba(53,59,61,.5); }
.section__kicker {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--gold);
  margin: 0;
  line-height: 1;
}
.section--gold .section__kicker,
.section--gold .section__title,
.section--gold .gifts { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 4px 0 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.section--gold .section__title { border-color: rgba(53,59,61,.2); }

.block__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  margin: 36px 0 12px;
  color: var(--terra-2);
}
.split .block__title { margin-top: 4px; }
.block__day {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 2px;
}
.sub__title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 28px 0 14px;
  color: var(--ink);
}

/* schedule list inside a programme block */
.schedule { list-style: none; padding: 0; margin: 14px 0; }
.schedule li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
}
.schedule__time {
  display: inline-block;
  min-width: 116px;
  font-weight: 600;
  color: var(--terra);
}
@media (max-width: 760px) {
  .schedule__time { display: block; min-width: 0; }
}

/* ============ TIMELINE ============ */
.timeline { margin: 0 0 20px; }
.timeline__item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__when {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--terra);
  line-height: 1.1;
}
.timeline__body h4 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 4px;
}

/* ============ SPLIT (image + text) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin: 56px 0;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(53,59,61,.18);
}
.facts { list-style: none; padding: 0; margin: 0 0 1em; }
.facts li { padding: 6px 0; border-bottom: 1px dotted var(--line); }

/* ============ GIFTS ============ */
.gifts { max-width: 760px; }
.gifts__lead {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.4;
  font-style: italic;
}
.gift-photo {
  margin: 32px 0 36px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(53,59,61,.22);
}
.gift-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 32%;
}
.section-photo {
  margin: 8px 0 28px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(53,59,61,.22);
}
.section-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 40%;
}
@media (max-width: 760px) {
  .section-photo img { height: 240px; }
}
.gift-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.gift-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 26px 28px;
  box-shadow: 0 8px 22px rgba(53,59,61,.12);
}
.gift-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--terra-2);
  margin: 0 0 10px;
}
.gift-card p:last-child { margin-bottom: 0; }
.gift-details { margin: 18px 0 0; }
.gift-details__row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
}
.gift-details__row:last-child { border-bottom: none; padding-bottom: 0; }
.gift-details dt {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 600;
}
.gift-details dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.gift-details__value {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  word-break: break-word;
}
.gift-details__alt {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: .92rem;
  color: var(--taupe);
}
.copy-btn {
  font-family: var(--body);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--terra-2);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 2px 12px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.copy-btn:hover { background: var(--terra-2); color: var(--cream); }
.copy-btn.is-copied {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 0 0 24px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .cards--3 { grid-template-columns: 1fr; }
}
.card h4.card__title { margin-top: 0; }
.card {
  background: var(--cream-2);
  padding: 28px;
  border-radius: 4px;
}
.card--accent { border-left: 5px solid var(--gold); }
.card--wide { margin-bottom: 24px; }
.maps-link {
  display: inline-block;
  color: var(--terra-2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.maps-link:hover { color: var(--terra); }
.card__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dotted var(--line);
  font-size: .95rem;
  font-style: italic;
  color: var(--taupe);
}

/* yellow box (e.g. Polterabend text) */
.card--gold { background: var(--gold); border-left: none; }
.card--gold p:last-child { margin-bottom: 0; }

/* call-to-action pill buttons (sign-up / message links) */
.cta {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 24px;
  transition: background .2s ease, transform .08s ease;
}
.cta:hover { background: var(--gold-deep); }
.cta:active { transform: translateY(1px); }
.cta--ink { background: var(--ink); color: #fff; }
.cta--ink:hover { background: #222; }
.cta-email {
  display: inline-block;
  margin-left: 12px;
  font-size: .95rem;
  word-break: break-all;
}

/* slim full-width info banner */
.infobox {
  background: var(--cream-2);
  border-left: 5px solid var(--gold);
  border-radius: 4px;
  padding: 16px 22px;
  margin: 0 0 30px;
  line-height: 1.6;
}
.infobox a { color: var(--terra-2); font-weight: 700; white-space: nowrap; }

/* shorter, top-cropped image (Polterabend) */
.split__media--crop img { height: 380px; object-position: center 72%; }

/* wider text column; image matches the box height */
.split--wide-text {
  grid-template-columns: 3fr 5fr;
  gap: 28px;
  align-items: stretch;
}
.split--wide-text .split__media--crop img {
  height: calc(100% + 30px);
  max-height: none;
  margin: -15px 0;
}

/* "Your to-dos" floating window */
.todos {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 330px;
  width: calc(100% - 40px);
  background: var(--cream);
  border-top: 5px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(0,0,0,.3);
  padding: 20px 22px 22px;
}
.todos__close {
  position: absolute;
  top: 6px; right: 10px;
  background: none; border: none;
  font-size: 1.6rem; line-height: 1;
  color: var(--taupe); cursor: pointer;
}
.todos__close:hover { color: var(--ink); }
.todos__title {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 600;
  margin: 0 0 12px; color: var(--terra-2);
}
.todos__list { margin: 0; padding-left: 1.3em; }
.todos__list li { margin: 0 0 16px; line-height: 1.4; }
.todos__list li:last-child { margin-bottom: 0; }
.todos__list .cta { margin-top: 8px; font-size: .9rem; padding: 7px 14px; }
@media (max-width: 760px) {
  .todos { right: 12px; bottom: 12px; left: 12px; width: auto; }
}
.card__title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.card__detail { margin-top: 14px; }
.card__detail .big {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terra);
  line-height: 1.1;
  margin: 0 0 6px;
}
.card__detail .row { margin: 4px 0; }
.card__detail a { color: var(--terra-2); }

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* ============ CALLOUT ============ */
.callout {
  background: var(--cream-2);
  border-left: 5px solid var(--terra);
  padding: 28px 32px;
  border-radius: 4px;
  margin-top: 40px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 56px 24px;
}
.footer__names {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 500;
  margin: 0 0 6px;
}
.footer__names::first-line { color: var(--gold); }
.footer__date { color: var(--taupe); margin: 0; letter-spacing: .05em; }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .split, .cards, .gift-options { grid-template-columns: 1fr; gap: 24px; }
  .gift-photo img { height: 300px; }
  .split--reverse .split__media { order: 0; }
  .split { margin: 40px 0; }
  .timeline__item { grid-template-columns: 92px 1fr; gap: 16px; }
  .section { padding: 56px 20px; }
  .gate__card { padding: 36px 24px; }
  /* keep the nav to ~2 lines on phones */
  .nav { gap: 6px 16px; padding: 12px 14px; }
  .nav a { font-size: 1.05rem; }
}
