:root {
  --bg: #fbf7f2;
  --bg-soft: #fbf7f2;
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #2d2a26;
  --text-soft: #6f665d;
  --line: rgba(45, 42, 38, 0.1);
  --shadow: 0 18px 50px rgba(36, 27, 18, 0.08);
  --shadow-strong: 0 24px 60px rgba(36, 27, 18, 0.12);
  --radius: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

main {
  width: 100%;
}

section {
  position: relative;
  background: var(--bg-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input,
select,
textarea,
a {
  font-family: inherit;
}


.section-kicker {
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.section-copy {
  max-width: 350px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.section-copy-last {
  margin-top: 10px;
}



/* INTRO */
#intro {
  position: fixed;
  inset: 0;
  background-image: url("backtest.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.intro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.38)
  );
}

.intro-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.4s ease;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 50vh;
}

#openBtn {
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-family: "Alumni Sans Pinstripe", sans-serif;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

#openBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

#openBtn:active {
  transform: scale(0.97);
}

#intro.hide {
  animation: fadeOut 1.8s ease forwards;
  pointer-events: none;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  background-image: url("intro2.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.34),
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.52)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: white;
  padding: 58px 22px 48px;
}

.subtitle2 {
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-content h1 {
  max-width: 310px;
  font-family: "Imperial Script", cursive;
  font-size: 4rem;
  line-height: 0.95;
  font-weight: 400;
  text-shadow:
    0 8px 26px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.5);
  margin-top: -150px;
}

.bottom-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.date {
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.subtitle {
  max-width: 330px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

.scroll-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.7rem;
  animation: bounce 1.8s infinite;
}

/* DETAILS */
.details-section {
  padding: 76px 20px 40px;
  text-align: center;
}

.details-section h2 {
  font-family: "Imperial Script", cursive;
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.parents-section {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin: 26px 0;
  position: relative;
}

.parents-section::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: var(--line);
}

.parents-column {
  flex: 1;
}

.parent-name {
  font-family: "Imperial Script", cursive;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 6px;
}



/* IMAGE BREAK */
.image-section {
  position: relative;
  height: 420px;
  width: calc(100% - 32px);
  margin: 12px auto 24px;
  border-radius: 28px;
  overflow: hidden;
  background-color: #fdf8f2;
  background-image: url("poza1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-strong);
}

.image-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.18)
  );
}

/* LOCATIONS */
.locations-section {
  padding: 56px 20px;
  text-align: center;
}

.locations-section h2 {
  font-family: "Imperial Script", cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.location-card {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.location-image {
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-content {
  padding: 22px 20px 24px;
}

.location-content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}



.location-address {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.map-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color:#fdf8f2;
  text-decoration: none;
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    box-shadow 0.22s ease;
}

.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  opacity: 0.96;
}

.map-button:active {
  transform: scale(0.98);
}

/* SHOWCASE */
.showcase-section {
  padding: 24px 0 8px;
  text-align: center;
  overflow: hidden;
}

.showcase-section h2 {
  font-family: "Imperial Script", cursive;
  font-size: 3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 18px;
}

.showcase-wrapper {
  position: relative;
  width: 100%;
}

.showcase-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 20px 8px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  flex: 0 0 82%;
  height: 480px;
  border-radius: 30px;
  overflow: hidden;
  scroll-snap-align: center;
  position: relative;
  transform: scale(0.92);
  opacity: 0.5;
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease,
    box-shadow 0.8s ease;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.showcase-card.active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.16);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.08)
  );
}

.showcase-wrapper::before,
.showcase-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  z-index: 2;
  pointer-events: none;
}

.showcase-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-soft), rgba(251, 247, 242, 0));
}

.showcase-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-soft), rgba(251, 247, 242, 0));
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(45, 42, 38, 0.22);
  transition: transform 0.3s ease, background 0.3s ease;
}

.dot.active {
  background: var(--text);
  transform: scale(1.2);
}

/* COUNTDOWN */
.countdown-section {
  padding: 28px 20px 0;
  text-align: center;
}

.countdown-section h2 {
  font-family: "Imperial Script", cursive;
  font-size: 3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
}

.time-box {
  position: relative;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 18px 8px 16px;
  min-width: 0;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.time-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.02)
  );
}

.time-box span,
.time-box small {
  position: relative;
  z-index: 1;
}

.time-box span {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 9px;
  color: var(--text);
}

.time-box small {
  display: block;
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-size: 0.78rem;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(45, 42, 38, 0.72);
}

/* RSVP */
.rsvp-cta-section {
  padding: 18px 20px 78px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.rsvp-cta-text {
  max-width: 380px;
  font-size: 1.5rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.rsvp-button {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--text);
  color:#fdf8f2;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.rsvp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  opacity: 0.96;
}

.rsvp-button:active {
  transform: scale(0.97);
}

/* FALLBACK: fara JS totul ramane vizibil */
.reveal,
.reveal-soft,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  filter: none;
}

/* REVEALS: doar daca JS ruleaza */
.js .reveal,
.js .reveal-soft,
.js .reveal-left,
.js .reveal-right {
  opacity: 0;
  will-change: opacity, transform, filter;
}

.js .reveal {
  transform: translateY(32px) scale(1.03);
  filter: blur(6px) brightness(0.9);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.3s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) brightness(1);
}

.js .reveal-soft {
  transform: translateY(22px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal-soft.active {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-left,
.js .reveal-right {
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal-left {
  transform: translateX(-28px);
}

.js .reveal-right {
  transform: translateX(28px);
}

.js .reveal-left.active,
.js .reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* MOBILE */
@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 2.5rem;
    max-width: 280px;
  }

  .details-section h2,
  .locations-section h2,
  .showcase-section h2,
  .countdown-section h2 {
    font-size: 2rem;
  }

  .showcase-card {
    height: 430px;
  }

  .parent-name {
    font-size: 1.1rem;
  }

  .rsvp-cta-text {
    font-size: 1.2rem;
  }

  .rsvp-button {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--text);
  color:#fdf8f2;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}
 
}

@media (max-width: 360px) {
  .hero-content {
    padding: 48px 18px 42px;
  }

  .hero-content h1 {
    font-size: 3.1rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .image-section {
    width: calc(100% - 24px);
    height: 360px;
    margin: 10px auto 18px;
  }

  .showcase-card {
    height: 390px;
  }

  .countdown {
    gap: 8px;
  }

  .time-box {
    padding: 16px 6px 14px;
  }

  .time-box span {
    font-size: 1.25rem;
  }

  .time-box small {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}