/* ============================================================
   JUNO.CSS — stiler for AEROS Juno produktside
   ============================================================ */

.juno-page { background: var(--bg); }

/* ---- HERO ---- */
.juno-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-black);
}

.juno-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-color: var(--bg-black);
  z-index: 0;
}

.juno-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 1;
}

.juno-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right,  rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.55) 50%, rgba(8,8,8,0.15) 100%),
    linear-gradient(to bottom, rgba(8,8,8,0.0)  0%, rgba(8,8,8,0.0)  60%, rgba(8,8,8,0.7)  100%);
}

.juno-hero-content {
  position: relative;
  z-index: 3;
  padding: 40px var(--edge) 64px;
  max-width: 760px;
}

.juno-title {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 12px;
}

.juno-price {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--gold-light);
  margin-bottom: 32px;
}

.juno-scroll-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.juno-scroll-link:hover { color: var(--text); }

/* ---- IKON-STRIPE ---- */
.juno-icons {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px var(--edge);
  display: flex;
  justify-content: center;
  gap: 72px;
  flex-wrap: nowrap;
}

.juno-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.juno-icon-item svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  stroke-width: 1.1;
}

/* ---- SPLIT: BILDE + TEKST ---- */
.juno-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--edge);
}

.juno-split-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.juno-split-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 20px;
}

.juno-split-text p {
  font-size: 15px;
  color: rgba(255,251,239,0.65);
  line-height: 1.85;
}

/* ---- BILDEGALLERI ---- */
.juno-gallery {
  background: var(--bg);
  padding: 0 0 80px;
  overflow: hidden;
}

/* Desktop: 3×2 symmetrisk rutenett */
.juno-gallery-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.juno-gallery-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  display: block;
  background: var(--bg-dark);
}

.juno-gallery-img--contain {
  object-fit: contain;
  object-position: center center;
  background: var(--bg-black);
}

/* ---- DIMENSJONER ---- */
.juno-dim {
  background: var(--bg);
  padding: 96px var(--edge);
}

.juno-dim-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.juno-dim-text h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  margin: 14px 0 22px;
}

.juno-dim-text p {
  font-size: 15px;
  color: rgba(255,251,239,0.65);
  line-height: 1.85;
  margin-bottom: 32px;
}

.juno-dim-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.juno-dim-specs div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.juno-dim-specs span {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.juno-dim-specs strong {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
}

/* Visual: bilde + måleangivelser */
.juno-dim-visual {
  display: grid;
  grid-template-columns: 220px auto;
  grid-template-rows: auto auto;
  justify-content: center;
  column-gap: 14px;
  row-gap: 10px;
  width: 100%;
}

.juno-dim-img-wrap {
  grid-column: 1;
  grid-row: 2;
  display: block;
  width: 220px;
}

.juno-dim-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Topp: bredde-måling */
.juno-dim-measure-top {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}

.juno-dim-value {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.juno-dim-line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
  position: relative;
  min-width: 10px;
}
.juno-dim-line:first-child::before,
.juno-dim-line:last-child::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--gold);
  opacity: 1;
}
.juno-dim-line:first-child::before { left: 0; }
.juno-dim-line:last-child::after  { right: 0; }

/* Høyre: høyde-måling */
.juno-dim-measure-right {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.juno-dim-line-v {
  flex: 1;
  width: 1px;
  background: var(--gold);
  opacity: 0.45;
  position: relative;
  min-height: 20px;
}
.juno-dim-line-v:first-child::before,
.juno-dim-line-v:last-child::after {
  content: '';
  position: absolute;
  left: -5px;
  width: 11px;
  height: 1px;
  background: var(--gold);
  opacity: 1;
}
.juno-dim-line-v:first-child::before { top: 0; }
.juno-dim-line-v:last-child::after   { bottom: 0; }

.juno-dim-value-v {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ---- FEATURES STRIPE ---- */
.juno-features {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px var(--edge);
}

.juno-features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.juno-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
}

.juno-feat svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

/* AEROS-logo (samme som i hamburgermenyen) */
.juno-feat-logo {
  width: 30px;
  height: 24px;
  color: var(--gold);
  display: block;
}

/* ---- SPESIFIKASJONER ---- */
.juno-specs {
  background: var(--bg);
  padding: 80px var(--edge);
}

.juno-specs-inner {
  max-width: 860px;
  margin: 0 auto;
}

.juno-specs-title {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 36px;
}

.juno-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 28px;
}

