/* ============================================================
   Grand Metal — stylesheet
   Design language: engineering datasheet / mill certificate.
   Warm paper ground, ink typography, hairline rules, mono
   spec labels, one marine-blue accent. Sharp 2px radii.
   ============================================================ */

:root {
  /* Ground */
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --paper-3: #e2ded2;
  /* Ink */
  --ink: #16181a;
  --ink-2: #23262a;
  --ink-soft: #3d4248;
  --steel: #6b7178;
  /* Rules */
  --line: #d6d1c4;
  --line-strong: #b9b3a3;
  --line-dark: rgba(233, 238, 243, 0.14);
  /* Accent */
  --accent: #1a5d8f;
  --accent-deep: #124569;
  --accent-on-dark: #6fb3e0;
  --accent-wash: rgba(26, 93, 143, 0.08);
  /* Dark panels (hero / CTA / footer) */
  --panel-dark: #101820;
  --panel-dark-2: #16212c;
  --text-on-dark: #e9eef3;
  --dim-on-dark: #92a2b0;
  /* Utility */
  --whatsapp: #1faa53;
  --note: #8a6a1f;
  --radius: 2px;
  --maxw: 1200px;
  --font-sans: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, "SF Mono", Menlo, monospace;
  --font-ar: "IBM Plex Sans Arabic", "Tahoma", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

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

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

/* Anchor targets clear the sticky header */
section[id], [id="top"] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; border-radius: var(--radius); }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.brand .brand-text span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--steel);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-link {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.icon-link:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-wash); }
.icon-link svg { width: 17px; height: 17px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
  cursor: pointer;
  color: var(--steel);
  font-family: var(--font-mono);
}
.lang-toggle .lang-opt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--radius);
  color: var(--steel);
  transition: background 0.2s, color 0.2s;
}
.lang-toggle .lang-opt.active { background: var(--ink); color: var(--paper); }
.lang-toggle .lang-sep { display: none; }
.lang-toggle:hover { border-color: var(--line-strong); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--panel-dark);
  color: var(--text-on-dark);
  padding: 92px 0 84px;
  overflow: hidden;
  isolation: isolate;
}
/* Drafting-grid ground, faded toward the bottom */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(233, 238, 243, 0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(233, 238, 243, 0.035) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  border: 1px solid var(--line-dark);
  border-inline-start: 2px solid var(--accent-on-dark);
  padding: 7px 14px;
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  line-height: 1.03;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}
.hero h1 span { color: var(--accent-on-dark); }
.hero p.lead {
  font-size: 1.08rem;
  font-weight: 420;
  color: var(--dim-on-dark);
  max-width: 56ch;
  margin: 0 0 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline { border-color: var(--line-dark); color: var(--text-on-dark); }
.btn-outline:hover { border-color: var(--accent-on-dark); color: #fff; }
.btn-whatsapp-solid { background: var(--whatsapp); color: #fff; }
.btn-whatsapp-solid:hover { background: #188a43; }

/* Datasheet stat matrix: hairline-separated cells, mono figures */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  max-width: 560px;
}
.hero-stats div {
  padding: 16px 20px 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.hero-stats div:nth-child(odd) { border-inline-end: 1px solid var(--line-dark); }
.hero-stats div:nth-child(even) { padding-inline-start: 20px; }
.hero-stats div strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero-stats div span {
  font-size: 0.72rem;
  color: var(--dim-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Photo framed like a technical plate */
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--panel-dark-2);
  aspect-ratio: 1 / 1;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual::before {
  content: "";
  position: absolute; inset: 10px; z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16, 24, 32, 0.6) 0%, transparent 38%);
  pointer-events: none;
}
.hero-visual .tag-badge {
  position: absolute; bottom: 20px; left: 20px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  background: rgba(16, 24, 32, 0.78);
  padding: 7px 12px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px;
}
.tag-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--whatsapp); }

/* ---------- Section shells ---------- */
section { padding: 92px 0; }

.section-head {
  max-width: 780px;
  margin: 0 0 56px;
  text-align: start;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.section-head .eyebrow {
  color: var(--accent-deep);
  border-color: var(--line);
  border-inline-start-color: var(--accent);
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

.section-alt { background: var(--paper-2); }

/* ---------- Filter category sub-nav ---------- */
.filt-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -8px;
}
.filt-subnav a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 9px 16px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filt-subnav a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-wash);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
  counter-reset: about;
}
.about-card {
  counter-increment: about;
  background: var(--paper);
  padding: 30px 26px 34px;
  outline: 1px solid var(--line);
  transition: background 0.25s;
}
.about-card:hover { background: #faf9f4; }
.about-card::before {
  content: "0" counter(about);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-bottom: 22px;
}
.about-card .ic {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent-deep);
}
.about-card .ic svg { width: 22px; height: 22px; fill: currentColor; }
.about-card h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); letter-spacing: -0.01em; }
.about-card p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Product sections ---------- */
.product-section { padding: 84px 0; border-top: 1px solid var(--line); }
.product-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: start;
}
.product-layout.reverse .viewer { order: 2; }
.product-layout.reverse .product-info { order: 1; }

