/* CLS — Commercial Laundry Solutions */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --navy: #102442;
  --navy-2: #0a1830;
  --steel: #e9ecef;
  --color-bg: #f6f7f8;
  --color-surface: #ffffff;
  --color-surface-offset: #eef0f2;
  --color-border: #d8dce1;
  --color-divider: #e3e6ea;
  --color-text: #141b26;
  --color-text-muted: #5a6473;
  --color-text-inverse: #f4f6f9;
  --color-primary: #c8641c;       /* warm amber from the skyline */
  --color-primary-hover: #a9520f;
  --color-primary-soft: #fbeee3;

  --radius-sm: .375rem; --radius-md: .5rem; --radius-lg: .875rem;
  --shadow-sm: 0 1px 2px rgb(16 36 66 / .06);
  --shadow-md: 0 6px 18px rgb(16 36 66 / .09);
  --shadow-lg: 0 18px 40px rgb(16 36 66 / .14);
  --transition-interactive: 180ms cubic-bezier(.16,1,.3,1);
  --content-wide: 1200px;
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); }
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.1; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; }
a, button, input, textarea, select { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }

.wrap { width: min(100% - 2 * var(--space-6), var(--content-wide)); margin-inline: auto; }
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-3); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); max-width: 760px; }
.section-head h2 { font-size: var(--text-2xl); }
.section-head p { color: var(--color-text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 700; text-decoration: none; border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-ghost { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Top bar + header */
.topbar { background: var(--navy-2); color: #c9d3e1; font-size: var(--text-xs); }
.topbar .wrap { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; font-weight: 600; }
.topbar span + span::before { content: "·"; margin-inline: var(--space-2); opacity: .5; }
.header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-3); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; letter-spacing: .01em; }
.brand-text small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #9fb0c8; font-weight: 600; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 600; color: #dbe3ee; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-primary); padding-bottom: 2px; }
.nav .btn { color: #fff; }
.menu-btn { display: none; color: #fff; padding: var(--space-2); }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--space-6) var(--space-6); display: none; border-top: 1px solid rgb(255 255 255 / .08); }
  .nav.open { display: flex; }
  .nav a { padding-block: var(--space-3); border-bottom: 1px solid rgb(255 255 255 / .06); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--color-primary); }
  .nav .btn { margin-top: var(--space-4); justify-content: center; border-bottom: 0; }
  .topbar .hide-sm { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--navy-2); }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 18 36 / .88) 0%, rgb(8 18 36 / .66) 42%, rgb(8 18 36 / .12) 75%), linear-gradient(0deg, rgb(8 18 36 / .5), transparent 40%); }
.hero .wrap { position: relative; z-index: 1; padding-block: var(--space-24); }
.hero h1 { font-size: var(--text-3xl); max-width: 15ch; margin-bottom: var(--space-6); }
.hero p.lead { font-size: var(--text-lg); color: #dfe6f0; max-width: 46ch; margin-bottom: var(--space-8); line-height: 1.5; }
.hero .actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); list-style: none; }
.hero-tags li { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: var(--space-1) var(--space-3); border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; color: #fff; background: rgb(255 255 255 / .06); }

.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero .wrap { position: relative; padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.page-hero h1 { font-size: var(--text-2xl); max-width: 20ch; margin-bottom: var(--space-4); }
.page-hero p { color: #dbe3ee; max-width: 56ch; font-size: var(--text-lg); line-height: 1.5; }

/* Brand strip */
.brands { background: #fff; border-bottom: 1px solid var(--color-divider); }
.brands .wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-8); padding-block: var(--space-6); }
.brands-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); white-space: nowrap; border-right: 1px solid var(--color-border); padding-right: var(--space-8); }
.brand-logos { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); align-items: center; gap: var(--space-5) var(--space-6); list-style: none; }
.brand-logos li { display: flex; align-items: center; justify-content: center; }
.brand-logos img { height: 34px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .72; mix-blend-mode: multiply; transition: filter var(--transition-interactive), opacity var(--transition-interactive); }
.brand-logos li:hover img { filter: none; opacity: 1; }
.brand-logos img.tall { height: 44px; }
.brand-logos img.wide { height: 22px; max-width: 140px; }
@media (max-width: 760px) { .brands .wrap { grid-template-columns: 1fr; gap: var(--space-4); } .brands-label { border: 0; padding: 0; text-align: center; } .brand-logos { grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-4); } .brand-logos li { min-width: 0; } .brand-logos img, .brand-logos img.wide { max-width: 100%; height: 26px; } .brand-logos img.tall { height: 36px; } }

