/* =========================
   File: cruising_navigator/5_cloth_and_construction/cloth_and_construction.css
========================= */

/* Refined shared presentation for the technical specification sheet. */
body .nav-specsheet{
  --ns-blue: #005598;
  --ns-blue-dark: #123f68;
  --ns-blue-soft: #eef6fc;
  --ns-line: rgba(0, 85, 152, .14);
  background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 45%, #f7fafd 100%);
}

body .nav-specsheet__panel{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ns-line);
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(15, 63, 105, .12);
}

body .nav-specsheet__panel::before{
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--ns-blue), #55a9d5);
}

body .nav-specsheet__grid{
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}

body .nav-rotator{
  align-content: center;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border: 1px solid rgba(0, 85, 152, .10);
  border-radius: 18px;
  background: linear-gradient(145deg, #f2f8fc, #ffffff);
}

body .nav-rotator__frame{
  filter: drop-shadow(0 16px 20px rgba(15, 63, 105, .12));
}

body .nav-rotator__capTitle{
  color: var(--ns-blue);
}

body .nav-rotator__capSub{
  color: var(--ns-blue-dark);
}

body .nav-rotator__dot{
  width: 9px;
  height: 9px;
  border: 1px solid rgba(0, 85, 152, .22);
  background: #dcebf5;
}

body .nav-rotator__dot.is-active{
  background: var(--ns-blue);
  box-shadow: 0 0 0 4px rgba(0, 85, 152, .12);
  transform: scale(1.12);
}

body .nav-specsheet__text{
  align-self: center;
}

body .nav-specsheet__meta{
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--ns-blue);
  border-radius: 0 12px 12px 0;
  background: var(--ns-blue-soft);
}

body .nav-specsheet__metaTop{
  color: var(--ns-blue);
  font-weight: 800;
}

body .nav-specsheet__metaSub{
  color: var(--ns-blue-dark);
  letter-spacing: .08em;
}

body .nav-specsheet__subtitle{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.25rem;
  color: var(--ns-blue);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.01em;
}

body .nav-specsheet__subtitle::before{
  width: 2.25rem;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
  content: "";
  background: var(--ns-blue);
}

body .nav-specsheet__list{
  gap: .7rem;
}

body .nav-specsheet__row{
  grid-template-columns: minmax(7.5rem, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(0, 85, 152, .10);
  border-radius: 12px;
  background: #fbfdff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body .nav-specsheet__row:hover{
  border-color: rgba(0, 85, 152, .28);
  box-shadow: 0 10px 24px rgba(15, 63, 105, .08);
  transform: translateY(-2px);
}

body .nav-specsheet__key,
body .nav-specsheet__groupTitle{
  color: var(--ns-blue);
  font-weight: 800;
  letter-spacing: .1em;
}

body .nav-specsheet__val,
body .nav-specsheet__item{
  color: #40566b;
  letter-spacing: .04em;
  line-height: 1.55;
}

body .nav-specsheet__group{
  gap: .7rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 85, 152, .10);
  border-radius: 12px;
  background: #fbfdff;
}

body .nav-specsheet__groupTitle{
  display: flex;
  align-items: center;
  gap: .55rem;
}

body .nav-specsheet__groupTitle::before{
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  content: "";
  background: var(--ns-blue);
  box-shadow: 0 0 0 4px rgba(0, 85, 152, .10);
}

@media (max-width: 680px){
  body .nav-specsheet__panel{
    border-radius: 0;
  }

  body .nav-specsheet__row{
    grid-template-columns: 1fr;
    gap: .3rem;
  }

  body .nav-specsheet__subtitle{
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce){
  body .nav-specsheet__row{
    transition: none;
  }

  body .nav-specsheet__row:hover{
    transform: none;
  }
}


.nav-specsheet{
  --cs-ink:#0f2140;
  --cs-muted:#5f6b7a;
  --ns-border:rgba(0,0,0,.07);
  --ns-shadow:0 18px 60px rgba(0,0,0,.10);
  --ns-container:72rem;
  --ns-gutter:clamp(1rem, 4vw, 3rem);
  --ns-py:clamp(2.75rem, 6vw, 5rem);

  padding-block:var(--ns-py);
  padding-inline:var(--ns-gutter);
  background:#fff;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.csp-title{
  margin:0;
  font-size:clamp(3rem, 4.5vw, 6rem);
  font-weight:600;
  line-height:1.12;
  color:#005598;
  max-width:26ch;
  padding-inline:clamp(0rem, 1.2vw, .5rem);
  margin-inline:auto;
  text-align:center;
  padding-bottom:clamp(1.25rem, 3vw, 2.25rem);
}

.nav-specsheet__wrap{
  width:min(100%, var(--ns-container));
  margin-inline:auto;
}

.nav-specsheet__wrap + .nav-specsheet__wrap{
  margin-top:clamp(1.25rem, 3.5vw, 3rem);
}

.nav-specsheet__panel{
  background:#fff;
  border:1px solid var(--ns-border);
  border-radius:0;
  box-shadow:var(--ns-shadow);
  padding:clamp(1.25rem, 3vw, 3rem);
}

.nav-specsheet__grid{
  display:grid;
  grid-template-columns:0.95fr 1.05fr;
  gap:clamp(1.5rem, 3vw, 3rem);
  align-items:center;
}

/* =========================
   Rotator
========================= */

.nav-rotator{
  margin:0;
  display:grid;
  justify-items:center;
  gap:1rem;
}

.nav-rotator__frame{
  width:min(380px, 100%);
  aspect-ratio:3 / 5;
  position:relative;
  overflow:hidden;
}

.nav-rotator__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;

  opacity:0;
  visibility:hidden;
  transform:translateY(12px) scale(.985);
  filter:blur(4px);
  z-index:1;

  transition:
    opacity 700ms ease,
    transform 700ms ease,
    filter 700ms ease,
    visibility 0s linear 700ms;
}

