/* Western Rock Products — westrockpro.com
   Palette and type are locked by the brand profile. Do not introduce new hues:
   derive shades from these tokens instead. */

:root {
  --charcoal: #2B2B2B;   /* official logo wordmark colour */
  --stone:    #303030;
  --grey:     #6D6D6D;   /* official logo icon-text colour */
  --silver:   #CACACA;
  --white:    #FFFFFF;
  --orange:   #FD5521;   /* official logo mark colour */

  /* derived, not invented */
  --tint:        #F4F4F4;
  --tint-2:      #EAEAEA;
  --orange-dark: #DC3F10;
  --hairline:    rgba(43, 43, 43, .14);
  --hairline-dk: rgba(255, 255, 255, .16);

  /* Teko is the logo wordmark face per the official brand guide; Nunito Sans
     substitutes Avenir for body. Two families, one Google Fonts request. */
  --ff-head: "Teko", "Oswald", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --ff-ui:   "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(43,43,43,.06), 0 6px 18px rgba(43,43,43,.07);
  --shadow-lift: 0 2px 4px rgba(43,43,43,.08), 0 14px 32px rgba(43,43,43,.12);
  --t: 180ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 .45em;
  letter-spacing: .005em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2.125rem, 4.2vw, 3.125rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--charcoal); text-decoration-color: var(--silver); text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.kicker {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 .9rem;
  display: block;
}
.on-dark .kicker, .sect--dark .kicker { color: var(--silver); }

.lede { font-size: 1.125rem; color: var(--grey); }
.rule { width: 68px; height: 3px; background: var(--orange); border: 0; margin: 0 0 1.75rem; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--charcoal); color: var(--white);
  padding: .75rem 1.25rem; font-family: var(--ff-head);
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
.site-head__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 232px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav__list a {
  font-family: var(--ff-ui); font-weight: 700;
  font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal); white-space: nowrap;
}
.nav__list a[aria-current="page"] { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-ui); font-weight: 700;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--ghost { border-color: var(--silver); color: var(--charcoal); background: transparent; }
.btn--ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn--on-dark { border-color: var(--hairline-dk); color: var(--white); background: transparent; }
.btn--on-dark:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.07); }
.btn--lg { padding: 1.05rem 2rem; font-size: .875rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: .6rem .7rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: var(--charcoal); stroke-width: 2; }

/* ---------- sections ---------- */
.sect { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.sect--tint { background: var(--tint); }
.sect--dark { background: var(--charcoal); color: var(--white); }
.sect--dark p { color: var(--silver); }
.sect--dark h2, .sect--dark h3 { color: var(--white); }
.sect__head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  border-bottom: 4px solid var(--orange);
}
.hero h1 { color: var(--white); max-width: 22ch; }
.hero p { color: var(--silver); font-size: 1.1875rem; max-width: 56ch; }
.hero__tag {
  font-family: var(--ff-ui); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  font-size: .8125rem; color: var(--orange); margin-bottom: 1.25rem; display: block;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.hero--page { padding: clamp(2.75rem, 5vw, 4.25rem) 0; border-bottom-width: 3px; }
.hero--page h1 { font-size: clamp(1.875rem, 4vw, 3rem); max-width: 30ch; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); }
.stat { background: var(--white); padding: 1.75rem 1.5rem; }
.stat__n { font-family: var(--ff-head); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--charcoal); }
.stat__n em { color: var(--orange); font-style: normal; }
.stat__l { font-family: var(--ff-ui); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-top: .5rem; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--charcoal); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
a.card:hover h3 { color: var(--orange); }
.card h3 { transition: color var(--t); }
.card p { color: var(--grey); font-size: .9375rem; margin-bottom: 0; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card__more {
  margin-top: auto; padding-top: 1.1rem;
  font-family: var(--ff-ui); font-weight: 700; font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--orange);
}
.card--dark { background: var(--stone); border-color: var(--hairline-dk); color: var(--white); }
.card--dark p { color: var(--silver); }

