/* ==========================================================================
   DressMe public pages (landing, occasions)
   Standalone stylesheet: these pages do not load the admin template.
   ========================================================================== */

:root {
  --dm-primary: #7367f0;
  --dm-secondary: #a216f3;
  --dm-gradient: linear-gradient(135deg, #7367f0 0%, #a216f3 100%);
  --dm-ink: #1f1d2b;
  --dm-text: #4b4a5a;
  --dm-muted: #77768a;
  --dm-line: #e9e7f3;
  --dm-bg: #ffffff;
  --dm-bg-soft: #f7f6fd;
  --dm-radius: 18px;
  --dm-shadow: 0 10px 30px rgba(47, 43, 61, 0.08);
  --dm-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dm-text);
  background: var(--dm-bg);
}

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

a {
  color: var(--dm-primary);
}

h1,
h2,
h3 {
  color: var(--dm-ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.dm-container {
  width: 100%;
  max-width: var(--dm-width);
  margin: 0 auto;
  padding: 0 20px;
}

.dm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.dm-btn--primary {
  background: var(--dm-gradient);
  color: #fff;
  box-shadow: 0 8px 22px rgba(115, 103, 240, 0.35);
}

.dm-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(115, 103, 240, 0.45);
}

.dm-btn--ghost {
  background: #fff;
  color: var(--dm-primary);
  border-color: rgba(115, 103, 240, 0.4);
}

.dm-btn--ghost:hover {
  background: var(--dm-bg-soft);
}

.dm-btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* ---------- Header ---------- */
.dm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dm-line);
}

.dm-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.dm-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: var(--dm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dm-nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
}

.dm-nav a {
  color: var(--dm-ink);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
}

.dm-nav a:hover {
  color: var(--dm-primary);
}

.dm-lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: var(--dm-bg-soft);
}

.dm-lang a {
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dm-muted);
  text-decoration: none;
  text-transform: uppercase;
}

.dm-lang a[aria-current='true'] {
  background: #fff;
  color: var(--dm-primary);
  box-shadow: 0 1px 4px rgba(47, 43, 61, 0.12);
}

/* ---------- Hero ---------- */
.dm-hero {
  padding: 56px 0 64px;
  background: radial-gradient(1000px 500px at 85% -10%, rgba(162, 22, 243, 0.09), transparent 60%), var(--dm-bg);
}

.dm-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.dm-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--dm-bg-soft);
  color: var(--dm-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.dm-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
}

