/* ============================================================
   ACOSORB PRODUCTS PAGE — acosorb-products.v1.css
   Tokens, reset, animations, buttons, breadcrumb,
   sub-nav, .tag, .dh → common.css
============================================================ */


/* ── PAGE HERO ── */
.ap-hero {
  position: relative; overflow: hidden;
  min-height: 70svh; display: flex; align-items: center;
  padding: 7rem 0 5rem;
}
.ap-hero-img {
  position: absolute; inset: 0; z-index: 0;
}
.ap-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.28);
}
.ap-hero-in {
  position: relative; z-index: 1; max-width: 680px;
}
.ap-hero-in .tag { margin-bottom: 1.5rem; }
.ap-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }


/* ── BENEFITS STRIP ── */
.ap-benefits {
  background: var(--green);
  padding: 1.75rem 0;
}
.ap-benefits-grid {
  display: flex; flex-wrap: wrap; gap: .5rem 2.5rem;
  align-items: center;
}
.ap-b {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: .4rem;
}
.ap-b span { color: rgba(255,255,255,.5); font-size: .75rem; }


/* ── SECTION BASE ── */
.ap-section { padding: var(--sec) 0; background: var(--navy-deep); }
.ap-section.ap-alt { background: linear-gradient(135deg, #060f1c 0%, #0d1f35 100%); }
.ap-section.ap-greenline { background: var(--green); }

/* Green Line — white text on green background */
.ap-section.ap-greenline .ap-n    { color: rgba(255,255,255,.08); }
.ap-section.ap-greenline .tag     { color: rgba(255,255,255,.6); }
.ap-section.ap-greenline .tag::before { background: rgba(255,255,255,.4); }
.ap-section.ap-greenline .ap-h    { color: var(--white); }
.ap-section.ap-greenline .ap-h em { color: rgba(255,255,255,.35); }
.ap-section.ap-greenline .ap-body { color: rgba(255,255,255,.72); }
.ap-section.ap-greenline .ap-colour-label { color: rgba(255,255,255,.45); }
.ap-section.ap-greenline .ap-swatch-label-dl {
  color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2);
}
.ap-section.ap-greenline .ap-swatch-label-dl:hover { background: rgba(255,255,255,.22); color: var(--white); }
.ap-section.ap-greenline .ap-badge.ap-badge-green {
  background: rgba(255,255,255,.15); color: var(--white);
}

.ap-n {
  font-family: var(--serif); font-size: 5rem; font-weight: 300;
  color: rgba(255,255,255,.06); line-height: 1;
  margin-bottom: -.5rem;
}
.ap-h {
  font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300; line-height: .92; letter-spacing: -.01em;
  color: var(--white); margin-bottom: 1.5rem;
}
.ap-h em { font-style: italic; color: rgba(255,255,255,.28); }
.ap-body { font-size: clamp(.9rem, 1.3vw, 1rem); color: rgba(255,255,255,.5); line-height: 1.85; }

/* Section intro heading (used for DC2/DC3) */
.ap-sh { margin-bottom: 3.5rem; }
.ap-sh .ap-n { font-size: 4rem; }


/* ── SPLIT LAYOUT ── */
.ap-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.ap-split.rev { direction: rtl; }
.ap-split.rev > * { direction: ltr; }

.ap-visual { position: relative; }
.ap-visual img {
  width: 100%; aspect-ratio: 3/3; object-fit: cover;
  border-radius: 3px;
}
.ap-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: rgba(6,15,28,.88); border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px; padding: .6rem 1rem;
  font-family: var(--mono); font-size: .56rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-lite);
}
.ap-badge.ap-badge-green {
  background: var(--green); border-color: transparent; color: var(--white);
}

.ap-content { display: flex; flex-direction: column; gap: 1.5rem; }
.ap-content .tag { margin-bottom: 0; }


/* ── COLOURS / SWATCHES ── */
.ap-colours { margin-top: .5rem; }
.ap-colour-label {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: .75rem;
}
.ap-swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.ap-swatch {
  width: 48px; height: 48px; border-radius: 2px;
  border: 1px solid rgba(255,255,255,.12);
  position: relative; cursor: default;
}
.ap-swatch span {
  position: absolute; bottom: -1.4rem; left: 0; right: 0;
  font-family: var(--mono); font-size: .5rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  text-align: center; white-space: nowrap;
}

/* Named swatches (Green Line) */
.ap-swatches-named { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .5rem; }
.ap-swatch-named { display: flex; flex-direction: column; }
.ap-swatch-named img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; }
.ap-swatch-label-dl {
  display: flex; align-items: center; gap: .45rem;
  margin-top: .5rem; padding: .35rem .5rem;
  font-family: var(--mono); font-size: .55rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px; transition: background .2s, color .2s;
  text-decoration: none;
}
.ap-swatch-label-dl:hover { background: rgba(255,255,255,.16); color: var(--white); }
.ap-swatch-label-dl svg { width: 11px; height: 11px; flex-shrink: 0; }


