/* =========================
   NAV SPEC SHEET — responsive (same pattern as before)
   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,0.07);
  --ns-shadow: 0 18px 60px rgba(0,0,0,0.10);

  /* Pattern: fluid spacing + safe gutters */
  --ns-container: 72rem;               /* ~1152px */
  --ns-gutter: clamp(1rem, 4vw, 3rem);
  --ns-py: clamp(2.75rem, 6vw, 5rem);

  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;

  padding-block: var(--ns-py);
  padding-inline: var(--ns-gutter);
}

/* Title (section title format as requested) */
.csp-title{
  line-height: 1.12;
  text-align: center;
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
  font-size: clamp(3rem, 4.5vw, 6rem);
  font-weight: 600;
  max-width: 18ch;
  margin: auto;
  color: #005598;
  text-align: center;
}

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

.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;
  display: grid;
  place-items: center;
}

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

  opacity: 0;
  transform: translateY(12px) scale(0.985);
  filter: blur(4px);

  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
  will-change: opacity, transform, filter;
}

.nav-rotator__img.is-active{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

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

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

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

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

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

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

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

/* ===== Text ===== */
.nav-specsheet__meta{
  margin-bottom: 1.7rem;
}

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

.nav-specsheet__metaSub{
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: clamp(.92rem, 1.6vw, 1rem);
  color: rgba(31,47,67,0.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);
}

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

.nav-specsheet__key{
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(.95rem, 1.7vw, 1.05rem);
  color: #1f2f43;
}

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

.nav-specsheet__group{
  display: grid;
  gap: 0.55rem;
  margin-bottom: 2.1rem;
}

.nav-specsheet__groupTitle{
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(.95rem, 1.7vw, 1.05rem);
  color: #1f2f43;
}

.nav-specsheet__groupItems{
  display: grid;
  gap: 0.45rem;
}

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


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

/* Small phones */
@media (max-width: 360px){
  .nav-specsheet{
    padding-inline: 1rem;
  }
  .csp-title{
    max-width: 20ch;
  }
}

/* Stack columns */
@media (max-width: 980px){
  .nav-specsheet__grid{
    grid-template-columns: 1fr;
  }
  .nav-rotator__frame{
    width: min(420px, 100%);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nav-rotator__img{ transition: none; }
  .nav-rotator__capSub{ transition: none; }
  .nav-rotator__dot{ transition: none; }
}

/* =========================
   Reveal only (IntersectionObserver + stagger)
   - Adds ONLY: data-sr-reveal, .sr-item, .is-revealed, delays
========================= */
[data-sr-reveal] .sr-item{
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .6s ease,
    transform .6s ease;
  transition-delay: var(--sr-delay, 0ms);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce){
  [data-sr-reveal] .sr-item{
    transition: none;
    transform: none;
    opacity: 1; /* aparece sin animación */
  }
}
