/* ── NAV ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gap);
  /* Gradient scrim so nav text is readable over any background image */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.40) 0%, transparent 100%);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.nav__cta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.85);
  border-bottom: 1px solid rgba(250, 247, 240, 0.5);
  padding-bottom: 1px;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color var(--transition), border-color var(--transition);
}

.nav__cta:hover {
  color: var(--ivory);
  border-color: var(--ivory);
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--section-pad) + 3rem) var(--gap) var(--section-pad);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* hero__img-wrap removed — bg handled by #bg-layer */

.hero__img-wrap {
  position: absolute;
  top: 0;
  right: -5%;
  width: 75%;
  height: 85%;
  z-index: 0;
}

.hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}

.hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero__cat-text {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 11vw, 5.5rem);
  font-weight: 700;
  font-style: normal;
  color: var(--ivory);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero__catalog-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-catalog {
  flex: 1 1 0;
  min-width: 10rem;
  text-align: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn-catalog:hover {
  background: var(--accent);
  color: var(--ivory);
}

.hero__subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 22rem;
}

.hero__price {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 2rem;
  color: var(--dark);
}

.hero__price span {
  color: var(--muted);
  font-size: 0.9em;
}

.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--ivory);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background: var(--accent);
}

/* ── COLORS SECTION ─────────────────────── */
.colors-section {
  position: relative;
  padding: var(--section-pad) var(--gap);
  overflow: hidden;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.colors-section__heading {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  margin-bottom: 3rem;
  max-width: 18rem;
}

.color-showcase {
  position: relative;
}

.color-main-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 2rem;
}

.color-main-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.color-main-img img.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.color-name {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.color-swatches {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.swatch {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.15);
}

.swatch.is-active {
  border-color: var(--dark);
  transform: scale(1.15);
}

.swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── FEATURES ─────────────────────────────── */
.features {
  padding: var(--section-pad) var(--gap);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gap);
  right: var(--gap);
  height: 1px;
  background: var(--line);
}

.features__heading {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  max-width: 22rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.feature {
  padding: 0.75rem;
  border: 1px solid rgba(250, 247, 240, 0.15);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.feature__num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.feature__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature__text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
}

/* ── MATERIALS BLOCK (inside colors section) ──────────────── */
.materials-block {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.materials__heading {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.materials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.material-card {
  padding: 0.625rem;
  border: 1px solid rgba(250, 247, 240, 0.15);
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.material-card__num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.material-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.material-card__text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
}

/* ── SIZE CHART ──────────────────────────── */
.size-chart {
  padding: var(--section-pad) var(--gap);
  position: relative;
}

.size-chart::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gap);
  right: var(--gap);
  height: 1px;
  background: var(--line);
}

.size-chart__heading {
  font-size: clamp(2rem, 7vw, 4rem);
  margin-bottom: 1rem;
  max-width: 18rem;
}

.size-chart__hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.size-table-wrap {
  width: 100%;
  max-width: 24rem;
}

.size-table__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.6rem 1rem;
  background: var(--dark);
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.size-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}

.size-table__row:hover {
  background: rgba(180, 135, 90, 0.06);
}

.size-table__row span:first-child {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--dark);
}

.size-table__row span:last-child {
  font-size: 0.9rem;
  color: var(--muted);
  align-self: center;
}

.size-chart__cta {
  margin-top: 2.5rem;
}

/* ── FLOAT IMAGE decoration ───────────────── */
.float-img {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ── ORDER SECTION ─────────────────────────── */
.order-section {
  position: relative;
  padding: var(--section-pad) var(--gap);
}

.order-section__heading {
  font-size: clamp(2rem, 7vw, 4rem);
  margin-bottom: 0.5rem;
}

.order-section__sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

/* ── FOOTER ─────────────────────────────── */
.footer {
  padding: 2.5rem var(--gap);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer__dev {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer__dev-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.footer__dev-link:hover {
  color: var(--ivory);
}

/* ── TABLET 768px ─────────────────────────── */
@media (min-width: 768px) {
  .hero__img-wrap {
    width: 55%;
    height: 95%;
    right: 0;
  }

  .hero__content {
    max-width: 56rem;
  }

  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .materials__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .color-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .color-main-img {
    margin-bottom: 0;
  }

  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ── DESKTOP 1024px ─────────────────────────── */
@media (min-width: 1024px) {
  .hero__img-wrap {
    width: 48%;
    height: 100%;
    top: 0;
  }

  .hero {
    min-height: 100svh;
    justify-content: center;
  }

  .colors-section {
    padding-left: calc(var(--gap) * 2);
    padding-right: calc(var(--gap) * 2);
  }

  .features {
    padding-left: calc(var(--gap) * 2);
    padding-right: calc(var(--gap) * 2);
  }

  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .materials__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
  }
}

/* ── iOS Safari safe-area ─────────────────── */
@supports (padding: max(0px)) {
  .nav {
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-left: max(var(--gap), env(safe-area-inset-left));
    padding-right: max(var(--gap), env(safe-area-inset-right));
  }

  .hero {
    padding-bottom: max(var(--section-pad), env(safe-area-inset-bottom));
  }

  .footer {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
}