/* ============================================================
   AV RACKS - avracks.ae
   Precision-steel identity: gunmetal greys, signal orange,
   engineering grid, mono spec type.
   ============================================================ */

:root {
  --steel-950: #101318;
  --steel-900: #171b21;
  --steel-850: #1e242c;
  --steel-800: #262d37;
  --steel-700: #37404c;
  --steel-600: #4b5563;
  --steel-500: #64707e;
  --steel-400: #8b95a1;
  --steel-300: #b4bcc5;
  --steel-200: #d6dbe0;
  --steel-100: #e9ecef;
  --steel-050: #f4f5f7;
  --accent: #f25c1a;
  --accent-deep: #d94e12;
  --accent-text: #b83c0a;
  --line: #2c333d;
  --line-light: #dde1e5;
  --font-sans: 'Archivo', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--steel-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--steel-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.mono { font-family: var(--font-mono); }

.lead { font-size: 1.16rem; color: var(--steel-600); max-width: 46em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-accent {
  background: var(--accent);
  color: #15181b;
  font-weight: 700;
}
.btn-accent:hover { background: var(--accent-deep); color: #15181b; }

.btn-ghost {
  background: transparent;
  color: var(--steel-100);
  border-color: var(--steel-600);
}
.btn-ghost:hover { border-color: var(--steel-300); color: #fff; }

.btn-dark {
  background: var(--steel-900);
  color: #fff;
}
.btn-dark:hover { background: var(--steel-700); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--steel-900);
  border-color: var(--steel-300);
}
.btn-outline:hover { border-color: var(--steel-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */

.site-header {
  background: var(--steel-950);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo .logo-mark { flex: none; }

.logo span em {
  font-style: normal;
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-300);
  padding: 10px 14px;
  display: block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; text-decoration: none; }

.site-nav a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--steel-700);
  margin-left: 8px;
}
.site-nav a.nav-cta:hover { border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel-700);
  color: var(--steel-200);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
  min-height: 44px;
  cursor: pointer;
}

/* ---------- ruler strip (technical tick motif) ---------- */

.ruler-strip {
  height: 10px;
  background:
    repeating-linear-gradient(
      to right,
      var(--steel-600) 0, var(--steel-600) 1px,
      transparent 1px, transparent 12px
    ),
    repeating-linear-gradient(
      to right,
      var(--steel-400) 0, var(--steel-400) 1px,
      transparent 1px, transparent 60px
    );
  background-color: var(--steel-900);
  border-bottom: 2px solid var(--accent);
}

/* ---------- hero ---------- */

.hero {
  background-color: var(--steel-950);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--steel-200);
  padding: 84px 0 90px;
}

.hero h1 { color: #fff; max-width: 13em; }

.hero .lead { color: var(--steel-300); margin: 26px 0 36px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: end;
}

.hero-figure { text-align: center; }

.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-top: 14px;
}

/* page hero (interior pages) */

.page-hero {
  background-color: var(--steel-950);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--steel-200);
  padding: 56px 0 60px;
}

.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--steel-300); margin-top: 20px; }

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 26px;
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--steel-600);
}

.breadcrumbs a { color: var(--steel-400); }
.breadcrumbs a:hover { color: var(--steel-200); }

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-grey { background: var(--steel-050); }
.section-dark {
  background: var(--steel-900);
  color: var(--steel-300);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 46em; margin-bottom: 46px; }
.section-head p { color: var(--steel-600); margin-top: 14px; }
.section-dark .section-head p { color: var(--steel-400); }

/* ---------- range cards ---------- */

.range-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.rack-card {
  background: #fff;
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.rack-card:hover {
  border-color: var(--steel-400);
  transform: translateY(-3px);
}

.rack-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.rack-card a:hover { text-decoration: none; }

.rack-card .card-img {
  background: var(--steel-050);
  border-bottom: 1px solid var(--line-light);
  padding: 18px;
}

.rack-card .card-img img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  width: 100%;
}

.rack-card .card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.u-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  border: 1px solid var(--accent);
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  margin-bottom: 12px;
}

.rack-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

.rack-card .dims {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel-500);
  margin-bottom: 12px;
}

.rack-card .card-note {
  font-size: 0.88rem;
  color: var(--steel-600);
  margin-bottom: 16px;
}

.rack-card .card-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  padding-top: 14px;
}

.price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--steel-900);
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- U comparison figure ---------- */

.u-compare-wrap {
  background: var(--steel-850);
  border: 1px solid var(--line);
  padding: 18px 16px 14px;
}

.u-compare-wrap svg { display: block; width: 100%; height: auto; }

/* ---------- feature / who-for grids ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature {
  border: 1px solid var(--line-light);
  background: #fff;
  padding: 28px 26px;
}

.section-dark .feature {
  border-color: var(--line);
  background: var(--steel-850);
}

.feature .f-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.feature h3 { margin-bottom: 10px; }

.feature p { font-size: 0.95rem; color: var(--steel-600); }
.section-dark .feature p { color: var(--steel-400); }

/* ---------- product page ---------- */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.product-media {
  background: var(--steel-050);
  border: 1px solid var(--line-light);
  padding: 34px;
  position: sticky;
  top: 96px;
}

.product-media img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  width: 100%;
}

.product-info h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

.product-summary {
  margin-top: 16px;
  color: var(--steel-600);
}

