/* ============================================
   ANA MARIA & GABRIEL — invitație de nuntă
   paleta: crem hârtie + verde salvie + roșu ceară
   ============================================ */

:root {
  --paper: #f6f1e6;
  --paper-soft: #fbf8f1;
  --ink: #39423a;
  --muted: #78715f;
  --green: #44624a;
  --green-dark: #33503b;
  --sage: #cfdac7;
  --sage-deep: #a9bb9d;
  --wax: #a64832;
  --glow: #f3d9a6;
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.65);
  --gold: #c9a35f;
  --radius: 28px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Manrope", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; overflow-x: hidden; }
html.intro-locked {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}

body {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.intro-locked {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  height: 100dvh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px; position: relative; }

/* ---------- fundal aurora ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(175deg, #f8f3e9 0%, var(--paper) 40%, #eef0e6 78%, #ecefe4 100%);
}
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.a-sage { width: 44vw; height: 44vw; background: #d8e2cf; top: -14vw; right: -12vw; animation: drift1 28s ease-in-out infinite alternate; }
.a-cream { width: 38vw; height: 38vw; background: #f3e6cd; bottom: 2vh; left: -14vw; animation: drift2 34s ease-in-out infinite alternate; }
.a-blush { width: 30vw; height: 30vw; background: #f0ddd0; top: 44vh; left: 36vw; opacity: .45; animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-8vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(8vw, -8vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-6vw, 8vh) scale(1.2); } }

/* textura fină de hârtie peste tot */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- glass (liquid real: displacement map pe backdrop) ----------
   backdrop-filter stă DIRECT pe element — pe ::before + isolation:isolate
   efectul moare (contextul de stivuire nu lasă nimic de eșantionat în spate). */
.glass {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  background-size: 110px 110px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    0 18px 40px -18px rgba(51, 80, 59, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
html.has-liquid .glass-liquid { backdrop-filter: url(#lg-soft) blur(6px) saturate(150%); }
html.has-liquid .glass.glass-strong {
  backdrop-filter: blur(8px) saturate(100%);
  -webkit-backdrop-filter: blur(8px) saturate(100%);
}

/* bordura gradient (masca) */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to top right, rgba(120, 130, 110, 0.55), rgba(255, 255, 255, 0.9));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- tipografie ---------- */
.label {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--green);
}
.display {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 500; line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 10px 0 18px;
  color: var(--ink);
}
.script {
  font-family: var(--font-script); font-style: normal;
  color: var(--green); font-weight: 400;
}
.section-intro { max-width: 60ch; color: var(--muted); margin: 0 auto 46px; text-align: center; font-size: 18px; }
.center { text-align: center; }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, background .35s, color .35s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--green); color: #f6f3ea;
  box-shadow: 0 14px 30px -14px rgba(51, 80, 59, .65);
}
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.5); color: var(--green-dark);
  box-shadow: inset 0 0 0 1.5px rgba(68, 98, 74, .45);
}
.btn-ghost:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- intro video ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: #efe9db;
  cursor: pointer;
  transition: opacity 1.4s ease;
}
.intro-video,
.intro-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.intro-video {
  z-index: 0;
  transition: transform 1.6s cubic-bezier(.4,.05,.3,1);
}
.intro-poster {
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity .18s ease;
}
.intro.intro-video-ready .intro-poster { opacity: 0; }
.intro-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 60% at 50% 46%,
    rgba(255, 244, 214, .95) 0%, rgba(243, 217, 166, .55) 45%, rgba(243, 217, 166, 0) 75%);
  transition: opacity .9s ease;
}
.intro.intro-done { opacity: 0; pointer-events: none; }
.intro.intro-done .intro-video { transform: scale(1.12); }
.intro.intro-done .intro-glow, .intro.intro-playing.intro-done .intro-glow { opacity: 1; }
.intro-hint {
  position: absolute; left: 50%; bottom: clamp(36px, 8vh, 84px); z-index: 3; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(17px, 4.4vw, 21px);
  letter-spacing: .04em; color: rgba(70, 85, 72, .92);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 10px 26px -12px rgba(60, 50, 30, .4), inset 0 1px 0 rgba(255,255,255,.7);
  line-height: 1.25; text-align: center;
  animation: hint-in 1s ease .8s both, hint-breathe 2.6s ease-in-out 2s infinite;
  transition: opacity .4s ease;
}
.intro.intro-playing .intro-hint { opacity: 0; animation: none; }
@keyframes hint-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes hint-breathe { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

/* ---------- decoruri florale (toate pe z-index 0) ---------- */
.flori { position: absolute; pointer-events: none; z-index: 1; user-select: none; }
.footer { position: relative; overflow: hidden; }
/* florile din dreptul formularului — lipite perfect de marginea ecranului */
#rsvp { position: relative; overflow: hidden; }
.flori-rsvp-l { top: 6%; left: 0; width: min(22vw, 215px); }
.flori-rsvp-r { bottom: 4%; right: 0; width: min(20vw, 190px); }
.flori-loc {
  z-index: 0;
  opacity: .92;
}
.flori-loc-biserica {
  top: 16%;
  left: 0;
  width: min(18vw, 165px);
  transform: translateX(-10%);
}
.flori-loc-petrecere {
  top: 12%;
  right: 0;
  width: min(17vw, 155px);
  transform: translateX(10%);
}

.sec-prog-intro { position: relative; }

@media (max-width: 760px) {
  .section.sec-prog-intro { display: block; padding: 42px 18px 0; margin-bottom: 24px; }
  .sec-prog-intro .display { display: none; }
  #cununie { padding-top: 34px; }
  .flori-rsvp-l { width: min(30vw, 118px); }
  .flori-rsvp-r { width: min(28vw, 108px); }
  .flori-loc-biserica {
    top: 10%;
    width: min(31vw, 112px);
    transform: translateX(-18%);
  }
  .flori-loc-petrecere {
    top: 9%;
    width: min(30vw, 108px);
    transform: translateX(18%);
  }
  html.has-liquid #rsvp .glass.glass-strong {
    backdrop-filter: blur(8px) saturate(100%);
    -webkit-backdrop-filter: blur(8px) saturate(100%);
  }
}