.nav-rotator__img.is-active{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  filter:blur(0);
  z-index:2;
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    filter 700ms ease,
    visibility 0s linear 0s;
}

.nav-rotator__caption{
  text-align:center;
  display:grid;
  gap:.35rem;
}

.nav-rotator__capTitle{
  font-weight:700;
  letter-spacing:.12em;
  font-size:clamp(.95rem, 1.6vw, 1.05rem);
  color:#1f2f43;
  text-transform:uppercase;
}

.nav-rotator__capSub{
  font-weight:500;
  letter-spacing:.18em;
  font-size:clamp(.9rem, 1.5vw, .98rem);
  color:rgba(31,47,67,.78);
  text-transform:uppercase;
  transition:opacity 220ms ease;
}

.nav-rotator__capSub.is-fading{
  opacity:0;
}

.nav-rotator__dots{
  margin-top:.7rem;
  display:flex;
  gap:.45rem;
  justify-content:center;
}

.nav-rotator__dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(31,47,67,.18);
  transition:transform 250ms ease, background 250ms ease;
}

.nav-rotator__dot.is-active{
  background:rgba(31,74,122,.85);
  transform:scale(1.08);
}

/* =========================
   Text
========================= */

.nav-specsheet__meta{
  margin-bottom:1.7rem;
}

.nav-specsheet__metaTop{
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:clamp(1rem, 1.7vw, 1.08rem);
  color:#1f2f43;
}

.nav-specsheet__metaSub{
  margin-top:.35rem;
  font-weight:500;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:clamp(.92rem, 1.6vw, 1rem);
  color:rgba(31,47,67,.78);
}

.nav-specsheet__subtitle{
  margin:0 0 1.2rem;
  font-size:clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight:500;
  font-style:italic;
  color:#1f4a7a;
}

.nav-specsheet__list{
  display:grid;
  gap:clamp(.9rem, 2vw, 1.2rem);
  margin-bottom:1.75rem;
}

.nav-specsheet__row{
  display:grid;
  gap:.25rem;
}

.nav-specsheet__val{
  font-weight:500;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:clamp(.92rem, 1.7vw, 1.02rem);
  color:rgba(31,47,67,.80);
}

/* =========================
   Reveal only
========================= */

[data-sr-reveal] .sr-item{
  opacity:0;
  transform:translateY(18px);
  filter:blur(6px);
  transition:
    opacity 650ms ease,
    transform 650ms ease,
    filter 650ms ease;
  transition-delay:var(--sr-delay, 0ms);
  will-change:opacity, transform, filter;
}

[data-sr-reveal] .sr-item.is-revealed{
  opacity:1;
  transform:translateY(0);
  filter:blur(0);
}

/* =========================
   Responsive
========================= */

@media (max-width: 980px){
  .nav-specsheet__grid{
    grid-template-columns:1fr;
  }

  .nav-rotator__frame{
    width:min(420px, 100%);
  }
}

@media (max-width: 360px){
  .nav-specsheet{
    padding-inline:1rem;
  }

  .csp-title{
    max-width:20ch;
  }
}

@media (prefers-reduced-motion: reduce){
  .nav-rotator__img,
  .nav-rotator__capSub,
  .nav-rotator__dot,
  [data-sr-reveal] .sr-item{
    transition:none !important;
  }

  [data-sr-reveal] .sr-item{
    opacity:1;
    transform:none;
    filter:none;
  }
}
