/* ==========================================================================
   TSP Group — design tokens
   Palette: charcoal + safety yellow (their original wear-parts brand colour)
   Display type: Oswald (condensed, industrial). Body: Inter.
   Signature motif: the chevron "cutting edge" — used as dividers, bullets,
   the logo mark, and hover states — echoing the company's core product.
   ========================================================================== */

:root {
  --dark: #17181a;
  --dark-2: #212225;
  --dark-3: #2b2c30;
  --yellow: #ffd200;
  --yellow-dark: #e0ba00;
  --white: #ffffff;
  --bg-light: #f4f4f2;
  --bg-light-2: #ececea;
  --text: #26262a;
  --text-muted: #6b6c70;
  --border: #e4e4e1;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --radius: 3px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--dark);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; color: var(--text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Section eyebrow with chevron marker — the recurring "cutting edge" motif */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--yellow-dark);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: ''; width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--yellow);
}
.eyebrow.on-dark { color: var(--yellow); }

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--dark); color: #cfd0d2; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.center { text-align: center; }
.max-w { max-width: 680px; margin-left: auto; margin-right: auto; }

/* Chevron divider between sections, echoing a blade edge */
.chevron-divider {
  height: 22px;
  background:
    linear-gradient(135deg, transparent 49%, var(--yellow) 49.5%, var(--yellow) 50.5%, transparent 51%) 0 0/44px 44px repeat-x,
    linear-gradient(-135deg, transparent 49%, var(--yellow) 49.5%, var(--yellow) 50.5%, transparent 51%) 0 0/44px 44px repeat-x;
  background-color: var(--dark);
  opacity: .9;
}

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { border-color: var(--dark); color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-sm { padding: 11px 18px; font-size: .78rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------------------------------- Top bar ---------------------------------- */
.topbar { background: var(--dark); color: #9a9b9e; font-size: .82rem; }
.topbar-inner { display: flex; gap: 28px; align-items: center; justify-content: flex-end; padding: 8px 24px; }
.topbar-phone { color: var(--yellow); font-weight: 600; }
@media (max-width: 720px) {
  .topbar-item:not(.topbar-phone) { display: none; }
  .topbar-inner { justify-content: space-between; }
}

/* ---------------------------------- Header / nav ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--yellow);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-mark { color: var(--yellow); display: inline-flex; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.brand-word-accent { color: var(--yellow); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: #d7d8da;
  position: relative; padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--yellow); transition: right .2s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a.active:not(.btn)::after { right: 0; }
.site-nav a.active:not(.btn) { color: var(--white); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 78px; left: 0; right: 0; background: var(--dark-2);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    border-bottom: 3px solid var(--yellow);
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a { width: 100%; padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-cta { margin: 12px 24px; }
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 140px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--dark) 0%, var(--dark) 38%, rgba(23,24,26,.55) 62%, rgba(23,24,26,.15) 100%),
    url('/assets/images/hero-graphic.svg') right center / auto 115% no-repeat,
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, var(--dark) 100%);
  background-blend-mode: normal, normal, normal;
}
@media (max-width: 760px) {
  .hero::before { background-image: linear-gradient(180deg, var(--dark) 55%, rgba(23,24,26,.65) 100%), url('/assets/images/hero-graphic.svg'), linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, var(--dark) 100%); background-position: center, bottom center, center; background-size: cover, 140% auto, cover; }
}
.hero-inner { position: relative; max-width: 760px; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { color: var(--white); }
.hero p.lead { color: #c9cacd; font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* Page (interior) sub-header banner used on Products/About/News/Contact */
.page-hero {
  background:
    linear-gradient(100deg, var(--dark) 0%, var(--dark) 55%, rgba(23,24,26,.4) 100%),
    url('/assets/images/hero-graphic.svg') right -60px top -80px / auto 220% no-repeat,
    var(--dark);
  color: var(--white);
  padding: 70px 0 46px;
  position: relative;
  border-bottom: 3px solid var(--yellow);
}
.page-hero h1 { color: var(--white); margin-bottom: 6px; }
.breadcrumb { color: #9a9b9e; font-size: .85rem; }
.breadcrumb a { color: var(--yellow); }

/* ---------------------------------- Cards / grids ---------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.process-card { text-align: left; }
.process-card .num {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: var(--yellow); -webkit-text-stroke: 1px var(--dark);
  margin-bottom: 6px; display: block;
}
.process-card h3 { margin-bottom: 10px; }

.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--dark); color: var(--yellow); border-radius: var(--radius); margin-bottom: 18px;
}

/* Timeline (Our History) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 18px);
}
.timeline-item { position: relative; padding-top: 46px; }
.timeline-item::before {
  content: ''; position: absolute; top: 10px; left: 0; width: 22px; height: 22px;
  background: var(--yellow); border: 3px solid var(--dark); border-radius: 50%;
}
.timeline-year { font-family: var(--font-display); font-weight: 700; color: var(--yellow-dark); font-size: 1.1rem; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 34px; }
  .timeline::before { display: none; }
}

/* Testimonials */
.testimonial-card {
  background: var(--dark-2); color: #d7d8da; padding: 30px 28px; border-radius: var(--radius);
  border-left: 4px solid var(--yellow);
}
.testimonial-card p { color: #d7d8da; font-style: italic; }
.testimonial-card .who { font-family: var(--font-display); color: var(--white); font-weight: 600; letter-spacing: .03em; font-size: .92rem; }
.testimonial-card .who span { color: #9a9b9e; font-weight: 400; text-transform: none; font-family: var(--font-body); display: block; font-size: .85rem; }

/* Associates / logos strip */
.assoc-strip { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; opacity: .85; }
.assoc-strip img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .75; transition: opacity .2s, filter .2s; }
.assoc-strip img:hover { filter: none; opacity: 1; }

/* CTA strip */
.cta-strip { background: var(--yellow); }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; padding: 34px 0; flex-wrap: wrap; gap: 16px; }
.cta-strip h3 { margin: 0; color: var(--dark); }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--dark); color: #9a9b9e; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.brand-footer { color: var(--white); margin-bottom: 16px; }
.footer-col p { font-size: .92rem; }
.muted-sm { font-size: .85rem; }
.social-link { color: var(--yellow); font-size: .85rem; font-weight: 600; }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.footer-contact li { margin-bottom: 10px; }
.footer-contact span { color: #6d6e71; display: inline-block; min-width: 62px; }
.footer-contact a:hover { color: var(--yellow); }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  background: var(--dark-2); border: 1px solid #35363a; color: var(--white);
  padding: 12px 14px; border-radius: var(--radius); font-family: var(--font-body); font-size: .92rem;
}
.newsletter-form input::placeholder { color: #6d6e71; }

.footer-bottom { border-top: 1px solid #2a2b2e; padding: 18px 0; font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px;
  background: var(--yellow); color: var(--dark); display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------------------------------- Forms (contact page) ---------------------------------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--font-display); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; color: var(--dark); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; color: var(--text); background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--yellow-dark); }
.form-note { font-size: .82rem; color: var(--text-muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: .92rem; }
.alert-success { background: #e7f7ec; color: #1c6b3a; border: 1px solid #b9e6c6; }
.alert-error { background: #fdeceb; color: #9c2a22; border: 1px solid #f6c3bf; }

.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info-list .label { font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow-dark); min-width: 74px; }

/* News item */
.news-item { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: center; background: var(--bg-light); border-radius: var(--radius); overflow: hidden; }
.news-item img { height: 100%; object-fit: cover; }
.news-item-body { padding: 30px 34px 30px 0; }
@media (max-width: 760px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item-body { padding: 24px; }
}

/* Product offering image block */
.product-figure { text-align: center; }
.product-figure img { border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); margin: 0 auto; }
.product-figure figcaption { margin-top: 14px; color: var(--text-muted); font-size: .9rem; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }
.category-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s;
}
.category-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.category-card .chev {
  width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-left: 11px solid var(--yellow); margin-bottom: 14px;
}
.category-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.category-card p { font-size: .9rem; margin-bottom: 0; }