.product-info .kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.product-info h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.product-info p.desc { color: var(--ink-soft); font-size: 0.96rem; margin: 0 0 24px; }

/* Spec table: datasheet rows */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line-strong);
}
.spec-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.spec-list li b {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  min-width: 128px;
  flex-shrink: 0;
}
.spec-list li span { font-weight: 550; }

.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.badge-row span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 6px 11px;
  border-radius: var(--radius);
  background: transparent;
}

/* Photo viewer: technical plate */
.viewer {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.viewer img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.viewer:hover img { transform: scale(1.03); }
.viewer::before {
  content: "";
  position: absolute; inset: 10px; z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.viewer::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16, 24, 32, 0.45) 0%, transparent 34%);
  pointer-events: none;
}
.viewer .viewer-hint {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  background: rgba(16, 24, 32, 0.72);
  padding: 6px 10px;
  border-radius: var(--radius);
}
.viewer .viewer-dim {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(16, 24, 32, 0.82);
  padding: 8px 14px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 9px;
}
.viewer .viewer-dim .sw { width: 8px; height: 8px; background: var(--accent-on-dark); }
.viewer .viewer-note {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3e3b8;
  background: rgba(58, 45, 12, 0.78);
  padding: 6px 10px;
  border-radius: var(--radius);
}

