/* === Lang switcher === */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s, border-color 0.3s;
}
.lang-switcher a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.25s, transform 0.2s;
}
.lang-switcher a:hover { color: #fff; }
.lang-switcher a.is-active { color: #fff; }
.lang-switcher__sep { color: rgba(255, 255, 255, 0.35); }

/* După scroll: pe fundal alb pentru lizibilitate */
@media (max-width: 720px) {
  .lang-switcher {
    top: 12px;
    right: 14px;
    font-size: 11px;
    padding: 7px 12px;
    letter-spacing: 0.15em;
  }
}

/* === Reset & base === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #d3d3d3;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 640px; }
.center { text-align: center; }

/* === Sections === */
.section {
  padding: 56px 16px;
  background: #d3d3d3;
}
.section__title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 34px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  letter-spacing: 0.02em;
}
.section__title::before,
.section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1a1a1a;
}
.section__title span {
  flex-shrink: 0;
  padding: 0 24px;
}
.section__subtitle {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 30px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  background: #aeaeae no-repeat center / cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 56px;
  color: #1a1a1a;
}
.hero__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
}
.hero__sub {
  font-family: 'Great Vibes', cursive;
  font-size: 36px;
  color: #fff;
  margin-top: 4px;
  line-height: 1.1;
}
.hero__center {
  margin-top: auto;
  margin-bottom: auto;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 124px;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1;
  text-indent: 0.12em; /* compensate letter-spacing */
}
.hero__names {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.5em;
  font-weight: 400;
  text-indent: 0.5em;
}
.hero__line { width: 220px; height: 1px; background: #fff; margin-top: 10px; }

/* === Music Player === */
.hero__player {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  align-items: center;
}
.player-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(2px);
}
.player-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: scale(1.06);
}
.player-btn:active { transform: scale(0.96); }
.player-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}
.player-btn--side { width: 38px; height: 38px; opacity: 0.8; }
.player-btn--side:hover { opacity: 1; }
.player-btn--side svg { width: 14px; height: 14px; }
.player-btn--play {
  width: 64px; height: 64px;
  border-width: 1.5px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}