/* ---------- hero (video în buclă, simplu, stil Heritage) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 18px 90px;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
  z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgb(0 0 0 / 40%);
  backdrop-filter: blur(0.5px) saturate(100%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
/* numele — SVG extras din invitația tipărită (aceeași caligrafie) */
.hero-names {
  width: min(84vw, 560px);
  aspect-ratio: 177.51 / 104.14;
  margin: 0;
  color: var(--paper);
}
.hero-names::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url("../assets/nume-invitatie.svg") center / contain no-repeat;
  mask: url("../assets/nume-invitatie.svg") center / contain no-repeat;
}
.hero-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 26px 0 30px;
}
.hero-divider i { display: block; width: clamp(64px, 12vw, 110px); height: 1px; background: rgb(246 241 230 / 78%); }
.hero-divider b.ring-ic {
  display: block; width: 26px; aspect-ratio: 12.15 / 9.65;
  background: var(--gold);
  -webkit-mask: url("../assets/inele.svg?v=2") no-repeat center / contain;
  mask: url("../assets/inele.svg?v=2") no-repeat center / contain;
  transform: translateY(-1px);
}
.hero-date {
  font-family: var(--font-body); font-size: clamp(14px, 2.4vw, 17px); font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--paper);
  padding-left: .32em; /* compensăm ultimul letter-spacing ca să stea centrat */
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: var(--paper); opacity: .7; z-index: 2;
  animation: cue 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes cue { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- locațiile (poză mare în arcadă + hartă mică suprapusă) ---------- */
.sec-prog-intro { padding-bottom: 0; }
.sec-loc { padding-bottom: 44px; }
.sec-loc .loc-grid { position: relative; z-index: 1; }

/* firul cronologic dintre locații — O SINGURĂ linie continuă, pe wrapper */
.fir-wrap { position: relative; }
.fir-inima { display: none; }
@media (min-width: 761px) {
  .fir-wrap::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 1px;
    transform: translateX(-.5px) scaleY(var(--fir, 1));
    transform-origin: 50% 0;
    background: rgba(201, 163, 95, .5);
  }
  .sec-loc::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 11px; height: 11px; border-radius: 50%;
    transform: translate(-50%, -50%) scale(var(--dot, 1));
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 163, 95, .22);
  }
  .fir-inima {
    display: block; position: absolute; left: 50%; bottom: -12px;
    transform: translateX(-50%) scale(var(--inima, 1));
    color: var(--gold); font-size: 21px; line-height: 1; z-index: 0;
  }
}
.loc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
  max-width: 980px; margin: 0 auto;
}
/* textul se aliniază spre linia din centru */
.loc-text { text-align: right; }
/* iconița de deasupra etichetei (biserică / cupe) */
.loc-ic {
  width: clamp(38px, 4.6vw, 50px); height: auto;
  display: inline-block; margin-bottom: 12px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.loc-ic-church {
  display: inline-block;
  width: 60px;
  aspect-ratio: 337.65 / 329.65;
  margin-bottom: 12px;
  background: var(--gold);
  -webkit-mask: url("../assets/church.svg") no-repeat center / contain;
  mask: url("../assets/church.svg") no-repeat center / contain;
}
.loc-ic-wine {
  display: inline-block;
  width: 60px;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  background: var(--gold);
  -webkit-mask: url("../assets/wine.svg?v=3") no-repeat center / contain;
  mask: url("../assets/wine.svg?v=3") no-repeat center / contain;
}
.loc-name {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(42px, 6vw, 62px); line-height: 1.04;
  margin: 12px 0 6px; color: var(--ink);
}
.loc-name .script {
  display: block; font-size: .94em; line-height: 1.3;
  margin-top: 2px;
}
.program-addr { font-size: 15.5px; color: var(--muted); font-family: var(--font-body); font-weight: 500; margin-bottom: 14px; }
.program-time {
  display: flex; align-items: center; gap: 12px;
  justify-content: flex-end; /* biserica = text la dreapta */
  font-family: var(--font-serif); font-size: clamp(44px, 6vw, 58px); font-weight: 500;
  line-height: 1.15; color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.time-ic {
  width: clamp(24px, 3.2vw, 30px); height: auto; flex: none;
  stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.sec-loc-rev .program-time { justify-content: flex-start; } /* Libao = text la stânga */
@media (max-width: 760px) {
  .program-time, .sec-loc-rev .program-time { justify-content: center; }
}

.loc-visual { position: relative; padding-bottom: 44px; }
.loc-img {
  position: relative;
  width: min(86%, 420px); margin-left: auto;
  border-radius: 210px 210px 32px 32px;
}
.loc-img::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 163, 95, .58);
  border-radius: inherit;
  transform: translate(12px, -12px);
  pointer-events: none;
  z-index: 2;
}
.loc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 163, 95, .58);
  border-radius: inherit;
  transform: translate(-12px, 12px);
  opacity: .78;
  pointer-events: none;
  z-index: 0;
}
.loc-img-crop {
  position: relative;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(51, 80, 59, .5);
}
.loc-img img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  transform: scale(1.2); /* marjă pentru parallaxul din interiorul conturului */
  will-change: transform;
}
/* harta stă pe exteriorul compoziției, să nu aglomereze centrul */
.loc-map {
  position: absolute; right: -10px; bottom: 0; left: auto;
  z-index: 3;
  width: min(52%, 250px); aspect-ratio: 16 / 10;
  border-radius: 22px; overflow: visible;
  background: transparent;
  --map-shadow-opacity: 1;
}
.loc-map::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 22px 44px -22px rgba(51, 80, 59, .55);
  opacity: var(--map-shadow-opacity);
  pointer-events: none;
  z-index: 0;
}
.loc-map::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(201, 163, 95, .58);
  border-radius: 30px;
  pointer-events: none;
  z-index: 2;
}
.loc-map iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 6px solid rgba(255, 255, 255, .9);
  border-radius: inherit;
  box-sizing: border-box;
  display: block;
  background: #fff;
}