/* ── DOWNLOADS ── */
.ap-downloads { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.ap-dl-label {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: .25rem;
}
.ap-dl {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  padding: .55rem .9rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px; transition: all .25s; text-decoration: none;
}
.ap-dl:hover { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.2); }
.ap-dl svg { width: 14px; height: 14px; flex-shrink: 0; }


/* ── DC2 VARIANT CARDS ── */
.ap-variant {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 3px; padding: 2.5rem; margin-bottom: 2rem;
}
.ap-variant-hd { margin-bottom: 2rem; }
.ap-variant-title {
  font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--white);
  line-height: 1;
}
.ap-variant-title span { color: rgba(255,255,255,.28); font-style: italic; }
.ap-variant-desc {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: .4rem;
}
.ap-variant-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}

/* Thumb switcher — fixed 3-col grid so all cells stay equal width */
.ap-thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.ap-thumb {
  cursor: pointer; border-radius: 2px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.08); transition: border-color .2s;
  position: relative;
}
.ap-thumb.active { border-color: var(--green-lite); }
.ap-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ap-thumb span {
  display: block; text-align: center; padding: .3rem;
  font-family: var(--mono); font-size: .5rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  background: rgba(6,15,28,.6);
}

/* Variant download links — full width, one per row */
.ap-variant-downloads { display: flex; flex-direction: column; gap: .5rem; }
.ap-variant-downloads .ap-dl { display: flex; width: 100%; }


/* ── DC3 GALLERY GRID ── */
.ap-gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 2.5rem;
}
.ap-gallery-item { position: relative; border-radius: 2px; overflow: hidden; }
.ap-gallery-item img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.ap-gallery-item:hover img { transform: scale(1.04); }
.ap-gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .5rem .75rem;
  font-family: var(--mono); font-size: .52rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  background: linear-gradient(to top, rgba(6,15,28,.85) 0%, transparent 100%);
}
.ap-gallery-dl {
  position: absolute; top: .5rem; right: .5rem;
  width: 28px; height: 28px; border-radius: 2px;
  background: rgba(6,15,28,.8); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-lite); opacity: 0; transition: opacity .2s, background .2s;
}
.ap-gallery-item:hover .ap-gallery-dl { opacity: 1; }
.ap-gallery-dl:hover { background: var(--green); }
.ap-gallery-dl svg { width: 14px; height: 14px; }
.ap-dc3-downloads { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }


/* ── SAMPLES CTA ── */
.ap-samples {
  background: var(--navy-mid); padding: var(--sec) 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ap-samples-in {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: center;
}
.ap-samples-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px;
}
.ap-samples-content { display: flex; flex-direction: column; gap: 1.5rem; }
.ap-samples-content .tag { margin-bottom: 0; }
.ap-samples-content .dh { font-size: clamp(2.4rem, 4vw, 3.8rem); }
.ap-samples-content p { font-size: clamp(.9rem, 1.3vw, 1rem); color: rgba(255,255,255,.5); line-height: 1.85; }


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ap-split           { grid-template-columns: 1fr; gap: 3rem; }
  .ap-split.rev       { direction: ltr; }
  .ap-variant-body    { grid-template-columns: 1fr; gap: 2rem; }
  .ap-gallery-grid    { grid-template-columns: repeat(4, 1fr); }
  .ap-samples-in      { grid-template-columns: 1fr; gap: 3rem; }
  .ap-swatches-named  { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .ap-hero            { min-height: 55svh; padding: 5rem 0 3.5rem; }
  .ap-gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .ap-benefits-grid   { gap: .4rem 1.5rem; }
  .ap-thumb-row       { gap: .5rem; }
  .ap-thumb           { flex: 1 1 calc(50% - .25rem); }
  .ap-swatches-named  { grid-template-columns: repeat(2, 1fr); }
  .ap-dc3-downloads   { flex-direction: column; align-items: flex-start; }
  .ap-dc3-downloads .btn-p { margin-left: 0; }
}


/* ── SAMPLE REQUEST MODAL ── */
.sm-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(6,15,28,.82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: smFadeIn .2s var(--ease);
}
@keyframes smFadeIn { from { opacity: 0; } to { opacity: 1; } }

.sm-box {
  position: relative;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  width: 100%; max-width: 720px;
  max-height: 90svh; overflow-y: auto;
  padding: 3rem;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(74,148,80,.45) rgba(255,255,255,.04);
  animation: smSlideIn .3s var(--ease);
}
/* Webkit (Chrome, Edge, Safari) */
.sm-box::-webkit-scrollbar { width: 6px; }
.sm-box::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 3px; }
.sm-box::-webkit-scrollbar-thumb { background: rgba(74,148,80,.45); border-radius: 3px; }
.sm-box::-webkit-scrollbar-thumb:hover { background: rgba(74,148,80,.7); }
@keyframes smSlideIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.sm-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 2px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); cursor: pointer; transition: all .2s;
}
.sm-close:hover { background: rgba(255,255,255,.12); color: var(--white); }
.sm-close svg { width: 14px; height: 14px; }

