/*
  Uni Jeans — public site.
  Palette built around denim: raw indigo, washed blue, a bright cobalt for actions,
  warm paper white, and one hot colour kept for the outlet.
*/
:root {
    --paper: #f5f3ee;
    --white: #ffffff;
    --ink: #0f1115;
    --muted: #6d6f76;
    --line: #dedbd3;
    --indigo: #141d45;   /* raw denim */
    --cobalt: #2d4bf0;   /* action colour */
    --wash: #cdd9f1;     /* washed denim */
    --hot: #ff5630;      /* outlet only */
    --wa: #128c4a;
    --display: "Archivo", "Arial Narrow", Arial, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-stretch: 118%; font-weight: 850; text-transform: uppercase; line-height: .92; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
main { overflow: clip; }

.kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 14px; }

/* ---------- announcement ribbon ---------- */
.ribbon { background: var(--ink); color: var(--paper); overflow: hidden; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ribbon-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ribbon-set { display: flex; align-items: center; flex-shrink: 0; }
.ribbon span { padding: 9px 0; white-space: nowrap; }
.ribbon i { font-style: normal; color: var(--wash); margin: 0 22px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- menu ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 8px var(--pad); background: rgba(245, 243, 238, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-logo { display: block; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
@media (min-width: 700px) { .nav-logo img { height: 36px; } }
/* Phones: logo and Outlet on the first row, the four categories spread across a second row. */
@media (max-width: 699px) {
    .nav { flex-wrap: wrap; justify-content: space-between; row-gap: 4px; padding-top: 8px; padding-bottom: 0; }
    .nav-links { order: 3; flex: 0 0 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); padding: 2px 0; }
    .nav-links a { font-size: 12px; padding: 10px 0; }
}
.nav-links { min-width: 0; display: flex; gap: clamp(12px, 2.4vw, 30px); margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--ink); }
.nav-outlet { text-decoration: none; background: var(--hot); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 340px) { .nav-outlet span { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; text-decoration: none; background: var(--cobalt); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 15px 26px; border-radius: 999px; border: 2px solid var(--cobalt); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); }

/* ---------- hero ---------- */
.hero > * { min-width: 0; }
.hero { display: grid; gap: 28px; padding: clamp(28px, 5vw, 64px) var(--pad) clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(52px, 11.5vw, 150px); }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 34ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; height: min(118vw, 640px); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; background: var(--wash); }
.hero-photo-1 { grid-row: 1 / 3; }
/* Top-right photo: keep the bottom (jeans and shoes) in view; the sky gets cut instead. */
.hero-photos-3 .hero-photo-2 { object-position: center 90%; }
/* Third photo stays square, so a wide group shot (two people side by side) is not cut off. */
.hero-photos-3 .hero-photo-3 { height: auto; aspect-ratio: 1; }
.hero-photos-1 { grid-template-columns: 1fr; }
.hero-photos-2 .hero-photo-2 { grid-row: 1 / 3; }
.seal { position: absolute; left: -34px; bottom: -34px; width: clamp(96px, 13vw, 150px); animation: spin 22s linear infinite; }
.seal circle { fill: var(--hot); }
.seal text { font: 700 15.5px var(--display); letter-spacing: .12em; fill: var(--ink); }
.seal .seal-mid { font: 900 40px var(--display); font-stretch: 125%; letter-spacing: -.04em; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
    .hero { grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); }
    .hero h1 { font-size: clamp(64px, 8.2vw, 150px); }
    .hero-photos { height: min(78vh, 760px); }
}
@media (max-width: 899px) { .seal { left: -8px; bottom: -34px; } }

