:root {
  --cream: #f8f3eb;
  --paper: #fffdf8;
  --ink: #392a2b;
  --muted: #766568;
  --burgundy: #792f42;
  --burgundy-dark: #4d1d2b;
  --rose: #d8b8b7;
  --line: #e8d9d1;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
  background: #211a1c;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 40%,
      rgba(121, 47, 66, 0.36),
      transparent 48%
    ),
    linear-gradient(135deg, #171315, #38232a 52%, #171315);
}
.hero-backdrop::before,
.hero-backdrop::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(236, 211, 194, 0.35);
  border-radius: 50%;
  width: min(75vw, 760px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hero-backdrop::after {
  width: min(84vw, 860px);
  border-color: rgba(236, 211, 194, 0.16);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(#fff 0.55px, transparent 0.7px);
  background-size: 5px 5px;
  pointer-events: none;
}
.hero-frame {
  position: relative;
  z-index: 1;
  width: min(90%, 760px);
  text-align: center;
  padding: 70px 20px 110px;
}
.eyebrow,
.section-mark {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.hero-eyebrow {
  color: #e5c9c3;
  margin: 0 0 25px;
}
.ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #d7b4a9;
  font-size: 1.4rem;
}
.ornament span {
  display: block;
  width: 48px;
  height: 1px;
  background: #b98b8d;
}
.hero-names,
.footer-names {
  font: normal clamp(3.6rem, 10vw, 7.8rem)/1.05 var(--script);
  margin: 24px 0 14px;
  color: #fff7ee;
}
.hero-names i,
.footer-names i {
  font-size: 0.62em;
  color: #d7a9ad;
  font-style: normal;
  padding: 0 0.05em;
}
.hero-invite {
  font: 500 clamp(1rem, 2.5vw, 1.35rem) var(--serif);
  letter-spacing: 0.23em;
  text-transform: uppercase;
  margin: 28px 0 16px;
}
.hero-date {
  font: 500 1rem var(--sans);
  letter-spacing: 0.16em;
  color: #ead8d0;
  margin: 0;
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f3e4dc;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.scroll-arrow {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  animation: float 1.8s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
.section {
  padding: 100px max(6vw, 24px);
}
.intro {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: 42px 8%;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.section-mark {
  color: var(--burgundy);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
}
.intro > .section-mark {
  grid-column: 1/-1;
  margin-bottom: -22px;
}
.intro-copy {
  max-width: 590px;
}
.script-kicker {
  font: normal 2.1rem/1.15 var(--script);
  color: var(--burgundy);
  margin: 0 0 14px;
}
h2 {
  font: 500 clamp(2.1rem, 4vw, 3.5rem)/1.15 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--burgundy-dark);
}
.intro-copy > p:not(.script-kicker) {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #625255;
}
.family-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font: normal 1.65rem var(--script);
  color: var(--burgundy);
  margin: 14px 0 20px;
}
.godparents {
  margin-top: 8px;
}
blockquote {
  border-left: 2px solid var(--rose);
  padding: 4px 0 4px 20px;
  margin: 30px 0 0;
  font: italic 1.1rem/1.8 var(--serif);
  color: var(--burgundy-dark);
}
blockquote span {
  color: var(--burgundy);
  font-size: 1.5rem;
}
.photo-placeholder {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e8d9d0, #cdb5b0 50%, #9d737a);
}
.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 253, 248, 0.6);
  z-index: 1;
  pointer-events: none;
}
.photo-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  color: #fffaf3;
  text-shadow: 0 1px 10px #5b3b43;
}
.photo-label {
  font: normal 2rem var(--script);
}
.photo-hint {
  margin-top: 8px;
  max-width: 220px;
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.intro-photo {
  min-height: 530px;
  aspect-ratio: 4/5;
}
.date-section {
  background: #efe4db;
  padding-top: 85px;
  padding-bottom: 85px;
}
.date-card {
  max-width: 550px;
  margin: auto;
  border: 1px solid #c9a9a4;
  outline: 1px solid #c9a9a4;
  outline-offset: 7px;
  text-align: center;
  padding: 42px 28px 36px;
}
.date-card .script-kicker {
  margin-bottom: 20px;
}
.date-weekday {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--burgundy);
}
.date-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.date-line span {
  width: 52px;
  height: 1px;
  background: #b68a8d;
}
.date-day {
  font: normal 6.2rem/0.95 var(--serif);
  color: var(--burgundy-dark);
  margin: 8px 0;
}
.date-month {
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--burgundy);
}
.date-note {
  font: italic 1.1rem var(--serif);
  color: var(--muted);
  margin: 25px 0 26px;
}
.countdown-wrap {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  border-top: 1px solid #d9c2ba;
  padding-top: 20px;
}
.countdown-label {
  color: var(--muted);
  font-size: 0.8rem;
}
#countdown {
  font: 500 1.45rem var(--serif);
  color: var(--burgundy);
}
.events {
  text-align: center;
  max-width: 1200px;
  margin: auto;
}
.events .section-mark,
.gallery .section-mark {
  margin-bottom: 28px;
}
.events .script-kicker,
.gallery .script-kicker {
  margin-bottom: 10px;
}
.section-lead {
  max-width: 560px;
  margin: 0 auto 42px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}