/* Who we serve */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.market { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-divider); display: flex; flex-direction: column; text-decoration: none; }
a.market:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.market img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.market-body { padding: var(--space-6); display: grid; gap: var(--space-3); }
.market h3 { font-size: var(--text-xl); }
.market p { color: var(--color-text-muted); font-size: var(--text-sm); }
.market .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.market .tags li { font-size: var(--text-xs); font-weight: 600; background: var(--color-surface-offset); padding: 2px var(--space-3); border-radius: 999px; color: var(--navy); }
@media (max-width: 900px) { .markets { grid-template-columns: 1fr; } .market { display: grid; grid-template-columns: 40% 1fr; } .market img { height: 100%; aspect-ratio: auto; } }
@media (max-width: 560px) { .market { display: flex; } .market img { aspect-ratio: 16/10; } }

/* Services */
.bg-steel { background: var(--color-surface-offset); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.service { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); display: grid; align-content: start; gap: var(--space-3); text-decoration: none; position: relative; }
a.service:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.service .icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: var(--space-2); }
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: var(--text-lg); }
.service p { color: var(--color-text-muted); font-size: var(--text-sm); }
.service .more { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); margin-top: var(--space-2); }
.service.featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.service.featured p { color: #c6d1e0; }
.service.featured .icon { background: var(--color-primary); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Proof band */
.proof { background: var(--navy); color: #fff; overflow: hidden; }
.proof .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.proof h2 { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.proof p { color: #c6d1e0; margin-bottom: var(--space-4); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); margin-top: var(--space-8); list-style: none; }
.stats li { border-top: 2px solid var(--color-primary); padding-top: var(--space-3); }
.stats strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; }
.stats span { font-size: var(--text-sm); color: #b4c1d3; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.photo-stack img { border-radius: var(--radius-md); object-fit: cover; width: 100%; height: 100%; }
.photo-stack img:first-child { grid-row: span 2; aspect-ratio: 3/4.6; }
.photo-stack img:not(:first-child) { aspect-ratio: 1/1; }
@media (max-width: 900px) { .proof .wrap { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: var(--space-3); }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface-offset); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6) var(--space-4) var(--space-3); font-size: var(--text-xs); font-weight: 600; color: #fff; background: linear-gradient(transparent, rgb(8 18 36 / .8)); }
.gallery .w2 { grid-column: span 2; } .gallery .h2 { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 150px; } }

/* Area */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); list-style: none; }
.area-list li { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-weight: 700; display: grid; gap: 2px; }
.area-list li small { font-weight: 500; color: var(--color-text-muted); font-size: var(--text-xs); }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; gap: var(--space-8); } }
@media (max-width: 420px) { .area-list { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy) 0%, #183563 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(var(--space-8), 5vw, var(--space-16)); display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-8); align-items: center; }
.cta h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.cta p { color: #c6d1e0; }
.cta .actions { display: flex; flex-direction: column; gap: var(--space-3); }
.cta .phone-big { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: #fff; text-decoration: none; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Detail blocks (services page) */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; padding-block: clamp(var(--space-12), 6vw, var(--space-20)); border-bottom: 1px solid var(--color-divider); }
.detail:last-child { border-bottom: 0; }
.detail.flip .detail-media { order: 2; }
.detail h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.detail p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.detail ul { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.detail ul li { padding-left: var(--space-6); position: relative; font-size: var(--text-sm); }
.detail ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--color-primary); }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.detail-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-media.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); box-shadow: none; }
.detail-media.pair figure { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.detail-media.pair img { aspect-ratio: 3/4; }
.detail-media.pair figcaption { position: absolute; top: var(--space-3); left: var(--space-3); background: rgb(8 18 36 / .78); color: #fff; font-size: var(--text-xs); font-weight: 700; padding: 2px var(--space-3); border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail.flip .detail-media { order: 0; } }

.subnav { position: sticky; top: 64px; z-index: 40; background: #fff; border-bottom: 1px solid var(--color-divider); }
.subnav .wrap { display: flex; gap: var(--space-6); overflow-x: auto; padding-block: var(--space-3); scrollbar-width: none; }
.subnav a { white-space: nowrap; text-decoration: none; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.subnav a:hover { color: var(--color-primary); }

/* About */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.prose p { margin-bottom: var(--space-5); color: #2b3442; }
.prose h2 { font-size: var(--text-xl); margin-bottom: var(--space-5); }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); list-style: none; }
.values li { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-5); }
.values strong { display: block; font-size: var(--text-base); margin-bottom: var(--space-1); }
.values span { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.contact-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: var(--space-8); display: grid; gap: var(--space-6); }
.contact-card h2 { font-size: var(--text-xl); }
.contact-item { display: grid; gap: 2px; }
.contact-item small { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: #9fb0c8; font-weight: 700; }
.contact-item a, .contact-item span { font-size: var(--text-base); font-weight: 600; text-decoration: none; color: #fff; }
.contact-item a.big { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; }
.badge-247 { display: inline-block; background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: 700; padding: 1px var(--space-2); border-radius: 999px; margin-left: var(--space-2); vertical-align: middle; letter-spacing: .04em; }
.map { border-radius: var(--radius-md); overflow: hidden; border: 0; width: 100%; height: 220px; filter: grayscale(.3); }
form.request { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10)); display: grid; gap: var(--space-5); box-shadow: var(--shadow-sm); }
form.request h2 { font-size: var(--text-xl); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: #fff; font-size: var(--text-base); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(16 36 66 / .12); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-status { font-size: var(--text-sm); font-weight: 600; color: #1f6b33; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--navy-2); color: #b4c1d3; font-size: var(--text-sm); margin-top: var(--space-24); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); padding-block: var(--space-16) var(--space-10); }
.footer h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-4); font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: var(--space-4); color: #fff; }
.footer .legal { border-top: 1px solid rgb(255 255 255 / .08); }
.footer .legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); padding-block: var(--space-5); grid-template-columns: none; font-size: var(--text-xs); }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .wrap { grid-template-columns: 1fr; } }
.no-gap { margin-top: 0; }

