/* ═══════════════════════════════════════════════════════
   Luxury Wedding Marie & Bernd – v6.0
   ═══════════════════════════════════════════════════════ */

/* Reset only within our scope */
.lwm-body { margin: 0; padding: 0; background: #06120e; }

.lwm-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  font-family: Inter, sans-serif;
  font-weight: 300;
  color: #f3eadb;
  background: linear-gradient(180deg, #08130f 0%, #07150f 48%, #04100c 100%);
}

/* ── Background layers ──────────────────────────────── */
.lwm-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(185,157,107,.10), transparent 24%),
    radial-gradient(circle at 18% 58%, rgba(47,84,58,.38), transparent 38%),
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.64));
}
.lwm-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.8) 100%);
}
.lwm-particles {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(185,157,107,.55) 1px, transparent 1px);
  background-size: 170px 170px;
  opacity: .45;
  animation: float 30s linear infinite;
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-80px); } }

/* ── Hero ───────────────────────────────────────────── */
.lwm-hero {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.4rem;
  padding: 4.5rem clamp(1.25rem, 6vw, 6rem) 3rem;
}

.reveal { animation: reveal 1s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }

/* ── Left / names block ─────────────────────────────── */
.lwm-left { width: min(980px, 100%); }

.lwm-hero-logo {
  width: 86px; height: 86px;
  margin: 0 auto 1rem;
  opacity: .95;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}
.lwm-hero-logo img { width: 100%; height: 100%; display: block; }

.lwm-kicker {
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #d8bd7a;
  font-size: .9rem;
  margin-bottom: 1.6rem;
}

.lwm-names {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(4rem, 9vw, 8rem) !important;
  font-weight: 300 !important;
  line-height: .85 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  letter-spacing: .05em !important;
}
.lwm-names .name-line { display: block; }
.lwm-names .amp-line {
  display: block;
  color: #b99d6b;
  font-style: italic;
  font-size: .62em;
  line-height: .85;
  margin: .04em 0;
}

.lwm-date {
  margin-top: 1.2rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #e7d7bd;
  font-size: .9rem;
}
.lwm-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: #d8bd7a;
  letter-spacing: .04em;
  margin: .8rem 0 0;
}
.lwm-intro {
  margin: .8rem auto 0;
  max-width: 42rem;
  color: #e8dfcf;
  line-height: 1.7;
}

/* ── Upload Card ─────────────────────────────────────── */
.lwm-card {
  position: relative;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  border: 1px solid rgba(243,234,219,.22);
  border-radius: 1.3rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 90px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12);
}

/* ── Form Side ───────────────────────────────────────── */
.lwm-form-side { display: flex; flex-direction: column; gap: .9rem; }

.lwm-form-side h2 {
  margin: 0 !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-weight: 400 !important;
  letter-spacing: .1em !important;
  color: #f3eadb !important;
}
.lwm-form-side > p {
  margin: 0 !important;
  color: #cdbfa9;
  font-size: .95rem;
  line-height: 1.6;
}

/* Feedback */
.lwm-feedback {
  padding: .85rem 1rem;
  border-radius: .75rem;
  font-size: .9rem;
  line-height: 1.5;
}
.lwm-feedback--success {
  background: rgba(80,150,90,.2);
  border: 1px solid rgba(80,150,90,.4);
}
.lwm-feedback--error {
  background: rgba(150,60,60,.2);
  border: 1px solid rgba(150,60,60,.4);
}

/* Name input */
.lwm-name-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cdbfa9;
  margin-bottom: -.4rem;
}
.lwm-name-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #f3eadb;
  padding: 0 1.2rem;
  outline: none;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}
.lwm-name-input::placeholder { color: rgba(243,234,219,.45); }
.lwm-name-input:focus {
  border-color: #b99d6b;
  box-shadow: 0 0 0 3px rgba(185,157,107,.15);
}

/* Drop zone */
.lwm-upload {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 1rem;
  cursor: pointer;
  text-align: center;
  transition: .25s ease;
  padding: 1rem;
  position: relative;
}
.lwm-upload.is-over,
.lwm-upload:hover {
  transform: translateY(-2px);
  background: rgba(185,157,107,.08);
  border-color: rgba(185,157,107,.5);
}
.lwm-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.lwm-upload span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  display: block;
}
.lwm-upload small { display: block; margin-top: .35rem; color: #cdbfa9; font-size: .72rem; line-height: 1.5; }

/* Preview grid */
.lwm-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .55rem;
}
.lwm-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: .65rem;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.lwm-preview-item img,
.lwm-preview-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lwm-preview-item span {
  position: absolute; left: .3rem; right: .3rem; bottom: .3rem;
  padding: .2rem .3rem;
  border-radius: .35rem;
  background: rgba(0,0,0,.6);
  font-size: .62rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lwm-preview-rm {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(255,255,255,.85);
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 11px; color: #102018;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.lwm-preview-rm:hover { background: #fff; }

/* Progress */
.lwm-progress-wrap {
  height: 5px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  overflow: hidden;
}
.lwm-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d8bd7a, #b99d6b);
  border-radius: 100px;
  width: 0%;
  transition: width .3s ease;
}

/* Submit button */
.lwm-button {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f4d991, #b99d6b);
  color: #102018;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.lwm-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.lwm-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ── Memory Wall ─────────────────────────────────────── */
.lwm-memory {
  position: relative; z-index: 2;
  padding: 1rem clamp(1.25rem, 6vw, 6rem) 5rem;
  text-align: center;
}
.lwm-head { margin-bottom: 2rem; }
.lwm-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(2.8rem, 6vw, 4.5rem) !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.lwm-gallery {
  columns: 3 260px;
  column-gap: 1rem;
  text-align: left;
}
.lwm-item {
  display: block;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #111;
  position: relative;
}
.lwm-item img, .lwm-item video {
  width: 100%; display: block;
  transition: .4s ease;
  filter: grayscale(.15);
}
.lwm-item:hover img, .lwm-item:hover video {
  transform: scale(1.04);
  filter: none;
}
.lwm-caption {
  position: absolute; left: .55rem; right: .55rem; bottom: .55rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #f3eadb;
  font-size: .72rem; letter-spacing: .05em; text-align: center;
}
.lwm-empty {
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  background: rgba(255,255,255,.03);
  color: #cdbfa9;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 760px) {
  .lwm-hero { padding: 2.2rem 1.25rem 2rem; gap: 2rem; }

  .lwm-card {
    grid-template-columns: 1fr !important;
    width: 100%;
    padding: 1.25rem;
  }
  .lwm-names { font-size: clamp(3.8rem, 20vw, 5.5rem) !important; }

  .lwm-gallery { columns: 2 !important; }

  .lwm-memory { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 420px) {
  .lwm-names { font-size: clamp(3.4rem, 22vw, 4.8rem) !important; }
  .lwm-gallery { columns: 1 !important; }
  .lwm-hero { padding: 1.5rem 1rem 1.5rem; }
}