.player-btn--play::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.player-btn--play:hover::before,
.player-btn--play.is-playing::before { opacity: 1; }
.player-btn--play.is-playing::before {
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.player-icon {
  width: 22px; height: 22px;
  margin-left: 2px; /* optical center for play triangle */
  transition: opacity 0.2s, transform 0.2s;
}
.player-icon--pause { display: none; margin-left: 0; }
.player-btn--play.is-playing .player-icon--play { display: none; }
.player-btn--play.is-playing .player-icon--pause { display: block; }

/* Equalizer bars when playing — subtle */
.player-equalizer {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
}
.player-btn--play.is-playing .player-equalizer { display: flex; }
.player-equalizer i {
  display: block;
  width: 2px;
  background: #fff;
  border-radius: 1px;
  animation: eq 1s ease-in-out infinite;
  height: 4px;
}
.player-equalizer i:nth-child(1) { animation-delay: 0s;    }
.player-equalizer i:nth-child(2) { animation-delay: 0.2s;  }
.player-equalizer i:nth-child(3) { animation-delay: 0.4s;  }
.player-equalizer i:nth-child(4) { animation-delay: 0.15s; }
@keyframes eq {
  0%, 100% { height: 4px;  }
  50%      { height: 12px; }
}

.hero__scroll {
  font-size: 26px;
  color: #fff;
  margin-top: 18px;
  animation: bounce 2s infinite;
  opacity: 0.85;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* === Intro === */
.intro {
  text-align: center;
  font-size: 17.5px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}
.intro p { margin-bottom: 14px; }
.intro strong { font-weight: 600; }

/* === Calendar === */
.calendar {
  max-width: 400px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  text-align: center;
}
.calendar__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__row--head {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-style: italic;
}
.calendar__cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.calendar__cell--hl span { position: relative; z-index: 2; }
.calendar__heart {
  position: absolute;
  width: 56px; height: 50px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* === Timeline === */
.timeline {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  width: 100%;
  position: relative;
}
.timeline__icon {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d3d3d3;
}
.timeline__icon svg { width: 34px; height: 34px; color: #1a1a1a; }
.timeline__body {
  flex: 1;
  padding-top: 10px;
}
.timeline__time-title {
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.timeline__desc {
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.6;
}
.timeline__sep {
  margin: 6px 0 6px 27px;
  align-self: flex-start;
  font-size: 14px;
  color: #1a1a1a;
  border-left: 1px solid #1a1a1a;
  height: 50px;
  width: 1px;
  position: relative;
}
.timeline__sep::before {
  content: '✦';
  position: absolute;
  left: -7px; top: 18px;
  background: #d3d3d3;
  padding: 0 2px;
  font-size: 12px;
}

/* === Gallery grid === */
.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 16px;
}
.gallery-grid__item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #fff;
}
.gallery-grid__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-grid__item:hover img { transform: scale(1.04); }

/* === Location === */
.location-icon { display: flex; justify-content: center; margin-bottom: 18px; }
.location-icon svg { width: 90px; height: 56px; }
.location-name {
  text-align: center;
  font-size: 17px;
  margin-bottom: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  font-style: italic;
}
.location-map {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  line-height: 0;
}
.location-map iframe {
  width: 100% !important;
  height: 420px;
  border: 0 !important;
  display: block;
}

@media (max-width: 720px) {
  .location-map iframe { height: 320px; }
}

/* === Share === */
.ig-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #1a1a1a;
  text-decoration: none;
  transition: transform 0.2s;
}
.ig-link:hover { transform: scale(1.08); }
.ig-link svg { width: 38px; height: 38px; }
.hashtags {
  font-weight: 500;
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* === Dress code === */
.dress-colors {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.dress-color {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.25s;
}
.dress-color:hover { transform: scale(1.1); }

/* === Questions / phone pill === */
.phone-pill {
  display: inline-block;
  margin: 22px 0 28px;
  padding: 12px 28px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 17px;
  letter-spacing: 0.05em;
  transition: all 0.25s;
}
.phone-pill:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gift-text { font-size: 16px; line-height: 1.75; }

/* === RSVP form === */
.rsvp { max-width: 460px; margin: 0 auto; }
.form-row { margin-bottom: 28px; }
.form-row > label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}
.form-row .hint {
  font-size: 12px;
  color: #6b6b6b;
  margin-bottom: 10px;
  margin-top: -6px;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Inputuri text */
.form-row input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #1a1a1a;
  background: rgba(255, 255, 255, 0.35);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #1a1a1a;
  border-radius: 0;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.form-row input[type="text"]::placeholder {
  color: #9a9a9a;
  font-style: italic;
  font-weight: 300;
}
.form-row input[type="text"]:focus {
  outline: none;
  border-color: #000;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Radio & checkbox containers */
.radios, .checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.radios label, .checks label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 300;
  cursor: pointer;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: #2a2a2a;
  user-select: none;
  transition: color 0.2s;
  padding: 4px 0;
}
.radios label:hover, .checks label:hover { color: #000; }

/* Custom radio */
.radios input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #1a1a1a;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  transition: all 0.2s ease;
}
.radios input[type="radio"]:hover {
  border-color: #000;
  transform: scale(1.05);
}
.radios input[type="radio"]:checked {
  border-color: #1a1a1a;
}
.radios input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #1a1a1a;
  transform: translate(-50%, -50%) scale(1);
  animation: radio-pop 0.25s ease;
}
@keyframes radio-pop {
  0% { transform: translate(-50%, -50%) scale(0); }
  60% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.radios input[type="radio"]:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 3px;
}

/* Custom checkbox */
.checks input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #1a1a1a;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  transition: all 0.2s ease;
}
.checks input[type="checkbox"]:hover {
  border-color: #000;
  background: rgba(0, 0, 0, 0.05);
}
.checks input[type="checkbox"]:checked {
  background: #1a1a1a;
  border-color: #1a1a1a;
}
.checks input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: check-pop 0.25s ease;
}
@keyframes check-pop {
  0% { opacity: 0; transform: rotate(45deg) scale(0.5); }
  100% { opacity: 1; transform: rotate(45deg) scale(1); }
}
.checks input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 3px;
}