.juno-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255,251,239,0.03);
  border: 1px solid var(--border-subtle);
}

.juno-spec-k {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.juno-spec-v {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,251,239,0.8);
  text-align: right;
}

.juno-specs-note {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,251,239,0.3);
  font-style: italic;
}

/* ---- BUNN-CTA ---- */
.juno-cta {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 96px var(--edge);
  text-align: center;
}

.juno-cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-top: 12px;
}

/* ---- RESPONSIVT ---- */
@media (max-width: 767px) {

  /* Dimensjoner: stables på mobil */
  .juno-dim { padding: 56px 20px; }
  .juno-dim-inner { grid-template-columns: 1fr; gap: 40px; }
  .juno-dim-text h2 { font-size: clamp(24px, 7vw, 32px); }
  .juno-dim-visual { grid-template-columns: 180px auto; column-gap: 12px; }
  .juno-dim-img-wrap { width: 180px; }
  .juno-dim-specs { gap: 12px; }
  .juno-dim-specs strong { font-size: 13px; }

  /* Hero: skjul video, bruk portrettbilde */
  .juno-hero { align-items: flex-end; }

  .juno-hero-video { display: none; }

  .juno-hero-bg {
    background-image: url('/wp-content/themes/aeros/assets/images/aeros-bilder/junoportrett.jpg') !important;
    background-position: center top;
  }

  .juno-hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(8,8,8,0.05) 0%,
      rgba(8,8,8,0.2)  35%,
      rgba(8,8,8,0.88) 65%,
      var(--bg-black)  100%
    );
  }

  .juno-hero-content { padding: 24px 20px 48px; }

  .juno-title {
    font-size: clamp(34px, 10vw, 48px);
    margin-bottom: 8px;
  }

  .juno-price {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .juno-hero .eyebrow { margin-bottom: 10px; }

  /* Ikon-stripe: alle 5 på én rad, ingen scroll */
  .juno-icons {
    padding: 24px 16px;
    gap: 0;
    justify-content: space-between;
  }
  .juno-icon-item {
    flex: 1;
    min-width: 0;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .juno-icon-item svg {
    width: 30px;
    height: 30px;
  }

  /* Split: én kolonne */
  .juno-split {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 20px;
  }

  .juno-split-text h2 { font-size: clamp(22px, 6vw, 30px); }

  /* Galleri på mobil: 2-kolonne grid (ingen horisontal scroll) */
  .juno-gallery { padding: 0 0 48px; }
  .juno-gallery-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px;
    overflow: visible;
  }
  .juno-gallery-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  /* Features: 3 kolonner */
  .juno-features { padding: 32px 20px; }
  .juno-features-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 8px;
    justify-items: center;
  }
  .juno-feat { font-size: 12px; gap: 10px; }
  .juno-feat svg { width: 30px; height: 30px; }
  .juno-feat-logo { width: 42px; height: 32px; }

  /* Spesifikasjoner: én kolonne */
  .juno-specs { padding: 48px 20px; }
  .juno-specs-grid { grid-template-columns: 1fr; }
  .juno-spec { padding: 12px 14px; }
  .juno-spec-k { font-size: 12px; }
  .juno-spec-v { font-size: 12px; }

  /* CTA */
  .juno-cta { padding: 64px 20px; }
  .juno-cta h2 { font-size: clamp(26px, 7vw, 40px); }
}
