/* ─────────────────────────────────────────
   SECTION — SUGGESTED DRESS CODE
   Intro + the two must-haves, then two taped-in mood boards
   (for her / for him) with a short list each, and a closing note.
   Desktop: board beside its text; phone/tablet: board above text.
───────────────────────────────────────── */

.dresscode { background: var(--bg); }  /* white */

.dresscode-intro {
  max-width: 620px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--text-secondary);
}

/* ── the two must-haves ── */
.dresscode-rules {
  display: flex;
  flex-direction: column;   /* label on its own line, the three pills below */
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin: 0 auto 48px;
}

.dresscode-rules-label {
  color: var(--text-muted);
  text-align: center;
}

.dresscode-rules-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.dresscode-rules-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--text-primary);
}

.dresscode-rule-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  font-size: var(--text-label);
}

/* ── the two looks ── */
.dresscode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  max-width: 1080px;
  margin: 0 auto;
}

.dresscode-look {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
}

/* mood board, framed + taped like the welcome photo */
.dresscode-board {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: clamp(160px, 15vw, 240px);
  border: 6px solid var(--border);
  background: var(--bg);
  transform: rotate(-2deg);
  box-shadow: 0 2px 6px rgba(59, 29, 18, 0.08);
  transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 450ms var(--ease);
}

.dresscode-look:nth-child(2) .dresscode-board {
  transform: rotate(2deg);
}

/* hover: the board lifts off the page and straightens, like picking up
   a photo (the tape comes with it) */
.dresscode-board:hover,
.dresscode-board:focus-visible {
  transform: translateY(-10px) rotate(0deg) scale(1.03);
  box-shadow: 0 18px 32px rgba(59, 29, 18, 0.18);
}

.dresscode-look:nth-child(2) .dresscode-board:hover,
.dresscode-look:nth-child(2) .dresscode-board:focus-visible {
  transform: translateY(-10px) rotate(0deg) scale(1.03);
}

.dresscode-img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.dresscode-tape {
  position: absolute;
  top: -36px;   /* mostly above the frame, so it reads as taped to the page */
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 90px;
  z-index: 1;
  pointer-events: none;
}

.dresscode-who {
  color: var(--text-muted);
  margin-bottom: 6px;
  text-align: left;
}

.dresscode-title {
  color: var(--text-primary);
  margin-bottom: 16px;
}

.dresscode-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.dresscode-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
}

.dresscode-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--clay-500);
}

.dresscode-note {
  max-width: 680px;
  margin: 48px auto 0;
  text-align: center;
  color: var(--text-muted);
}


/* desktop: keep it all on one screen */
@media (min-width: 1025px) {
  .dresscode .section-header {
    margin-bottom: clamp(24px, 3.5svh, 40px);
  }

  .dresscode-rules {
    margin-bottom: clamp(20px, 2.5svh, 40px);
  }

  /* bigger boards: shown as a 3:4 crop of the mood board (click opens the
     full board), sized by screen height so the section still fits */
  .dresscode-board {
    width: min(clamp(200px, 20vw, 320px), 25svh);
  }

  .dresscode-img {
    aspect-ratio: 3 / 4;
    object-position: center top;
  }

  .dresscode-note {
    margin-top: clamp(20px, 3svh, 40px);
    margin-left: auto;
    margin-right: auto;
  }
}


/* her / him chips only exist on tablet + phone */
.dresscode-chips {
  display: none;
}


/* responsive — tablet + phone: the two looks become a swipeable slider
   (.slider-track, components/slider.css) driven by For her / For him chips */
@media (max-width: 1024px) {
  .dresscode-chips {
    display: flex;
    justify-content: center;
    margin: 0 0 32px;
  }

  .dresscode-look {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding-top: 40px;   /* room for the tape (the slider clips anything above it) */
  }

  .dresscode-board {
    width: min(62vw, 260px);
  }

  .dresscode-who {
    text-align: center;
  }

  .dresscode-list {
    justify-items: center;
  }

  /* centred list: the dot sits inline before the text */
  .dresscode-list li {
    padding-left: 0;
  }

  .dresscode-list li::before {
    position: static;
    display: inline-block;
    vertical-align: middle;
    margin: -2px 10px 0 0;
  }

  /* must-haves: a tidy left-aligned numbered list instead of pills */
  .dresscode-rules {
    align-items: stretch;
    max-width: 420px;
    margin: 0 auto 40px;
    gap: 12px;
  }

  .dresscode-rules-list {
    flex-direction: column;
    gap: 0;
    border-top: 1px dashed var(--cream-300);
  }

  .dresscode-rules-list li {
    border: none;
    border-bottom: 1px dashed var(--cream-300);
    border-radius: 0;
    padding: 12px 4px;
    gap: 14px;
    text-align: left;
  }

  .dresscode-rule-num {
    flex-shrink: 0;
  }
}