/* varianta oglindită (petrecerea) */
.sec-loc-rev .loc-text { order: 2; text-align: left; }
.sec-loc-rev .loc-visual { order: 1; }
.sec-loc-rev .loc-img { margin-left: 0; margin-right: auto; }
.sec-loc-rev .loc-img::before { transform: translate(-12px, -12px); }
.sec-loc-rev .loc-img::after { transform: translate(12px, 12px); }
.sec-loc-rev .loc-map { right: auto; left: -10px; }

/* ---------- rsvp ---------- */
.rsvp-panel-wrap {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--radius);
}
.rsvp-panel {
  max-width: 620px; margin: 0;
  padding: clamp(30px, 5vw, 52px);
  z-index: 2; /* peste flori (z-index 1) — sticla le distorsionează prin spate */
}
.rsvp-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 163, 95, .58);
  border-radius: inherit;
  transform: translate(12px, -12px);
  pointer-events: none;
  z-index: 1;
}
.rsvp-frame-opposite {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 163, 95, .58);
  border-radius: inherit;
  transform: translate(-12px, 12px);
  opacity: .78;
  pointer-events: none;
  z-index: 1;
}
.rsvp-panel h2 { margin-bottom: 6px; }
.rsvp-lead { color: var(--muted); font-style: italic; margin-bottom: 28px; }
.form-row { margin-bottom: 18px; text-align: left; }
.form-row label {
  display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green);
  margin-bottom: 8px;
}
.form-row input[type="text"], .form-row textarea, .form-row select {
  width: 100%;
  font-family: var(--font-serif); font-size: 18px; color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid rgba(68, 98, 74, .35);
  border-radius: 16px;
  padding: 13px 18px;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.form-row textarea { resize: none; overflow-y: hidden; min-height: 92px; }
.form-row input[type="text"]:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 4px rgba(68, 98, 74, .12);
}
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2344624a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
  cursor: pointer;
}
.attend-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attend-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.attend-toggle span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  padding: 13px 10px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--green-dark);
  background: rgba(255,255,255,.5);
  box-shadow: inset 0 0 0 1.5px rgba(68, 98, 74, .35);
  transition: background .3s, color .3s, box-shadow .3s;
}
.attend-toggle input:checked + span {
  background: var(--green); color: #f6f3ea;
  box-shadow: 0 10px 24px -12px rgba(51, 80, 59, .6);
}
/* slider persoane — 6 cerculețe cu snap */
.pers-slider { padding: 4px 0 0; }
.pers-track-wrap { position: relative; height: 38px; }
.pers-dots {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px; pointer-events: none;
}
.pers-dots::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 50%;
  height: 2px; transform: translateY(-50%);
  background: rgba(68, 98, 74, .28); border-radius: 2px;
}
.pers-dots i {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pers-dots i::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(68, 98, 74, .45);
}
.pers-range {
  position: relative; z-index: 1;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 38px; margin: 0; padding: 0 4px;
  background: transparent; cursor: pointer;
}
.pers-range::-webkit-slider-runnable-track { height: 38px; background: transparent; }
.pers-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: 6px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #5d7d62, var(--green) 55%, var(--green-dark));
  border: 2px solid #fff;
  box-shadow: 0 5px 14px -4px rgba(51, 80, 59, .55);
  transition: transform .15s ease;
}
.pers-range:active::-webkit-slider-thumb { transform: scale(1.18); }
.pers-range::-moz-range-track { height: 38px; background: transparent; }
.pers-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff;
  box-shadow: 0 5px 14px -4px rgba(51, 80, 59, .55);
}
.pers-range:focus, .pers-range:focus-visible { outline: none; }
.pers-nums { display: flex; justify-content: space-between; padding: 2px 4px 0; }
.pers-nums span {
  width: 26px; text-align: center;
  font-family: var(--font-serif); font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s, transform .2s, font-weight .2s;
}
.pers-nums span.on { color: var(--green-dark); font-weight: 600; transform: scale(1.35); }