/* ---------- category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 var(--pad); }
@media (min-width: 800px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--wash); text-decoration: none; }
.cat img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.cat:hover img { transform: scale(1.06); }
.cat::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(15, 17, 21, .62)); }
.cat span { position: absolute; left: 16px; bottom: 12px; z-index: 1; color: #fff; font: 850 clamp(19px, 2.6vw, 36px)/1 var(--display); font-stretch: 110%; text-transform: uppercase; letter-spacing: -.02em; }

/* ---------- sections and lists ---------- */
.block { padding: clamp(48px, 7vw, 96px) var(--pad) 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.block-head h2 { font-size: clamp(34px, 5.4vw, 72px); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chip { font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--paper); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 14px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; }
.card[hidden] { display: none; }
.card-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--white); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s, opacity .35s; }
.card-alt { opacity: 0; }
.card:hover .card-alt { opacity: 1; }
.card:hover .card-photo img { transform: scale(1.03); }
.tag { position: absolute; left: 10px; top: 10px; z-index: 1; font: 700 11px var(--body); font-style: normal; letter-spacing: .12em; text-transform: uppercase; background: var(--cobalt); color: #fff; padding: 5px 10px; border-radius: 999px; }
.tag-outlet { background: var(--hot); color: var(--ink); }
.card-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-weight: 600; }
.card-code { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.card-meta { display: block; color: var(--muted); font-size: 14px; }

/* ---------- where to buy ---------- */
.statement { margin-top: clamp(56px, 8vw, 110px); background: var(--indigo); color: #fff; padding: clamp(56px, 9vw, 130px) var(--pad); }
.statement .kicker { color: var(--wash); }
.statement h2 { font-size: clamp(48px, 10vw, 150px); }
.statement p:last-child { max-width: 46ch; margin-top: 26px; font-size: clamp(16px, 1.5vw, 20px); color: var(--wash); }
.statement strong { color: #fff; }

/* ---------- outlet ---------- */
.outlet-band { background: var(--hot); color: var(--ink); padding: clamp(40px, 6vw, 80px) var(--pad); display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.outlet-band .kicker, .outlet-hero .kicker { color: var(--ink); }
.outlet-band h2 { font-size: clamp(52px, 15vw, 190px); }
.outlet-band p:last-child { max-width: 44ch; margin-top: 14px; font-weight: 500; }
.outlet-hero { background: var(--hot); padding: clamp(40px, 7vw, 90px) var(--pad); }
.outlet-hero h1 { font-size: clamp(52px, 16vw, 260px); }
.outlet-hero .hero-sub { color: var(--ink); margin-bottom: 26px; max-width: 40ch; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px solid var(--ink); }
@media (min-width: 720px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rules li { padding: 26px var(--pad); border-top: 1px solid var(--ink); display: grid; gap: 4px; }
@media (min-width: 720px) { .rules li + li { border-left: 1px solid var(--ink); } }
.rules b { font: 500 13px var(--body); color: var(--muted); letter-spacing: .1em; }
.rules strong { font: 800 22px/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.rules span { color: var(--muted); font-size: 15px; }
.empty { border: 1.5px dashed var(--line); padding: 44px 20px; text-align: center; color: var(--muted); }
.retail-note { text-align: center; color: var(--muted); padding: 48px var(--pad) 0; }

/* ---------- one model ---------- */
.crumb { padding: 20px var(--pad) 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumb a { color: var(--ink); }
.prod { display: grid; gap: 28px; padding: 18px var(--pad) 0; }
.gallery { display: grid; gap: 10px; }
.big { background: var(--white); }
.big img { width: 100%; max-height: 84vh; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; order: 2; scrollbar-width: none; }
.thumb { flex: 0 0 64px; padding: 0; border: 2px solid transparent; background: var(--white); cursor: pointer; opacity: .65; }
.thumb.on { border-color: var(--ink); opacity: 1; }
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.info h1 { font-size: clamp(38px, 5vw, 68px); }
.desc { margin-top: 18px; font-size: 17px; color: #33353b; max-width: 52ch; }
.label { margin: 28px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sizes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sizes li { min-width: 48px; text-align: center; padding: 10px 8px; border: 1.5px solid var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.colors { font-weight: 500; }
.buy { margin-top: 34px; background: var(--indigo); color: var(--wash); padding: 24px; display: grid; gap: 8px; }
.buy-title { font: 800 22px/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; color: #fff; }
.branches { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.branches li { background: rgba(255, 255, 255, .12); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 14px; }
.buy-date { font-size: 14px; }
.buy .btn-where { justify-self: start; margin-top: 6px; background: #fff; color: var(--indigo); border-color: #fff; }
.buy .btn-where:disabled { opacity: .7; cursor: wait; }
.where-result { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 8px; padding-top: 14px; display: grid; gap: 2px; }
.where-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.where-main { font: 800 26px/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; color: #fff; }
.where-date { color: #fff; }
.where-result .btn-map { justify-self: start; margin-top: 12px; background: var(--cobalt); border-color: var(--cobalt); }
.buy-outlet { background: var(--hot); color: var(--ink); }
.buy-outlet .buy-title { color: var(--ink); }
.buy-outlet .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 900px) {
    .prod { grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
    .gallery { grid-template-columns: 72px 1fr; }
    .thumbs { flex-direction: column; order: 0; overflow: visible; }
    .thumb { flex: none; }
    .info { position: sticky; top: 90px; }
}

/* ---------- footer ---------- */
.foot { margin-top: clamp(56px, 8vw, 110px); background: var(--ink); color: #b9bac0; padding: clamp(40px, 6vw, 72px) var(--pad) 22px; overflow: hidden; }
main:has(> .outlet-band:last-child) + .foot { margin-top: 0; }
.foot-top { display: grid; gap: 28px; font-size: 15px; }
@media (min-width: 800px) { .foot-top { grid-template-columns: repeat(3, 1fr); } }
.foot-top p { max-width: 34ch; }
.foot-kicker { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.foot a { color: #fff; }
.foot-word { font: 900 calc((100vw - 2 * var(--pad)) * .142)/.8 var(--display); /* "UNI JEANS" fills the footer width without touching the edge */ font-stretch: 125%; letter-spacing: -.04em; color: #fff; white-space: nowrap; margin: clamp(36px, 6vw, 70px) 0 18px -.04em; }
.foot-legal { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- floating buttons ---------- */
.float { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; text-decoration: none; box-shadow: 0 6px 20px rgba(15, 17, 21, .22); transition: transform .15s; }
.float-btn:hover { transform: translateY(-3px); }
.float-btn[hidden] { display: none; }
.float-top { width: 44px; height: 44px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.float-wa { background: #25d366; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .ribbon-track, .seal { animation: none; }
    html { scroll-behavior: auto; }
}
