/* ==========================================================
   Senthil Steel – SS TMT, Symbol of Strength
   ========================================================== */

:root {
  --red: #d01820;          /* SS TMT badge */
  --red-dark: #a8121a;
  --spark: #f7941d;        /* molten steel accent */
  --ink: #16181d;
  --steel: #23272e;
  --steel-2: #2f343c;
  --grey: #f2f3f5;
  --line: #e1e3e7;
  --text: #4b5058;
  --muted: #8a9099;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(22, 24, 29, .08);
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--red-dark); }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 8px 14px;
  background: var(--red);
  color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

[id] { scroll-margin-top: 90px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--ink); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #b9bec6; font-size: 13px; }
.topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 40px;
  padding-block: 6px;
}
.topbar p { margin: 0; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar .icon { color: var(--red); }
.topbar a { color: #e6e8eb; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(22, 24, 29, .1); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 56px; height: 56px; border-radius: 4px; }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.brand-tag { margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); }
.brand-light .brand-name { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 28px 12px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: inset 0 -3px 0 transparent;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-current > a { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.caret { width: 18px; height: 18px; fill: currentColor; }

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 8px 18px; font-size: 15px; color: var(--ink); }
.submenu a:hover,
.submenu a[aria-current="page"] { background: var(--grey); color: var(--red); }

.header-cta .icon { width: 16px; height: 16px; }

.nav-toggle { display: none; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 62vh, 620px);
  padding-block: 80px 120px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-slides,
.hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover;
  background-position: 70% center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.is-active { opacity: 1; transform: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 15, 18, .94) 0%, rgba(14, 15, 18, .78) 42%, rgba(14, 15, 18, .2) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--spark); }
.hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}
.hero h1 span { color: var(--red); text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hero-lead { max-width: 560px; margin-bottom: 30px; font-size: 18px; color: #d7dade; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -64px; }
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stats li { padding: 26px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; border-bottom: 0; }
.stats strong { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--red); }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section-grey { background: var(--grey); }
.section-dark {
  background: var(--steel) repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px);
  color: #c3c8cf;
}
.section-dark h2,
.section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); text-transform: uppercase; }
.section-head .lead { margin: 14px 0 0; font-size: 17px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 3px; background: currentColor; }
.split .section-head,
.quality-row .section-head,
.prose .section-head { margin-bottom: 22px; }

