/* ============================================================
   Studio Backcountry — site stylesheet
   Rebuilt from the original Cargo site.
   Layout positions use vw units so the design scales with the
   browser width exactly like the original.
   ============================================================ */

:root {
  --ink: rgba(0, 0, 0, 0.85);
  --bg: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Spectral', 'Times New Roman', serif;
  font-size: clamp(11px, 0.873vw, 16px);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.6; }

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

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 25px 31px;
  font-size: clamp(13px, 1.018vw, 18px);
  z-index: 10;
}

.site-header nav { display: flex; gap: 2.9vw; }

/* ---------- Homepage collage ---------- */

.collage {
  position: relative;
  height: 245.2vw;
}

.collage .item {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
}

.collage a.item img { transition: opacity 0.25s ease; }
.collage a.item:hover { opacity: 1; }
.collage a.item:hover img { opacity: 0.85; }

.collage .cap {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.55em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.collage a.item:hover .cap { opacity: 1; }

.home-footer {
  position: absolute;
  left: 8.68vw;
  top: 237vw;
}
.home-footer p { margin: 0; }

/* ---------- Product pages ---------- */

.product {
  display: flex;
  align-items: flex-start;
  padding-top: 10.56vw;
}

.product-images {
  margin-left: 4.44vw;
  width: 43.06vw;
  display: flex;
  flex-direction: column;
  gap: 9.375vw;
  flex-shrink: 0;
}

.product-images img.md { width: 70.2%; margin: 0 auto; }
.product-images img.sm { width: 65.3%; margin: 0 auto; }

.product-details {
  position: sticky;
  top: 90px;
  margin-left: 13.05vw;
  width: 29vw;
  max-width: 460px;
  padding-right: 2vw;
  padding-bottom: 4vw;
}

.product-details h1 {
  font-size: inherit;
  font-weight: 700;
  margin: 0 0 1.4em;
  letter-spacing: 0.01em;
}

.product-details p { margin: 0 0 1.4em; }

.product-details a.enquire {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-details p.next { margin-top: 3.2em; }

/* ---------- Info page ---------- */

.info {
  position: relative;
  height: 84vw;
}

.info .info-text {
  position: absolute;
  left: 24.65vw;
  top: 27.6vw;
  width: 19.1vw;
  font-size: clamp(10px, 0.8vw, 15px);
}
.info .info-text p { margin: 0 0 1.6em; }

.info .img-1 { position: absolute; left: 53.54vw; top: 11.46vw; width: 25.97vw; }
.info .img-2 { position: absolute; left: 24.86vw; top: 56.4vw;  width: 18.82vw; }

/* ---------- Contact page ---------- */

.contact {
  position: relative;
  height: 56vw;
}

.contact .img-1 { position: absolute; left: 14.86vw; top: 8.13vw; width: 27.15vw; }

.contact .contact-text { position: absolute; left: 79.7vw; top: 36.1vw; }
.contact .contact-text h1 { font-size: inherit; font-weight: 700; margin: 0 0 1.4em; }
.contact .contact-text p { margin: 0 0 0.3em; }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  body { font-size: 14px; }

  .site-header {
    padding: 18px 20px;
    font-size: 15px;
    background: var(--bg);
  }
  .site-header nav { gap: 24px; }

  .collage {
    height: auto;
    padding: 84px 7vw 40px;
  }
  .collage .item {
    position: static;
    width: 100%;
    margin-bottom: 12vw;
  }
  .collage .cap {
    position: static;
    display: block;
    opacity: 1;
    padding-top: 0.6em;
  }

  .home-footer { position: static; padding: 20px 0 0; }

  .product {
    flex-direction: column;
    padding: 84px 7vw 40px;
  }
  .product-details {
    position: static;
    order: -1;
    width: 100%;
    max-width: none;
    margin: 0 0 10vw;
    padding: 0;
  }
  .product-images { margin: 0; width: 100%; gap: 8vw; }
  .product-images img.md,
  .product-images img.sm { width: 100%; margin: 0; }

  .info, .contact { height: auto; padding: 84px 7vw 40px; }
  .info .info-text, .info .img-1, .info .img-2,
  .contact .img-1, .contact .contact-text {
    position: static;
    width: 100%;
    font-size: inherit;
  }
  .info .img-1 { margin-bottom: 10vw; }
  .info .img-2 { margin-top: 10vw; }
  .contact .contact-text { margin-top: 10vw; }
}