/* ---------- Size grid ---------- */
.sizes-block { margin-top: 40px; }
.sizes-block h3 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
}
.size-card {
  position: relative;
  background: #faf9f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}
.size-card::before {
  content: "";
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.size-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.size-card.active { border-color: var(--ink); background: #fff; }
.size-card.active::before, .size-card:hover::before { transform: scaleX(1); }
.size-card-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.size-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.size-unit {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: var(--radius);
}
.size-card.active .size-unit { color: var(--accent-deep); border-color: var(--accent); }
.size-card-actions { display: flex; gap: 6px; }

.btn-icon {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px;
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-icon svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.btn-email:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }

/* ---------- Coupling: materials & pressure ---------- */
.material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 0;
  border-bottom: 1px solid var(--line-strong);
}
.material-tabs button {
  padding: 10px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.material-tabs button:hover { color: var(--ink); }
.material-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.material-panels { padding-top: 16px; }
.material-panels .panel { display: none; color: var(--ink-soft); font-size: 0.9rem; }
.material-panels .panel.active { display: block; }
.material-panels ul { margin: 0; padding-inline-start: 18px; }
.material-panels li { margin-bottom: 6px; }
.material-panels p { margin: 0; }

.pressure-strip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 16px 0;
  margin: 22px 0 0;
}
.pressure-strip div {
  flex: 1 1 auto;
  min-width: 130px;
  padding-inline-end: 20px;
  margin-inline-end: 20px;
  border-inline-end: 1px solid var(--line);
}
.pressure-strip div:last-child { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 0; }
.pressure-strip div strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.pressure-strip div span {
  color: var(--steel);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Contact / CTA ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  padding: 64px 52px;
  background: var(--panel-dark);
  color: var(--text-on-dark);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(233, 238, 243, 0.03) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(233, 238, 243, 0.03) 0 1px, transparent 1px 56px);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cta-band p { color: var(--dim-on-dark); margin: 0; max-width: 50ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { justify-content: center; }
.cta-band .btn-outline { border-color: var(--line-dark); color: var(--text-on-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--line);
  background: var(--line);
}
.contact-card {
  background: var(--paper);
  outline: 1px solid var(--line);
  padding: 28px 26px;
  text-align: start;
  transition: background 0.25s;
}
.contact-card:hover { background: #faf9f4; }
.contact-card .ic {
  width: 42px; height: 42px;
  margin: 0 0 16px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--accent-deep);
}
.contact-card .ic svg { width: 20px; height: 20px; fill: currentColor; }
.contact-card h3 { color: var(--ink); font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.contact-card p { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 14px; }
.contact-card a.link {
  font-family: var(--font-mono);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.contact-card a.link:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--panel-dark);
  color: var(--dim-on-dark);
  padding: 56px 0 28px;
  font-size: 0.86rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid ul a { transition: color 0.2s; }
.footer-grid ul a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: var(--radius); }
.footer-brand strong { color: #fff; letter-spacing: 0.08em; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.footer-social { display: flex; gap: 8px; }
.site-footer .icon-link { border-color: var(--line-dark); color: var(--dim-on-dark); }
.site-footer .icon-link:hover { color: #fff; border-color: var(--accent-on-dark); background: rgba(111, 179, 224, 0.1); }

/* ---------- Floating controls ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 24, 26, 0.14);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.back-to-top:hover { background: var(--ink); color: var(--paper); }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 18px; height: 18px; fill: currentColor; }

.whatsapp-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(31, 170, 83, 0.35);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero { padding: 64px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout, .product-layout.reverse { grid-template-columns: 1fr; gap: 36px; }
  .product-layout .viewer, .product-layout.reverse .viewer { order: -1; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    padding: 6px 24px 14px;
    box-shadow: 0 18px 30px rgba(22, 24, 26, 0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { content: none; }
  .nav-toggle { display: block; }
  .header-actions .icon-link { display: none; }
  .header-inner { position: relative; }
}

@media (max-width: 460px) {
  .brand .brand-text strong { font-size: 0.92rem; white-space: nowrap; }
  .brand .brand-text span { font-size: 0.56rem; }
  .brand img { width: 34px; height: 34px; }
  .hero-stats div strong { font-size: 1.2rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- RTL / Arabic ---------- */
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .product-info h2,
html[dir="rtl"] .cta-band h2 { letter-spacing: 0; line-height: 1.3; }

html[dir="rtl"] .brand-text span,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .hero-stats div span,
html[dir="rtl"] .tag-badge,
html[dir="rtl"] .kicker,
html[dir="rtl"] .size-unit,
html[dir="rtl"] .sizes-block h3,
html[dir="rtl"] .badge-row span,
html[dir="rtl"] .material-tabs button,
html[dir="rtl"] .viewer-hint,
html[dir="rtl"] .viewer-note,
html[dir="rtl"] .filt-subnav a,
html[dir="rtl"] .pressure-strip div span {
  text-transform: none;
  letter-spacing: 0;
}

/* Mirror the manually left/right-positioned elements */
html[dir="rtl"] .skip-link { left: auto; right: -9999px; }
html[dir="rtl"] .skip-link:focus { left: auto; right: 12px; }
html[dir="rtl"] .viewer .viewer-hint { right: auto; left: 18px; }
html[dir="rtl"] .viewer .viewer-note { left: auto; right: 18px; }
html[dir="rtl"] .viewer .viewer-dim { left: auto; right: 18px; }
html[dir="rtl"] .hero-visual .tag-badge { left: auto; right: 20px; }
html[dir="rtl"] .back-to-top { right: auto; left: 22px; }
html[dir="rtl"] .whatsapp-float { left: auto; right: 22px; }
html[dir="rtl"] .spec-list li b { min-width: auto; }
html[dir="rtl"] .size-card::before { transform-origin: right; }
