/* Techno Bolts Industries — shared site styles */

:root {
  --navy: #1e3a5f;
  --navy-2: #122a42;
  --navy-3: #16334f;
  --steel: #55697a;
  --steel-light: #8fa1b0;
  --accent: #c8272c;
  --accent-dark: #9e1e22;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --card-bg: #ffffff;
  --text: #1c2733;
  --text-muted: #55697a;
  --border: #e1e6ea;
  --white: #ffffff;
  --shadow: rgba(11,31,51,0.10);
  --heading: var(--navy);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0b141e;
  --bg-alt: #101b27;
  --card-bg: #16232f;
  --text: #e7edf3;
  --text-muted: #93a6b5;
  --border: #263c4f;
  --shadow: rgba(0,0,0,0.35);
  --heading: #f2f5f8;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior left at the default 'auto' — Lenis (assets/js/main.js) drives all
   smooth scrolling in JS; the CSS property fights its per-frame updates and causes
   stutter if both are active at once. */
body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  transition: background-color 0.2s, color 0.2s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar {
  background: #385777;
  color: #b7c3cd;
  font-size: 12.5px;
  line-height: 1.3;
}
.topbar .container {
  max-width: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 32px;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.topbar a { color: #b7c3cd; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 4px 22px; flex-wrap: wrap; align-items: center; }
.topbar-right { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; }
.topbar-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  white-space: nowrap;
}
.topbar-cta:hover { background: var(--accent-dark); }
.theme-toggle {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #d7dee3;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.14); color: #fff; }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-text { font-weight: 800; font-size: 15px; color: #fff; letter-spacing: 0.3px; }
.brand-text span { display: block; font-size: 11.5px; font-weight: 800; color: var(--steel-light); letter-spacing: 0.6px; margin-top: 2px; }
nav.mainnav ul { display: flex; gap: 28px; align-items: center; }
nav.mainnav ul li a {
  font-size: 14px;
  font-weight: 600;
  color: #d7dee3;
  transition: color 0.2s;
  padding: 6px 0;
}
nav.mainnav ul li a:hover,
nav.mainnav ul li a.active { color: #fff; border-bottom: 2px solid var(--accent); }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: #fff; cursor: pointer; }

@media (max-width: 960px) {
  nav.mainnav { display: none; }
  .menu-toggle { display: block; }
}
nav.mainnav.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  flex-direction: column;
  padding: 12px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
nav.mainnav.open ul { flex-direction: column; gap: 4px; align-items: flex-start; }
nav.mainnav.open ul li { width: 100%; }
nav.mainnav.open ul li a { display: block; padding: 10px 0; }

/* ===== Page hero (interior pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  padding: 64px 0 54px;
}
.breadcrumb { font-size: 13px; color: var(--steel-light); margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { max-width: 640px; color: #c3ccd3; font-size: 16.5px; }

/* ===== Home hero ===== */
.hero {
  position: relative;
  padding: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(200,39,44,0.07), transparent 45%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 60%, var(--bg) 100%);
  color: var(--text);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero .container {
  padding: 104px 24px 96px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-copy { flex: 1 1 540px; min-width: 0; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(200,39,44,0.08);
  border: 1px solid rgba(200,39,44,0.3);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; max-width: 760px; line-height: 1.18; margin-bottom: 20px; color: var(--heading); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 580px; font-size: 18px; color: var(--text-muted); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  height: 340px;
  z-index: 1;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: #385777;
  z-index: -1;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #385777;
  box-shadow: 0 30px 60px var(--shadow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: rgba(255,255,255,0.45); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-dark { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-dark:hover { background: var(--heading); color: var(--bg); }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: #f2f2f2; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ===== Trust strip ===== */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--heading); letter-spacing: 0.3px; }
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ===== Section base ===== */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin: 0 0 40px; }
.section-eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12.5px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(25px, 3.5vw, 36px); font-weight: 800; color: var(--heading); margin-bottom: 14px; }
.section-head h2 .h2-sub { display: block; font-size: 0.55em; font-weight: 700; color: var(--accent); margin-top: 4px; }
.section-head .tech-note { font-weight: 700; color: var(--heading); }
.section-head p { color: var(--text-muted); font-size: 16px; }

.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy .section-head p { color: #b9c3cb; }
.bg-navy .section-head h2 { color: #fff; }

/* ===== Grids / cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 30px 26px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--shadow); border-color: rgba(200,39,44,0.3); }
.card-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff;
}
.card h3 { font-size: 17.5px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-muted); }
.card a.card-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.card a.card-link:hover { color: var(--accent-dark); }

/* Product card with image */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--shadow); border-color: rgba(200,39,44,0.3); }
.product-card .thumb { aspect-ratio: 5 / 4; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px 20px 22px; }
.product-card h3 { font-size: 15.5px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.product-card p { font-size: 13px; color: var(--text-muted); }

/* Materials */
.material-card {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 26px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s, border-color 0.2s;
}
.material-card:hover { transform: translateY(-4px); border-color: rgba(200,39,44,0.5); }
.material-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.material-card p { font-size: 13.5px; color: #b9c3cb; }
.material-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ff8b8e;
  background: rgba(200,39,44,0.18);
  border: 1px solid rgba(200,39,44,0.4);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pill { padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); font-size: 14px; font-weight: 600; color: #e8ecef; background: rgba(255,255,255,0.04); }

/* Industry cards */
.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
}
.industry-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--shadow); border-color: rgba(200,39,44,0.3); }
.industry-card h3 { font-size: 17px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.industry-card p { font-size: 14px; color: var(--text-muted); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split h2 { font-size: clamp(25px, 3.5vw, 33px); font-weight: 800; color: var(--heading); margin-bottom: 18px; }
.split p { color: var(--text-muted); font-size: 16px; margin-bottom: 15px; }
.split img { border-radius: 12px; box-shadow: 0 20px 50px rgba(11,31,51,0.14); }

.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--heading); font-weight: 600; margin-bottom: 14px; }
.checklist li .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}

.stat-panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 38px; box-shadow: 0 20px 50px var(--shadow); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.stat-grid .num { font-size: 32px; font-weight: 900; color: var(--accent); }
.stat-grid .label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.stat-panel-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.stat-panel-logo img { height: 38px; }

/* Process steps */
.process { display: flex; flex-wrap: wrap; gap: 0; counter-reset: step; }
.process-step {
  flex: 1 1 160px;
  position: relative;
  padding: 22px 18px 18px;
  text-align: center;
}
.process-step .step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.process-step h4 { font-size: 14.5px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.process-step p { font-size: 12.5px; color: var(--text-muted); }
.process-arrow { display: flex; align-items: flex-start; padding-top: 32px; color: var(--steel-light); font-size: 20px; }
@media (max-width: 780px) { .process-arrow { display: none; } }

/* Table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.spec-table th { background: var(--bg-alt); color: var(--heading); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; }
.spec-table tr:hover td { background: var(--bg-alt); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap .spec-table { border: none; }
.table-wrap .spec-table th:first-child, .table-wrap .spec-table td:first-child { padding-left: 20px; }
.grade-mark { width: 84px; height: 84px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(25px, 4vw, 34px); font-weight: 800; margin-bottom: 15px; }
.cta-band p { max-width: 580px; margin: 0 auto 30px; color: rgba(255,255,255,0.92); font-size: 16px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; background: var(--bg-alt); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.contact-item h4 { font-size: 15px; font-weight: 700; color: var(--heading); margin-bottom: 3px; }
.contact-item p, .contact-item a { font-size: 14.5px; color: var(--text-muted); }
.form-panel { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-panel label { display: block; font-size: 13px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.form-panel input, .form-panel select, .form-panel textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: inherit; background: var(--card-bg); color: var(--text);
}
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus { outline: none; border-color: var(--accent); }
.form-panel textarea { min-height: 100px; resize: vertical; }
.form-panel .field { margin-bottom: 16px; }
.form-panel .btn-primary { width: 100%; text-align: center; border: none; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Map */
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Facility gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.gallery figure { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt); }
.gallery img { width: 100%; height: 200px; object-fit: cover; }
.gallery figcaption { padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--heading); }

/* Sidebar nav (products/materials/quality inner pages) */
.side-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 96px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.side-nav a { display: block; padding: 13px 18px; font-size: 14px; font-weight: 600; color: var(--heading); border-bottom: 1px solid var(--border); }
.side-nav a:last-child { border-bottom: none; }
.side-nav a:hover, .side-nav a.active { background: var(--bg-alt); color: var(--accent); }
@media (max-width: 900px) { .side-layout { grid-template-columns: 1fr; } .side-nav { position: static; } }

/* Breadcrumb list util */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span { background: var(--bg-alt); border: 1px solid var(--border); color: var(--heading); font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* ===== Footer ===== */
footer { background: var(--navy); color: #b7c3cd; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 50px; }
.footer-brand strong { color: #fff; font-size: 14.5px; }
.footer-about p { font-size: 13.5px; color: #a8b4bd; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #b7c3cd; }
.footer-col a:hover { color: #fff; }
.footer-contact li { font-size: 13.5px; margin-bottom: 12px; color: #b7c3cd; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8b99a3; }
.footer-dev { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.footer-dev a { font-weight: 600; color: #4ade80; }
.footer-dev a:hover { color: #86efac; text-decoration: underline; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--accent); }
.social-row img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

@media (max-width: 1100px) {
  .hero-photo { width: 260px; height: 260px; }
}
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .hero .container { flex-wrap: wrap; padding: 48px 24px 56px; }
  .hero-photo { display: none; }
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.theme-toggle-mobile { display: none; }
@media (max-width: 640px) {
  .topbar { display: none; }
  .theme-toggle-mobile { display: flex; margin-left: auto; margin-right: 12px; }
}