.sku {
  font-family: var(--ff-ui); font-weight: 700; font-size: .6875rem;
  letter-spacing: .1em; color: var(--grey);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: .2rem .45rem; white-space: nowrap;
}

.tags { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font-size: .8125rem; color: var(--grey);
  background: var(--tint); border-radius: var(--radius); padding: .28rem .6rem;
}

.price { font-family: var(--ff-head); font-weight: 600; font-size: 2.25rem; color: var(--charcoal); line-height: 1; }
.price em { font-style: normal; color: var(--orange); }
.price__unit { font-family: var(--ff-body); font-size: .875rem; color: var(--grey); letter-spacing: 0; }
.price--ask { font-size: 1.125rem; color: var(--grey); }

/* ---------- list of links ---------- */
.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.linklist li { border-bottom: 1px solid var(--hairline); }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .25rem; text-decoration: none;
  transition: padding var(--t), background var(--t);
}
.linklist a:hover { background: var(--tint); padding-inline: .75rem; }
.linklist__name { font-family: var(--ff-head); font-weight: 600; font-size: 1.1875rem; text-transform: uppercase; letter-spacing: .01em; }
.linklist__meta { font-size: .875rem; color: var(--grey); }

/* ---------- prose / spec table ---------- */
.spec { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .9375rem; }
.spec th, .spec td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.spec th { font-family: var(--ff-ui); font-weight: 700; color: var(--grey); width: 38%; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.75rem; background: var(--tint); }
.aside h3 { font-size: 1.0625rem; }
.aside p { font-size: .9375rem; color: var(--grey); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--ff-ui); font-weight: 700; font-size: .8125rem; letter-spacing: .04em; }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--charcoal);
  padding: .8rem .85rem; background: var(--white);
  border: 1px solid var(--silver); border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(253,85,33,.16);
}
.field textarea { min-height: 132px; resize: vertical; }
.field__hint { font-size: .8125rem; color: var(--grey); }
.field__err { font-size: .8125rem; color: var(--orange-dark); display: none; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--orange-dark); }
.field.is-bad .field__err { display: block; }
.form__note { font-size: .8125rem; color: var(--grey); }
.form__ok, .form__fail {
  display: none; padding: 1rem 1.15rem; border-radius: var(--radius); font-size: .9375rem;
}
.form__ok { background: var(--tint); border-left: 3px solid var(--orange); }
.form__fail { background: var(--tint); border-left: 3px solid var(--orange-dark); }
.is-sent .form__ok { display: block; }
.is-failed .form__fail { display: block; }
.is-sent .form__fields { display: none; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: .8125rem; color: var(--silver); margin-bottom: 1rem; }
.crumb a { color: var(--silver); text-decoration: none; }
.crumb a:hover { color: var(--white); }
.crumb span { opacity: .6; margin-inline: .45rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--charcoal); color: var(--silver); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .9375rem; }
.site-foot a { color: var(--silver); text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.foot__grid h4 { font-family: var(--ff-ui); color: var(--white); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.foot__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-foot img { width: 200px; margin-bottom: 1.25rem; }
.foot__tag { font-family: var(--ff-ui); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--orange); }
.foot__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline-dk);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8125rem;
}

/* ---------- reveal ---------- */
.rev { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease, transform 420ms ease; }
.rev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rev { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__list { gap: 1.1rem; }
  .nav__list a { font-size: .75rem; }
  .brand img { width: 200px; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--hairline);
    display: none; padding: .5rem 0 1.25rem;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding-inline: 24px; }
  .nav__list li { border-bottom: 1px solid var(--hairline); }
  .nav__list a { display: block; padding: .95rem 0; font-size: .875rem; }
  .nav__list .btn { margin-top: 1rem; width: 100%; }
  .nav__list li:last-child { border-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .site-head__bar { min-height: 68px; }
  .brand img { width: 178px; }
}
@media (max-width: 430px) {
  .wrap { padding-inline: 18px; }
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .card { padding: 1.4rem; }
}