.rsvp-form .btn-primary { width: 100%; font-size: 16px; padding: 16px 28px; margin-top: 6px; }
.rsvp-thanks { padding: 26px 0 10px; }
.thanks-script {
  font-family: var(--font-script); font-size: clamp(34px, 7vw, 46px);
  color: var(--green); margin-bottom: 14px;
}
.thanks-text { font-size: 19px; font-style: italic; color: var(--ink); max-width: 44ch; margin: 0 auto; }
.thanks-text .heart { color: var(--wax); font-style: normal; }
.rsvp-err {
  margin-top: 14px; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: #a04a32;
}
.rsvp-note { margin: 18px 0 0; font-size: 16px; font-style: italic; color: var(--muted); }
.rsvp-note a { color: var(--green-dark); font-weight: 600; }
#rowPersoane, #rowMesaj { transition: opacity .4s, max-height .4s; }
.rsvp-form.declined #rowPersoane { display: none; }

/* ---------- îngerașii (decor între program și countdown) ---------- */
.ingerasi {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  padding: 34px 18px 0;
  margin-bottom: -30px;
}
.ingerasi picture { display: contents; }
.ingerasi img {
  width: min(88vw, 660px); height: auto;
  filter: drop-shadow(0 18px 30px rgba(90, 80, 55, .18));
}
/* varianta lată (cu flori) are alt raport — o lăsăm să respire pe desktop/tabletă */
@media (min-width: 761px) {
  .ingerasi { padding-top: 10px; margin-bottom: -58px; }
  .ingerasi img { width: min(94vw, 1080px); }
}
/* banda verde urcă sub îngerași; o facem nestaționată ca ei (z-index 0) să treacă peste ea */
.sec-count { position: relative; }