.product-info .price-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 22px 0 6px;
}

.product-info .price-line .price { font-size: 1.5rem; }

.price-note {
  font-size: 0.86rem;
  color: var(--steel-500);
  margin-bottom: 22px;
}

.included-list {
  list-style: none;
  border-top: 1px solid var(--line-light);
  margin: 24px 0 28px;
}

.included-list li {
  border-bottom: 1px solid var(--line-light);
  padding: 11px 2px;
  font-size: 0.95rem;
  color: var(--steel-700);
  display: flex;
  gap: 12px;
}

.included-list li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  flex: none;
}

/* ---------- spec table ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-light);
  font-size: 0.94rem;
}

.spec-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
  padding: 0 0 12px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.spec-table th {
  width: 42%;
  font-weight: 600;
  color: var(--steel-600);
  background: var(--steel-050);
  border-right: 1px solid var(--line-light);
}

.spec-table td {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--steel-900);
}

/* ---------- prose ---------- */

.prose { max-width: 46em; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose ul { margin: 0 0 1.1em 1.2em; }
.prose li { margin-bottom: 0.35em; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; }

.faq-list details {
  border: 1px solid var(--line-light);
  border-bottom: none;
  background: #fff;
}

.faq-list details:last-child { border-bottom: 1px solid var(--line-light); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--steel-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  flex: none;
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details p {
  padding: 0 22px 20px;
  color: var(--steel-600);
  max-width: 60em;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--steel-950);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  border-top: 2px solid var(--accent);
  color: var(--steel-300);
  padding: 70px 0;
}

.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 44em; margin-bottom: 28px; }

/* ---------- buy table (where-to-buy) ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.buy-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border: 1px solid var(--line-light);
  font-size: 0.95rem;
}

.buy-table th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
  background: var(--steel-050);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
}

.buy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: middle;
}

.buy-table td.mono { font-size: 0.85rem; color: var(--steel-600); }

/* ---------- contact card ---------- */

.contact-card {
  border: 1px solid var(--line-light);
  background: var(--steel-050);
  padding: 30px;
}

.contact-card .mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
  display: block;
  margin-bottom: 6px;
}

.contact-card p { margin-bottom: 18px; }

/* ---------- related ---------- */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--steel-950);
  color: var(--steel-400);
  border-top: 2px solid var(--accent);
  padding: 60px 0 34px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.footer-grid h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--steel-400); }
.footer-grid a:hover { color: #fff; }

.footer-brand p { max-width: 30em; margin-top: 14px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--steel-500);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
}

.footer-bottom a { color: var(--steel-300); }
.footer-bottom a:hover { color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { margin: 36px auto 0; max-width: 440px; }
  .product-layout { grid-template-columns: 1fr; gap: 36px; }
  .product-media { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--steel-950);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 0; }
  .site-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0; }
}

@media (max-width: 560px) {
  .range-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}


/* ---------- round 2 ---------- */

/* breadcrumbs on light (product) pages */
.section-tight .breadcrumbs { color: var(--steel-600); }
.section-tight .breadcrumbs a { color: var(--steel-600); }
.section-tight .breadcrumbs a:hover { color: var(--steel-900); }
.section-tight .breadcrumbs li + li::before { color: var(--steel-500); }

/* order ref chip */
.order-ref {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--steel-600);
  background: #fff;
  border: 1px solid var(--line-light);
  display: inline-block;
  padding: 3px 9px;
}
.product-info .order-ref { margin: -10px 0 22px; }

/* content grid + aside */
.content-aside h3 { margin-bottom: 10px; }
.content-aside .aside-dims { font-size: 0.8rem; color: var(--steel-500); margin-bottom: 6px; }
.content-aside .aside-price { font-size: 1.3rem; margin-bottom: 10px; }
.content-aside .order-ref { margin-bottom: 18px; }
.content-aside .aside-note { font-size: 0.92rem; color: var(--steel-600); margin-bottom: 18px; }
.content-aside .btn { display: block; text-align: center; margin-bottom: 12px; }
.content-aside .aside-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin: 22px 0 8px;
}
.content-aside .aside-links { list-style: none; }
.content-aside .aside-links li { border-top: 1px solid var(--line-light); padding: 8px 0; }

@media (min-width:981px){.content-grid{display:grid;grid-template-columns:minmax(0,46em) 1fr;gap:56px;align-items:start}.content-grid .prose,.content-grid .faq-list{max-width:none}.content-aside{position:sticky;top:96px;background:var(--steel-050);border:1px solid var(--line-light);padding:26px}} @media (max-width:980px){.content-aside{display:none}}

/* keep floating chat clear of page-end content */
main.chat-clear { padding-bottom: 90px; }

/* where-to-buy table: stacked cards on small screens */
@media (max-width: 720px) {
  .buy-table { min-width: 0; border: none; }
  .buy-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }
  .buy-table tr {
    display: block;
    border: 1px solid var(--line-light);
    background: #fff;
    margin-bottom: 16px;
  }
  .buy-table td {
    display: block;
    border-bottom: 1px solid var(--line-light);
    padding: 10px 14px;
  }
  .buy-table tr td:last-child { border-bottom: none; }
  .buy-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel-500);
    margin-bottom: 3px;
  }
  .buy-table td.mono { font-size: 0.95rem; }
}