/* ---------- long-form prose (privacy policy, terms) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.75rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.75rem; }
.prose p, .prose li { font-size: 1rem; line-height: 1.7; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: .7rem 1rem .7rem 0;
                       border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { font-family: var(--ff-ui); font-weight: 700; font-size: .8125rem;
            letter-spacing: .04em; text-transform: uppercase; color: var(--grey); }
.prose .updated { font-size: .875rem; color: var(--grey); margin-bottom: 2rem; }
.prose .note { background: var(--tint); border-left: 3px solid var(--orange);
               padding: 1rem 1.25rem; margin: 0 0 1.5rem; font-size: .9375rem; }

/* ---------- photography ---------- */

/* A card whose top is a photo. aspect-ratio reserves the space before the
   image loads, so nothing shifts as the page settles. */
.card--photo { padding: 0; overflow: hidden; }
.card__img { display: block; aspect-ratio: 3 / 2; background: var(--tint-2); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block;
                 transition: transform 420ms cubic-bezier(.4,0,.2,1); }
a.card--photo:hover .card__img img { transform: scale(1.04); }
.card--photo .card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex;
                           flex-direction: column; flex: 1; }
.card--photo h3 { margin-bottom: .45rem; }

/* Hero with a photograph behind the text. The overlay is a charcoal gradient,
   not plain black: plain black greys the image out, and at the contrast we
   need for white display type the picture stops reading as a photograph. */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; }
.hero--photo > .hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero--photo > .hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Heavy enough for white display type on the left where the words are, light
   enough on the right that the photograph is still a photograph. The first
   version was 95% across most of the frame and the image may as well not have
   been there. */
.hero--photo::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(96deg, rgba(43,43,43,.93) 0%,  rgba(43,43,43,.86) 26%,
                           rgba(43,43,43,.55) 52%, rgba(43,43,43,.16) 78%,
                           rgba(43,43,43,.08) 100%),
    linear-gradient(to top, rgba(43,43,43,.55) 0%, rgba(43,43,43,0) 38%);
}
/* Give the photograph room. Without a floor the copy sets the height and the
   image is a 200px strip. */
.hero--photo { min-height: clamp(460px, 52vw, 640px); display: flex; align-items: center; }
.hero--photo > .wrap { width: 100%; }
/* Keep the subject out from behind the headline as the viewport narrows. */
.hero--photo > .hero__bg img { object-position: 62% center; }

@media (max-width: 860px) {
  /* On a phone the copy fills the width, so there is nowhere for the image to
     show from behind it — darkened enough to read, the photograph became a
     flat charcoal panel. So stop layering: the image becomes a real band above
     the text, where it is actually seen, and the headline sits on solid
     charcoal where it is unambiguously legible.
     This works because .hero__bg precedes .wrap in the DOM. */
  .hero--photo { min-height: 0; display: block; padding-top: 0; }
  .hero--photo::after { content: none; }
  .hero--photo > .hero__bg {
    position: relative; inset: auto; z-index: 0;
    height: clamp(180px, 46vw, 260px); margin-bottom: clamp(2rem, 7vw, 2.75rem);
  }
  .hero--photo > .hero__bg img { object-position: 58% center; }
  /* A short fade into the charcoal so the band does not end on a hard line. */
  .hero--photo > .hero__bg::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
    background: linear-gradient(to top, var(--charcoal), rgba(43,43,43,0));
  }
}

/* A full-width band of photograph between sections. */
.band { position: relative; overflow: hidden; }
.band img { width: 100%; height: clamp(220px, 32vw, 400px); object-fit: cover; display: block; }
.band__cap {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 0;
  background: linear-gradient(to top, rgba(43,43,43,.88), rgba(43,43,43,0));
  color: var(--white);
}
.band__cap p { margin: 0; color: var(--white); font-family: var(--ff-head);
               font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.875rem);
               text-transform: uppercase; letter-spacing: .01em; max-width: 30ch; }

/* Photo beside prose. */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.figure figcaption { font-size: .8125rem; color: var(--grey); margin-top: .6rem; }
