/* =============================================================
   YEYA BRIDAL SHOP — main.css
   Imports + section layout
   ============================================================= */

@import url("./base.css");
@import url("./components.css");

/* Picture wrappers stretch to fill their media containers */
.world__media picture,
.ed-card__media picture,
.editorial__bg picture,
.atelier__media picture,
.look__hero picture,
.nav-overlay__feature picture {
  display: block; width: 100%; height: 100%;
}

/* =========================================================
   NEW ARRIVALS LAYOUT
========================================================== */
.new-arrivals { padding-inline: var(--pad-side); }

/* Feature image left + 2x2 product grid right.
   Taller height so the feature gown is fully visible and right
   tiles are also portrait. object-position: 50% 22% keeps faces
   visible while showing the dress. */
.arrivals-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.1vw, 18px);
  height: clamp(720px, 90vh, 1060px);
  align-items: stretch;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.arrivals-grid > .card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  margin: 0;
}
.arrivals-grid__feature {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.arrivals-grid > .card .card__media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
  position: relative;
}
.arrivals-grid > .card .card__media img {
  object-position: 50% 22%;
}
.arrivals-grid > .card .card__cap {
  flex-shrink: 0;
}

/* Corner indices on arrivals tiles — 01..05 */
.arrivals-grid > .card::before {
  content: attr(data-index);
  position: absolute;
  top: 12px; left: 14px;
  z-index: 3;
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  pointer-events: none;
}

@media (max-width: 900px) {
  .arrivals-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: var(--gap);
  }
  .arrivals-grid__feature {
    grid-column: span 2;
    grid-row: auto;
  }
  .arrivals-grid > .card .card__media {
    aspect-ratio: 3/4;
    flex: none;
  }
}
@media (max-width: 560px) {
  .arrivals-grid { grid-template-columns: 1fr; }
  .arrivals-grid__feature { grid-column: 1; }
}

/* Editorial gallery (was arrivals-row) — three portraits */
.editorial-gallery { padding-inline: var(--pad-side); }
.editorial-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}
.editorial-gallery__tile {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--tile);
  position: relative;
}
.editorial-gallery__tile picture {
  display: block;
  width: 100%;
  height: 100%;
}
.editorial-gallery__tile img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform 1.2s var(--ease-out);
}
.editorial-gallery__tile:hover img { transform: scale(1.04); }
.editorial-gallery__tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(16,14,12,.55) 100%);
  pointer-events: none;
}
@media (max-width: 900px) { .editorial-gallery__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .editorial-gallery__grid { grid-template-columns: 1fr; } }

/* =========================================================
   THREE WORLDS
========================================================== */
.worlds { padding-inline: var(--pad-side); }
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.world {
  position: relative;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.world__media {
  position: relative;
  aspect-ratio: 3/4.2;
  overflow: hidden;
  background: var(--tile);
}
.world__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.world:hover .world__media img { transform: scale(1.05); }
.world__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16,14,12,.6) 100%);
  pointer-events: none;
}
.world__cap {
  position: absolute; left: 28px; right: 28px; bottom: 26px;
  z-index: 2; color: var(--cream);
  display: flex; flex-direction: column; gap: 8px;
}
.world__cap .eyebrow { color: var(--gold-light); opacity: .85; }
.world__cap h3 {
  color: var(--cream);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 300;
}
.world__cta {
  font-family: var(--font-ui);
  font-size: .72rem; letter-spacing: .24em;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .4s;
  color: var(--gold-light);
  margin-top: .4rem;
}
.world:hover .world__cta { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .worlds-grid { grid-template-columns: 1fr; }
  .world__media { aspect-ratio: 4/5; }
}