/* v2 additions */

.brand-logos { grid-template-columns: repeat(7, minmax(0,1fr)); }
@media (max-width: 1100px) { .brand-logos { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 760px) { .brand-logos { display: flex; flex-wrap: wrap; justify-content: center; } .brand-logos li { flex: 0 0 29%; } }
.pay-logos { display: flex; align-items: center; gap: var(--space-8); margin: var(--space-2) 0 var(--space-4); }
.pay-logos img { height: 44px; width: auto; }
.text-link { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.tg-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; padding-block: clamp(var(--space-12), 6vw, var(--space-20)); border-bottom: 1px solid var(--color-divider); }
.tg-intro h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.tg-intro p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.ws, .upg-wrap { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); border-bottom: 1px solid var(--color-divider); }
.upg-wrap { border-bottom: 0; }
.ws-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.ws-stats li { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-1); }
.ws-stats strong { font-family: var(--font-display); font-size: var(--text-xl); color: #fff; }
.ws-stats span { color: #c6d1e0; font-size: var(--text-sm); }
.ws-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-6); margin-bottom: var(--space-8); }
.ws-grid > div { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); }
.ws-grid h3, .case h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.stages ol { list-style: none; display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.stages li { display: flex; justify-content: space-between; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-offset); }
.stages li:last-child { background: var(--color-primary); color: #fff; }
.stages p, .case p { color: var(--color-text-muted); font-size: var(--text-sm); }
.nochange ul { list-style: none; display: grid; gap: var(--space-2); }
.nochange li { padding-left: var(--space-6); position: relative; font-size: var(--text-sm); }
.nochange li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: 800; }
.case { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-6); align-items: center; background: var(--color-surface-offset); border-radius: var(--radius-lg); padding: var(--space-8); }
.case-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.case-nums div { background: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-4); display: grid; gap: var(--space-1); }
.case-nums span { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.case-nums strong { font-family: var(--font-display); font-size: var(--text-xl); }
.case-nums .hl { background: var(--navy); } .case-nums .hl span { color: #c6d1e0; } .case-nums .hl strong { color: #fff; }
.upgs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.upg { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; align-content: start; gap: var(--space-2); }
.upg h3 { font-size: var(--text-base); }
.upg p { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 900px) { .tg-intro, .ws-grid, .case { grid-template-columns: 1fr; } .ws-stats { grid-template-columns: 1fr; } .upgs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .upgs { grid-template-columns: 1fr; } .case-nums { grid-template-columns: 1fr 1fr; } .case-nums .hl { grid-column: span 2; } }
.nav a { white-space: nowrap; }
.brand-logos img.lw { height: 30px; max-width: 120px; }

.upg .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin-top: var(--space-2); }
.upg .tags li { font-size: var(--text-xs); font-weight: 600; background: var(--color-surface-offset); padding: 2px var(--space-3); border-radius: 999px; color: var(--navy); }
.brand-logos img.fagor { height: 26px; max-width: 110px; }
@media (min-width: 1101px) { .brand-logos { display: flex; flex-wrap: wrap; justify-content: center; } .brand-logos { column-gap: 0; } .brand-logos li { flex: 0 0 12.5%; padding-inline: 6px; box-sizing: border-box; } }
@media (max-width: 760px) { .brand-logos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); } .brand-logos li { flex: none; } }
.detail h3.sub-h { font-size: var(--text-base); margin-top: var(--space-4); color: var(--navy); }

