/* =========================================================
   ACE RACK — Global Stylesheet
   ========================================================= */
:root {
  --navy: #0f2744;
  --navy-2: #16345c;
  --blue: #1e5aa8;
  --orange: #f2820a;
  --orange-dark: #d96f00;
  --ink: #1c2733;
  --gray: #5b6b7b;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 39, 68, .10);
  --maxw: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfdcec; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a:hover { color: #fff; }
.topbar .tb-right span + span { margin-left: 18px; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15,39,68,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--navy)); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--navy); }
.logo-text em { color: var(--orange); font-style: normal; }
.logo-tag { display: block; font-size: 10px; font-weight: 500; letter-spacing: 1.6px; color: var(--gray); text-transform: uppercase; }

.main-nav > ul { display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav li > a { display: flex; align-items: center; gap: 5px; padding: 26px 14px; font-size: 15px; font-weight: 600; color: var(--ink); transition: color .2s; }
.main-nav li > a:hover, .main-nav li > a.active { color: var(--blue); }
.main-nav li > a.active { box-shadow: inset 0 -3px 0 var(--orange); }
.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.main-nav li:hover .caret { transform: rotate(225deg) translateY(-2px); }

.dropdown { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s ease; max-height: 70vh; overflow-y: auto; }
.main-nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 18px; font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 1px solid #f0f4f8; transition: all .15s; }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--bg-soft); color: var(--blue); padding-left: 24px; }

.nav-cta { display: inline-block; background: var(--orange); color: #fff !important; font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 6px; transition: background .2s; }
.nav-cta:hover { background: var(--orange-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background-color: #0d223d; background-image: linear-gradient(115deg, rgba(13,34,61,.82) 0%, rgba(22,52,92,.72) 55%, rgba(30,90,168,.6) 100%), url("../images/banners/home-banner.jpg"); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 120px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 90px); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding: 92px 22px 96px; max-width: var(--maxw); }
.hero-kicker { display: inline-block; background: rgba(242,130,10,.16); border: 1px solid rgba(242,130,10,.5); color: #ffb45e; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; font-weight: 800; max-width: 760px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p.lead { margin-top: 20px; font-size: 18px; color: #c9d8ea; max-width: 640px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 7px; font-weight: 700; font-size: 15px; transition: all .2s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.hero-stats { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 26px; padding-bottom: 30px; gap: 18px; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.stat b i { font-style: normal; color: var(--orange); }
.stat span { font-size: 13px; color: #a9bdd4; }

/* ---------- Sections ---------- */
section { padding: 74px 0; }
section.alt { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head .kicker { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 36px); color: var(--navy); margin-top: 8px; font-weight: 800; }
.sec-head p { margin-top: 12px; color: var(--gray); font-size: 16px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-visual { aspect-ratio: 10 / 7; height: auto; display: grid; place-items: center; background: linear-gradient(150deg, #eef4fb, #dfe9f4); color: var(--blue); position: relative; overflow: hidden; }
.card-visual svg { width: 96px; height: 96px; opacity: .9; }
/* real product photos (fall back to SVG when missing) */
.card-visual .photo, .pd-visual .photo { width: 100%; height: 100%; object-fit: cover; display: block; align-self: stretch; justify-self: stretch; }
.card-visual .photo-fallback, .pd-visual .photo-fallback { display: none; }
.pd-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pd-gallery .gallery-fig { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pd-gallery .gallery-img { width: 100%; height: 240px; object-fit: cover; display: block; }
.pd-gallery .gallery-tag { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; letter-spacing: .02em; box-shadow: 0 2px 8px rgba(13,34,61,.25); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 17px; color: var(--navy); font-weight: 700; }
.card-body p { margin-top: 8px; font-size: 14px; color: var(--gray); }
.card-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.card-link:hover { color: var(--orange); }

/* generic image slots: element gets a photo over its existing content (SVG fallback) */
[data-img] { position: relative; overflow: hidden; }
.fill-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* feature tiles */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .f-icon { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.feature .f-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 17px; color: var(--navy); }
.feature p { margin-top: 8px; font-size: 14px; color: var(--gray); }

/* category banner cards on home */
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 34px 28px; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(160deg, var(--navy-2), var(--blue)); }
.cat-card.orange { background: linear-gradient(160deg, #8a4a00, var(--orange)); }
.cat-card.steel { background: linear-gradient(160deg, #23303d, #4a6076); }
.cat-card .cc-icon { position: absolute; top: 22px; right: 22px; width: 84px; height: 84px; opacity: .28; }
.cat-card h3 { font-size: 22px; font-weight: 800; }
.cat-card p { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.cat-card .card-link { color: #fff; margin-top: 14px; }
.cat-card .card-link:hover { color: #ffd9a8; }
/* What We Make cat cards with real product photos (over .fill-photo) */
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(13,34,61,.5), rgba(13,34,61,.8));
  pointer-events: none;
}
.cat-card.orange::after { background: linear-gradient(160deg, rgba(70,34,0,.5), rgba(70,34,0,.8)); }
.cat-card h3, .cat-card p, .cat-card .card-link { position: relative; z-index: 2; }
.cat-card .cc-icon { z-index: 2; opacity: .25; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(115deg, #0d223d, #1e5aa8); color: #fff; padding: 64px 0 58px; }
.blog-hero { background-color: #0d223d; background-image: linear-gradient(115deg, rgba(13,34,61,.82), rgba(30,90,168,.6)), url("../images/blog/banner.jpg"); background-size: cover; background-position: center; }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; }
.page-hero p { margin-top: 12px; max-width: 780px; color: #c9d8ea; font-size: 16.5px; }
.breadcrumb { font-size: 13px; color: #9fb6d0; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Product listing ---------- */
.product-grid { grid-template-columns: repeat(3, 1fr); }
.product-card .card-visual { aspect-ratio: 10 / 7; height: auto; }
.anchor-offset { scroll-margin-top: 110px; }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); font-weight: 800; }
.split .kicker { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.split p { margin-top: 14px; color: var(--gray); font-size: 15.5px; }
.split-visual { border-radius: var(--radius); background: linear-gradient(150deg, var(--navy), var(--blue)); color: rgba(255,255,255,.9); display: grid; place-items: center; min-height: 340px; }
.split-visual svg { width: 62%; height: auto; opacity: .95; }

.checklist { margin-top: 18px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--ink); font-size: 15px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

.num-band { background: var(--navy); color: #fff; }
.num-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 58px; padding-bottom: 58px; text-align: center; }
.num-band b { display: block; font-size: 38px; font-weight: 800; color: var(--orange); }
.num-band span { font-size: 14px; color: #b7c8dc; }

.equip-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.equip-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px; padding: 16px 18px; font-weight: 600; font-size: 14.5px; color: var(--navy); }

.timeline { position: relative; margin-top: 10px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 38px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--orange); }
.timeline b { color: var(--navy); font-size: 16px; }
.timeline p { color: var(--gray); font-size: 14px; margin-top: 3px; }

/* standards badges */
.badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.badge { border: 2px solid var(--blue); color: var(--blue); font-weight: 800; padding: 10px 20px; border-radius: 8px; font-size: 15px; letter-spacing: .5px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-block { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px 30px; }
.info-block h3 { font-size: 20px; margin-bottom: 18px; }
.info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.info-item .i-icon { flex: none; width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--orange); }
.info-item .i-icon svg { width: 20px; height: 20px; }
.info-item b { display: block; font-size: 14px; color: #ffb45e; }
.info-item span { font-size: 14.5px; color: #d6e2ef; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow); }
.form-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.form-card > p { color: var(--gray); font-size: 14px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 7px; padding: 11px 13px; font-size: 14.5px; font-family: var(--font); color: var(--ink); background: #fff; transition: border .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 12px; }
.form-success { display: none; margin-top: 14px; background: #e9f8ef; border: 1px solid #b7e4c7; color: #1b7a3d; border-radius: 7px; padding: 12px 16px; font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, var(--orange-dark), var(--orange)); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 54px; padding-bottom: 54px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; max-width: 620px; }
.cta-band p { margin-top: 6px; color: rgba(255,255,255,.9); }
.cta-band .btn { background: #fff; color: var(--orange-dark); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1c33; color: #a9bdd4; font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 60px 0 44px; }
.footer-main h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .5px; }
.footer-main li { margin-bottom: 9px; }
.footer-main a:hover { color: var(--orange); }
.footer-brand p { margin-top: 12px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Product detail page ---------- */
.pd-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pd-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: #fff; margin-top: 12px; }
.pd-hero .lead { margin-top: 14px; color: #c9d8ea; font-size: 16.5px; max-width: 560px; }
.pd-hero .pd-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.pd-visual { border-radius: var(--radius); background: linear-gradient(150deg, #eef4fb, #dfe9f4); border: 1px solid var(--line); display: grid; place-items: center; min-height: 300px; color: var(--blue); }
.pd-visual svg { width: 58%; height: auto; opacity: .92; }

.pd-highlights { grid-template-columns: repeat(2, 1fr); }
.pd-highlights .feature { display: flex; gap: 14px; align-items: flex-start; }
.pd-highlights .feature::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--orange); box-shadow: inset 0 0 0 5px rgba(242,130,10,.22); }
.pd-highlights .feature h3 { font-size: 16px; color: var(--navy); }
.pd-highlights .feature p { display: none; }

/* Key Highlights — text-based insights (selective-pallet-racking) */
.pd-insights-lead { max-width: 880px; margin: 0 0 26px; font-size: 17px; line-height: 1.7; color: var(--gray); }
.pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 30px; }
.pd-stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; text-align: center; }
.pd-stat-val { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--orange); line-height: 1; }
.pd-stat-lab { display: block; margin-top: 10px; font-size: 13px; color: var(--gray); line-height: 1.5; }
.pd-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0 0 28px; }
.pd-theme { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; border-left: 4px solid var(--blue); }
.pd-theme h3 { font-size: 17px; color: var(--navy); }
.pd-theme p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--gray); }
.pd-note { background: linear-gradient(150deg, #eef4fb, #dfe9f4); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 15px; color: var(--navy); line-height: 1.65; }
.pd-note strong { color: var(--orange); }
@media (max-width: 720px) { .pd-stats, .pd-themes { grid-template-columns: 1fr; } }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 38%; background: var(--bg-soft); color: var(--navy); font-weight: 700; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }

.pd-apps { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-apps .tag { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); color: var(--navy); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; }

.pd-related .product-grid { grid-template-columns: repeat(3, 1fr); }
.pd-back { display: inline-block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #9fb6d0; }
.pd-back:hover { color: #fff; }
.pd-notfound { text-align: center; padding: 90px 0; }
.pd-notfound h2 { color: var(--navy); font-size: 28px; margin-bottom: 14px; }

/* Component / parts diagram (below Full Component List) */
.pd-comp-img-wrap { max-width: 820px; margin: 0 auto; position: relative; }
.pd-comp-img { width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 14px; box-shadow: 0 12px 36px rgba(13,34,61,.14); display: block; background: #fff; }
.pd-comp-img-wrap .photo-fallback { display: none; place-items: center; min-height: 260px; background: linear-gradient(150deg, #eef4fb, #dfe9f4); color: var(--blue); border-radius: 14px; }

/* Major Components — image row (major-* photos in the product folder) */
.major-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.major-fig { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 6px 20px rgba(13,34,61,.07); }
.major-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.major-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(13,34,61,.82), rgba(13,34,61,0)); }
.major-text { margin-top: 30px; }
@media (max-width: 980px) { .major-grid { grid-template-columns: repeat(2, 1fr); } .major-img { height: 240px; } }
@media (max-width: 520px) { .major-grid { grid-template-columns: 1fr; } .major-img { height: 240px; } }

/* Loading charts (parsed from Excel, shown below Technical Specifications) */
.lc-fig { margin: 0 0 18px; text-align: center; }
.lc-img { max-width: 100%; max-height: 320px; width: auto; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: inline-block; }
.lc-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 26px; margin-bottom: 26px; }
.lc-block:last-child { margin-bottom: 0; }
.lc-title { color: var(--navy); font-size: 18px; line-height: 1.45; margin-bottom: 6px; }
.lc-sub { color: var(--gray); font-size: 13.5px; margin: 0 0 16px; }
.lc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
.lc-table th, .lc-table td { padding: 9px 12px; text-align: center; border: 1px solid var(--line); white-space: nowrap; }
.lc-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.lc-table thead th:first-child { text-align: left; }
.lc-table tbody th[scope="row"] { background: var(--bg-soft); color: var(--navy); font-weight: 700; text-align: left; }
.lc-table tbody td { color: #2b3a49; }
.lc-table tbody tr:nth-child(even) td { background: #f7faff; }
.lc-table tbody tr:hover td { background: #eef4fb; }
.pd-comp-img-wrap .photo-fallback svg { width: 84px; height: 84px; opacity: .85; }

.pd-prose { max-width: 880px; font-size: 16.5px; line-height: 1.85; color: #2b3a49; }
.pd-prose p { margin: 0 0 16px; }
.pd-prose p:last-child { margin-bottom: 0; }

/* Product variants (e.g. Single Rivet / Double Rivet on Boltless page) */
.pd-variants-lead { max-width: 880px; color: var(--gray); font-size: 15px; line-height: 1.75; margin: 0 0 22px; }
.variant-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; }
.variant-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.variant-card .variant-desc { color: var(--gray); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.variant-card .variant-feats { padding-left: 20px; margin: 0; color: #2b3a49; font-size: 14.5px; }
.variant-card .variant-feats li { margin-bottom: 6px; line-height: 1.6; }
.variant-card .variant-feats li:last-child { margin-bottom: 0; }

/* ---------- Blog list & post ---------- */
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.blog-card .card-visual { height: 200px; }
.blog-cover { background: linear-gradient(150deg, #eef4fb, #dfe9f4); color: var(--blue); }
.blog-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; }
.blog-cat { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.blog-date { color: var(--gray); }
.blog-card h3 { font-size: 18px; line-height: 1.35; margin-top: 10px; }
.bp-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; color: #c9d8ea; font-size: 14.5px; }
.bp-meta .dot { opacity: .6; }
.bp-cover { margin: 8px auto 0; max-width: 900px; height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(150deg, #eef4fb, #dfe9f4); color: var(--blue); display: grid; place-items: center; }
.bp-cover .photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-cover .photo-fallback { display: none; }
.bp-cover .photo-fallback svg { width: 96px; height: 96px; opacity: .9; }
.bp-body { max-width: 760px; margin: 40px auto 8px; font-size: 16.5px; line-height: 1.85; color: #2b3a49; }
.bp-body h2 { font-size: 24px; color: var(--navy); margin: 34px 0 12px; font-weight: 800; }
.bp-body p { margin: 14px 0; }
.bp-body ul { margin: 14px 0 14px 22px; }
.bp-body li { margin: 8px 0; }

@media (max-width: 860px) {
  .pd-hero { grid-template-columns: 1fr; }
  .pd-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pd-related .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .equip-list { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero-stats .container, .num-band .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 74px 0 0 0; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .28s; z-index: 99; padding: 12px 0 40px; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav li > a { padding: 15px 26px; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .main-nav li > a.active { box-shadow: inset 3px 0 0 var(--orange); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: none; border-left: 3px solid var(--orange); border-radius: 0; box-shadow: none; background: var(--bg-soft); max-height: none; }
  .main-nav li.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .split-visual { min-height: 240px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .product-grid { grid-template-columns: 1fr; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .topbar .tb-right span:first-child { display: none; }
}

/* ---------- Home — production process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 6px; }
.process-item { margin: 0; }
.process-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, var(--navy), var(--blue)); display: grid; place-items: center; }
.process-img svg { width: 46%; height: auto; opacity: .92; color: rgba(255,255,255,.92); }
.process-item figcaption { margin-top: 12px; }
.process-item figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }
.process-item figcaption span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 980px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-cat { padding: 58px 0; }
.faq-cat.alt { background: var(--bg-soft); }
.faq-cat .sec-head { text-align: left; max-width: 860px; margin: 0 0 30px; }
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 58px 20px 24px; font-size: 16.5px; font-weight: 700; color: var(--navy); position: relative; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--blue); font-size: 22px; font-weight: 700; display: grid; place-items: center; transition: background .2s, color .2s; }
.faq-item[open] summary::after { content: "\2212"; background: var(--blue); color: #fff; }
.faq-item summary:hover { color: var(--blue); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--gray); font-size: 15px; }
.faq-item .faq-a p { margin-bottom: 10px; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }
.faq-item .faq-a a { color: var(--blue); font-weight: 600; }
.faq-item .faq-a a:hover { color: var(--orange); }
@media (max-width: 560px) { .faq-item summary { font-size: 15px; padding: 17px 50px 17px 18px; } }

/* ---------- Language switcher ---------- */
/* The dropdown arrow is a CSS pseudo-element on the wrapper (not a
   background-image on the <select>). This renders identically on desktop
   and mobile and avoids the doubled native iOS/Android select arrow that
   otherwise shows up as extra little triangles on phones. */
.lang-switch { position: relative; margin-left: 14px; display: flex; align-items: center; }
.lang-switch::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 0; height: 0; pointer-events: none;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #16203a; transform: translateY(-50%);
}
.lang-switch select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: #f1f5fa; color: #16203a;
  border: 1px solid #cdd9e6; border-radius: 8px;
  padding: 7px 30px 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang-switch select:hover { border-color: #1e5aa8; }
.lang-switch select option { color: #16203a; }
@media (max-width: 860px) {
  .lang-switch { margin: 10px 0 0; }
  .lang-switch select { background: #fff; color: #16203a; border-color: var(--line);
    font-size: 16px; padding: 9px 32px 9px 14px; }
  .lang-switch::after { right: 14px; }
}

/* ---------- Arabic / RTL ---------- */
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif; }
[dir="rtl"] .sec-head[style*="text-align:left"],
[dir="rtl"] [style*="text-align:left"] { text-align: right !important; }
[dir="rtl"] .dropdown a,
[dir="rtl"] .footer-main h4,
[dir="rtl"] .nav-main a,
[dir="rtl"] .breadcrumb { text-align: right; }
[dir="rtl"] .pd-back::before { content: "\2192"; margin: 0 0 0 6px; }
[dir="rtl"] .pd-back { direction: rtl; }
[dir="rtl"] .caret { transform: scaleX(-1); }
[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 14px; }
[dir="rtl"] .lang-switch::after { right: auto; left: 12px; }
@media (max-width: 860px) { [dir="rtl"] .lang-switch::after { left: 14px; right: auto; } }
[dir="rtl"] .hero-actions,
[dir="rtl"] .pd-actions { direction: rtl; }
[dir="rtl"] .faq-item summary { padding: 18px 18px 18px 50px; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 18px; }
@media (max-width: 560px) { [dir="rtl"] .faq-item summary { padding: 17px 18px 17px 50px; } }

/* =========================================================
   404 — custom error page
   ========================================================= */
.error-404 { padding: 96px 0 116px; text-align: center; }
.error-404 .nf-code {
  font-size: clamp(96px, 18vw, 172px);
  font-weight: 900; line-height: 1; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-404 h1 { color: var(--navy); font-size: clamp(26px, 4vw, 38px); margin-top: 8px; font-weight: 800; }
.error-404 .nf-msg { color: var(--gray); font-size: 17px; max-width: 620px; margin: 16px auto 0; }
.error-404 .nf-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
[dir="rtl"] .error-404 .nf-actions { flex-direction: row-reverse; }
.error-404 .nf-actions .btn { min-width: 168px; }
