/* ==========================================================================
   Charvi Extrusion - Fasteners
   Core CSS3 only (Grid + Flexbox). No framework.
   Same rules as the other product pages, with the "fasteners-" prefix. Each
   fastener-type cell carries a short description, as on the hydraulic page.

   Every selector is prefixed "fasteners-" and scoped to .fasteners-page, so
   this file does not touch the site header, footer or any global styles.
   ========================================================================== */

:root {
    --primary: #102D3B;
    --primary-dark: #091F2A;
  --text: #222222;
  --muted: #666666;
  --border: #e5e5e5;
  --light: #f7f7f7;
  --white: #ffffff;
}

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

.fasteners-page {
  --fasteners-tint: #fff1f4;
  --fasteners-radius: 12px;
  --fasteners-radius-sm: 8px;
  --fasteners-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -18px rgba(0, 0, 0, .22);
  --fasteners-sticky-top: 100px;   /* match the height of the fixed site header */
  --fasteners-font: "Inter", Arial, Helvetica, sans-serif;

  padding-block: clamp(24px, 3.5vw, 40px) clamp(56px, 7vw, 104px);
  background: var(--white);
  color: var(--text);
  font-family: var(--fasteners-font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

/* Low-specificity resets: every class below overrides them */
.fasteners-page :where(h1, h2, h3, p, figure, ul, ol) { margin: 0; }
.fasteners-page :where(ul, ol) { padding: 0; list-style: none; }
.fasteners-page :where(img, svg) { display: block; max-width: 100%; }

.fasteners-page :where(h2) {
  font-size: clamp(1.625rem, 1.25rem + 1vw, 2rem);    /* 26px -> 32px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.fasteners-page :where(h3) {
  font-size: 1.25rem;                                  /* 20px */
  font-weight: 600;
  line-height: 1.3;
}

.fasteners-page a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.fasteners-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* Shared line-icon style for every inline SVG */
.fasteners-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.fasteners-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-bottom: clamp(22px, 3vw, 32px);
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.6;
}
.fasteners-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}
.fasteners-breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.fasteners-breadcrumb [aria-hidden="true"] { color: #b5b5b5; }

/* ==========================================================================
   Layout
   ========================================================================== */
.fasteners-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 45px;
  align-items: start;
}
.fasteners-sidebar {
  position: sticky;
  top: var(--fasteners-sticky-top);
}
.fasteners-section { margin-top: clamp(52px, 6vw, 84px); }
.fasteners-section-intro {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--muted);
}

/* ==========================================================================
   Quick Links
   ========================================================================== */
.fasteners-quick-links {
  border: 1px solid var(--border);
  border-radius: var(--fasteners-radius);
  background: var(--white);
  box-shadow: var(--fasteners-shadow);
  overflow: hidden;
}
.fasteners-quick-links h2 {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
  letter-spacing: 0;
}
.fasteners-quick-links ul {
  display: grid;
  gap: 2px;
  padding: 10px;
}
.fasteners-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--fasteners-radius-sm);
  background: var(--white);
  color: #333333;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.fasteners-quick-links .fasteners-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
  opacity: .4;
  transition: opacity .2s ease, transform .2s ease;
}
.fasteners-quick-links a:hover {
  background: var(--fasteners-tint);
  color: var(--primary);
}
.fasteners-quick-links a:hover .fasteners-icon {
  opacity: 1;
  transform: translateX(3px);
}
.fasteners-quick-links a.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}
.fasteners-quick-links a.active .fasteners-icon {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Product header
   ========================================================================== */
.fasteners-hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3rem);    /* 34px -> 48px */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.fasteners-title-accent {
  width: 55px;
  height: 4px;
  margin-top: 18px;
  background: var(--primary);
}
.fasteners-lead {
  max-width: 64ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ==========================================================================
   Image + introduction
   ========================================================================== */
.fasteners-product {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 40px;
  align-items: center;
  margin-top: clamp(32px, 4vw, 44px);
}
.fasteners-image { position: relative; }
/* Corner mark, as on an engineering drawing */
.fasteners-image::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: 60px;
  border-top: 3px solid var(--primary);
  border-left: 3px solid var(--primary);
  border-top-left-radius: calc(var(--fasteners-radius) + 6px);
}
.fasteners-image img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--fasteners-radius);
  background: #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 24px 40px -24px rgba(0, 0, 0, .5);
}
.fasteners-summary p { margin-top: 16px; }

/* ---- Highlights (2 x 2) ---- */
.fasteners-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 44px);
}
.fasteners-feature {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--fasteners-radius);
  background: var(--white);
}
.fasteners-feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.6;
}
.fasteners-icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--fasteners-radius-sm);
  background: var(--light);
  color: var(--primary);
}
.fasteners-icon-box .fasteners-icon {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Overview
   ========================================================================== */
.fasteners-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
.fasteners-overview-text p + p { margin-top: 16px; }
.fasteners-overview-panel {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--fasteners-radius);
  background: var(--light);
}
.fasteners-overview-panel h3 { margin-bottom: 14px; }

/* Dash-marked list */
.fasteners-dash-list {
  display: grid;
  gap: 9px 24px;
}
.fasteners-dash-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}
.fasteners-dash-list li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--primary);
}

/* ==========================================================================
   Materials
   ========================================================================== */
