/* Guest wedding landing — matches design reference (cream, gold #C5A059, navy #1A202C) */

html:has(.page-wedding) {
  background-color: #faf9f6;
  min-height: 100%;
}

.page-wedding {
  --wed-cream: #faf9f6;
  --wed-cream-2: #f3f1ec;
  --wed-gold: #c5a059;
  --wed-gold-dim: rgba(197, 160, 89, 0.35);
  --wed-navy: #1a202c;
  --wed-text: #2d3748;
  --wed-muted: #718096;
  --wed-card: rgba(255, 255, 255, 0.92);
  --wed-border: rgba(197, 160, 89, 0.45);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-script: "Great Vibes", cursive;
  min-height: 100%;
  margin: 0;
  color: var(--wed-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  /* Full-bleed image: copy project `background.png` → `public/assets/background.png` */
  background-color: #faf9f6;
  background-image: url("/assets/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  position: relative;
  overflow-x: hidden;
}

.wedding-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}

/* Header */
.wed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wed-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wed-brand__mark {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--wed-navy);
  line-height: 1;
}

.wed-brand__text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wed-brand__names {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wed-navy);
}

.wed-brand__heart {
  display: inline-flex;
  color: var(--wed-gold);
  flex-shrink: 0;
}

.wed-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wed-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wed-lang__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wed-muted);
}

.wed-lang__pills {
  display: flex;
  gap: 8px;
}

.wed-lang__pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--wed-border);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wed-navy);
  background: rgba(255, 255, 255, 0.85);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wed-lang__pills a:hover {
  border-color: var(--wed-gold);
}

.wed-lang__pills a.is-active {
  background: var(--wed-gold);
  border-color: var(--wed-gold);
  color: #fff;
}

.wed-header__v {
  width: 1px;
  height: 28px;
  background: var(--wed-gold-dim);
  flex-shrink: 0;
}

.wed-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wed-navy);
}

.wed-admin svg {
  color: var(--wed-gold);
  flex-shrink: 0;
}

/* Hero */
.wed-hero {
  text-align: center;
  padding: 8px 12px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.wed-hero__kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--wed-muted);
}

.wed-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wed-navy);
  letter-spacing: 0.02em;
}

.wed-hero__title span {
  display: inline;
}

.wed-hero__title .amp {
  color: var(--wed-gold);
  font-style: italic;
  font-weight: 600;
  padding: 0 0.22em;
}

.wed-hero__sub {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 400;
  font-style: italic;
  color: var(--wed-text);
  line-height: 1.65;
}

/* Grid */
.wed-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

@media (min-width: 900px) {
  .wed-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 26px;
  }
}

.wed-card {
  background: var(--wed-card);
  border: 1px solid var(--wed-border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(26, 32, 44, 0.06);
  padding: 26px 24px 28px;
}

.wed-card--rules {
  padding-top: 24px;
}

.wed-section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wed-navy);
  margin-bottom: 10px;
}

/* Muted gold line + gap; leaf vertically centered on the line */
.wed-divider {
  --wed-line: rgba(197, 160, 89, 0.72);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 22px 0;
  color: rgba(184, 154, 95, 0.95);
}

.wed-divider::before,
.wed-divider::after {
  content: "";
  flex: 1 1 auto;
  min-width: 12px;
  height: 1px;
  background: var(--wed-line);
  border-radius: 1px;
  align-self: center;
}

.wed-divider__leaf {
  flex: 0 0 auto;
  display: block;
  align-self: center;
}

/* After base .wed-divider so margins win: nav full width, hero centered under title */
.wed-divider.wed-divider--nav {
  width: 100%;
  max-width: none;
  margin: 18px 0 22px;
  box-sizing: border-box;
}

.wed-divider.wed-divider--hero {
  width: 100%;
  max-width: min(560px, 94vw);
  margin: 14px auto 16px;
  box-sizing: border-box;
}

/* Form fields */
.page-wedding .field {
  gap: 8px;
}

.page-wedding .field label.wed-section-label {
  margin-bottom: 0;
}