.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 30px; margin-bottom: 36px; }
.head-row .section-head { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; }
.split-top { align-items: start; }

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(208, 24, 32, .1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- About visual ---------- */
.about-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.about-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 18px 18px 0 var(--red);
}
.quote-card {
  position: absolute;
  left: -30px;
  bottom: -30px;
  max-width: 260px;
  margin: 0;
  padding: 20px 22px;
  background: var(--ink);
  border-left: 4px solid var(--spark);
  border-radius: var(--radius);
  color: #fff;
}
.quote-card p { margin: 0; font-family: var(--font-head); font-size: 19px; line-height: 1.35; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.product-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.product-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; border-top: 3px solid var(--red); }
.product-body h3 { font-size: 24px; text-transform: uppercase; }
.product-body p { flex: 1; font-size: 15px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--red);
}
.card-link .icon { transition: transform .2s; }
.product-card:hover .card-link .icon { transform: translateX(4px); }

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px 28px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
}
.step-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--red);
}
.step-icon svg { width: 28px; height: 28px; fill: #fff; }
.step-no {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, .08);
}
.step h3 { font-size: 22px; text-transform: uppercase; }
.step p { margin: 0; font-size: 15px; }
.steps.light .step { background: #fff; border-color: var(--line); }
.steps.light .step h3 { color: var(--ink); }
.steps.light .step-no { color: rgba(22, 24, 29, .07); }

/* ---------- Sizes ---------- */
.size-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.size-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 26px 12px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
a.size-card:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--muted); }
.size-card strong { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--ink); }
.rebar {
  --d: calc(var(--mm) * 3px + 14px);
  display: block;
  width: var(--d);
  height: var(--d);
  margin: 0 0 14px;
  align-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #8c939c 0 18%, transparent 60%),
    radial-gradient(circle, #4b525b 0 58%, #2c3137 60%);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--line);
}
/* reserve the same space for every size so labels line up */
.size-card::before { content: ""; display: block; height: 0; }
.size-card .rebar { margin-top: calc((89px - var(--d)) / 2); margin-bottom: calc((89px - var(--d)) / 2 + 12px); }

/* ---------- Quality ---------- */
.quality-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.checks { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--red);
  fill: #fff;
}
.checks strong { color: var(--ink); }
.quality-row .checks { padding: 30px; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

.big-quote { max-width: 900px; margin: 0 auto; padding-left: 28px; border-left: 5px solid var(--red); }
.big-quote p { margin: 0; font-family: var(--font-head); font-size: clamp(22px, 2.8vw, 32px); font-weight: 500; line-height: 1.4; color: #fff; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feature { padding: 32px 28px; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); }
.feature h2 { font-size: 22px; text-transform: uppercase; }
.feature p { margin: 0; font-size: 15px; }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 50%; background: var(--grey); }
.feature-icon svg { width: 26px; height: 26px; fill: var(--red); }

.badge-panel { display: flex; gap: 24px; align-items: center; padding: 30px; background: var(--ink); border-radius: var(--radius); color: #fff; }
.badge-panel img { width: 106px; flex: none; border-radius: 4px; }
.badge-panel ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.badge-panel li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.badge-panel li:last-child { border-bottom: 0; }
.badge-panel span { color: #aab0b8; font-size: 14px; }
.badge-panel strong { font-family: var(--font-head); font-weight: 500; font-size: 18px; letter-spacing: .5px; }

.center-actions { margin-top: 34px; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: 56px;
  background: var(--red) repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 16px);
  color: #fde5e6;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { margin-bottom: 6px; font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; color: #fff; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero ---------- */
.page-hero {
  padding-block: 64px 58px;
  background:
    linear-gradient(90deg, rgba(14, 15, 18, .96) 0%, rgba(14, 15, 18, .86) 55%, rgba(14, 15, 18, .6) 100%),
    url('../images/hero-2.jpg') 80% center / cover;
  color: #c7ccd3;
}
.page-hero h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; color: #fff; }
.page-hero p { max-width: 680px; margin: 0; font-size: 17px; }
.breadcrumb ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #6d737c; }
.breadcrumb a { color: #e6e8eb; }
.breadcrumb a:hover { color: var(--spark); }
.breadcrumb [aria-current] { color: var(--spark); }

/* ---------- About page ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.prose h2 { font-size: 30px; }
.prose h3 { margin-top: 1.4em; font-size: 22px; text-transform: uppercase; }
.side-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.facts { list-style: none; margin: 0; padding: 8px 24px; background: var(--ink); border-radius: 0 0 var(--radius) var(--radius); color: #fff; }
.facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.facts li:last-child { border-bottom: 0; }
.facts span { font-size: 14px; color: #aab0b8; }
.facts strong { font-family: var(--font-head); font-weight: 500; font-size: 18px; letter-spacing: .4px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--grey); }

.group-list { list-style: none; margin: 0; padding: 26px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 15px; }
.group-list li { display: flex; gap: 8px; align-items: flex-start; }
.group-list .icon { margin-top: 5px; fill: var(--red); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.gallery-grid figure { margin: 0; }
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.product-photo { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.product-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note-box { margin-top: 24px; padding: 22px 24px; background: var(--grey); border-left: 4px solid var(--spark); border-radius: var(--radius); }
.note-box h2 { margin-bottom: 6px; font-size: 20px; text-transform: uppercase; }
.note-box p { margin: 0; font-size: 15px; }

/* ---------- Spec tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.spec-table { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; font-size: 16px; }
.spec-table th,
.spec-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 17px; letter-spacing: .4px; text-transform: uppercase; line-height: 1.3; }
.spec-table thead small { font-family: 'Open Sans', Arial, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #aab0b8; }
.spec-table tbody th { font-family: var(--font-head); font-weight: 500; font-size: 18px; color: var(--ink); white-space: nowrap; }
.spec-table tbody tr:nth-child(even) { background: #fafafb; }
.spec-table tbody tr:hover { background: #fff4f4; }
.spec-table tr.req,
.spec-table tr.req:hover { background: rgba(208, 24, 32, .08); }
.spec-table tr.req th,
.spec-table tr.req td { color: var(--red); font-weight: 700; }
.spec-table tr:target { background: #fff0c9; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.contact-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); }
.contact-card.is-main { border-top-color: var(--red); }
.contact-card h2 { font-size: 26px; text-transform: uppercase; }
.contact-card address { margin-bottom: 16px; font-style: normal; }
.contact-lines { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.contact-lines li { display: flex; gap: 10px; align-items: center; }
.contact-lines .icon { color: var(--red); }
.contact-lines a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--red); }
.map { margin-top: auto; overflow: hidden; border-radius: var(--radius); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

.dealer-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 28px;
  padding: 30px;
  background: var(--grey);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
}
.dealer-box h2 { margin-bottom: 6px; font-size: 26px; text-transform: uppercase; }
.dealer-box p { max-width: 620px; margin: 0; }
.dealer-box .detail-actions { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9aa0a8; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.footer-grid > div { min-width: 0; }
.site-footer h2 { margin-bottom: 18px; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer p { font-size: 14px; }
.group-chip { display: inline-block; padding: 6px; background: #fff; border-radius: var(--radius); }
.group-chip img { width: 72px; height: 72px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #c9cdd3; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 5px; color: var(--red); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 18px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--spark); }

/* ---------- Back to top ---------- */
.go-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--red);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background-color .2s;
}
.go-top.is-visible { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--ink); }
.go-top svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(10, 11, 14, .92);
}
.lightbox[hidden],
.lb-btn[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { margin-top: 12px; color: #d7dade; font-size: 15px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; }
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 26px; height: 26px; fill: #fff; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 20px rgba(22, 24, 29, .12);
    transition: max-height .35s ease;
  }
  .main-nav.is-open { max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 0 20px; }
  .main-nav > ul > li > a { padding: 13px 4px; border-top: 1px solid var(--line); box-shadow: none; }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li.is-current > a { box-shadow: none; }
  .caret { display: none; }
  .submenu { position: static; min-width: 0; padding: 0 0 8px 14px; border-top: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .submenu a { padding: 6px 4px; }
  .header-cta { margin: 10px 20px 20px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .section { padding-block: 64px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split,
  .quality-row,
  .with-sidebar,
  .product-detail { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .about-visual { width: min(100%, 380px); margin-bottom: 30px; }
  .product-grid,
  .steps,
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { max-width: 460px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .topbar p { display: none; }
  .topbar-row { justify-content: center; }
  .header-row { min-height: 68px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 22px; }
  .brand-tag { font-size: 10px; letter-spacing: 1.8px; }
  .main-nav.is-open { max-height: calc(100vh - 68px); }

  .hero { padding-block: 60px 110px; }
  .hero-slide { background-position: 78% center; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 15, 18, .78) 0%, rgba(14, 15, 18, .9) 100%); }
  .hero-lead { font-size: 16px; }
  .stats li { padding: 18px 16px; }
  .stats strong { font-size: 26px; }
  .stats span { font-size: 13px; }

  .section { padding-block: 52px; }
  .product-grid,
  .product-grid.two,
  .gallery-grid,
  .group-list { grid-template-columns: minmax(0, 1fr); }
  .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quote-card { left: 12px; right: 12px; bottom: -40px; max-width: none; }
  .about-visual img { box-shadow: 10px 10px 0 var(--red); }
  .badge-panel { flex-direction: column; align-items: stretch; text-align: left; }
  .badge-panel img { align-self: center; }
  .big-quote { padding-left: 18px; }
  .spec-table { min-width: 0; font-size: 14px; }
  .spec-table th,
  .spec-table td { padding: 10px 8px; }
  .spec-table thead th { font-size: 14px; }
  .spec-table tbody th { font-size: 15px; }
  .contact-card,
  .dealer-box { padding: 22px; }
  .map iframe { height: 240px; }
  .cta-actions,
  .cta-actions .btn,
  .detail-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px 36px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .lightbox { padding: 60px 12px; }
  .go-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide,
  .product-media img,
  .gallery-grid img { transition: none; }
}