.fasteners-materials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.fasteners-material {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--fasteners-radius);
  background: var(--white);
}
/* Hexagon = bar-stock cross-section, tinted to the metal */
.fasteners-swatch {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
}
.fasteners-swatch--brass    { fill: #b8963e; }
.fasteners-swatch--copper   { fill: #b4683c; }
.fasteners-swatch--aluminum { fill: #aab1b8; }
.fasteners-swatch--steel    { fill: #c9ced3; }
.fasteners-swatch--alloy    { fill: #c98d57; }
.fasteners-swatch--other    { fill: #8c8f93; }
.fasteners-swatch--custom   { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 3 2.5; }
.fasteners-material-name {
  font-weight: 600;
  line-height: 1.4;
}
.fasteners-material-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

/* ==========================================================================
   Applications
   ========================================================================== */
.fasteners-applications {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.fasteners-application {
  position: relative;
  padding: 15px 18px 15px 38px;
  border: 1px solid var(--border);
  border-radius: var(--fasteners-radius-sm);
  background: var(--white);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
}
.fasteners-application::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 18px;
  width: 7px;
  height: 7px;
  background: var(--primary);
}
.fasteners-note {
  max-width: 68ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
}

/* ==========================================================================
   Fastener types: one ruled matrix, each cell a name plus a short description
   ========================================================================== */
.fasteners-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--fasteners-radius);
  background: var(--border);   /* shows through the 1px gaps as rules */
  overflow: hidden;
}
.fasteners-type {
  padding: 20px 22px;
  background: var(--white);
}
.fasteners-type h3 {
  font-size: 1rem;
  line-height: 1.4;
}
.fasteners-type p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.55;
}
/* 13 types: the last takes a full row so the grid has no empty cells */
.fasteners-type:last-child { grid-column: 1 / -1; }

/* ==========================================================================
   Custom fasteners & thread configurations
   ========================================================================== */
.fasteners-config-panel {
  margin-top: 28px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--fasteners-radius);
  background: var(--light);
}
.fasteners-config-panel .fasteners-dash-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 28px;
}

/* ==========================================================================
   Manufacturing capabilities
   ========================================================================== */
.fasteners-capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.fasteners-capability {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--fasteners-radius);
  background: var(--white);
  font-weight: 600;
  line-height: 1.35;
}

/* ==========================================================================
   Quality
   ========================================================================== */
.fasteners-quality {
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: var(--fasteners-radius);
  background: var(--light);
}
.fasteners-quality > p {
  max-width: 70ch;
  margin-top: 14px;
  color: var(--muted);
}
.fasteners-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.fasteners-quality-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: var(--fasteners-radius-sm);
  background: var(--white);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.fasteners-quality-grid .fasteners-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  stroke-width: 2;
}

/* ==========================================================================
   Custom manufacturing
   ========================================================================== */
.fasteners-custom {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--fasteners-radius);
  background: var(--white);
  box-shadow: var(--fasteners-shadow);
}
.fasteners-custom-copy p { margin-top: 14px; }
.fasteners-custom-copy .fasteners-btn { margin-top: 26px; }
.fasteners-custom-list {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.fasteners-custom-list h3 { margin-bottom: 14px; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.fasteners-cta {
  position: relative;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--fasteners-radius);
  background: var(--light);
}
.fasteners-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  border-top: 4px solid var(--primary);
  border-left: 4px solid var(--primary);
  border-top-left-radius: var(--fasteners-radius);
}
.fasteners-cta p {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
}
.fasteners-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fasteners-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--primary);
  border-radius: var(--fasteners-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.fasteners-btn--primary {
  background: var(--primary);
  color: var(--white);
}
.fasteners-btn--primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: var(--white);
}
.fasteners-btn--secondary {
  background: var(--white);
  color: var(--primary);
}
.fasteners-btn--secondary:hover {
  background: var(--primary);
  color: var(--white);
}
.fasteners-btn .fasteners-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Tablet: 768px - 1199px
   ========================================================================== */
@media (max-width: 1199.98px) {
  .fasteners-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
  }
  .fasteners-quick-links h2 { padding-inline: 18px; }
  .fasteners-quick-links ul { padding: 8px; }
  .fasteners-quick-links a { padding-inline: 10px; }
  .fasteners-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fasteners-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .fasteners-product,
  .fasteners-overview-grid,
  .fasteners-custom { grid-template-columns: minmax(0, 1fr); }
  .fasteners-overview-grid,
  .fasteners-custom { gap: 28px; }
  .fasteners-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .fasteners-custom-list {
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .fasteners-custom-list .fasteners-dash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Mobile: below 768px
   ========================================================================== */
@media (max-width: 767.98px) {
  /* minmax(0, 1fr), not plain 1fr: lets the column shrink below the width
     of the scrolling Quick Links row */
  .fasteners-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .fasteners-sidebar { position: static; }

  /* Quick Links become one scrolling row; it scrolls inside the card,
     so the page itself never overflows. */
  .fasteners-quick-links h2 {
    padding: 14px 16px 0;
    border-bottom: 0;
    font-size: 1rem;
  }
  .fasteners-quick-links ul {
    display: flex;
    gap: 8px;
    padding: 10px 16px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  .fasteners-quick-links ul::-webkit-scrollbar { display: none; }
  .fasteners-quick-links li { flex: none; }
  .fasteners-quick-links li:last-child { padding-right: 24px; }
  .fasteners-quick-links a {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    white-space: nowrap;
  }
  .fasteners-quick-links a.active { border-color: var(--primary); }
  .fasteners-quick-links .fasteners-icon { display: none; }
  .fasteners-page .fasteners-quick-links a:focus-visible { outline-offset: -3px; }

  .fasteners-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fasteners-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .fasteners-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .fasteners-quality-grid { grid-template-columns: minmax(0, 1fr); }
  .fasteners-types { grid-template-columns: minmax(0, 1fr); }
  .fasteners-custom-list .fasteners-dash-list { grid-template-columns: minmax(0, 1fr); }
  .fasteners-cta-actions .fasteners-btn,
  .fasteners-custom-copy .fasteners-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fasteners-page *,
  .fasteners-page *::before,
  .fasteners-page *::after { transition: none !important; }
}
