/* ================================================================
   CHUAN HOCK HARDWARE — v3 REBUILD
   Premium B2B Industrial · White-predominant · Navy + Crimson accents
   ================================================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9fc;
  --bg-tertiary: #eef2f8;
  --bg-dark: #0a2540;
  --bg-darker: #051a30;
  --text-primary: #0a1628;
  --text-secondary: #5a6478;
  --text-muted: #8a93a3;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.75);
  --brand-blue: #1e3a5f;
  --brand-blue-hover: #163050;
  --brand-blue-subtle: rgba(30, 58, 95, 0.08);
  --brand-red: #c8102e;
  --brand-red-hover: #a30d26;
  --brand-red-subtle: rgba(200, 16, 46, 0.08);
  --border: rgba(10, 22, 40, 0.08);
  --border-strong: rgba(10, 22, 40, 0.14);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 24px 64px rgba(10, 22, 40, 0.16);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'SF Mono', monospace;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ---------------- Skip link (visually hidden until keyboard focus) ---------------- */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

/* ---------------- Container ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (min-width: 900px) {
  .container { padding: 0 40px; }
}

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
p { margin: 0 0 1em; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn-lg { padding: 16px 28px; font-size: 15px; min-height: 52px; }
.btn-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.25);
}
.btn-primary:hover {
  background: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  position: relative;
  z-index: 1;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-blue);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease);
  z-index: -1;
}
.btn-outline:hover {
  color: #fff;
}
.btn-outline:hover::before {
  transform: translateX(0);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-blue);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover {
  color: var(--brand-red);
  gap: 12px;
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  z-index: 50;
  transition: box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(10, 22, 40, 0.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (min-width: 900px) {
  .nav-inner { padding: 18px 40px; }
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  flex: 1;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--brand-red);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--brand-blue); }
.nav-link:hover::after { width: 100%; }
.nav-cta { display: none; flex-shrink: 0; padding: 10px 18px; min-height: 40px; font-size: 13px; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

/* Mobile toggle */
.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  padding: 20px 28px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-link {
  padding: 14px 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-cta { margin-top: 16px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Eyebrow ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-red { color: var(--brand-red); }
.eyebrow-blue { color: var(--brand-blue); }
.eyebrow-red-on-dark { color: #ff5a76; }
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
  animation: pulseDot 2.4s var(--ease) infinite;
}
.eyebrow-red-on-dark .eyebrow-dot { box-shadow: 0 0 0 4px rgba(255, 90, 118, 0.16); }
.eyebrow-bar {
  width: 28px; height: 2px; background: currentColor;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0.04); }
}

/* ---------------- Highlights ---------------- */
.highlight-blue { color: var(--brand-blue); }
.highlight-red { color: var(--brand-red); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(30, 58, 95, 0.04), transparent 60%),
    var(--bg-primary);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 80% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-accent-line {
  position: absolute;
  top: 120px; right: -80px;
  width: 300px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  transform: rotate(-20deg);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { padding: 0 40px; }
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

.hero-text { max-width: 620px; }
.hero-title {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--text-primary);
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.hero-visual-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.decor-circle {
  position: absolute;
  top: 10%; right: 8%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.08), transparent 70%);
  animation: floatDecor 8s ease-in-out infinite;
}
.decor-square {
  position: absolute;
  bottom: 10%; left: 4%;
  width: 90px; height: 90px;
  border: 2px solid var(--brand-red);
  opacity: 0.18;
  transform: rotate(15deg);
  animation: floatDecor 10s ease-in-out infinite reverse;
}
.decor-line {
  position: absolute;
  top: 30%; left: -10px;
  width: 180px; height: 2px;
  background: linear-gradient(90deg, var(--brand-red), transparent);
  opacity: 0.4;
}
@keyframes floatDecor {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-14px) rotate(15deg); }
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 48px rgba(10, 22, 40, 0.14)) drop-shadow(0 8px 16px rgba(10, 22, 40, 0.08));
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-image-wrap img {
  max-width: 480px;
  width: 100%;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-spec-card {
  position: absolute;
  bottom: 8%; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  min-width: 190px;
  animation: heroFloatCard 6s ease-in-out infinite 1s;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.spec-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
}
@keyframes heroFloatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 640px) {
  .hero-spec-card { right: auto; left: 50%; transform: translateX(-50%); bottom: -20px; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.scroll-indicator:hover { color: var(--brand-red); }
.scroll-line {
  width: 2px; height: 32px;
  background: linear-gradient(180deg, var(--brand-red), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -32px; left: 0;
  width: 100%; height: 32px;
  background: var(--brand-red);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(64px); opacity: 0; }
}

/* ---------------- Section base ---------------- */
.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
@media (max-width: 768px) { .section { padding: 72px 0; } }
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .section-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; }
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.section-title-light { color: var(--text-on-dark); }
.section-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.section-lead-center { max-width: 620px; margin: 0 auto; }
.section-head-dark .section-lead { color: var(--text-on-dark-muted); }

/* ---------------- Stats ---------------- */
.stats {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 64px 28px;
  overflow: hidden;
}
.stats-accent-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red) 30%, var(--brand-red) 70%, transparent);
}
.stats-motif {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 24px);
  opacity: 0.7;
  pointer-events: none;
}
.stats-grid {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 56px);
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
}
.stat { position: relative; }
.stat::after {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--brand-red);
  margin: 14px auto 0;
}