/* Submit button */
.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.btn-submit span,
.btn-submit { position: relative; }
.btn-submit:hover {
  color: #1a1a1a;
}
.btn-submit:hover::before {
  left: 0;
}
.btn-submit > * { position: relative; z-index: 1; }
.btn-submit:disabled {
  opacity: 0.5;
  cursor: wait;
  pointer-events: none;
}
.rsvp-msg {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.02em;
  min-height: 22px;
}
.rsvp-msg.success { color: #1a8917; }
.rsvp-msg.error { color: #c00; }

/* === Countdown — elegant version === */
.section--countdown {
  position: relative;
  padding: 110px 16px;
  background: #1a1a1a no-repeat center / cover;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cd-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.7) 100%);
  z-index: 0;
}
.cd-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.cd-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0.85;
}
.cd-line {
  width: 64px;
  height: 1px;
  background: #fff;
}
.cd-diamond {
  font-size: 12px;
  color: #fff;
  letter-spacing: 0;
}
.cd-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 44px;
  color: #fff;
}
.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}
.cd-unit {
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}
.cd-num::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 14px auto 0;
}
.cd-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}
.cd-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  padding-top: 4px;
  user-select: none;
}
.cd-date {
  margin-top: 44px;
  font-family: 'Great Vibes', cursive;
  font-size: 32px;
  color: #fff;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

@media (max-width: 600px) {
  .section--countdown {
    padding: 80px 12px;
    background-attachment: scroll;
  }
  .cd-title { font-size: 20px; margin-bottom: 32px; }
  .cd-line { width: 40px; }
  .cd-unit { min-width: 64px; }
  .cd-num { font-size: 42px; }
  .cd-num::after { margin-top: 10px; width: 24px; }
  .cd-sep { font-size: 32px; }
  .cd-lbl { font-size: 9px; letter-spacing: 0.24em; }
  .cd-date { font-size: 24px; margin-top: 32px; }
  .countdown { gap: 4px; }
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 32px 16px;
  background: #d3d3d3;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* === Responsive === */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .section { padding: 56px 14px; }
  .section__title {
    font-size: 28px;
    gap: 10px;
    padding: 0 8px;
    margin-bottom: 30px;
  }
  .section__title span { padding: 0 14px; }
  .section__subtitle { font-size: 26px; margin-bottom: 22px; }

  /* Hero — mobile (texte mărite proporțional) */
  .hero { padding: 32px 18px 44px; }
  .hero__date { font-size: 36px; letter-spacing: 0.06em; }
  .hero__sub { font-size: 32px; }
  .hero__initials { font-size: 104px; letter-spacing: 0.1em; }
  .hero__names { font-size: 12px; letter-spacing: 0.45em; }
  .hero__line { width: 180px; }

  /* Player — mobile */
  .hero__player { gap: 16px; margin-top: 24px; }
  .player-btn--side { width: 36px; height: 36px; }
  .player-btn--side svg { width: 13px; height: 13px; }
  .player-btn--play { width: 60px; height: 60px; }
  .player-icon { width: 20px; height: 20px; }

  /* Intro */
  .intro { font-size: 17px; line-height: 1.85; }

  /* Calendar */
  .calendar { font-size: 23px; max-width: 320px; }
  .calendar__row--head { font-size: 17px; }
  .calendar__heart { width: 48px; height: 42px; }

  /* Timeline */
  .timeline__item { gap: 18px; }
  .timeline__icon { flex-basis: 56px; width: 56px; height: 56px; }
  .timeline__icon svg { width: 28px; height: 28px; }
  .timeline__time-title { font-size: 16px; }
  .timeline__desc { font-size: 14.5px; }
  .timeline__sep { margin-left: 23px; }

  /* Gallery — 2x2 dreptunghi cu margini față de marginile ecranului */
  .section--gallery { padding: 48px 18px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: 100%;
    width: 100%;
  }
  .gallery-grid__item {
    border-radius: 0;
    aspect-ratio: 2 / 3;
  }
  .gallery-grid__item:hover img { transform: none; }

  /* Location */
  .location-name { font-size: 19px; }

  /* Dress colors */
  .dress-colors { gap: 12px; }
  .dress-color { width: 38px; height: 38px; }

  /* Phone pill */
  .phone-pill { font-size: 16px; padding: 11px 24px; }

  /* Form */
  .rsvp { max-width: 100%; }
  .form-row > label { font-size: 18px; }
  .form-row input[type="text"] { font-size: 15px; padding: 12px 14px; }
  .radios label, .checks label { font-size: 14px; gap: 12px; }
  .btn-submit { padding: 15px 20px; font-size: 11px; letter-spacing: 0.28em; }

  /* Footer */
  .footer { font-size: 19px; padding: 28px 14px; }
}

@media (max-width: 380px) {
  .hero__initials { font-size: 88px; }
  .hero__date { font-size: 30px; }
  .hero__sub { font-size: 28px; }
  .section__title { font-size: 24px; }
  .calendar { font-size: 21px; }
}