.dm-hero h1 span {
  background: var(--dm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dm-hero-sub {
  margin: 18px 0 26px;
  font-size: 1.12rem;
  max-width: 540px;
}

.dm-hero-img {
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(47, 43, 61, 0.16);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

/* Prompt box: the stylist, right on the first screen */
.dm-prompt {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 100px;
  border: 1.5px solid var(--dm-line);
  background: #fff;
  box-shadow: var(--dm-shadow);
  max-width: 560px;
}

.dm-prompt:focus-within {
  border-color: var(--dm-primary);
}

.dm-prompt input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  font: inherit;
  color: var(--dm-ink);
  background: transparent;
}

.dm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dm-chip {
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  border: 1px solid rgba(115, 103, 240, 0.25);
  background: rgba(115, 103, 240, 0.06);
  color: var(--dm-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dm-chip:hover {
  background: var(--dm-primary);
  color: #fff;
}

.dm-hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--dm-muted);
}

/* ---------- Sections ---------- */
.dm-section {
  padding: 64px 0;
}

.dm-section--soft {
  background: var(--dm-bg-soft);
}

.dm-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.dm-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}

.dm-section-head p {
  margin-top: 8px;
  max-width: 620px;
}

.dm-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.dm-link:hover {
  text-decoration: underline;
}

/* ---------- Occasions ---------- */
.dm-occasions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.dm-occasion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  border-radius: var(--dm-radius);
  border: 1px solid var(--dm-line);
  background: #fff;
  color: var(--dm-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.dm-occasion:hover {
  transform: translateY(-3px);
  border-color: rgba(115, 103, 240, 0.45);
  box-shadow: var(--dm-shadow);
}

.dm-occasion[aria-current='page'] {
  border-color: var(--dm-primary);
  background: var(--dm-bg-soft);
}

.dm-occasion-emoji {
  font-size: 1.7rem;
  line-height: 1;
}

/* ---------- Outfit cards ---------- */
.dm-outfits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.dm-outfit {
  display: flex;
  flex-direction: column;
  border-radius: var(--dm-radius);
  border: 1px solid var(--dm-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dm-outfit:hover {
  transform: translateY(-4px);
  box-shadow: var(--dm-shadow);
}

.dm-outfit-media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 2px;
  background: var(--dm-line);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.dm-outfit-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

/* 3 pieces: the first one takes the full left column */
.dm-outfit-media[data-count='3'] img:first-child {
  grid-row: span 2;
}

.dm-outfit-media[data-count='1'] {
  grid-template-columns: 1fr;
}

.dm-outfit-media--model {
  grid-template-columns: 1fr;
}

.dm-outfit-media--model img {
  object-fit: cover;
  padding: 0;
}

.dm-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(31, 29, 43, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.dm-outfit-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}

.dm-outfit-body h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.dm-outfit-meta {
  font-size: 0.84rem;
  color: var(--dm-muted);
}

.dm-outfit-cta {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dm-primary);
}

.dm-empty {
  padding: 28px;
  border-radius: var(--dm-radius);
  border: 1px dashed var(--dm-line);
  background: #fff;
  text-align: center;
}

/* ---------- Steps ---------- */
.dm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.dm-step {
  padding: 26px 24px;
  border-radius: var(--dm-radius);
  background: #fff;
  border: 1px solid var(--dm-line);
}

.dm-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--dm-gradient);
  color: #fff;
  font-weight: 800;
}

.dm-step h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

/* ---------- Occasion page ---------- */
.dm-page-head {
  padding-top: 36px;
  padding-bottom: 8px;
}

.dm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--dm-muted);
}

.dm-breadcrumb a {
  color: var(--dm-muted);
  text-decoration: none;
}

.dm-breadcrumb a:hover {
  color: var(--dm-primary);
}

.dm-page-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
}

.dm-page-intro {
  margin-top: 14px;
  max-width: 720px;
  font-size: 1.08rem;
}

.dm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.dm-two-col h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.dm-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.dm-tips li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--dm-line);
}

.dm-tips li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--dm-primary);
  font-weight: 800;
}

.dm-faq details {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--dm-line);
  padding: 14px 16px;
}

.dm-faq details + details {
  margin-top: 12px;
}

.dm-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dm-ink);
}

.dm-faq details p {
  margin-top: 10px;
}

/* ---------- CTA band ---------- */
.dm-cta {
  padding: 40px 32px;
  border-radius: 28px;
  background: var(--dm-gradient);
  color: #fff;
  text-align: center;
}

.dm-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.dm-cta p {
  margin: 10px auto 22px;
  max-width: 560px;
  opacity: 0.92;
}

.dm-cta .dm-btn {
  background: #fff;
  color: var(--dm-primary);
}

/* ---------- Footer ---------- */
.dm-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--dm-line);
  font-size: 0.88rem;
  color: var(--dm-muted);
}

.dm-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
}

.dm-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.dm-footer a {
  color: var(--dm-muted);
  text-decoration: none;
}

.dm-footer a:hover {
  color: var(--dm-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dm-hero {
    padding: 36px 0 44px;
  }

  .dm-hero-grid,
  .dm-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dm-hero-img {
    max-width: 440px;
    margin: 0 auto;
  }

  .dm-steps {
    grid-template-columns: 1fr;
  }

  .dm-section {
    padding: 48px 0;
  }
}

@media (max-width: 720px) {
  /* Navigation drops to its own row and scrolls sideways */
  .dm-header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 10px;
    height: auto;
    padding-top: 12px;
  }

  .dm-nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 10px 0 12px;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .dm-nav::-webkit-scrollbar {
    display: none;
  }

  .dm-header .dm-btn {
    display: none;
  }

  .dm-prompt {
    flex-direction: column;
    border-radius: 22px;
    padding: 10px;
  }

  .dm-prompt input {
    padding: 10px 8px;
  }

  .dm-outfits {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dm-outfit-body {
    padding: 12px;
  }

  .dm-cta {
    padding: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