.page-wedding .field input[type="text"] {
  border: 1px solid var(--wed-gold-dim);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: #fff;
  color: var(--wed-navy);
}

.page-wedding .field input[type="text"]::placeholder {
  color: var(--wed-muted);
  font-style: italic;
}

.page-wedding .field input[type="text"]:focus {
  outline: none;
  border-color: var(--wed-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.page-wedding .hint {
  color: var(--wed-muted);
  font-size: 12.5px;
}

/* Dropzone */
.wed-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 168px;
  padding: 22px 16px;
  border: 2px dashed var(--wed-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.wed-drop:hover,
.wed-drop:focus-within {
  border-color: var(--wed-gold);
  background: rgba(197, 160, 89, 0.06);
}

.wed-drop.is-dragover {
  border-color: var(--wed-gold);
  background: rgba(197, 160, 89, 0.1);
}

.wed-drop__icon {
  color: var(--wed-gold);
  margin-bottom: 12px;
}

.wed-drop__head {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wed-navy);
}

.wed-drop__sub {
  margin: 0;
  font-size: 13px;
  color: var(--wed-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

.wed-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Selected files */
.page-wedding .selected {
  margin-top: 18px;
  border: 1px solid var(--wed-gold-dim);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.page-wedding .selected-head {
  border-bottom: 1px solid var(--wed-gold-dim);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.page-wedding .selected-title {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--wed-navy);
}

.page-wedding .selected-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--wed-muted);
}

.page-wedding .file-item {
  border-color: var(--wed-gold-dim);
}

.page-wedding .file-name {
  font-family: var(--font-sans);
}

.page-wedding .file-remove {
  border-color: var(--wed-gold-dim);
  border-radius: 10px;
}

/* Submit */
.page-wedding #submitBtn.btn,
.page-wedding .wed-submit {
  margin-top: 8px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  background: var(--wed-navy);
  color: var(--wed-gold);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(26, 32, 44, 0.2);
  transition: transform 0.12s, filter 0.12s;
}

.page-wedding #submitBtn.btn svg,
.page-wedding .wed-submit svg {
  flex-shrink: 0;
}

.page-wedding #submitBtn.btn:hover:not(:disabled),
.page-wedding .wed-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.page-wedding #submitBtn.btn:active:not(:disabled),
.page-wedding .wed-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.page-wedding #submitBtn.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Progress */
.page-wedding .progress {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--wed-gold-dim);
}

.page-wedding .progress > div {
  background: linear-gradient(90deg, var(--wed-gold), #a6843f);
}

.page-wedding #progressText {
  color: var(--wed-muted);
  font-size: 13px;
}

/* Status */
.page-wedding .status {
  border-radius: 12px;
  border: 1px solid var(--wed-gold-dim);
  background: rgba(197, 160, 89, 0.08);
  color: var(--wed-navy);
}

.page-wedding .status.error {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.06);
  color: #9b2c2c;
}

.page-wedding .status.ok {
  border-color: rgba(72, 187, 120, 0.45);
  background: rgba(72, 187, 120, 0.1);
  color: #22543d;
}

/* Rules card */
.wed-rules__title {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wed-navy);
}

.wed-rule-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.wed-rule-row:last-of-type {
  margin-bottom: 0;
}

.wed-rule-row__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wed-gold);
}

.wed-rule-row__icon svg {
  display: block;
}

.wed-rule-row p {
  margin: 0;
  font-size: 14px;
  color: var(--wed-text);
  line-height: 1.5;
}

.wed-rules__divider {
  margin: 18px 0;
}

/* Footer */
.wed-footer {
  text-align: center;
  padding: 40px 16px 8px;
}

.wed-footer__script {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 400;
  color: var(--wed-navy);
  line-height: 1.1;
}

.wed-footer__line {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wed-muted);
}

.wed-footer-hint {
  text-align: center;
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--wed-muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.wed-footer-cr {
  text-align: center;
  margin: 18px 0 0;
  padding-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--wed-muted);
  letter-spacing: 0.03em;
}
