/* Herbert & Associates - 2027 site */
:root {
  --blue: #1b3f9c;
  --navy: #0c1b45;
  --orange: #e4521d;
  --orange-dark: #b93e12;
  --concrete: #e9ebee;
  --ink: #131821;
  --muted: #4d5666;
  --white: #fff;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
/* On dark and orange sections an orange ring disappears, so use white there */
.utility :focus-visible, .hero :focus-visible, .used :focus-visible, .contact :focus-visible,
.cta-band :focus-visible, .page-head :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

/* Skip link: hidden until a keyboard user tabs to it */
.skip-link { position: absolute; left: var(--gutter); top: 0; z-index: 100; transform: translateY(-120%); background: var(--white); color: var(--navy); font-weight: 700; padding: 0.7rem 1rem; text-decoration: none; }
.skip-link:focus { transform: none; outline-color: var(--orange); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

h1, h2, h3 {
  font-stretch: 68%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); color: var(--navy); }
h3 { font-size: 1.6rem; color: var(--navy); }
p { margin: 0; max-width: 62ch; }

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: var(--white);
  border-radius: 2px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* Utility bar */
.utility { background: var(--navy); color: var(--white); font-size: 0.9rem; }
.utility .wrap { display: flex; justify-content: flex-end; gap: 1.75rem; padding-block: 0.5rem; flex-wrap: wrap; }
.utility a { text-decoration: none; font-weight: 600; }
.utility a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 5px solid var(--orange);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.75rem; }
.logo img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--navy); padding-block: 0.4rem; border-bottom: 3px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav .btn { color: var(--white); padding: 0.6em 1.15em; border-bottom: 2px solid var(--orange); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
  background: var(--navy) url("../img/hero-racking.jpg") center 40% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,27,69,0.94) 0%, rgba(12,27,69,0.82) 38%, rgba(12,27,69,0.15) 78%),
              linear-gradient(0deg, rgba(12,27,69,0.55), transparent 40%);
}
.hero__body { padding-block: clamp(3rem, 9vh, 6rem) clamp(2.5rem, 6vh, 4rem); }
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 7rem); text-transform: uppercase; max-width: 15ch; }
.hero__lede { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 44ch; color: #e6ebf7; }
.hero__actions { margin-top: 2rem; display: flex; gap: 0.85rem; flex-wrap: wrap; }

.beam { background: var(--orange); color: var(--white); }
.beam ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.beam li { padding: 1.1rem 1.25rem 1.1rem 0; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.beam li + li { padding-left: 1.5rem; border-left: 2px solid rgba(255,255,255,0.4); }
.beam li span { display: block; font-weight: 400; font-size: 0.92rem; opacity: 0.95; }

/* Page-load sequence: hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero__lede, .hero__actions { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
  .hero__lede { animation-delay: 0.12s; }
  .hero__actions { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--concrete { background: var(--concrete); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); display: grid; gap: 1rem; }
.section__head p { color: var(--muted); }

/* Services */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.split__text > p { margin-top: 1.25rem; color: var(--muted); }
.services { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--navy); }
.services li { padding: 1rem 0; border-bottom: 1px solid #c3c9d4; display: grid; grid-template-columns: 13.5rem 1fr; gap: 1rem; align-items: baseline; }
.services strong { font-stretch: 75%; font-weight: 800; font-size: 1.45rem; line-height: 1.1; color: var(--blue); }
.services span { color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card { background: var(--white); text-decoration: none; display: grid; grid-template-columns: 42% 1fr; min-height: 168px; border-bottom: 4px solid transparent; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-bottom-color: var(--orange); }
.card img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
.card__text { padding: 1.15rem 1.35rem; display: flex; flex-direction: column; justify-content: center; gap: 0.45rem; }
.card h3 { font-size: 1.7rem; }
.card p { font-size: 0.95rem; line-height: 1.45; color: var(--muted); }
.card--feature { grid-column: span 1; grid-template-columns: 1fr; min-height: 0; }
.card--feature img { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
.card--feature .card__text { padding: 1.5rem 1.5rem 1.75rem; }
.card--feature h3 { font-size: 2.4rem; }
.card--feature p { font-size: 1.02rem; }

/* Used racking */
.used { position: relative; color: var(--white); background: var(--navy); isolation: isolate; overflow: hidden; }
.used::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/project.jpg") center / cover; opacity: 0.35; }
.used .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); }
.used h2 { color: var(--white); max-width: 14ch; }
.used p { margin-top: 1.25rem; font-size: 1.15rem; color: #e6ebf7; }
.used .btn { margin-top: 2rem; }

/* Brands */
.brands h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.brands img { width: auto; height: auto; max-width: min(200px, 100%); max-height: 110px; }

/* Brand logos: one row, scrolls continuously and loops. Stays at site width; slows to a stop on hover. */
.marquee { margin-top: 2rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee-scroll 70s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__set { list-style: none; margin: 0; padding: 0; display: flex; flex: none; }
.marquee__set li { flex: 0 0 220px; display: flex; align-items: center; justify-content: center; min-height: 130px; padding-inline: 0.5rem; }
.marquee__set li a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 110px; }
.marquee__set li a img { transition: transform 0.15s; }
.marquee__set li a:hover img { transform: scale(1.06); }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }@media (max-width: 680px) { .marquee__set li { flex-basis: 170px; } .marquee__track { animation-duration: 55s; } }
/* If a visitor has asked their device for less motion, don't animate: show the row and let them swipe/scroll it */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  .marquee__set + .marquee__set { display: none; }
  .marquee__set li a img { transition: none; }
  .marquee__set li a:hover img { transform: none; }
}

/* Contact */
.contact { background: var(--blue); color: var(--white); }
.contact .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.contact h2 { color: var(--white); }
.contact p { margin-top: 1.25rem; color: #dbe4fa; font-size: 1.1rem; }
.contact address { font-style: normal; display: grid; gap: 0.35rem; font-size: 1.05rem; }
.contact address a { font-weight: 700; font-size: 1.55rem; text-decoration: none; font-stretch: 85%; }
.contact address a:hover { text-decoration: underline; }
.contact .btn { margin-top: 1.5rem; justify-self: start; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c3dc; font-size: 0.92rem; }
.site-footer .wrap { padding-block: 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 0.75rem; font-stretch: 80%; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer a { text-decoration: none; }
/* Taller tap area per link (about 32px) so neighbouring links aren't easy to mis-tap */
.site-footer li a { display: inline-block; padding-block: 0.4rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.55; }
.footer-badge { margin-top: 1.1rem; width: 145px; height: auto; background: var(--white); padding: 0.4rem 0.6rem; border-radius: 2px; }
.site-footer__base { border-top: 1px solid rgba(255,255,255,0.15); }
.site-footer__base .wrap { padding-block: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; grid-template-columns: none; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--navy); color: var(--white); border-bottom: 5px solid var(--orange); }
.page-head .wrap { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); text-transform: uppercase; max-width: 22ch; margin-top: 0.75rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; font-size: 0.9rem; color: #b9c3dc; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs > * + *::before { content: "/"; margin-right: 0.6rem; opacity: 0.6; }

/* Brand intro panel on supplier pages ("We now stock & distribute for X"): the logo sits on a white
   plate that overhangs the navy title band, with the headline, invitation and quote button beside it. */
.brand-intro { background: var(--concrete); }
.brand-intro__grid { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.brand-intro__logo { position: relative; z-index: 2; margin-top: -2.25rem; background: var(--white); border-top: 6px solid var(--orange); padding: 1.75rem 2rem; box-shadow: 0 18px 36px rgba(12, 27, 69, 0.22); display: flex; align-items: center; justify-content: center; min-height: 190px; }
.brand-intro__logo img { width: 100%; max-width: 280px; height: auto; }
.brand-intro__text { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.brand-intro__text h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.brand-intro__text p { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.brand-intro__cta { margin-top: 1.75rem; display: flex; align-items: center; gap: 0.75rem 1.5rem; flex-wrap: wrap; }
.brand-intro__cta span { font-weight: 600; color: var(--navy); }
.section--after-intro { padding-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 760px) {
  .brand-intro__grid { grid-template-columns: 1fr; gap: 0; }
  .brand-intro__logo { margin-top: -1.5rem; max-width: 300px; min-height: 0; }
}

.section--tight { padding-top: 0; }
.h-md { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 1.5rem; }
.h-sm { font-size: 1.7rem; margin-bottom: 1.25rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }

.lead-photo { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.lead-photo img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; }
.section--after-photo { padding-top: clamp(2rem, 4vw, 3rem); }
.prose { max-width: 820px; }
.prose > * + * { margin-top: 1.1rem; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; font-size: 1.6rem; }
.prose h4, .prose h5 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-dark); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose td, .prose th { border: 1px solid #c3c9d4; padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.prose--legal { font-size: 1rem; }
.prose--legal h2 { font-size: 1.7rem; margin-top: 2rem; }
.prose--legal p, .prose--legal li { max-width: 76ch; }

/* Product range pages: full width, not boxed into the site's 1180px column.
   Scoped to <main> so the header/footer keep their normal width sitewide. */
.wide-page main .wrap { width: calc(100% - 2 * var(--gutter)); }
/* ...except pages listed as CONTAINED in build.js, which keep the normal site width */
.wide-page.contained main .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.wide-page .prose { max-width: 100%; }

/* The old theme's product pages set headings in a serif face at the same size as
   the body copy (not bold/large), so they read as quiet subheadings, not banners. */
.wide-page .prose h2, .wide-page .prose h3, .wide-page .prose h4 {
  font-family: "Antic Slab", Georgia, serif;
  font-stretch: 100%;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: normal;
  color: #333;
  margin-top: 1.5rem;
}
.wide-page .prose p, .wide-page .prose li {
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
  color: #555;
  line-height: 1.6;
  max-width: 68ch;
}

/* Two-column "zigzag" rows: text alongside its photo, alternating sides row to
   row, matching how the old theme paired each block of copy with an image. */
/* Photos line up with the top of their text (where the subheading is) rather than floating mid-row,
   and are capped in height so a tall photo doesn't tower over a short paragraph (full size opens on click). */
.zigzag { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.zigzag__media .single, .zigzag__media .thumbs, .wide-page .zigzag__text > :first-child { margin-top: 0; }
.zigzag__media .single--full img { max-height: 440px; object-fit: cover; }
/* Several photos beside a long block of text: stack them (the build adds --stack only when the text is long enough) */
.zigzag__media .thumbs--stack { grid-template-columns: 1fr; gap: 1rem; }
.zigzag__media .thumbs--stack .fig { aspect-ratio: 3 / 2; }
/* Desktop: when the text runs longer than its photos, keep the photos in view while reading */
@media (min-width: 961px) {
  .zigzag__media { position: sticky; top: 7rem; }
}
.zigzag + .zigzag { margin-top: clamp(2rem, 5vw, 3.5rem); }
.zigzag--flip .zigzag__text { order: 2; }
.zigzag__text .single { margin: 0; }

/* Brochure-style product pages (Skipper): the source material is a set of
   full-bleed flyer images with large serif captions, not a text article, so it
   gets its own larger, image-led heading treatment. */
.brochure-page .single img { max-height: none; }
.brochure-page .prose h2, .brochure-page .prose h3 {
  color: #262626;
}
.brochure-page .prose h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: 2.75rem; }
.brochure-page .prose h3 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); }

/* Skipper page: rebuilt to match the old brochure layout - full-bleed photo banners,
   a yellow strip heading, light serif headings and grey body copy, in two/three-column blocks. */
.sk { --sk-grey: #747474; --sk-ink: #333; }
.sk img { height: auto; max-width: 100%; }
.sk h1, .sk h2, .sk h3 { font-family: "Antic Slab", Georgia, serif; font-weight: 400; font-stretch: 100%; line-height: 1.2; letter-spacing: normal; color: var(--sk-ink); text-transform: none; }
.sk p { font-family: "PT Sans", Arial, Helvetica, sans-serif; color: var(--sk-grey); line-height: 1.6; margin-top: 0.9rem; }
.sk-banner img { width: 100%; height: clamp(200px, 33vw, 477px); object-fit: cover; display: block; }
.sk-intro { display: grid; grid-template-columns: 1fr 3fr; align-items: center; gap: 1.5rem; padding-block: 1.5rem; }
.sk-intro h1 { font-size: clamp(2.2rem, 4.2vw, 3.75rem); text-align: right; }
.sk-intro p { font-size: clamp(1.15rem, 2.1vw, 1.875rem); text-align: right; max-width: none; margin-top: 0.4rem; }
.sk-strip { background: #ffd738; }
.sk-strip h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); color: #000; padding-block: 1.3rem; }
.sk-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.sk-row--40 { grid-template-columns: 2fr 3fr; }
.sk-row--3 { grid-template-columns: repeat(3, 1fr); text-align: center; }
.sk-row > div > * + *, .sk-row > div > img + * { margin-top: 1rem; }
.sk figure { margin: 0; }
.sk-big { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.sk-mid { font-size: clamp(1.35rem, 2vw, 1.5625rem); margin-top: 1.25rem; }
.sk-heading { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.sk-box { background: #efefef; padding: clamp(1.5rem, 3vw, 2.25rem); }
.sk-center { text-align: center; }
.sk-center img { margin-inline: auto; }
.sk-center h3 { text-align: left; }
.sk-caption { font-family: "PT Sans", Arial, Helvetica, sans-serif; color: var(--sk-grey); font-size: 1rem; text-align: center; margin-top: 0.5rem !important; }
.sk-caption--left { text-align: left; }
.sk-small { font-size: 0.75rem !important; color: #000 !important; }
.sk-lead { font-size: 1.19rem; }
.sk-right { display: flex; justify-content: flex-end; }
.sk-pair { display: flex; gap: 1.5rem; align-items: flex-end; flex-wrap: wrap; }
.sk-tapes { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 0.6rem 1.4rem; margin-top: 1.25rem; }
.sk-media { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.sk-media p:first-child { margin-top: 0; }
.sk-colours { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.sk-swatches { display: flex; align-items: flex-end; flex-wrap: wrap; }
.sk-row--3 img { margin-inline: auto; }
.sk-end { text-align: center; padding-block: clamp(2rem, 4vw, 3.5rem); }
.sk-end p { max-width: none; color: var(--sk-ink); margin-top: 0; }
.sk-end h2 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); margin-top: 1rem; }
.sk-end img { margin: 1.5rem auto 0; }
@media (max-width: 760px) {
  .sk-intro, .sk-row, .sk-row--40, .sk-row--3 { grid-template-columns: 1fr; }
  .sk-intro h1, .sk-intro p { text-align: left; }
  .sk-media { grid-template-columns: 1fr; }
}

.fig { display: block; background: var(--concrete); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.single { margin: 1.75rem 0; text-align: center; }
.single .fig { display: inline-block; max-width: 100%; }
.single img { width: auto; max-width: 100%; max-height: 520px; height: auto; margin-inline: 0; }
/* Large "full" photos (as opposed to a small icon/product shot) stretch to fill
   their column edge to edge, rather than stopping at the source file's own pixel
   width and leaving a gap once the column is wider than that. */
.single--full { text-align: left; }
.single--full .fig { display: block; width: 100%; }
.single--full img { width: 100%; max-width: none; height: auto; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin: 1.75rem 0; }
.thumbs .fig { aspect-ratio: 4 / 3; }
.thumbs img { max-height: none; }
.thumbs--contain { grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); align-items: center; gap: 1.25rem; }
.thumbs--contain .fig { aspect-ratio: auto; background: transparent; }
.thumbs--contain img { width: auto; height: auto; max-width: 100%; max-height: 260px; object-fit: contain; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips a { display: block; padding: 0.5rem 0.9rem; background: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--navy); border-bottom: 3px solid transparent; }
.chips a:hover { border-bottom-color: var(--orange); }

.cta-band { background: var(--orange); color: var(--white); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: clamp(2rem, 5vw, 3.25rem); }
.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.cta-band p { margin-top: 0.6rem; }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Product ranges */
.ranges { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.range { display: flex; flex-direction: column; background: var(--concrete); text-decoration: none; border-bottom: 4px solid transparent; transition: border-color 0.15s; }
.range:hover { border-bottom-color: var(--orange); }
.range img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.range__text { padding: 1.1rem 1.25rem 1.4rem; display: grid; gap: 0.5rem; }
.range h3, .range .range__title { font-size: 1.5rem; }
.range__more { margin-top: 0.25rem; font-weight: 700; font-size: 0.95rem; color: var(--blue); }
.range:hover .range__more { color: var(--orange-dark); text-decoration: underline; }
.range p { font-size: 0.95rem; line-height: 1.45; color: var(--muted); }

/* Mega menu */
.has-mega { position: static; padding-block: 2rem; margin-block: -2rem; }
.mega { display: grid; visibility: hidden; opacity: 0; transition: opacity 0.12s, visibility 0s linear 0.25s; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 5px solid var(--orange); box-shadow: 0 18px 30px rgba(12, 27, 69, 0.18); padding: 1.75rem var(--gutter) 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: var(--wrap); margin-inline: auto; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega { visibility: visible; opacity: 1; transition-delay: 0s; }
.mega .mega__title { margin: 0 0 0.6rem; font-size: 1.2rem; font-stretch: 68%; font-weight: 800; line-height: 1; letter-spacing: 0.005em; color: var(--orange-dark); }
.mega ul { display: block; }
.mega a { display: block; padding: 0.3rem 0; border-bottom: 0; font-weight: 500; font-size: 0.95rem; }
.mega a:hover { color: var(--blue); text-decoration: underline; }
.site-header { --mega-left: 0; }
.site-header > .wrap { position: relative; }

/* In stock */
.stocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stock { display: grid; grid-template-columns: 40% 1fr; background: var(--concrete); border-left: 5px solid var(--blue); }
.stock--direct { border-left-color: var(--orange); }
.stock__photo { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
.stock__body { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 0.75rem; align-content: start; }
.stock__logo { max-height: 44px; width: auto; max-width: 70%; object-fit: contain; }
.stock__flag { font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.stock--direct .stock__flag { color: var(--orange-dark); }
.stock ul { margin: 0; padding-left: 1.2rem; }
.stock li::marker { color: var(--orange); }

/* Gallery + lightbox */
.gallery { columns: 3 260px; column-gap: 0.75rem; }
.gallery .fig { break-inside: avoid; margin-bottom: 0.75rem; }
.gallery .fig img { height: auto; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(12, 27, 69, 0.92); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; display: block; margin: 0 auto; }
.lightbox__close { display: block; margin: 0 0 0.6rem auto; font: 700 0.95rem var(--font); padding: 0.5em 1em; background: var(--white); color: var(--navy); border: 0; cursor: pointer; }

/* Thank-you page (after the contact form): a pallet rack bay where "Your request" is loaded into the empty slot */
.thanks-hero { background: var(--navy); color: var(--white); border-bottom: 5px solid var(--orange); overflow: hidden; }
.thanks-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.thanks-hero__text { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.thanks-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); text-transform: uppercase; max-width: 9ch; margin-top: 1rem; }
.thanks-hero__lede { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #e6ebf7; max-width: 40ch; }
.thanks-hero__call { margin-top: 1.25rem; color: #b9c3dc; }
.thanks-hero__call a { color: var(--white); font-weight: 700; text-underline-offset: 3px; }
.rack { width: 100%; max-width: 440px; justify-self: end; display: block; margin-bottom: -4px; }
.rack__upright { fill: #3d66d6; }
.rack__holes rect { fill: var(--navy); }
.rack__beam { fill: var(--orange); }
.rack__pallet { fill: #b98a52; }
.rack__box { fill: #c3cad6; }
.rack__box--new { fill: var(--white); }
.rack__label { font: 700 13px var(--font); fill: var(--navy); }
.rack__tick-bg { fill: var(--orange); }
.rack__tick { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .rack__new { animation: rack-load 0.9s cubic-bezier(.3, .7, .35, 1.12) 0.35s both; }
  .rack__tick { stroke-dasharray: 20; stroke-dashoffset: 20; animation: rack-tick 0.35s ease-out 1.25s forwards; }
  @keyframes rack-load { from { transform: translateY(-300px); } to { transform: none; } }
  @keyframes rack-tick { to { stroke-dashoffset: 0; } }
}
.thanks-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.thanks-steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 1rem; }
.thanks-steps li::before { content: counter(step); display: block; font-stretch: 68%; font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--blue); }
.thanks-steps h3 { margin-top: 0.75rem; font-size: 1.6rem; }
.thanks-steps p { margin-top: 0.5rem; color: var(--muted); }
.thanks-more { margin-top: clamp(2rem, 4vw, 3rem); display: flex; gap: 0.85rem; flex-wrap: wrap; }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
@media (max-width: 760px) {
  .thanks-hero__grid { grid-template-columns: 1fr; }
  .thanks-hero__text { padding-bottom: 0; }
  .rack { justify-self: center; max-width: 280px; }
  .thanks-steps { grid-template-columns: 1fr; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 0.7rem 0.8rem; border: 2px solid #7b8596; border-radius: 2px; background: var(--white); width: 100%; }
.form select { min-height: 51px; } /* dropdowns otherwise render shorter than the text boxes */
.form .req { color: var(--orange-dark); }
.form__note { font-size: 0.95rem; color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(27, 63, 156, 0.25); outline-offset: 0; }
.form .btn { justify-self: start; cursor: pointer; }
.form__trap { position: absolute; left: -9999px; }
.contact-card { background: var(--concrete); padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 5px solid var(--orange); }
.contact-card dl { margin: 0; display: grid; gap: 0.2rem; }
.contact-card dt { font-weight: 700; color: var(--navy); margin-top: 0.9rem; }
.contact-card dd { margin: 0; }
.contact-card a { color: var(--blue); }

/* Responsive */
@media (max-width: 960px) {
  .has-mega > .mega { display: none !important; }
  .stocks, .contact-grid { grid-template-columns: 1fr; }
  .zigzag { grid-template-columns: 1fr; gap: 1.25rem; }
  .zigzag--flip .zigzag__text { order: 0; }
  .nav-toggle { display: inline-block; font: 700 0.95rem var(--font); color: var(--navy); background: none; border: 2px solid var(--navy); padding: 0.5em 0.9em; border-radius: 2px; cursor: pointer; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; border-bottom: 5px solid var(--orange); display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--concrete); }
  .nav .btn { text-align: center; margin-top: 1rem; }
  .split, .contact .wrap { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .products { grid-template-columns: 1fr; }
  .card { grid-template-columns: 36% 1fr; }
  .card--feature { grid-template-columns: 1fr; }
  .beam ul { grid-template-columns: 1fr; }
  .beam li, .beam li + li { padding: 0.8rem 0; border-left: 0; }
  .beam li + li { border-top: 2px solid rgba(255,255,255,0.4); }
  .services li { grid-template-columns: 1fr; gap: 0.25rem; }
  .utility .wrap { justify-content: flex-start; gap: 1rem; }
  .logo img { width: 150px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stock { grid-template-columns: 1fr; }
  .stock__photo { height: 200px; min-height: 0; }
  .page-head h1 { font-size: 2.4rem; }
}
