/* ==========================================================================
   Lele's Fashion — one-page presentation demo
   Palette: raspberry + blush + gold (three hue families, from the client's
   own material: brick red wall, candy pink wall, gold logo script).
   base.css owns the reset, nav, buttons, reveals, counters and marquee.
   This file owns the tokens and the layout of each section.
   ========================================================================== */

:root {
  --surface: #fcf2f0;        /* blush white */
  --surface-deep: #f6e1de;
  --brand: #be2555;          /* raspberry */
  --brand-deep: #8c1440;
  --brand-wash: #fbdde7;     /* pink tint */
  --ink: #1d1216;
  --ink-soft: #6d575c;
  --line: rgba(29, 18, 22, 0.12);

  --gold: #c79a3a;           /* the logo script accent, used sparingly */

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --font-script: "Italianno", cursive;
}

/* The hero is light, not a dark photograph, so the nav reads in ink in both
   its transparent and its cream state. */
.nav { color: var(--ink); }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding-block: calc(var(--nav-h) + clamp(1.5rem, 4vh, 3rem)) clamp(3rem, 7vh, 5rem);
  background: var(--surface);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy { display: grid; justify-items: start; gap: 1.15rem; }
.hero__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__script {
  display: block;
  margin-top: 0.12em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.5em;
  line-height: 0.82;
  color: var(--brand);
}
.hero__sub { max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }

.hero__media {
  margin: 0;
  border-radius: 26px 26px 240px 240px;
  overflow: hidden;
  box-shadow: 0 40px 70px -50px var(--brand-deep);
}
.hero__photo {
  width: 100%;
  height: min(78dvh, 780px);
  object-fit: cover;
  object-position: 50% 16%;
}

/* ------------------------------------------------------------------- story */

.story__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.story__copy { display: grid; gap: 1rem; align-content: start; }
.story__media {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.stat { display: grid; gap: 0.3rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--brand-deep);
}
.stat__label { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- promises */

.promises__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 4vw, 3rem);
}
.promise {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding-top: 1.4rem;
  border-top: 2px solid var(--brand);
}
.promise__index {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1;
  color: var(--brand);
}
.promise__title { font-family: var(--font-display); font-size: 1.3rem; }
.promise__text { color: var(--ink-soft); max-width: 34ch; }

/* ---------------------------------------------------------------- catalog */

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.catalog__item { grid-column: span 4; display: grid; gap: 0.7rem; align-content: start; }
.catalog__item:nth-child(2) { grid-column: 6 / span 4; margin-top: clamp(1.6rem, 5vw, 4rem); }
.catalog__item:nth-child(3) { grid-column: 2 / span 4; }
.catalog__item:nth-child(4) { grid-column: 8 / span 5; margin-top: clamp(1rem, 3vw, 2.4rem); }
.catalog__item figure { margin: 0; border-radius: 18px; overflow: hidden; }
.catalog__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; }
.catalog__name { font-family: var(--font-display); font-size: 1.35rem; }
.catalog__note { color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; }

/* --------------------------------------------------------------- ofertas */

.ofertas { overflow: hidden; }
.ofertas__lead {
  display: grid;
  gap: 0.7rem;
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.ofertas__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 9rem);
  line-height: 0.86;
  color: var(--brand-deep);
}
.ofertas__strip {
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  width: var(--shell);
  margin-inline: auto;
}
.ofertas__strip li { flex: 1 1 0; min-width: 0; border-radius: 16px; overflow: hidden; }
.ofertas__strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; }

/* ------------------------------------------------------------------ steps */

.steps__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.steps__intro { display: grid; gap: 1rem; align-content: start; }
.steps__list { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 1.8rem);
  padding-bottom: clamp(1.2rem, 3vw, 1.8rem);
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step__num {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 0.8;
  color: var(--brand);
}
.step__body { display: grid; gap: 0.4rem; }
.step__title { font-family: var(--font-display); font-size: 1.35rem; }
.step__text { color: var(--ink-soft); max-width: 40ch; }
.step:nth-child(2) { margin-left: clamp(0rem, 6vw, 4rem); }
.step:nth-child(3) { margin-left: clamp(0rem, 12vw, 8rem); }

/* ---------------------------------------------------- marquee and footer */

.marquee-band { padding-block: clamp(2.6rem, 5vw, 4.2rem); }
.marquee__track li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  white-space: nowrap;
}
.marquee__track li::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: var(--marquee-gap, 3rem);
  border-radius: 50%;
  background: var(--brand);
  align-self: center;
}

.footer { padding-block: clamp(3rem, 6vw, 5rem); }
.footer__grid { display: grid; gap: 1.4rem; }
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.8rem; }
.footer__legal { font-size: 0.82rem; color: var(--on-ink-soft); }

/* -------------------------------------------------------------- locations */

.locations__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}
.locations__intro { grid-column: 1 / -1; display: grid; gap: 0.7rem; margin-bottom: clamp(0.6rem, 2vw, 1.4rem); }
.location-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-deep);
}
.location-card__name { font-family: var(--font-display); font-size: 1.4rem; }
.location-card__text { color: var(--ink-soft); max-width: 34ch; }
.location-card .btn { justify-self: start; }
.locations__note {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- motion */

@keyframes hero-in {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  [data-hero] .hero__copy > * {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    animation: hero-in 0.9s var(--ease-out) forwards;
  }
  [data-hero] .hero__copy > *:nth-child(1) { animation-delay: 0.06s; }
  [data-hero] .hero__copy > *:nth-child(2) { animation-delay: 0.14s; }
  [data-hero] .hero__copy > *:nth-child(3) { animation-delay: 0.22s; }
  [data-hero] .hero__copy > *:nth-child(4) { animation-delay: 0.3s; }
  [data-hero] .hero__media {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    animation: hero-in 1.05s var(--ease-out) 0.16s forwards;
  }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    align-items: stretch;
    padding-block: calc(var(--nav-h) + 1.6rem) clamp(2.6rem, 7vh, 4rem);
  }
  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__copy { justify-items: start; }
  .hero__media { order: 2; border-radius: 22px 22px 160px 160px; }
  .hero__photo { height: min(58dvh, 520px); }

  .story__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

  .promises__list { grid-template-columns: 1fr; }

  .catalog__item,
  .catalog__item:nth-child(2),
  .catalog__item:nth-child(3),
  .catalog__item:nth-child(4) {
    grid-column: span 12;
    margin-top: 0;
  }

  .steps__grid { grid-template-columns: 1fr; }
  .step:nth-child(2),
  .step:nth-child(3) { margin-left: 0; }

  .locations__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ofertas__strip {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.6rem;
    -webkit-overflow-scrolling: touch;
  }
  .ofertas__strip li { flex: 0 0 62vw; scroll-snap-align: start; }
}