/* ---------------- About ---------------- */
.section-about { background: var(--bg-primary); }
.about-motif {
  position: absolute;
  top: 0; right: 0;
  width: 340px; height: 340px;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.12;
  pointer-events: none;
}
.about-media {
  position: relative;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4 / 3;
}
/* decorative red square removed — was appearing detached outside the about-img container */
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.about-media:hover .about-img img { transform: scale(1.04); }
.heritage-badge {
  position: absolute;
  bottom: -24px; right: -16px;
  background: var(--bg-dark);
  color: #fff;
  padding: 22px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 3px solid var(--brand-red);
}
@media (max-width: 640px) {
  .heritage-badge { bottom: -18px; right: 12px; padding: 16px 22px; }
}
.heritage-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  line-height: 1;
}
.heritage-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-top: 4px;
}

.about-copy .section-title { text-align: left; }
.about-copy .section-lead { margin-bottom: 28px; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 15px;
}
.feature-list strong {
  color: var(--text-primary);
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-red-subtle);
  color: var(--brand-red);
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- Products ---------------- */
.section-products {
  background: var(--bg-secondary);
}
.products-motif {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(30, 58, 95, 0.05) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, rgba(30, 58, 95, 0.05) 0 1px, transparent 1px 12px);
  opacity: 0.9;
  pointer-events: none;
}
.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 2;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4f9, #e2e9f1);
}
.product-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card-media img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}
.product-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.product-card-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.meta-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-red);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  transition: gap 0.3s var(--ease);
}
.product-card-link:hover { gap: 10px; }

.products-note {
  margin-top: 40px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 24px;
  background: #fff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.inline-link {
  color: var(--brand-red);
  font-weight: 600;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s var(--ease);
}
.inline-link:hover { color: var(--brand-red-hover); }

/* ---------------- Brands ---------------- */
.section-brands { background: var(--bg-primary); }
.brands-motif {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(200, 16, 46, 0.06) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(200, 16, 46, 0.06) 0, transparent 40%);
  pointer-events: none;
}
.brand-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.brand-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px; height: 3px;
  background: var(--brand-red);
  transition: transform 0.3s var(--ease);
  border-radius: 2px 2px 0 0;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.brand-card:hover::after { transform: translateX(-50%) scaleX(1); }
.brand-card img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.25);
  transition: filter 0.3s var(--ease);
}
.brand-card:hover img { filter: grayscale(0); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

/* ---------------- Trust (dark) ---------------- */
.section-trust {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.trust-motif {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
.section-trust::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red) 30%, var(--brand-red) 70%, transparent);
}
.trust-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.trust-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.trust-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 16, 46, 0.4);
  transform: translateY(-4px);
}
.trust-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-red);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.trust-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}
.trust-card-desc {
  font-size: 14.5px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------------- Location ---------------- */
.section-location { background: var(--bg-primary); }
.location-motif {
  position: absolute;
  bottom: 0; left: 0;
  width: 360px; height: 360px;
  background-image:
    radial-gradient(circle at center, rgba(30, 58, 95, 0.15) 2px, transparent 2.5px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .location-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; }
}
.location-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.info-block {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.info-block:last-child { border-bottom: 0; padding-bottom: 0; }
.info-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: block;
  margin-bottom: 14px;
}
.info-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.4;
}
.info-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table th, .hours-table td {
  padding: 10px 0;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.hours-table th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-primary);
  width: 80px;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.hours-table td {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .closed { color: var(--brand-red); font-weight: 700; }

.contact-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  min-height: 400px;
  position: relative;
}
.location-map iframe {
  width: 100%; height: 100%;
  border: 0;
}

/* ---------------- CTA Ribbon ---------------- */
.cta-ribbon {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-ribbon::before {
  content: '';
  position: absolute;
  top: 50%; right: -10%;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-ribbon::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), transparent);
}
.cta-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-ribbon-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: #fff;
}
.cta-ribbon-sub {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  margin: 0;
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--bg-darker);
  color: var(--text-on-dark-muted);
  padding: 72px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
}
.footer-brand { max-width: 360px; }
.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-blurb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}
.footer-heading {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a, .footer-contact li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}
.footer-list a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-credit {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* ---------------- Popup ---------------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 26, 48, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.popup-overlay.visible { opacity: 1; }
.popup-overlay[hidden] { display: none; }
.popup-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease);
  border-top: 4px solid var(--brand-red);
}
.popup-overlay.visible .popup-card { transform: translateY(0) scale(1); }
.popup-close {
  position: absolute;
  top: 12px; right: 12px;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.2s var(--ease);
}
.popup-close:hover { background: var(--bg-secondary); color: var(--text-primary); }
.popup-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.popup-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--brand-red-subtle);
}
.popup-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text-primary);
}
.popup-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.popup-body p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 14px;
}
.popup-body strong { color: var(--text-primary); }
.popup-signature {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-head);
  font-weight: 600;
}
.popup-tag {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* ---------------- Reveal animations ---------------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal="up"] { transform: translateY(28px); }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none !important; }
  .hero-image-wrap, .decor-circle, .decor-square, .hero-spec-card { animation: none; }
}

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 640px) {
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-text { max-width: 100%; }
  .hero-visual { padding: 20px 0 60px; }
  .hero-image-wrap img { max-width: 340px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
  .hero-trust { gap: 14px; }
  .about-img::before { display: none; }
  .about-copy .section-title { text-align: left; }
}