/* =========================================================
   EDITORIAL QUOTE
========================================================== */
.editorial {
  position: relative;
  padding: 0;
  background: var(--dark-2);
  color: var(--cream);
}
.editorial__bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.editorial__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35;
}
.editorial__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(0,0,0,.45), rgba(0,0,0,.85)),
    linear-gradient(180deg, var(--dark) 0%, transparent 40%, var(--dark) 100%);
}
.editorial__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(7rem, 14vh, 12rem) var(--pad-side);
}
.editorial__eyebrow { color: var(--gold-light); }
.editorial__quote {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  font-style: italic;
  max-width: 22ch;
  color: var(--cream);
}
.editorial__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: clamp(3rem, 6vh, 5rem);
  width: min(820px, 100%);
}
.ed-card {
  position: relative;
  display: block;
  overflow: hidden;
}
.ed-card__media { aspect-ratio: 4/5; overflow: hidden; background: var(--tile); }
.ed-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.ed-card:hover .ed-card__media img { transform: scale(1.05); }
.ed-card__cap {
  position: absolute; left: 22px; bottom: 22px;
  color: var(--cream);
  z-index: 2;
}
.ed-card__cap h3 { color: var(--cream); font-size: 1.4rem; margin-top: .3rem; font-weight: 500; }
.ed-card__cap .eyebrow { color: var(--gold-light); }
.ed-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

@media (max-width: 720px) {
  .editorial__cards { grid-template-columns: 1fr; }
}

/* =========================================================
   VIDEO MOMENT
========================================================== */
.video-moment {
  display: grid; place-items: center;
  padding-block: clamp(5rem, 9vw, 8rem);
}
.video-moment__frame {
  position: relative;
  width: min(560px, 90vw);
  aspect-ratio: 9/16;
  max-height: 85vh;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  background: #000;
  transform: scale(.96);
  transition: transform 1.1s var(--ease-cinematic);
}
.video-moment__frame.is-in { transform: scale(1); }
.video-moment__frame video {
  width: 100%; height: 100%; object-fit: cover;
}
.video-moment__cta {
  position: absolute; left: 50%; bottom: 36px;
  transform: translateX(-50%);
}

/* =========================================================
   ATELIER
========================================================== */
.atelier {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-inline: var(--pad-side);
}
.atelier__media {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.atelier__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.atelier__text { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.atelier__text .eyebrow { color: var(--gold-deep); }
.atelier__text h2 { font-style: italic; }
.atelier__text h2 em { color: var(--rose-deep); font-style: normal; }
.atelier__lead {
  font-size: var(--fs-lead);
  max-width: 44ch;
  opacity: .82;
  font-family: var(--font-display);
  font-style: italic;
}

@media (max-width: 900px) {
  .atelier { grid-template-columns: 1fr; }
}

/* =========================================================
   DISCOVER THE LOOK
========================================================== */
.look { padding-inline: var(--pad-side); }
.look__stage {
  position: relative;
  display: grid; place-items: center;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.look__hero {
  width: min(720px, 100%);
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--tile);
}
.look__hero img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }

.look__cta {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

.look__strip {
  position: absolute; left: 50%; bottom: -28px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(16,14,12,.65);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
}
.look__thumb {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .3s, transform .3s;
}
.look__thumb img { width: 100%; height: 100%; object-fit: cover; }
.look__thumb:hover { border-color: rgba(255,255,255,.4); transform: scale(1.04); }
.look__thumb.is-active { border-color: var(--gold); }

.look__wish {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.10);
  color: var(--cream);
  margin-left: 4px;
}
.look__wish svg { width: 16px; height: 16px; }
.look__wish:hover { background: rgba(255,255,255,.2); }

.look__label {
  position: absolute; left: 50%; bottom: -80px;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .82;
}

@media (max-width: 560px) {
  .look__thumb { width: 44px; height: 44px; }
}

/* =========================================================
   TRUST BAND
========================================================== */
.trust { padding-inline: var(--pad-side); }
.trust__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.trust__item svg { width: 38px; height: 38px; color: var(--gold-deep); }
.trust__item h3 { font-size: 1.2rem; font-family: var(--font-display); font-weight: 500; }
.trust__item p { font-size: .9rem; opacity: .72; max-width: 32ch; font-family: var(--font-display); font-style: italic; }

@media (max-width: 720px) {
  .trust__row { grid-template-columns: 1fr; gap: 2.5rem; }
}