@media (min-width: 601px) and (max-width: 960px) { .services .service.featured { grid-column: span 2; } }
.detail-media img[src*="tuning-turbo-wash"] { object-position: 70% center; }
@media (min-width: 961px) and (max-width: 1200px) {
  .brand { flex-shrink: 0; }
  .brand-text { max-width: 170px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: .62rem; letter-spacing: .14em; }
  .nav { gap: var(--space-4); }
  .nav a { font-size: .8125rem; }
  .nav .btn { padding: var(--space-2) var(--space-4); }
}
@media (min-width: 1101px) { .brand-logos li { min-width: 0; } .brand-logos li img { max-width: 100%; } }
@media (min-width: 1101px) { .brand-logos li { padding-inline: 12px; } .brand-logos li img.wide { max-width: 100%; height: 20px; } }
@media (min-width: 961px) { .subnav .wrap { flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); overflow: visible; } }
.detail-media img[src*="bearing-shaft-housing"] { object-position: center 20%; }

/* v3: PM page + error code library */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); list-style: none; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps li { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; counter-increment: step; }
.steps img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.steps .cap { padding: var(--space-4) var(--space-5) var(--space-5); display: grid; gap: var(--space-1); }
.steps .cap strong { font-family: var(--font-display); font-size: var(--text-base); }
.steps .cap strong::before { content: counter(step) ". "; color: var(--color-primary); }
.steps .cap span { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 960px) { .steps, .steps.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps, .steps.three { grid-template-columns: 1fr; } .steps img { aspect-ratio: 4/3; } }
.story { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); border-bottom: 1px solid var(--color-divider); }
.story-head { max-width: 760px; margin-bottom: var(--space-8); }
.story-head h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.story-head p { color: var(--color-text-muted); }
.sched { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.sched > div { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); }
.sched h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.sched .who { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--color-surface-offset); padding: 2px var(--space-3); border-radius: 999px; margin-bottom: var(--space-4); }
.sched .who.tech { background: var(--color-primary-soft); color: var(--color-primary-hover); }
.sched ul, .checks { list-style: none; display: grid; gap: var(--space-2); }
.sched li, .checks li { padding-left: var(--space-6); position: relative; font-size: var(--text-sm); }
.sched li::before, .checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--color-primary); }
.note { background: var(--color-primary-soft); border-left: 4px solid var(--color-primary); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-size: var(--text-sm); color: #3a2a1c; max-width: 860px; }
.note + .note { margin-top: var(--space-3); }
.faq { display: grid; gap: var(--space-3); max-width: 860px; }
.faq details { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.faq summary { font-weight: 700; cursor: pointer; font-family: var(--font-display); font-size: var(--text-base); }
.faq details p { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); }
.brand-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.brand-card { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; text-decoration: none; }
a.brand-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.brand-card img { height: 34px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.brand-card h3 { font-size: var(--text-lg); }
.brand-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.brand-card .more { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); }
@media (max-width: 960px) { .brand-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .brand-cards { grid-template-columns: 1fr; } }
.code-search { display: grid; gap: var(--space-2); max-width: 640px; margin-bottom: var(--space-6); }
.code-search label { font-size: var(--text-sm); font-weight: 700; }
.code-search input { width: 100%; padding: var(--space-4) var(--space-5); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: #fff; font-size: var(--text-base); }
.code-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(16 36 66 / .12); }
.code-search small { color: var(--color-text-muted); font-size: var(--text-xs); }
.code-group { margin-top: var(--space-12); }
.code-group > h2 { font-size: var(--text-xl); margin-bottom: var(--space-5); }
.codes { display: grid; gap: var(--space-3); }
.code { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--space-2) var(--space-6); scroll-margin-top: 7rem; }
.code:target { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.code .c { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: var(--navy); line-height: 1.2; word-break: break-word; }
.code .c a { text-decoration: none; }
.code .c small { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); letter-spacing: .04em; margin-top: var(--space-1); }
.code h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.code p { font-size: var(--text-sm); color: #2b3442; margin-bottom: var(--space-2); }
.code .checks li { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 640px) { .code { grid-template-columns: 1fr; } }
.results-count { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); min-height: 1.5em; }
.search-results .code { margin-bottom: var(--space-3); }
.meta-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); }
.meta-row strong { color: var(--color-text); }
.jump { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin-top: var(--space-4); }
.jump a { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 2px var(--space-3); border-radius: 999px; background: var(--color-surface-offset); color: var(--navy); text-decoration: none; }
.jump a:hover { background: var(--navy); color: #fff; }
.page-hero .breadcrumb { font-size: var(--text-sm); color: #9fb0c8; margin-bottom: var(--space-4); }
.breadcrumb a { color: #dbe3ee; text-decoration: none; } .breadcrumb a:hover { color: #fff; }
[hidden] { display: none !important; }
@media (min-width: 1101px) { .sched.five { grid-template-columns: repeat(5, 1fr); } .sched.five > div { padding: var(--space-5); } }

/* On-premise facility types */
.fac-section { padding-top: 0; }
.fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.fac { display: block; background: var(--color-surface-offset); border: 1px solid var(--color-divider); border-left: 3px solid var(--color-primary); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); text-decoration: none; color: inherit; }
a.fac:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.fac h3 { font-size: var(--text-base); margin-bottom: var(--space-1); color: var(--navy); }
.fac p { font-size: var(--text-sm); color: var(--color-text-muted); }
.fac-more { margin-top: var(--space-5); font-weight: 700; font-size: var(--text-sm); }
.fac-more a { color: var(--color-primary); text-decoration: none; }
.fac-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.fac-item { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); scroll-margin-top: 90px; }
.fac-item h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.fac-item p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.fac-item .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.fac-item .tags li { font-size: var(--text-xs); font-weight: 600; background: var(--color-surface-offset); padding: 2px var(--space-3); border-radius: 999px; color: var(--navy); }
@media (max-width: 1000px) { .fac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fac-grid, .fac-list { grid-template-columns: 1fr; } }

/* Troubleshooting page */
.method { list-style: none; counter-reset: m; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); padding: 0; }
.method li { counter-increment: m; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-2); align-content: start; }
.method li::before { content: counter(m); width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); }
.method strong { font-family: var(--font-display); font-size: var(--text-base); }
.method span { font-size: var(--text-sm); color: var(--color-text-muted); }
.schem-grid { display: grid; gap: var(--space-6); }
.schem-grid.two { grid-template-columns: 1fr 1fr; align-items: start; }
.schem { margin: 0; background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden; }
.schem a { display: block; background: #fff; }
.schem img { width: 100%; height: auto; display: block; }
.schem figcaption { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-divider); display: grid; gap: var(--space-1); background: var(--color-surface); }
.schem figcaption strong { font-size: var(--text-sm); color: var(--navy); }
.schem figcaption span { font-size: var(--text-xs); color: var(--color-text-muted); }
.vpath { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-6) var(--space-5); margin-bottom: var(--space-10); counter-reset: v; }
.vpath li { counter-increment: v; position: relative; background: var(--color-surface); border: 1px solid var(--color-divider); border-top: 3px solid #e0a12b; border-radius: var(--radius-md); padding: var(--space-4); display: grid; gap: var(--space-1); }
.vpath li::before { content: counter(v); font-size: var(--text-xs); font-weight: 700; color: #b07a12; }
.vpath li:not(:last-child)::after { content: "→"; position: absolute; right: calc(-1 * var(--space-5)); top: 50%; transform: translateY(-50%); width: var(--space-5); text-align: center; color: #b07a12; font-weight: 700; }
.vpath li:nth-child(5n)::after { content: none; }
.vpath strong { font-size: var(--text-sm); color: var(--navy); }
.vpath span { font-size: var(--text-xs); color: var(--color-text-muted); }
.flow-wrap { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-5); margin-top: var(--space-6); overflow-x: auto; }
.flow { width: 100%; min-width: 620px; height: auto; display: block; font-family: var(--font-body, sans-serif); }
.flow .q { fill: var(--navy); }
.flow .qt { fill: #fff; font-size: 15px; font-weight: 700; }
.flow .a { fill: #fdecea; stroke: #c4453a; stroke-width: 1.5; }
.flow .at { fill: #7a231b; font-size: 14px; font-weight: 600; }
.flow .f { fill: #e8f4ec; stroke: #2f8a4f; stroke-width: 1.5; }
.flow .ft { fill: #1d5a33; font-size: 14px; font-weight: 600; }
.flow .ln { stroke: #6b7686; stroke-width: 2; }
.flow .ah { fill: #6b7686; }
.flow .lb { fill: #4b5563; font-size: 13px; font-weight: 700; }
.flow-note { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); }
@media (max-width: 1000px) { .method { grid-template-columns: repeat(2, 1fr); } .vpath { grid-template-columns: repeat(2, 1fr); } .vpath li::after { content: none !important; } }
@media (max-width: 640px) { .method, .schem-grid.two { grid-template-columns: 1fr; } .vpath { gap: var(--space-3); } .vpath li { padding: var(--space-3); } }
.ts-callout { margin-top: var(--space-6); display: grid; grid-template-columns: 180px 1fr; gap: var(--space-5); align-items: center; background: var(--color-surface-offset); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-4); }
.ts-callout img { width: 100%; height: auto; border-radius: var(--radius-sm, 6px); background: #fff; border: 1px solid var(--color-divider); }
.ts-callout h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.ts-callout p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-2); }
@media (max-width: 640px) { .ts-callout { grid-template-columns: 1fr; } }
.schem-grid.three { grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 1000px) { .schem-grid.three { grid-template-columns: 1fr; } }

/* Repair gallery */
.detail-media.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); box-shadow: none; border-radius: 0; overflow: visible; }
.detail-media.gallery figure { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.detail-media.gallery figure.wide { grid-column: 1 / -1; }
.detail-media.gallery img { aspect-ratio: 4/3; }
.detail-media.gallery figure.wide img { aspect-ratio: 16/10; }
.detail-media.gallery figcaption { position: absolute; left: var(--space-2); bottom: var(--space-2); background: rgb(8 18 36 / .78); color: #fff; font-size: var(--text-xs); font-weight: 600; padding: 2px var(--space-3); border-radius: 999px; }
.detail-media.gallery img[src*="washer-hoses-worn"] { object-position: center 30%; }
/* Blower story */
.blower-cap { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.blower-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); margin-top: var(--space-10); }
.blower-grid .detail-media.pair img { aspect-ratio: 4/3; }
.blower-grid .detail-media:not(.pair) { aspect-ratio: auto; }
@media (max-width: 760px) { .blower-grid { grid-template-columns: 1fr; } }
.blower-pair.lint-pile { display: grid; grid-template-columns: 38% 1fr; gap: var(--space-4); align-items: end; }
.blower-pair.lint-pile .blower-cap { margin-top: 0; }
.detail-media.gallery figcaption { right: auto; width: auto; padding: 2px var(--space-3); }
.detail-media.gallery img[src*="washer-hoses-worn"] { object-position: center 85%; }
.detail-media.gallery img[src*="tech-bearing-hands"] { object-position: center 70%; }
@media (max-width: 600px) { #blower > .detail-media.pair { grid-template-columns: 1fr; } }
.hose-row { max-width: 820px; margin-bottom: var(--space-8); }
.hose-row .detail-media.pair img[src*="washer-hoses-worn"] { object-position: center 80%; }
.detail-media.gallery.sq img { aspect-ratio: 1/1; }
.detail-media.gallery.sq figure.wide img { aspect-ratio: 16/9; }
.detail-media.gallery figure.tall { grid-column: 1 / -1; }
.detail-media.gallery figure.tall img { aspect-ratio: 4/5; }
.detail-media.gallery figure.wide img[src*="shop-inverter-board-crop"] { aspect-ratio: 16/10; object-position: center; }
.detail-media.gallery figure.wide img[src*="dryer-error-display"] { object-position: center 40%; }
.detail-media.gallery { grid-auto-rows: auto; }
.detail-media.gallery img { height: auto; display: block; }
@media (max-width: 900px) { .detail-media.gallery { grid-auto-rows: auto; } }
.detail-media.gallery figure.tall { width: 100%; }
