/**
 * Fasteners Theme — front-end styles.
 *
 * Aesthetic direction: industrial / utilitarian. Graphite + steel base, a
 * single high-visibility "safety orange" signal accent (the color of caution
 * tape and torque markings), sharp corners, a precise grid, and a technical
 * monospaced face for spec labels. Designed to read as credible engineering
 * documentation to procurement engineers — restrained, dense where it counts,
 * generous whitespace where it breathes.
 */

/* ----------------------------------------------------------------------
   Design tokens
   ---------------------------------------------------------------------- */
:root {
	--ft-ink:        #15191e;   /* near-black graphite text */
	--ft-graphite:   #2b3037;   /* headings */
	--ft-steel:      #4a525c;   /* secondary text */
	--ft-muted:      #768089;   /* meta / captions */
	--ft-line:       #d8dde2;   /* hairlines */
	--ft-panel:      #f4f6f8;   /* light panel fill */
	--ft-panel-2:    #eaeef2;   /* alt panel */
	--ft-white:      #ffffff;

	--ft-navy:       #1d2733;   /* deep header / footer */
	--ft-navy-2:     #141b24;

	--ft-accent:     #e8530e;   /* safety orange — the signal color */
	--ft-accent-ink: #b53d06;   /* darker hover */
	--ft-accent-soft:#fdeee6;

	--ft-blue:       #2f6db0;   /* link blue, used sparingly */

	--ft-radius:     3px;       /* tight, machined corners */
	--ft-shadow:     0 1px 2px rgba(20,27,36,.06), 0 4px 16px rgba(20,27,36,.06);
	--ft-shadow-lg:  0 8px 40px rgba(20,27,36,.14);

	--ft-maxw:       1200px;
	--ft-gap:        clamp(1rem, 2vw, 1.75rem);
	--ft-header-h:   76px;

	--ft-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--ft-head: "Archivo", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--ft-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ft-header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--ft-sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ft-ink);
	background: var(--ft-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	font-family: var(--ft-head);
	color: var(--ft-graphite);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
	font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--ft-blue); text-decoration: none; }
a:hover { color: var(--ft-accent-ink); text-decoration: underline; }

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

.ft-container {
	width: 100%;
	max-width: var(--ft-maxw);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.ft-content-area { padding-block: clamp(1.75rem, 4vw, 3rem); }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	width: 1px; height: 1px; overflow: hidden;
	padding: 0; margin: -1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--ft-accent); color: #fff; padding: .75rem 1.25rem;
	font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--ft-accent); outline-offset: 2px; }

/* ----------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */
.ft-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: .5rem;
	font-family: var(--ft-head);
	font-weight: 600; font-size: .95rem; letter-spacing: .01em;
	line-height: 1; text-decoration: none !important;
	padding: .8rem 1.4rem;
	border-radius: var(--ft-radius);
	border: 2px solid transparent;
	cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
	white-space: nowrap;
}
.ft-btn:active { transform: translateY(1px); }
.ft-btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

