/* ---------------------------------------------------------
   DMX STEEL — DESIGN TOKENS
   --------------------------------------------------------- */
:root {
  --bg: #EEF0F2;
  --surface: #FFFFFF;
  --ink: #23262B;
  --ink-soft: #5B6169;
  --steel: #A6AEB8;
  --steel-line: #D3D8DD;
  --steel-dark: #4A5560;
  --brass: #B9862F;
  --brass-dark: #8F6620;
  --brass-tint: #F4E9D4;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Karla', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --shadow: 0 2px 10px rgba(35, 38, 43, 0.08);
  --shadow-lift: 0 10px 24px rgba(35, 38, 43, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0 0 0.4em; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
a { color: var(--steel-dark); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brass); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  padding: 10px 18px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-large { padding: 13px 24px; font-size: 1rem; }

.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-dark); box-shadow: var(--shadow); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--steel); }
.btn-outline:hover { background: var(--surface); border-color: var(--steel-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--steel-line); }
.btn-ghost:hover { background: var(--surface); }

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 240, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--steel-line);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  text-decoration: none;
}
.quick-actions { display: flex; gap: 10px; }

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  max-width: var(--max-width); margin: 0 auto;
  padding: 56px 20px 40px;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--brass-dark);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; max-width: 16ch;
}
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 30px; }

.category-rail {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  -ms-overflow-style: none; scrollbar-width: thin;
}
.category-rail a {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: var(--surface); border: 1px solid var(--steel-line);
  border-radius: 999px; padding: 8px 16px 8px 10px;
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: border-color 0.12s ease, background 0.12s ease;
}
.category-rail a:hover { border-color: var(--brass); background: var(--brass-tint); }
.category-rail svg { width: 22px; height: 22px; color: var(--steel-dark); }

/* ---------------------------------------------------------
   CATALOG
   --------------------------------------------------------- */
.catalog { max-width: var(--max-width); margin: 0 auto; padding: 10px 20px 20px; }

.category-section { padding: 34px 0 10px; border-top: 1px solid var(--steel-line); }
.category-section:first-child { border-top: none; }

.category-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.category-heading svg { width: 34px; height: 34px; color: var(--brass-dark); flex: 0 0 auto; }
.category-heading h2 { margin: 0; font-size: 1.7rem; }

.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.product-card {
  background: var(--surface); border: 1px solid var(--steel-line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}

.product-media {
  aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 2px);
  background: var(--bg); border: 1px dashed var(--steel-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-media svg { width: 46%; height: 46%; color: var(--steel); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }

.product-name-local { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; margin: 0; }
.product-name-seo { color: var(--ink-soft); font-size: 0.86rem; margin-top: -8px; }
.product-desc { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.spec-row { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-tag {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--steel-dark); background: var(--bg); border: 1px solid var(--steel-line);
  padding: 3px 10px 3px 8px; line-height: 1.6;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}

.product-price {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.98rem; color: var(--ink);
}
.product-price.is-tbd { color: var(--ink-soft); font-weight: 500; font-style: normal; }

.product-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.product-actions .btn { flex: 1 1 auto; justify-content: center; padding: 9px 12px; font-size: 0.86rem; }

/* ---------------------------------------------------------
   TRUST SECTION
   --------------------------------------------------------- */
.trust { max-width: var(--max-width); margin: 10px auto 0; padding: 40px 20px; }
.trust h2 { font-size: 1.7rem; margin-bottom: 20px; }
.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust-grid li { display: flex; flex-direction: column; gap: 6px; }
.trust-grid i { color: var(--brass-dark); font-size: 1.3rem; margin-bottom: 4px; }
.trust-grid strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.trust-grid span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */
.contact { background: var(--steel-dark); color: #fff; margin-top: 20px; }
.contact-grid {
  max-width: var(--max-width); margin: 0 auto; padding: 48px 20px;
  display: grid; gap: 40px; grid-template-columns: 1fr 1fr;
}
.contact h2 { color: #fff; }
.contact-info p { color: #D6DCE2; }

.contact-details { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.contact-details div { display: flex; gap: 10px; align-items: baseline; }
.contact-details dt { font-size: 0.82rem; color: #AFB9C3; margin: 0; min-width: 70px; }
.contact-details dd { margin: 0; font-family: var(--font-mono); font-size: 0.94rem; }
.contact-details a { color: #fff; }

.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); color: #fff; text-decoration: none;
  transition: background 0.12s ease;
}
.social-row a:hover { background: var(--brass); }

.quote-form {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lift);
}
.quote-form h2 { font-size: 1.4rem; }
.form-note { color: var(--ink-soft); font-size: 0.88rem; }
.quote-form label {
  display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 12px;
}
.quote-form .optional { font-weight: 400; color: var(--ink-soft); }
.quote-form input, .quote-form select, .quote-form textarea {
  display: block; width: 100%; margin-top: 6px;
  font-family: var(--font-body); font-size: 0.94rem;
  padding: 9px 11px; border: 1px solid var(--steel-line); border-radius: 4px;
  background: #fff; color: var(--ink);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  border-color: var(--brass);
}
.form-status { min-height: 1.4em; font-size: 0.88rem; margin-top: 8px; }
.form-status.success { color: #1D7A3E; }
.form-status.error { color: #B4231E; }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #B7BEC6; text-align: center;
  padding: 26px 20px; font-size: 0.85rem;
}
.site-footer strong { color: #fff; }
.footer-fine { margin: 4px 0 0; opacity: 0.7; }

/* ---------------------------------------------------------
   MODAL
   --------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; background: rgba(35,38,43,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 100;
}
.modal[hidden] { display: none; }
.modal-panel {
  background: #fff; border-radius: var(--radius); padding: 28px;
  max-width: 420px; width: 100%; position: relative; box-shadow: var(--shadow-lift);
}
.modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.modal-item-name { font-weight: 700; color: var(--brass-dark); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.modal-actions .btn { justify-content: center; }

/* ---------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   --------------------------------------------------------- */
.fab-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; text-decoration: none;
  box-shadow: var(--shadow-lift);
}
.fab-whatsapp:hover { background: var(--whatsapp-dark); }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .header-inner .btn span { display: none; }
}
