:root {
  --ivory: #f4f0e9;
  --cream: #e9e1d5;
  --gold: #a98c5a;          /* doar decor: linii, arcade, ampersand */
  --gold-ink: #806943;      /* varianta pentru text — trece AA pe ivory */
  --bronze: #766241;
  --ink: #201d19;
  --muted: #6a645a;
  --white: #fffdf8;
  --hairline: rgba(128, 106, 71, .42);
  --hairline-soft: rgba(128, 106, 71, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  /* zona rezervată navigației: arcada și conținutul încep sub ea */
  --nav-h: 100px;
  padding-top: var(--nav-h);
  background: radial-gradient(circle at 50% 42%, #f8f5ef 0, #eee7dc 48%, #e2d7c7 100%);
  display: grid;
  place-items: center;
}
.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 34px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.nav-mark {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
}
.nav-mark span { color: var(--gold); font-size: 17px; }
.menu { display: flex; gap: 32px; }
.menu a { color: var(--ink); text-decoration: none; padding: 12px 0; }   /* țintă ≥44px */
.menu-button { display: none; border: 0; background: none; cursor: pointer; }
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  /* se strânge pe ecrane joase, ca hero-ul să încapă în 100svh */
  padding: clamp(8px, 2.4vh, 34px) 20px clamp(18px, 4vh, 55px);
  --mono-h: clamp(140px, 24vh, 250px);
}
.eyebrow { letter-spacing: .28em; }
.monogram {
  width: min(255px, 55vw);
  height: var(--mono-h, 250px);
  object-fit: cover;
  object-position: 50% 33%;
  margin: 5px auto calc(var(--mono-h, 250px) * -.24);
  mix-blend-mode: multiply;
}
.hero h1 i { font-weight: 400; color: var(--gold); }
.date-line { display: flex; align-items: center; justify-content: center; gap: 22px; }
.date-line span { width: 70px; height: 1px; background: var(--gold); }
/* marginile implicite de browser pe <p> risipeau zeci de px în hero */
.date-line p { margin: 0; }
.hero-content > .eyebrow { margin: 10px 0; }
.venue { margin: clamp(14px, 2.4vh, 26px) 0 0; }
/* linie scurtă aurie în locul liniei cu data (data e deja în monogramă) */
.venue::before { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin: 0 auto clamp(12px, 2vh, 18px); }
.scroll-cue {
  margin-top: clamp(16px, 3.4vh, 45px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vh, 12px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .25em;
}
.cue-line {
  width: 1px;
  height: clamp(30px, 7vh, 72px);
  background: linear-gradient(var(--gold), rgba(169, 140, 90, .12));
  transform-origin: top;
  animation: cue-grow 1.4s ease .8s backwards;
}
@keyframes cue-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ecrane foarte joase: hero-ul trebuie să încapă tot în viewport */
@media (max-height: 700px) {
  .hero { --nav-h: 78px; }
  .hero-content { --mono-h: clamp(104px, 19vh, 250px); }
  .nav { padding-block: 22px; }
}

/* ---------- Sections & rhythm ---------- */
section { position: relative; padding: 110px max(7vw, 28px); }
.section-intro { max-width: 650px; margin: 0 auto; text-align: center; }
.section-intro h2 { font-size: clamp(44px, 6vw, 78px); }

.countdown-section {
  text-align: center;
  background: var(--ink);
  color: var(--ivory);
  padding-block: 100px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 70px auto 0;
}
.countdown div { border-left: 1px solid rgba(244, 240, 233, .18); }
.countdown div:last-child { border-right: 1px solid rgba(244, 240, 233, .18); }
.countdown strong {
  display: block;
  font-size: clamp(45px, 7vw, 84px);
  line-height: 1;
  color: #c4a977;
  font-weight: 400;
}
.countdown span { letter-spacing: .24em; }

/* ---------- Story ---------- */
.story-section { padding-block: 130px 80px; }
.story-body { max-width: 580px; margin: 50px auto 0; text-align: center; }
.story-body p { margin: 0 0 26px; line-height: 1.9; color: var(--muted); }
.story-sign {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
  letter-spacing: .12em;
}
.story-sign i { font-style: italic; color: var(--gold); }

/* ---------- Blessing (nași & părinți) ---------- */
.blessing-section { background: var(--cream); padding-block: 100px; }
.blessing-grid {
  display: grid;
  /* părinții pe două coloane, nașii pe rândul de dedesubt, centrați */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 70px;
  max-width: 840px;
  margin: 50px auto 0;
  text-align: center;
}
.blessing-label,
.blessing-wide { grid-column: 1 / -1; }
.blessing-label { margin: 0; }
.blessing-grid h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 31px;
  line-height: 1.25;
  margin: 0;
}
/* spațiu peste al doilea grup, nu între numele părinților */
.blessing-grid .blessing-label:not(:first-child) { margin-top: 18px; }
.blessing-label + h3 { margin-top: 0; }

/* ---------- Program ---------- */
.program-section { padding-block: 110px 150px; }
.program-section .section-intro p:last-child { line-height: 1.8; color: var(--muted); }
.timeline { max-width: 850px; margin: 90px auto 0; }
.event { display: grid; grid-template-columns: 110px 60px 1fr; min-height: 180px; }
.time { color: var(--gold-ink); padding-top: 3px; font-size: 30px; }
.event-line { position: relative; display: flex; justify-content: center; }
.event-line:before {
  content: "";
  width: 1px;
  background: #cfc4b2;
  position: absolute;
  top: 12px;
  bottom: -12px;
}
.event:last-child .event-line:before { bottom: 75px; }
.event-line span {
  width: 11px;
  height: 11px;
  background: var(--gold);
  border-radius: 50%;
  z-index: 1;
  margin-top: 10px;
  box-shadow: 0 0 0 8px var(--ivory);
}
.event h3 { font-size: 35px; margin: 7px 0 12px; }
.event p:last-child { color: var(--muted); line-height: 1.7; }

/* ---------- Location ---------- */
.location-section {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  gap: 5vw;
  padding: 110px max(7vw, 28px);
  background: var(--ivory);
}
.location-card {
  position: relative;
  --pad-x: 55px;
  /* padding-top generos: conținutul începe sub zona în care arcul se strânge,
     ca linia curbă să nu treacă niciodată peste text */
  padding: clamp(95px, 10vw, 150px) var(--pad-x) 70px;
  background: var(--white);
  border: 1px solid var(--hairline);
  outline: 1px solid var(--hairline-soft);
  outline-offset: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-card h2 { font-size: clamp(44px, 5vw, 70px); margin: 14px 0 6px; }
.location-card > p { color: var(--muted); }
.address-rule { height: 1px; width: 70px; background: var(--gold); margin: 22px 0; }
.location-note { line-height: 1.7; color: var(--muted); }
.location-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.location-card .address span { display: block; font-size: 15px; margin-top: 4px; }
.text-link { font-family: var(--font-text); font-variant-caps: all-small-caps; font-size: 14px; letter-spacing: .13em; color: var(--gold-ink); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 6px; text-decoration-thickness: 1px; padding: 12px 0; transition: color .6s ease, text-decoration-color .6s ease; }
.text-link:hover, .text-link:focus-visible { color: var(--ink); text-decoration-color: var(--bronze); }
.map-art { display: grid; place-items: center; padding: 2vw; }
.map-art svg { width: 100%; color: rgba(128, 106, 71, .5); }
.map-art path { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .8; }
.map-art circle { fill: var(--gold); }
.map-art .pulse { fill: none; stroke: var(--gold); stroke-width: 1; animation: pulse 2.4s infinite; }
.map-art text { fill: var(--bronze); letter-spacing: 4px; }

/* ---------- Travel ---------- */
.travel-section { padding-block: 90px; border-top: 1px solid var(--hairline-soft); }
.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  max-width: 950px;
  margin: 50px auto 0;
}
.travel-grid h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.travel-grid p { color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: var(--ink);
  color: var(--white);
  padding: 17px 23px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .4s ease, color .4s ease;
}
.button:hover, .button:focus-visible { background: var(--bronze); color: var(--white); }

/* ---------- RSVP ---------- */
.rsvp-section {
  background: var(--cream);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10vw;
  padding-block: 150px;
}
.rsvp-heading { text-align: left; }
.rsvp-heading h2 { font-size: clamp(50px, 6vw, 82px); }
.rsvp-heading > p:last-child { color: var(--muted); }
.rsvp-form { display: grid; gap: 25px; }
input, select, textarea {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-bottom: 1px solid #a89f90;
  background: transparent;
  border-radius: 0;
  padding: 13px 4px;
  color: var(--ink);
}
textarea { resize: vertical; }
.rsvp-form fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: inline-flex; margin: 5px 25px 0 0; padding: 8px 0; min-height: 44px; align-items: center; gap: 10px; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.rsvp-form .button { justify-self: start; }
.form-status { min-height: 24px; color: var(--bronze); }

/* ---------- Footer ---------- */
footer { text-align: center; background: var(--ink); color: var(--ivory); padding: 75px 20px; }
footer img {
  width: 90px;
  height: 100px;
  object-fit: cover;
  object-position: 50% 27%;
  filter: brightness(0) invert(1);
  opacity: .8;
}
footer p i { font-style: italic; color: #c4a977; }
footer span { letter-spacing: .28em; color: #bda87d; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@keyframes pulse { 0% { r: 22; opacity: 1; } 100% { r: 55; opacity: 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .menu-button { display: block; width: 44px; height: 44px; padding: 10px; margin-right: -10px; z-index: 2; }
  .menu-button span { display: block; width: 100%; height: 1px; background: var(--ink); margin: 6px 0; }
  .menu {
    display: none;
    position: absolute;
    top: 75px;
    right: 20px;
    background: var(--ivory);
    padding: 25px;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 15px 40px rgba(32, 29, 25, .1);
  }
  .menu.open { display: flex; }
  .hero-content { padding-top: 105px; }
  .monogram { height: 220px; margin-bottom: -58px; }
  .countdown-section { padding-left: 16px; padding-right: 16px; }
  .countdown strong { font-size: 40px; }
  .countdown div { padding: 0 3px; }
  .story-section { padding-block: 90px 60px; }
  .story-body { text-align: left; }
  .story-body .story-sign { text-align: center; }
  .blessing-grid { grid-template-columns: 1fr; gap: 38px; }
  .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-note { font-size: 17px; }
  .event { grid-template-columns: 75px 34px 1fr; }
  .time { font-size: 23px; }
  .location-section, .rsvp-section { grid-template-columns: 1fr; }
  .location-section { gap: 55px; }
  .location-card {
    --pad-x: 28px;
    /* cardul rămâne în proporție portret, ca arcul să nu devină disproporționat
       de larg pe o singură coloană, și conținutul să stea sub curbă */
    padding: clamp(110px, 30vw, 145px) var(--pad-x) 55px;
    max-width: 430px;
    width: 100%;
    margin-inline: auto;
  }
  .map-art { min-height: 340px; padding: 4vw; }
  .rsvp-section { gap: 65px; padding-block: 110px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none !important; }
  .cue-line { animation: none; }
}


/* „Adaugă în calendar" — aceeași familie cu .button, în variantă cu chenar,
   ca să nu apese vizual la finalul programului. */
.calendar-line { text-align: center; margin: 70px 0 0; }
.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--font-text);
  font-variant-caps: all-small-caps;
  font-size: 14px;
  letter-spacing: .13em;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--hairline);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.calendar-link svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.2; }
.calendar-link:hover,
.calendar-link:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.calendar-link:focus-visible { outline: 1px solid var(--bronze); outline-offset: 3px; }


/* ---------- Întrebări ---------- */
.faq-section { padding-block: 100px; border-top: 1px solid var(--hairline-soft); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 64px;
  max-width: 880px;
  margin: 54px auto 0;
}
.faq-grid h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.25;
  margin: 0 0 14px;
}
.faq-grid p { color: var(--muted); margin: 0; line-height: 1.75; }

/* Textul de închidere, preluat de pe invitația tipărită */
.footer-note {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.85;
  color: #cfc3ab;
  max-width: 560px;
  margin: 26px auto 34px;
  text-wrap: balance;
}

/* FAQ pe o coloană pe mobil — regula stă după .faq-grid, altfel e suprascrisă */
@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; gap: 34px; }
}