.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 35px clamp(24px, 4vw, 48px);
  position: relative;
}
.event-number {
  font: normal 2rem var(--script);
  color: #bd9293;
}
.event-type {
  color: var(--burgundy);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 14px 0 18px;
}
.event-card h3 {
  font: 500 clamp(1.4rem, 2.5vw, 2rem)/1.35 var(--serif);
  color: var(--burgundy-dark);
  margin: 0 0 10px;
}
.event-place {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 25px;
}
.event-time {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font: 500 1.25rem var(--serif);
  color: var(--burgundy);
}
.tiny-icon {
  font-size: 1.4rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--burgundy);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #c9a5a6;
  padding-bottom: 5px;
}
.text-link:hover {
  color: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
}
.gallery {
  background: #f0e6df;
  text-align: center;
}
.photo-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
}
.gallery-photo {
  min-height: 0;
}
.gallery-photo-tall {
  grid-row: span 2;
}
.gallery-photo-wide {
  min-height: 240px;
}
.photo-grid .gallery-photo:last-child {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.rsvp {
  padding-top: 90px;
  padding-bottom: 90px;
}
.rsvp-card {
  max-width: 720px;
  margin: auto;
  text-align: center;
  padding: clamp(30px, 6vw, 65px);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.rsvp-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #e8d9d1;
  pointer-events: none;
}
.rsvp-card > * {
  position: relative;
}
.rsvp-card .section-mark {
  margin-bottom: 28px;
}
.rsvp-card > p:not(.script-kicker) {
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.94rem;
}
.rsvp-card strong {
  color: var(--burgundy);
}
.rsvp-note {
  margin-top: 22px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--burgundy);
  color: white;
  padding: 15px 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 16px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button-link:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
}
.button-link span {
  font-size: 1.2rem;
}
.rsvp-card .form-note {
  font-size: 0.72rem !important;
  margin-top: 18px;
}
.footer {
  text-align: center;
  padding: 35px 20px 45px;
  background: var(--burgundy-dark);
  color: #ead8d0;
}
.footer .ornament {
  font-size: 1.2rem;
}
.footer .ornament span {
  background: #b98b8d;
}
.footer-names {
  font-size: 3.5rem;
  margin: 15px 0 4px;
}
.footer > p:last-child {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
@media (max-width: 760px) {
  .section {
    padding: 70px 22px;
  }
  .hero-frame {
    padding-bottom: 120px;
  }
  .hero-names {
    font-size: clamp(3.4rem, 13vw, 5.5rem);
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .intro > .section-mark {
    margin-bottom: 0;
  }
  .intro-photo {
    min-height: 400px;
    width: min(100%, 440px);
    margin: 0 auto;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .event-card {
    padding: 30px 26px;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 220px;
    gap: 10px;
  }
  .gallery-photo-tall {
    grid-row: auto;
  }
  .photo-grid .gallery-photo:last-child {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-photo-wide {
    min-height: 180px;
  }
  .photo-grid .gallery-photo:first-child {
    grid-row: span 2;
  }
  .photo-grid .gallery-photo:last-child {
    grid-column: span 2;
  }
  .date-card {
    padding: 35px 18px 30px;
  }
}
@media (max-width: 420px) {
  .hero-eyebrow {
    font-size: 0.58rem;
  }
  .hero-date {
    font-size: 0.82rem;
  }
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .intro-photo {
    min-height: 330px;
  }
  .family-names {
    flex-direction: column;
    gap: 4px;
  }
  .photo-grid {
    grid-template-rows: 190px 155px 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.intro-photo-image {
  position: relative;
  min-height: 530px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(145deg, #e8d9d0, #cdb5b0 50%, #9d737a);
}

.intro-photo-image img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.intro-photo-image::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 253, 248, 0.6);
  z-index: 1;
  pointer-events: none;
}



.gallery-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e8d9d0;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.gallery-photo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 253, 248, 0.65);
  pointer-events: none;
}

.gallery-photo:hover img {
  transform: scale(1.04);
}


/* ===== Ajustări v2 ===== */
.hero-names, .footer-names { font-weight: 600; }

/* Intro: o singură coloană centrată, cu poze între texte */
.intro { display: block; max-width: 760px; text-align: center; }
.intro > .section-mark { margin-bottom: 28px; }
.intro-copy { max-width: 590px; margin: 0 auto; }

.photo-frame {
  position: relative; overflow: hidden; margin: 48px auto; background: #e8d9d0;
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-frame::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(255, 253, 248, 0.65); pointer-events: none;
}
.photo-portrait { width: min(100%, 420px); aspect-ratio: 3 / 4; }
.photo-wide { width: min(100%, 700px); aspect-ratio: 16 / 10; }
.photo-wide img { object-position: 50% 35%; }
.photo-eyes { width: min(100%, 900px); aspect-ratio: 1600 / 1131; background: #000; margin: 0 auto; }

.photo-section { padding: 90px max(6vw, 24px) 0; }
.quote-block { max-width: 620px; margin: 0 auto; text-align: center; }
.quote-block blockquote { border: 0; padding: 0; margin: 40px 0 0; }
.photo-duo {
  max-width: 900px; margin: 0 auto; display: grid;
  grid-template-columns: 1.3fr 1fr; gap: 14px;
}
.photo-duo .photo-frame { margin: 0; height: clamp(260px, 48vw, 460px); }
.events + .photo-section { padding-top: 0; }
.photo-section + .rsvp { padding-top: 90px; }

/* Sticker-e */
.sticker {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  font-size: 1.7rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 50%; box-shadow: 0 3px 10px rgba(77, 29, 43, 0.12);
}
.sticker-lg { width: 64px; height: 64px; font-size: 2.1rem; }
.family-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 48px; margin: 22px 0 26px; }
.family { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.family-label { margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.family-script { margin: 0; font: 600 1.7rem/1.2 var(--script); color: var(--burgundy); }
.event-card .sticker-lg { margin-bottom: 4px; }

/* Finalul magic: 16 -> 17 iulie */
.magic-date {
  position: relative; display: inline-flex; padding: 14px 28px;
  font: 500 clamp(2.3rem, 10vw, 4.2rem)/1 var(--serif); letter-spacing: 0.06em;
  color: var(--burgundy-dark); font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
}
.md-char { display: inline-block; }
.md-char.flip-out { animation: mdOut 0.25s ease-in forwards; }
.md-char.flip-in { animation: mdIn 0.3s ease-out; }
.md-char.flash { animation: sevenFlash 1.1s ease-out forwards; }
@keyframes mdOut { to { transform: translateY(60%); opacity: 0; } }
@keyframes mdIn { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sevenFlash {
  30% { color: #c9930a; transform: scale(1.3); text-shadow: 0 0 18px #ffd36b, 0 0 42px #ffb84d; }
  100% { color: #b8860b; transform: scale(1); text-shadow: 0 0 10px rgba(255, 211, 107, 0.6); }
}
.is-magic .md-char { color: var(--burgundy); animation: glow 3.2s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { text-shadow: 0 0 8px rgba(255, 211, 107, 0.45); }
  50% { text-shadow: 0 0 18px rgba(255, 211, 107, 0.9), 0 0 36px rgba(255, 184, 77, 0.45); }
}
.md-spark {
  position: absolute; left: var(--x); top: var(--y); font-size: var(--s);
  color: #d4a017; opacity: 0; pointer-events: none;
}
.is-magic .md-spark { animation: twinkle 2.4s ease-in-out var(--d) infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}
.footer-line { font-size: 0.75rem; letter-spacing: 0.1em; }

@media (max-width: 760px) {
  .photo-section { padding-top: 60px; }
  .photo-frame { margin: 36px auto; }
  .photo-duo .photo-frame { margin: 0; }
}

/* ===== Ajustări v3 ===== */
.event-card { text-align: center; }
.event-time { justify-content: center; }
.footer-date { margin: 14px 0 6px; font: 500 1.15rem var(--serif); letter-spacing: 0.08em; }

/* ===== v4 · Paletă vișiniu + auriu rose (șterge blocul ăsta ca să revii la varianta veche) ===== */
:root {
  color-scheme: light; /* oprește "dark mode" automat al telefonului */
  --cream: #fbf6ee;
  --ink: #2f2224;
  --muted: #5f4d50;
  --wine-deep: #2b0a12;
  --wine: #4a111f;
  --gold: #e0b48a;
  --gold-light: #f3d9b8;
}

/* Hero */
.hero { background: var(--wine-deep); }
.hero-backdrop {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(160, 42, 64, 0.55), transparent 60%),
    radial-gradient(ellipse at 12% 8%, rgba(125, 28, 48, 0.5), transparent 45%),
    linear-gradient(160deg, #2d0b13, var(--wine) 50%, #26090f);
}
.hero-backdrop::before {
  border-color: rgba(224, 180, 138, 0.75);
  box-shadow: 0 0 26px rgba(224, 180, 138, 0.35), inset 0 0 34px rgba(224, 180, 138, 0.12);
}
.hero-backdrop::after { border-color: rgba(224, 180, 138, 0.28); }
.hero-eyebrow { color: var(--gold-light); }
.hero-names, .footer-names { color: #fff4e6; }
.hero-names i, .footer-names i { color: var(--gold); }
.hero-invite { color: #f9e9d8; }
.hero-date { color: var(--gold-light); font-weight: 600; }
.ornament { color: var(--gold); }
.ornament span { background: #c9966f; }
.scroll-cue { color: var(--gold-light); }
.scroll-arrow { border-color: rgba(224, 180, 138, 0.8); }

/* Trandafiri (imagine opțională) și petale care cad */
.hero-rose {
  position: absolute; z-index: 0; width: min(55vw, 400px); height: auto;
  pointer-events: none; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.5));
}
.hero-rose-tl { top: -3%; left: -8%; }
.hero-rose-br { bottom: -3%; right: -8%; transform: rotate(180deg); }
.hero-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-petals span {
  position: absolute; top: -8%; left: var(--x); width: var(--w); height: calc(var(--w) * 1.25);
  background: linear-gradient(135deg, #b3243f, #5a0f1f);
  border-radius: 0 100% 0 100%; opacity: 0.75;
  animation: petalFall var(--t) linear var(--d) infinite;
}
@keyframes petalFall {
  to { transform: translate(var(--dx), 115vh) rotate(var(--r)); }
}

/* Restul paginii: aceeași culoare, doar contrast mai bun */
.intro-copy > p:not(.script-kicker) { color: #4e3f42; }
.events .section-lead, .rsvp-card > p:not(.script-kicker) { color: #5a494c; }
.date-section { background: #f6e8e1; }
.event-card { border-color: #e3cbb8; }

/* Footer */
.footer { background: linear-gradient(160deg, #2d0b13, var(--wine)); color: var(--gold-light); }
.footer .ornament span { background: #c9966f; }
.footer-date { color: var(--gold-light); }

/* Iconițe familie (imagini) */
.family-icon { display: block; width: 112px; height: 112px; object-fit: contain; }
.event-icon { display: block; width: 112px; height: 112px; object-fit: contain; margin: 0 auto 6px; }

section#poveste {
    margin-bottom: -40px;
}