/* ==========================================================================
   Light homepage theme
   Loaded only by index.html, after style.css + home-visual.css.

   The industrial layout keeps every section and every component; only the
   palette flips, so arriving from a light interior page no longer means
   landing on a dark surface. All colours in style.css come from tokens,
   so re-declaring the tokens here is enough to invert the page.
   ========================================================================== */

html body{
  --ink-900:#FFFFFF;
  --ink-800:#F7F6F3;
  --ink-700:#EFEDE8;
  --ink-600:#E7E4DE;
  --bone-050:#1B2836;
  --bone-200:#3B4858;
  --bone-400:#55616F;
  --bone-500:#59646F;
  --hairline:rgba(27,40,54,.10);
  --hairline-2:rgba(27,40,54,.18);
  background:#FFFFFF;
}

/* ---------- Header ---------- */
.header{
  background:rgba(255,255,255,.94);
  border-bottom:1px solid rgba(27,40,54,.10);
  backdrop-filter:blur(8px);
}

/* ---------- Hero ----------
   The photograph is a dark industrial frame. Rather than swap it out, the
   scrim flips to a pale wash that opens the left column for dark type. */
.hero__media::after{
  background:
    linear-gradient(270deg,rgba(250,249,246,.94) 0%,rgba(250,249,246,.76) 34%,rgba(250,249,246,.22) 62%,rgba(250,249,246,0) 100%),
    linear-gradient(180deg,rgba(250,249,246,.22) 0%,rgba(250,249,246,0) 30%);
}
.hero__caption{
  color:#3B4858;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(27,40,54,.10);
}

/* ---------- Media blocks that assumed a dark ground ---------- */
.wash-band__body,
.quote-band,
.cta-band{
  background:#F7F6F3;
}

/* Card media wells are dark by default; on a white page that reads as a hole. */
.line-card__media,
.p-card__media,
.hero__media{
  background:#EDEBE6;
}


/* ==========================================================================
   Components that carried hard-coded dark values, outside the token set.
   Without these the token flip leaves white-on-white buttons and two
   near-black spec plates glued onto a white page.
   ========================================================================== */

/* Primary buttons were --paper (beige) with --ink-900 as text. Once ink-900
   became white the labels disappeared entirely. */
.btn--primary,
.file-input__btn{
  background:#1B2836;
  color:#FFFFFF;
  border-color:#1B2836;
}
.btn--primary:hover,
.file-input__btn:hover{
  background:#0F1B28;
  border-color:#0F1B28;
  color:#FFFFFF;
}