.ft-btn-primary { background: var(--ft-accent); color: #fff; }
.ft-btn-primary:hover { background: var(--ft-accent-ink); color: #fff; }

.ft-btn-secondary { background: var(--ft-graphite); color: #fff; }
.ft-btn-secondary:hover { background: var(--ft-navy); color: #fff; }

.ft-btn-outline { background: transparent; color: var(--ft-graphite); border-color: var(--ft-line); }
.ft-btn-outline:hover { border-color: var(--ft-graphite); color: var(--ft-graphite); }

/* ----------------------------------------------------------------------
   Top bar + Header (sticky)
   ---------------------------------------------------------------------- */
.ft-topbar {
	background: var(--ft-navy-2); color: #c3ccd6; font-size: .85rem;
}
.ft-topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.ft-topbar a { color: #c3ccd6; }
.ft-topbar a:hover { color: #fff; }
.ft-topbar-contact { display: flex; gap: 1.25rem; }
.ft-utility-menu { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

.ft-header {
	position: sticky; top: 0; z-index: 200;
	background: var(--ft-white);
	border-bottom: 1px solid var(--ft-line);
	transition: box-shadow .2s ease;
}
.ft-header.is-stuck { box-shadow: var(--ft-shadow); }
.ft-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem; min-height: var(--ft-header-h);
}
.ft-branding { display: flex; align-items: center; }
.ft-branding img, .custom-logo { max-height: 46px; width: auto; }
.ft-site-title {
	font-family: var(--ft-head); font-weight: 800; font-size: 1.35rem;
	color: var(--ft-graphite); letter-spacing: -.02em; text-decoration: none;
}
.ft-site-title:hover { color: var(--ft-accent); text-decoration: none; }

/* Primary nav */
.ft-primary-nav { margin-left: auto; }
.ft-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.ft-menu > li { position: relative; }
.ft-menu > li > a {
	display: block; padding: .65rem .85rem; color: var(--ft-graphite);
	font-family: var(--ft-head); font-weight: 600; font-size: .96rem;
	text-decoration: none; border-radius: var(--ft-radius);
}
.ft-menu > li > a:hover { color: var(--ft-accent); }
.ft-menu .ft-menu-cta a { margin-left: .5rem; }
.ft-menu .ft-menu-cta a:hover { color: #fff; }

/* Dropdown / submenu */
.ft-menu .sub-menu, .ft-megapanel {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: #fff; border: 1px solid var(--ft-line); border-radius: var(--ft-radius);
	box-shadow: var(--ft-shadow-lg); padding: .5rem;
	list-style: none; margin: 0;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 50;
}
.ft-menu li:hover > .sub-menu,
.ft-menu li:focus-within > .sub-menu,
.ft-menu li:hover > .ft-megapanel,
.ft-menu li:focus-within > .ft-megapanel {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.ft-menu .sub-menu a { display: block; padding: .55rem .75rem; color: var(--ft-steel); border-radius: var(--ft-radius); font-size: .92rem; }
.ft-menu .sub-menu a:hover { background: var(--ft-panel); color: var(--ft-graphite); }
.submenu-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* Mega menu */
.ft-megapanel { width: min(680px, 90vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem 1rem; padding: 1rem; }
.ft-megapanel .mega-col-title { font-family: var(--ft-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ft-muted); padding: .4rem .5rem; }
.ft-megapanel a { display: block; padding: .4rem .5rem; font-size: .92rem; color: var(--ft-steel); border-radius: var(--ft-radius); }
.ft-megapanel a:hover { background: var(--ft-accent-soft); color: var(--ft-accent-ink); }

/* Mobile toggle */
.ft-menu-toggle {
	display: none; width: 46px; height: 46px; border: 1px solid var(--ft-line);
	background: #fff; border-radius: var(--ft-radius); cursor: pointer; position: relative;
}
.ft-menu-toggle-bar, .ft-menu-toggle-bar::before, .ft-menu-toggle-bar::after {
	content: ""; position: absolute; left: 50%; transform: translateX(-50%);
	width: 22px; height: 2px; background: var(--ft-graphite); transition: .2s ease;
}
.ft-menu-toggle-bar { top: 50%; margin-top: -1px; }
.ft-menu-toggle-bar::before { top: -7px; }
.ft-menu-toggle-bar::after  { top: 7px; }
.ft-menu-toggle[aria-expanded="true"] .ft-menu-toggle-bar { background: transparent; }
.ft-menu-toggle[aria-expanded="true"] .ft-menu-toggle-bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.ft-menu-toggle[aria-expanded="true"] .ft-menu-toggle-bar::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ----------------------------------------------------------------------
   Breadcrumbs
   ---------------------------------------------------------------------- */
.ft-breadcrumbs { margin-bottom: 1.5rem; font-size: .85rem; }
.ft-breadcrumb-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; color: var(--ft-muted); }
.ft-crumb + .ft-crumb::before { content: "/"; margin-right: .4rem; color: var(--ft-line); }
.ft-crumb a { color: var(--ft-steel); }
.ft-crumb-current { color: var(--ft-graphite); font-weight: 600; }

/* ----------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.ft-hero {
	position: relative; color: #fff;
	background: linear-gradient(135deg, var(--ft-navy) 0%, var(--ft-navy-2) 100%);
	background-size: cover; background-position: center;
}
.ft-hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(20,27,36,.92) 0%, rgba(20,27,36,.6) 60%, rgba(20,27,36,.35) 100%);
}
.ft-hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 9vw, 7rem); max-width: 760px; }
.ft-hero-eyebrow {
	font-family: var(--ft-mono); text-transform: uppercase; letter-spacing: .18em;
	font-size: .78rem; color: var(--ft-accent); margin: 0 0 1rem;
	padding-left: 2.5rem; position: relative;
}
.ft-hero-eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 2rem; height: 2px; background: var(--ft-accent); }
.ft-hero-title { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: 1rem; }
.ft-hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #cfd8e2; max-width: 60ch; margin-bottom: 2rem; }
.ft-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ----------------------------------------------------------------------
   Sections (homepage + general)
   ---------------------------------------------------------------------- */
.ft-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ft-section:nth-of-type(even) { background: var(--ft-panel); }
.ft-section-title { text-align: center; }
.ft-section-sub { text-align: center; color: var(--ft-steel); max-width: 62ch; margin: 0 auto 2.25rem; }
.ft-section-body { max-width: 70ch; margin-inline: auto; }
.ft-section-action { text-align: center; margin-top: 2rem; }

/* Card grid */
.ft-card-grid {
	display: grid; gap: var(--ft-gap);
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* Category cards */
.ft-cat-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--ft-line); border-radius: var(--ft-radius);
	overflow: hidden; text-decoration: none !important; transition: border-color .15s, transform .12s, box-shadow .15s;
}
.ft-cat-card:hover { transform: translateY(-2px); border-color: var(--ft-accent); box-shadow: var(--ft-shadow); }
.ft-cat-card-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ft-cat-card-title { font-family: var(--ft-head); font-weight: 700; color: var(--ft-graphite); padding: .9rem 1rem .2rem; }
.ft-cat-card-count { font-family: var(--ft-mono); font-size: .78rem; color: var(--ft-muted); padding: 0 1rem 1rem; }

/* Industry grid */
.ft-industry-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
.ft-industry-card {
	display: flex; align-items: center; padding: 1.1rem 1.25rem; background: #fff;
	border: 1px solid var(--ft-line); border-left: 3px solid var(--ft-accent);
	border-radius: var(--ft-radius); font-family: var(--ft-head); font-weight: 600;
	color: var(--ft-graphite); text-decoration: none !important; transition: background .15s;
}
.ft-industry-card:hover { background: var(--ft-accent-soft); }

/* Media + text */
.ft-media-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ft-media-text-img img { width: 100%; border-radius: var(--ft-radius); box-shadow: var(--ft-shadow); }
.ft-media-text .ft-section-title { text-align: left; }
.ft-media-text-reverse .ft-media-text-img { order: -1; }

/* Certifications */
.ft-cert-logos { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: center; list-style: none; padding: 0; margin: 2rem 0; }
.ft-cert-logos img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .7; transition: .2s; }
.ft-cert-logos img:hover { filter: none; opacity: 1; }

/* Why us */
.ft-why-grid { display: grid; gap: var(--ft-gap); grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.ft-why-item { background: #fff; border: 1px solid var(--ft-line); border-top: 3px solid var(--ft-accent); border-radius: var(--ft-radius); padding: 1.75rem 1.5rem; }
.ft-why-icon { font-size: 1.75rem; display: block; margin-bottom: .75rem; }
.ft-why-title { margin-bottom: .4rem; }

/* CTA band */
.ft-cta-band { background: var(--ft-navy) !important; color: #fff; }
.ft-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ft-cta-title { color: #fff; margin: 0; }
.ft-cta-sub { color: #cfd8e2; margin: .5rem 0 0; }
.ft-cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Inline CTA */
.ft-inline-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
	background: var(--ft-panel); border: 1px solid var(--ft-line); border-left: 4px solid var(--ft-accent);
	border-radius: var(--ft-radius); padding: 1.75rem; margin: 2.5rem 0;
}
.ft-inline-cta h2 { font-size: 1.3rem; margin: 0 0 .35rem; }
.ft-inline-cta p { margin: 0; color: var(--ft-steel); }
.ft-inline-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ----------------------------------------------------------------------
   Product card
   ---------------------------------------------------------------------- */
.ft-product-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--ft-line); border-radius: var(--ft-radius); overflow: hidden;
	transition: border-color .15s, transform .12s, box-shadow .15s;
}
.ft-product-card:hover { transform: translateY(-2px); border-color: var(--ft-accent); box-shadow: var(--ft-shadow); }
.ft-product-card-link { display: flex; flex-direction: column; text-decoration: none !important; flex: 1; }
.ft-product-card-img img { aspect-ratio: 1/1; object-fit: cover; width: 100%; background: var(--ft-panel); }
.ft-product-card-body { padding: .9rem 1rem; }
.ft-product-card-title { display: block; font-family: var(--ft-head); font-weight: 700; color: var(--ft-graphite); font-size: 1rem; line-height: 1.3; }
.ft-product-card-meta { display: block; font-family: var(--ft-mono); font-size: .76rem; color: var(--ft-muted); margin-top: .35rem; }
.ft-product-card-cta { display: block; text-align: center; padding: .7rem; font-family: var(--ft-head); font-weight: 600; font-size: .85rem; color: var(--ft-accent-ink); border-top: 1px solid var(--ft-line); background: var(--ft-panel); }
.ft-product-card-cta:hover { background: var(--ft-accent); color: #fff; text-decoration: none; }

/* ----------------------------------------------------------------------
   Single product
   ---------------------------------------------------------------------- */
.ft-product-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); margin-bottom: 2.5rem; }
.ft-gallery-main img { width: 100%; border: 1px solid var(--ft-line); border-radius: var(--ft-radius); background: var(--ft-panel); }
.ft-gallery-thumbs { display: flex; gap: .6rem; flex-wrap: wrap; list-style: none; padding: 0; margin: .75rem 0 0; }
.ft-gallery-thumbs img { width: 74px; height: 74px; object-fit: cover; border: 1px solid var(--ft-line); border-radius: var(--ft-radius); }

.ft-product-title { margin-bottom: .5rem; }
.ft-product-model { font-family: var(--ft-mono); font-size: .9rem; color: var(--ft-steel); }
.ft-product-model strong { color: var(--ft-graphite); }
.ft-product-blurb { color: var(--ft-steel); margin: 1rem 0 1.5rem; }

.ft-product-quickspecs { list-style: none; padding: 0; margin: 0 0 1.75rem; border-top: 1px solid var(--ft-line); }
.ft-product-quickspecs li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--ft-line); }
.ft-product-quickspecs .qs-label { font-family: var(--ft-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ft-muted); }
.ft-product-quickspecs .qs-value { font-weight: 600; color: var(--ft-graphite); text-align: right; }

.ft-product-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ft-product-taxlinks { list-style: none; padding: 1rem 0 0; margin: 0; border-top: 1px solid var(--ft-line); font-size: .88rem; }
.ft-product-taxlinks li { margin-bottom: .4rem; color: var(--ft-steel); }
.ft-product-taxlinks .tl-label { font-family: var(--ft-mono); text-transform: uppercase; font-size: .74rem; letter-spacing: .05em; color: var(--ft-muted); margin-right: .35rem; }

.ft-product-description, .ft-product-specs, .ft-product-applications,
.ft-product-downloads, .ft-product-faq, .ft-product-inquiry, .ft-product-related {
	margin-block: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--ft-line);
}
.ft-product-description h2, .ft-product-specs h2, .ft-product-applications h2,
.ft-product-downloads h2, .ft-product-faq h2, .ft-product-inquiry h2, .ft-product-related h2 {
	font-size: 1.4rem; margin-bottom: 1.25rem;
}

/* Spec table */
.ft-spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ft-spec-table th, .ft-spec-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--ft-line); }
.ft-spec-table th { width: 38%; font-family: var(--ft-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ft-muted); font-weight: 600; vertical-align: top; }
.ft-spec-table tr:nth-child(even) { background: var(--ft-panel); }
.ft-spec-table td { font-weight: 600; color: var(--ft-graphite); }

.ft-app-links, .ft-download-list { list-style: none; padding: 0; margin: 0; }
.ft-app-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ft-app-links a { display: inline-block; padding: .45rem .9rem; background: var(--ft-panel); border: 1px solid var(--ft-line); border-radius: 100px; font-size: .88rem; color: var(--ft-steel); }
.ft-app-links a:hover { background: var(--ft-accent-soft); color: var(--ft-accent-ink); text-decoration: none; }

.ft-download-list li { margin-bottom: .5rem; }
.ft-download-list a { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: var(--ft-panel); border: 1px solid var(--ft-line); border-radius: var(--ft-radius); color: var(--ft-graphite); font-weight: 600; font-size: .92rem; }
.ft-download-list a:hover { border-color: var(--ft-accent); text-decoration: none; }
.ft-dl-icon { color: var(--ft-accent); font-weight: 700; }

/* ----------------------------------------------------------------------
   FAQ (details/summary)
   ---------------------------------------------------------------------- */
.ft-faq-list { max-width: 820px; margin-inline: auto; }
.ft-faq-item { border: 1px solid var(--ft-line); border-radius: var(--ft-radius); margin-bottom: .6rem; background: #fff; }
.ft-faq-q {
	cursor: pointer; padding: 1rem 1.25rem; font-family: var(--ft-head); font-weight: 600;
	color: var(--ft-graphite); list-style: none; position: relative; padding-right: 3rem;
}
.ft-faq-q::-webkit-details-marker { display: none; }
.ft-faq-q::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ft-accent); line-height: 1; }
.ft-faq-item[open] .ft-faq-q::after { content: "–"; }
.ft-faq-a { padding: 0 1.25rem 1.1rem; color: var(--ft-steel); }
.ft-faq-a p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------------
   Archive layout (products) + facets
   ---------------------------------------------------------------------- */
.ft-archive-header { margin-bottom: 2rem; }
.ft-archive-intro { color: var(--ft-steel); max-width: 75ch; }
.ft-archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem,3vw,2.5rem); align-items: start; }
.ft-archive-sidebar { position: sticky; top: calc(var(--ft-header-h) + 1rem); }
.ft-facet { margin-bottom: 1.5rem; border: 1px solid var(--ft-line); border-radius: var(--ft-radius); overflow: hidden; }
.ft-facet-title { font-family: var(--ft-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--ft-graphite); margin: 0; padding: .65rem .9rem; }
.ft-facet-list { list-style: none; margin: 0; padding: .4rem; }
.ft-facet-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; font-size: .9rem; color: var(--ft-steel); border-radius: var(--ft-radius); }
.ft-facet-list a:hover { background: var(--ft-panel); color: var(--ft-graphite); text-decoration: none; }
.ft-facet-count { font-family: var(--ft-mono); font-size: .76rem; color: var(--ft-muted); }

