/* SAE Fasteners / Shree Ashapura Enterprises — design system
   Brand sampled from logo: industrial red #C41E24, gold #C9A227, ink #111 */
:root {
  --red: #c41e24;
  --red-hover: #9e161b;
  --red-deep: #6f0f13;
  --red-soft: rgba(196, 30, 36, 0.08);
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.16);
  --ink: #16181c;
  --ink-2: #2a2e35;
  --muted: #5c616a;
  --line: #e4e1db;
  --paper: #f7f5f1;
  --white: #ffffff;
  --dark: #101215;
  --dark-2: #1a1d22;
  --steel: #8b929c;
  --shadow: 0 12px 40px rgba(16, 18, 21, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 18, 21, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 76px;
  --topbar-h: 38px;
  --max: 1200px;
  --font: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 8px 12px; z-index: 10000;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-dark { background: var(--dark); color: #fff; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; color: var(--red); margin: 0 0 10px;
}
.section-dark .eyebrow { color: var(--gold); }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 14px; color: inherit; }
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.lead { font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--muted); max-width: 62ch; }
.section-head { margin-bottom: 40px; max-width: 720px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
  cursor: pointer; font-family: inherit;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(196, 30, 36, 0.28); }
.btn-primary:hover { background: var(--red-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.topbar {
  background: var(--dark); color: #d7d4ce; font-size: 0.8rem; min-height: var(--topbar-h);
  display: flex; align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding-block: 8px; }
.topbar a { color: #fff; }
.topbar-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-tag { color: var(--gold); font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  transition: background 0.35s var(--ease), box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.is-hero {
  position: absolute; left: 0; right: 0; top: var(--topbar-h);
  background: transparent;
}
.site-header.is-solid,
.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(16,18,21,0.06);
}
.site-header.is-hero:not(.scrolled) .nav-link { color: #f3f1ed; }
.site-header.is-hero:not(.scrolled) .logo-text { color: #fff; }
.header-inner {
  min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800;
}
.logo img, .logo svg { height: 48px; width: auto; }
.logo-mark { display: grid; grid-template-columns: 22px 22px; grid-template-rows: 22px 22px; gap: 2px; }
.logo-mark span { display: grid; place-items: center; color: #fff; font-family: Georgia, serif; font-weight: 700; font-size: 13px; }
.logo-mark .s, .logo-mark .e { background: var(--red); }
.logo-mark .a { background: var(--gold); }
.logo-text { line-height: 1.1; font-size: 0.82rem; }
.logo-text small { display: block; font-weight: 600; color: var(--muted); font-size: 0.68rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; color: var(--ink-2); font-weight: 600; font-size: 0.9rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--red); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink); background: var(--white);
}
.icon-btn.wa { background: #25d366; border-color: #25d366; color: #fff; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-42%) translateY(8px);
  width: min(860px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 22px; display: none; grid-template-columns: repeat(3, 1fr); gap: 8px;
  opacity: 0; pointer-events: none;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; opacity: 1; pointer-events: auto; transform: translateX(-42%) translateY(0); }
.mega a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 0.88rem;
}
.mega a:hover { background: var(--red-soft); color: var(--red); }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 5px auto; }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 840px); display: grid; place-items: center;
  background: radial-gradient(1200px 500px at 80% 20%, rgba(196,30,36,.18), transparent 50%),
              linear-gradient(160deg, #0d0f12 0%, #1b1f26 48%, #2a1516 100%);
  color: #fff; overflow: hidden; padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  animation: gridDrift 28s linear infinite;
}
.hero-lines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-32deg, transparent, transparent 18px, rgba(201,162,39,.06) 18px, rgba(201,162,39,.06) 19px);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #c9c6c0; }
.hero-visual {
  position: relative; min-height: 420px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, #2b3038, #16181c);
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(16,18,21,.82); color: #fff;
  border: 1px solid rgba(255,255,255,.12); padding: 12px 14px; border-radius: 12px; font-size: 0.82rem;
}

/* Trust strip */
.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { padding: 28px 16px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: 0.85rem; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.media-frame {
  border-radius: 18px; overflow: hidden; position: relative; min-height: 360px;
  background: #222; box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.float-card {
  position: absolute; right: 18px; bottom: 18px; background: #fff; color: var(--ink);
  padding: 16px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: 220px;
  border: 1px solid var(--line);
}
.float-card b { color: var(--red); display: block; font-size: 1.3rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(196,30,36,.35); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: #eceae6; position: relative; }
.card-media img, .card-media .visual { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-media img, .card:hover .card-media .visual { transform: scale(1.06); }
.card-body { padding: 18px 18px 20px; }
.card-body p { color: var(--muted); font-size: 0.92rem; min-height: 3.2em; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); }
.card:hover .card-cta .arrow { transform: translateX(5px); }

.visual {
  display: grid; place-items: center; height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(160deg, #d9dde3, #8d949e 50%, #5c636c);
}

/* Why / quality */
.icon-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; height: 100%; }
.icon-card svg { color: var(--red); margin-bottom: 12px; }
.quality-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.quality-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.quality-list li {
  padding: 14px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03);
}

.infra { position: relative; }
.infra-bg { min-height: 520px; border-radius: 20px; overflow: hidden; }
.infra-bg img { width: 100%; height: 520px; object-fit: cover; }
.infra-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: -90px; position: relative; padding: 0 24px;
}
.info-tile { background: #fff; padding: 20px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }

.cta-band {
  background: linear-gradient(120deg, var(--red-deep), var(--red) 45%, #a67a12);
  color: #fff; border-radius: 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.04) 12px, rgba(255,255,255,.04) 13px);
}
.cta-band .container { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Page hero */
.page-hero {
  background: linear-gradient(160deg, #121417, #2a1516);
  color: #fff; padding: 92px 0 56px; position: relative;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: #c9c6c0; margin-bottom: 16px; }
.breadcrumb a { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* Products tools */
.toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.search, select, input, textarea {
  font-family: inherit; font-size: 1rem; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  background: #fff; color: var(--ink);
}
.search { max-width: 320px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer;
}
.chip.is-on, .chip:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.count { color: var(--muted); font-size: 0.9rem; }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.product-actions .btn { min-height: 42px; padding: 0 14px; font-size: 0.85rem; }

.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec th { width: 34%; background: var(--paper); color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery-main { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: #eceae6; }
.gallery-main img, .gallery-main .visual { width: 100%; height: 420px; object-fit: cover; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Forms */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { font-weight: 700; font-size: 0.86rem; display: grid; gap: 6px; }
.form .full { grid-column: 1 / -1; }
.form-msg { display: none; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-msg.ok { display: block; background: #e8f6ec; color: #146c2e; }
.form-msg.err { display: block; background: #fdecec; color: #9e161b; }
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 24px; min-height: 360px; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* Footer */
.site-footer { background: #0d0f12; color: #c9c6c0; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer a { color: #c9c6c0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination button {
  min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700;
}
.pagination button.is-on { background: var(--red); color: #fff; border-color: var(--red); }

.empty { text-align: center; padding: 40px; color: var(--muted); }

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}