/* Active nav item was white on a white bar. */
.nav__link[aria-current]{color:#1B2836}
.nav__link[aria-current]::after{background:#1B2836}

/* The spec plate used a hard-coded near-black gradient. */
.line-card--spec .line-card__plate{
  background:linear-gradient(160deg,#F4F2EE,#E9E6E0);
  color:#1B2836;
}
.line-card--spec .spec-list em,
.line-card--spec .micro,
.line-card--spec .line-card__spec-note{color:#1B2836}
/* The corner badge floats over photographs, so a translucent tint is not
   enough — it needs its own opaque plate to stay legible on dark washes. */
.line-card .line-card__no{
  background:rgba(247,246,243,.9);
  color:#1B2836;
}

/* Type sitting directly on the hero photograph needs more weight than the
   grey that worked on the dark build. */
.hero .eyebrow,
.hero__note,
.hero__caption{color:#3B4858}


/* ==========================================================================
   Interior pages (layout-intl.css carries its own hard-coded darks)
   ========================================================================== */

/* Product card media wells were #0E0E12 — on a white page that is a hole. */
.p-card__media{background:#EDEBE6}
.p-card__media--spec{
  background:linear-gradient(160deg,#F4F2EE 0%,#E9E6E0 100%);
}
.p-card__title{color:#1B2836}
.p-card:hover .p-card__title{color:#1B2836}
.p-card--cta{background:#F7F6F3;border-color:rgba(27,40,54,.18)}
.p-card--cta:hover{border-color:rgba(27,40,54,.32)}

/* Spec plate on the collections index. */
.line-card--spec .line-card__plate{
  background:linear-gradient(160deg,#F4F2EE 0%,#E9E6E0 100%);
  color:#1B2836;
}

/* Row hover was a white wash, invisible on a white table. */
tbody tr:hover{background:rgba(27,40,54,.03)}

/* Page headers on interior pages. */
.page-head{background:#F7F6F3}
.page-head__lede{color:#3B4858}

/* Filter band and native selects. */
.filter select,
.filter__bar select{
  background:#FFFFFF;
  color:#1B2836;
  border-color:rgba(27,40,54,.18);
}


/* ==========================================================================
   style.css carries these as literal #fff / near-black, outside the token set.
   On a white page they produce invisible hover states and black media wells.
   ========================================================================== */

/* Hover and current-page states were white text — invisible on white. */
.nav__link:hover,
.nav__link[aria-current],
.nav__link[aria-current="page"],
.link-arrow:hover,
.header__wa:hover,
.filters__clear:hover,
.footer-col a:hover,
.mega__col a:hover{color:#1B2836}

.btn--secondary:hover{
  color:#1B2836;
  border-color:#1B2836;
  background:rgba(27,40,54,.04);
}

.dropdown__panel a:hover{
  background:#EFEDE8;
  color:#1B2836;
}

/* Media wells and the corner badge were near-black literals. */
.line-card__media,
.p-card__media{background:#EDEBE6}

.line-card__no{
  background:rgba(247,246,243,.92);
  color:#1B2836;
}

/* Keyboard-only skip link: give it a real ground and readable type. */
.skip-link{
  background:#F7F6F3;
  color:#1B2836;
}


/* ==========================================================================
   Pass 2 — the tokens and literals that were NOT in the first flip.
   Everything below rendered on white as if it were absent, which is why
   details still looked "off" on pages whose background was already correct.
   ========================================================================== */

/* --paper is used as an accent, not only as a surface: focus rings, the
   active tab rule, the required-field asterisk, the checkbox tick, the
   selection highlight, the spec-weight label and link hover borders. A beige
   accent on a white page is invisible. Every button that needs --paper as a
   *background* already hard-codes its own colours above, so re-pointing the
   token to the ink colour is safe and fixes all of those at once. */
html body{
  --paper:#1B2836;
}

/* Hover borders were rgba(255,255,255,.28-.32): no signal on white. */
.filter select:hover,
.filter__bar select:hover,
.field input:hover,
.field select:hover,
.field textarea:hover,
.file-input:hover,
.p-card--cta:hover{
  border-color:rgba(27,40,54,.32);
}

/* 2% white washes carry nothing on a white ground. */
.programs__list a:hover,
.ext-row a:hover{
  background:rgba(27,40,54,.035);
}

/* Weight ruler: the rail, the ticks and the three bands were white and beige
   hairlines. On white the graphic disappeared and only the labels remained. */
.ruler__rail{background:rgba(27,40,54,.12)}
.ruler__tick{background:rgba(27,40,54,.30)}
.ruler__band{
  background:rgba(27,40,54,.07);
  border-left:1px solid rgba(27,40,54,.35);
  border-right:1px solid rgba(27,40,54,.35);
}
.ruler__band:nth-child(3){background:rgba(27,40,54,.13)}
.ruler__band--solid{background:rgba(27,40,54,.22)}

/* Media well that stayed near-black (#101014) while every other well flipped. */
.home-evidence__media{background:#EDEBE6}

/* ==========================================================================
   Media tiles on white
   On the dark build every photograph sat inside a dark well, so even a
   white-background product shot had an edge. On white it has none: the tile
   dissolves into the page and a row of cards reads as loose images. A hairline
   gives every tile the same frame, whatever the photograph was shot on.
   ========================================================================== */
.p-card__media,
.line-card__media,
.p-card__media--spec{
  border:1px solid rgba(27,40,54,.10);
  background:#F1EFEA;
}
.p-card:hover .p-card__media,
.line-card:hover .line-card__media{
  border-color:rgba(27,40,54,.26);
}

/* The hero caption sits on a photograph, not on the page. */
.hero__caption{box-shadow:0 1px 2px rgba(27,40,54,.06)}

/* Spec tables moved into the card body once both frames got an image. */
.line-card__body .spec-list{
  margin-top:14px;
  border-top:1px solid rgba(27,40,54,.10);
}
.line-card__body .spec-list div{padding:7px 0}


/* ---------- Line switcher: the four apparel lines stay one click apart ---- */
.line-switch{
  display:flex;align-items:stretch;
  border-top:1px solid var(--hairline);
  border-bottom:1px solid var(--hairline);
  margin-bottom:26px;
  overflow-x:auto;scrollbar-width:none;
}
.line-switch::-webkit-scrollbar{display:none}
.line-switch__item{
  display:flex;align-items:baseline;gap:9px;flex:0 0 auto;
  padding:15px 20px;border-right:1px solid var(--hairline);
  text-decoration:none;color:var(--bone-400);
  transition:color .16s ease,background .16s ease;
}
.line-switch__item:hover{color:var(--bone-050);background:var(--ink-700)}
.line-switch__no{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em}
.line-switch__name{font-size:13.5px;letter-spacing:-.005em;white-space:nowrap}
.line-switch__count{font-family:var(--font-mono);font-size:10.5px;opacity:.7}
.line-switch__item.is-current{color:var(--bone-050);background:var(--ink-600)}
.line-switch__item.is-current .line-switch__no,
.line-switch__item.is-current .line-switch__count{color:var(--bone-050);opacity:1}
.line-switch__more .line-switch__name{color:var(--bone-400)}

@media (max-width:700px){
  .line-switch__item{padding:13px 15px}
  .line-switch__name{font-size:13px}
}

/* ---------- Home showcase: three cards, one row -------------------------- */
.home-showcase .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}
@media (max-width:960px){
  .home-showcase .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .home-showcase .product-grid{grid-template-columns:1fr;gap:28px}
}


/* ---------- Line pages: get the first card into the first screen ----------- */
.page-head{padding-block:clamp(56px,5vw,84px) clamp(28px,3vw,42px)}
.page-head + .section{padding-top:clamp(18px,2vw,30px)}
.page-head .lead{max-width:56ch}
.line-switch{margin-bottom:16px}
.filters{padding:14px 0;margin-bottom:clamp(20px,2.2vw,28px)}


/* ---------- Mobile: the first card still has to be in the first screen ----- */
@media (max-width:700px){
  .page-head{padding-block:34px 22px}
  .page-head .lead{font-size:1rem;line-height:1.55}
  .page-head__meta div{padding:9px 0}
  .line-switch{margin-bottom:12px}
  .filters{padding:10px 0;margin-bottom:16px}
}

@media (max-width:700px){
  .page-head__meta{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}
  .page-head__meta div{padding-bottom:8px}
}


/* ---------- The finish band: two labelled columns, softer seam ------------- */
.wash-band .finish-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 34px}
.wash-band .finish-col__label{
  font-family:var(--font-mono);font-size:9.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--bone-400);padding-bottom:10px;
}
.wash-band .tech-list{grid-template-columns:minmax(0,1fr);border-top:1px solid var(--hairline)}
.wash-band .tech-list li{padding:11px 0}

/* The frame is almost black. Lift it so the drum and the fabric texture read,
   and fade the right edge into the panel colour instead of cutting it. */
.wash-band__media img{filter:brightness(1.12) contrast(1.04)}
.wash-band__media::after{
  background:linear-gradient(90deg,rgba(10,10,12,.14) 0%,rgba(10,10,12,0) 34%);
}
.wash-band__media::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(247,246,243,0) 93%,rgba(247,246,243,.45) 100%);
}

@media (max-width:820px){
  .wash-band .finish-cols{grid-template-columns:minmax(0,1fr);gap:26px}
  .wash-band__media::before{display:none}
}

.quote-band__alt{display:flex;flex-wrap:wrap;gap:8px 26px;margin-top:4px}
.quote-band__alt .link-arrow{font-size:13px}