/* ---------- countdown (bandă verde, sparge monotonia) ---------- */
.sec-count {
  background: #3a4733;
  padding: 84px 24px 92px;
}
.sec-count::before,
.sec-count::after,
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  left: clamp(48px, 18vw, 360px);
  right: clamp(48px, 18vw, 360px);
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 163, 95, .42), rgba(238, 202, 111, .95) 50%, rgba(201, 163, 95, .42));
  pointer-events: none;
  z-index: 1;
}
.sec-count::before { top: 44px; }
.footer::before { top: 12px; }
.sec-count::after, .footer::after { bottom: 12px; }
.count-caption {
  font-family: var(--font-script);
  font-size: clamp(32px, 7vw, 46px);
  color: #e9d9bd;
  margin-bottom: 30px;
}
.countdown {
  display: flex; justify-content: center; align-items: stretch;
  flex-wrap: nowrap;
}
.count-cell {
  min-width: clamp(96px, 28vw, 220px);
  padding: 6px clamp(10px, 2.5vw, 28px);
  text-align: center;
}
.count-cell + .count-cell { border-left: 1px solid rgba(233, 217, 189, .32); }
.count-num {
  font-family: var(--font-serif);
  font-size: clamp(52px, 12vw, 96px); font-weight: 400; color: #f3ead7;
  font-variant-numeric: tabular-nums; line-height: 1.05;
}
.count-label {
  font-family: var(--font-serif); font-size: clamp(14px, 2.6vw, 18px); font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase;
  color: rgba(233, 217, 189, .85); margin-top: 10px;
  padding-left: .34em;
}

/* ---------- footer (verde închis, simplu: numele caligrafiate + data) ---------- */
.footer {
  text-align: center;
  background: #3a4733;
  color: #e6d9c3;
  margin-top: 70px;
  padding: 88px 24px 74px;
}
.footer-nume {
  display: block; margin: 0 auto;
  width: min(84vw, 520px); height: auto;
}
/* același despărțitor ca în hero, dar cu dungile în culoarea textului din footer */
.footer-divider { justify-content: center; margin: 26px 0 0; }
.footer-divider i { background: #d9cbb2; }
.footer-divider b.ring-ic { width: 22px; background: #d9cbb2; }
.footer-date {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: .1em; color: #d9cbb2; margin-top: 26px;
}

/* ---------- animații reveal ---------- */
.reveal, .reveal-img { will-change: transform, opacity; }
html.no-anim .reveal, html.no-anim .reveal-img { opacity: 1 !important; transform: none !important; }
html.no-anim .intro-hint { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .section { padding: 72px 18px; }
  .hero { padding-top: 60px; }
  .loc-grid, .sec-loc-rev .loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .loc-text, .sec-loc-rev .loc-text { order: 1; text-align: center; }
  .loc-visual, .sec-loc-rev .loc-visual { order: 2; max-width: 440px; margin: 0 auto; width: 100%; }
  .loc-img, .sec-loc-rev .loc-img { margin: 0 auto; width: min(80%, 380px); }
  .loc-img::before { transform: translate(8px, -8px); }
  .loc-img::after { transform: translate(-8px, 8px); }
  .sec-loc-rev .loc-img::before { transform: translate(-8px, -8px); }
  .sec-loc-rev .loc-img::after { transform: translate(8px, 8px); }
  .loc-map { left: 2%; right: auto; }
  .sec-loc-rev .loc-map { left: auto; right: 2%; }
  .rsvp-panel::before { transform: translate(8px, -8px); }
  .rsvp-frame-opposite { transform: translate(-8px, 8px); }
  .sec-count::before, .sec-count::after, .footer::before, .footer::after { left: 28px; right: 28px; }
}
@media (max-width: 560px) {
  .attend-toggle { grid-template-columns: 1fr; }
}

/* fără selecție/highlight pe elementele interactive */
.btn, .attend-toggle span, .pers-slider, .scroll-cue, .count-cell, .label, .intro-hint {
  -webkit-user-select: none; user-select: none;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob, .scroll-cue, .intro-hint { animation: none !important; }
  html { scroll-behavior: auto; }
}