/* Subterm chips */
.ft-subterms { margin-bottom: 1.75rem; }
.ft-subterm-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.ft-subterm-list a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--ft-line); border-radius: 100px; font-size: .9rem; color: var(--ft-steel); }
.ft-subterm-list a:hover { border-color: var(--ft-accent); color: var(--ft-accent-ink); text-decoration: none; }
.ft-subterm-list span { font-family: var(--ft-mono); font-size: .76rem; color: var(--ft-muted); }

.ft-archive-support { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--ft-line); color: var(--ft-steel); }

/* Related taxonomies */
.ft-related-tax { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--ft-line); }
.ft-related-tax-title { font-size: 1rem; font-family: var(--ft-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ft-muted); }
.ft-related-tax-list { list-style: none; padding: 0; margin: 0; columns: 2; }
.ft-related-tax-list li { margin-bottom: .35rem; }
.ft-related-tax-list a { font-size: .9rem; color: var(--ft-steel); }

/* ----------------------------------------------------------------------
   Blog
   ---------------------------------------------------------------------- */
.ft-blog-grid { display: grid; gap: var(--ft-gap); grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
.ft-blog-card { background: #fff; border: 1px solid var(--ft-line); border-radius: var(--ft-radius); overflow: hidden; display: flex; flex-direction: column; }
.ft-blog-card-img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.ft-blog-card-body { padding: 1.1rem 1.25rem; }
.ft-blog-card-title { font-size: 1.15rem; margin: .3rem 0 .5rem; }
.ft-blog-card-title a { color: var(--ft-graphite); }
.ft-blog-card-title a:hover { color: var(--ft-accent); text-decoration: none; }
.ft-meta { font-family: var(--ft-mono); font-size: .78rem; color: var(--ft-muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.ft-readmore { font-family: var(--ft-head); font-weight: 600; font-size: .9rem; }

.ft-single-post { max-width: 760px; }
.ft-article-title { margin-bottom: .5rem; }
.ft-article-header .ft-meta { margin-bottom: 1.5rem; }
.ft-article-featured { margin: 0 0 2rem; }
.ft-article-featured img { border-radius: var(--ft-radius); width: 100%; }
.ft-entry-content { font-size: 1.05rem; }
.ft-entry-content h2 { margin-top: 2rem; }
.ft-entry-content img { border-radius: var(--ft-radius); margin-block: 1.5rem; }
.ft-entry-content blockquote { border-left: 4px solid var(--ft-accent); padding-left: 1.25rem; margin-left: 0; color: var(--ft-steel); font-style: italic; }
.ft-related-posts { margin-top: 3rem; }

/* ----------------------------------------------------------------------
   Forms
   ---------------------------------------------------------------------- */
.ft-form-wrap { max-width: 720px; }
.ft-form .ft-field { margin-bottom: 1.1rem; }
.ft-form .ft-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ft-form label { display: block; font-family: var(--ft-head); font-weight: 600; font-size: .9rem; color: var(--ft-graphite); margin-bottom: .4rem; }
.ft-form .req { color: var(--ft-accent); }
.ft-form input[type="text"], .ft-form input[type="email"], .ft-form input[type="tel"],
.ft-form input[type="file"], .ft-form select, .ft-form textarea {
	width: 100%; padding: .75rem .9rem; font: inherit; font-size: .98rem;
	border: 1px solid var(--ft-line); border-radius: var(--ft-radius); background: #fff;
	color: var(--ft-ink); transition: border-color .15s, box-shadow .15s;
}
.ft-form input:focus, .ft-form select:focus, .ft-form textarea:focus {
	outline: none; border-color: var(--ft-accent); box-shadow: 0 0 0 3px var(--ft-accent-soft);
}
.ft-form .ft-math input { max-width: 120px; }
.ft-form .ft-submit { margin-top: 1.5rem; }

.ft-form-message { padding: 1rem 1.25rem; border-radius: var(--ft-radius); margin-bottom: 1.5rem; font-weight: 600; }
.ft-form-success { background: #e7f6ec; border: 1px solid #b6e0c4; color: #1d6b3a; }
.ft-form-error   { background: #fdecea; border: 1px solid #f5c2bd; color: #b3261e; }

.ft-contact-layout, .ft-rfq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; margin-top: 2rem; }
.ft-rfq-layout { grid-template-columns: 1.6fr 1fr; }
.ft-contact-list { list-style: none; padding: 0; margin: 0; }
.ft-contact-list li { margin-bottom: 1rem; }
.ft-contact-list .ci-label { display: block; font-family: var(--ft-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ft-muted); }
.ft-rfq-aside { background: var(--ft-panel); border: 1px solid var(--ft-line); border-radius: var(--ft-radius); padding: 1.75rem; }
.ft-rfq-steps { padding-left: 1.2rem; color: var(--ft-steel); }
.ft-rfq-steps li { margin-bottom: .75rem; }

/* ----------------------------------------------------------------------
   Company facts (about)
   ---------------------------------------------------------------------- */
.ft-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1rem; margin: 2rem 0; }
.ft-fact { background: var(--ft-panel); border: 1px solid var(--ft-line); border-top: 3px solid var(--ft-accent); border-radius: var(--ft-radius); padding: 1.25rem; text-align: center; }
.ft-fact dt { font-family: var(--ft-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ft-muted); }
.ft-fact dd { margin: .35rem 0 0; font-family: var(--ft-head); font-weight: 700; font-size: 1.5rem; color: var(--ft-graphite); }

/* Downloads index */
.ft-dl-group { margin-bottom: 2rem; }
.ft-dl-group-title { font-size: 1.1rem; }

/* ----------------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------------- */
.ft-pagination { margin-top: 2.5rem; }
.page-numbers-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; justify-content: center; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
	padding: 0 .75rem; border: 1px solid var(--ft-line); border-radius: var(--ft-radius);
	font-family: var(--ft-head); font-weight: 600; color: var(--ft-steel); text-decoration: none;
}
.page-numbers:hover { border-color: var(--ft-accent); color: var(--ft-accent-ink); text-decoration: none; }
.page-numbers.current { background: var(--ft-graphite); color: #fff; border-color: var(--ft-graphite); }

/* ----------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.ft-footer { background: var(--ft-navy); color: #aeb9c5; margin-top: 4rem; }
.ft-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-block: clamp(2.5rem,5vw,3.5rem); }
.ft-footer a { color: #cdd6df; }
.ft-footer a:hover { color: #fff; }
.ft-footer-title { font-family: var(--ft-head); font-weight: 800; font-size: 1.25rem; color: #fff; display: block; margin-bottom: 1rem; }
.ft-footer-heading { font-family: var(--ft-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #7d8b99; margin-bottom: 1rem; }
.ft-footer-list { list-style: none; padding: 0; margin: 0; }
.ft-footer-list li { margin-bottom: .55rem; }
.ft-footer-address { font-style: normal; margin: 1rem 0; line-height: 1.7; }
.ft-footer .custom-logo { filter: brightness(0) invert(1); margin-bottom: 1rem; }
.ft-social { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ft-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.ft-footer-bottom p { margin: 0; padding-block: 1.25rem; color: #7d8b99; }

/* ----------------------------------------------------------------------
   404 / search
   ---------------------------------------------------------------------- */
.ft-404-links { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1rem 0 2rem; }
.ft-404-links a { padding: .5rem 1rem; background: var(--ft-panel); border: 1px solid var(--ft-line); border-radius: 100px; font-size: .9rem; }
.ft-search-result { padding: 1.25rem 0; border-bottom: 1px solid var(--ft-line); }
.ft-search-type { font-family: var(--ft-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--ft-muted); padding: .15rem .5rem; border-radius: 100px; margin-left: .5rem; vertical-align: middle; }
.ft-search-form { display: flex; gap: .5rem; max-width: 520px; }
.ft-search-field { flex: 1; padding: .75rem .9rem; border: 1px solid var(--ft-line); border-radius: var(--ft-radius); font: inherit; }
.ft-search-submit { padding: .75rem 1.25rem; background: var(--ft-graphite); color: #fff; border: 0; border-radius: var(--ft-radius); font-family: var(--ft-head); font-weight: 600; cursor: pointer; }
.ft-search-submit:hover { background: var(--ft-accent); }

/* ----------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 980px) {
	.ft-archive-layout { grid-template-columns: 1fr; }
	.ft-archive-sidebar { position: static; }
	.ft-facet-list { columns: 2; }
	.ft-product-top { grid-template-columns: 1fr; }
	.ft-media-text-grid { grid-template-columns: 1fr; }
	.ft-media-text-reverse .ft-media-text-img { order: 0; }
	.ft-contact-layout, .ft-rfq-layout { grid-template-columns: 1fr; }
	.ft-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
	.ft-menu-toggle { display: block; }
	.ft-primary-nav {
		position: fixed; inset: var(--ft-header-h) 0 0 auto; width: min(86vw, 340px);
		background: #fff; border-left: 1px solid var(--ft-line); box-shadow: var(--ft-shadow-lg);
		transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 1rem;
	}
	body.ft-nav-open .ft-primary-nav { transform: translateX(0); }
	body.ft-nav-open { overflow: hidden; }
	.ft-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ft-menu > li > a { padding: .9rem .5rem; border-bottom: 1px solid var(--ft-line); }
	.ft-menu .sub-menu, .ft-menu .ft-megapanel {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		border: 0; border-left: 2px solid var(--ft-line); border-radius: 0; padding-left: 1rem;
		display: none; width: auto;
	}
	.ft-menu li.is-open > .sub-menu, .ft-menu li.is-open > .ft-megapanel { display: block; }
	.ft-megapanel { grid-template-columns: 1fr; }
	.submenu-toggle { display: inline-flex; position: absolute; right: .25rem; top: .35rem; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 1.2rem; }
	.ft-menu-cta a { margin: .75rem 0 0 !important; width: 100%; }
}

@media (max-width: 560px) {
	.ft-form .ft-field-row { grid-template-columns: 1fr; }
	.ft-footer-grid { grid-template-columns: 1fr; }
	.ft-cta-inner { flex-direction: column; align-items: flex-start; }
}