.sm-hd { margin-bottom: 2rem; }
.sm-hd .tag { margin-bottom: 1rem; }
.sm-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: .95; color: var(--white); margin-bottom: .75rem;
}
.sm-title em { font-style: italic; color: rgba(255,255,255,.28); }
.sm-sub { font-size: .9rem; color: rgba(255,255,255,.48); line-height: 1.7; }

/* Form layout */
.sm-row { display: flex; gap: 1.25rem; margin-bottom: 1.25rem; }
.sm-row-2 > .sm-field { flex: 1; }
.sm-field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.25rem; }
.sm-field:last-child { margin-bottom: 0; }

.sm-field label {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.sm-field label span { color: var(--green-lite); }
.sm-opt { color: rgba(255,255,255,.25) !important; font-size: .55rem; }

.sm-field input,
.sm-field textarea {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px; color: var(--white);
  font-family: var(--sans); font-size: .9rem;
  padding: .75rem 1rem; width: 100%;
  transition: border-color .2s;
  outline: none;
}
.sm-field input:focus,
.sm-field textarea:focus { border-color: var(--green-lite); background: rgba(255,255,255,.07); }
.sm-field textarea { resize: vertical; min-height: 80px; }
.sm-field input::placeholder,
.sm-field textarea::placeholder { color: rgba(255,255,255,.2); }

/* Checkbox grid */
.sm-checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  margin-top: .25rem;
}
.sm-check {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px; cursor: pointer; transition: border-color .2s, background .2s;
  user-select: none;
}
.sm-check:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.sm-check input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  accent-color: var(--green-lite); margin-top: 2px;
  padding: 0; background: none; border: none;
}
.sm-check span {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.75); display: block; line-height: 1.2;
}
.sm-check em {
  font-family: var(--mono); font-size: .52rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.28);
  font-style: normal; display: block; margin-top: .15rem;
}
.sm-check:has(input:checked) {
  border-color: rgba(74,148,80,.45); background: rgba(74,148,80,.08);
}

/* DC2 colour sub-panels */
.sm-colours {
  grid-column: 1 / -1;
  margin-top: .5rem;
  padding: 1rem 1.25rem;
  background: rgba(74,148,80,.06);
  border: 1px solid rgba(74,148,80,.2);
  border-radius: 2px;
  animation: smFadeIn .2s var(--ease);
}
.sm-colours-hd {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-lite);
  margin-bottom: .75rem;
}
.sm-colour-checks {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.sm-colour-check {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px; cursor: pointer; transition: border-color .2s, background .2s;
  user-select: none;
}
.sm-colour-check:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.sm-colour-check input[type="checkbox"] {
  width: 14px; height: 14px; accent-color: var(--green-lite);
  padding: 0; background: none; border: none; flex-shrink: 0;
}
.sm-colour-check span {
  font-family: var(--sans); font-size: .78rem; color: rgba(255,255,255,.65);
}
.sm-colour-check:has(input:checked) {
  border-color: rgba(74,148,80,.5); background: rgba(74,148,80,.12);
}
.sm-colour-check:has(input:checked) span { color: var(--white); }

/* Error */
.sm-error {
  background: rgba(200,50,50,.12); border: 1px solid rgba(200,50,50,.35);
  border-radius: 2px; padding: .75rem 1rem;
  font-size: .82rem; color: #f08080; margin-top: 1rem;
}

/* Footer */
.sm-footer { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.75rem; }
.sm-privacy {
  font-family: var(--mono); font-size: .55rem; letter-spacing: .08em;
  color: rgba(255,255,255,.22); line-height: 1.5; max-width: 30ch;
}
.sm-submit { min-width: 160px; justify-content: center; }
.sm-submit:disabled { opacity: .6; cursor: default; transform: none !important; box-shadow: none !important; }

/* Success state */
.sm-success-in { text-align: center; padding: 2rem 0; }
.sm-success-icon { margin-bottom: 1.5rem; }
.sm-success-icon svg { width: 64px; height: 64px; color: var(--green-lite); }
.sm-success-in .sm-title { margin-bottom: 1rem; }
.sm-success-in .sm-sub { margin-bottom: 2rem; }

@media (max-width: 600px) {
  .sm-box      { padding: 2rem 1.5rem; }
  .sm-row      { flex-direction: column; gap: 0; }
  .sm-checks   { grid-template-columns: 1fr; }
  .sm-footer   { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
