/* ================================================
   NAVIN INDUSTRIAL COMPANY — Design System
   Aesthetic: Industrial Heritage
   ================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Design Tokens ---------- */
:root {
  /* Color palette — industrial heritage */
  --ink: #0c1821;            /* primary deep navy-charcoal */
  --ink-soft: #1a2733;
  --paper: #f5efe4;          /* warm cream background */
  --paper-deep: #ede5d3;     /* darker cream for cards */
  --rust: #b14a26;           /* burnt orange accent */
  --rust-dark: #8a3818;
  --rust-soft: #d4856a;
  --steel: #4a5d6b;          /* secondary blue-gray */
  --line: #c8bfac;           /* divider / border */
  --line-soft: #d8cfbe;

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle blueprint grid texture on the body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(12, 24, 33, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 24, 33, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 450; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.02em; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust);
  margin-bottom: var(--sp-4);
  display: inline-block;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 60ch;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

section { padding: var(--sp-9) 0; }
@media (max-width: 720px) { section { padding: var(--sp-7) 0; } }

.section-divider {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.logo-mark {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  position: relative;
  top: -2px;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: var(--sp-1) 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--rust); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--rust);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--rust); color: var(--paper); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-4);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(12, 24, 33, 0.08);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; padding: var(--sp-2) 0; width: 100%; }
  .nav-cta { width: 100%; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--rust); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-rust { background: var(--rust); color: var(--paper); }
.btn-rust:hover { background: var(--rust-dark); }
.btn-arrow::after { content: '→'; margin-left: var(--sp-1); transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  padding: var(--sp-10) 0 var(--sp-9);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: end;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: var(--sp-9); }
}

.hero-stamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.hero-stamp::before, .hero-stamp::after {
  content: '';
  height: 1px;
  background: var(--rust);
  flex: 0 0 24px;
}

.hero h1 {
  margin-bottom: var(--sp-5);
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--rust);
}

.hero-meta {
  margin-top: var(--sp-7);
  display: flex;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
}
.hero-meta-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--steel);
  margin-top: var(--sp-2);
}

.hero-cta-row {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

/* Hero sidebar — pillar / quote */
.hero-side {
  border-left: 2px solid var(--rust);
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-5);
  position: relative;
}
.hero-side .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--sp-3);
}
.hero-side blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 350;
}

/* ---------- Pillars / Values ---------- */
.pillars {
  background: var(--ink);
  color: var(--paper);
}
.pillars h2, .pillars .eyebrow { color: var(--paper); }
.pillars .eyebrow { color: var(--rust-soft); }

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}
@media (min-width: 720px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding: var(--sp-6);
  border: 1px solid rgba(245, 239, 228, 0.15);
  border-radius: 2px;
  background: var(--ink-soft);
  transition: border-color 0.3s ease;
}
.pillar:hover { border-color: var(--rust); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--rust-soft);
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-4);
}
.pillar h3 {
  color: var(--paper);
  margin-bottom: var(--sp-3);
  font-size: 1.75rem;
}
.pillar p { color: rgba(245, 239, 228, 0.75); font-size: 0.95rem; }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
  align-items: end;
}
@media (min-width: 860px) {
  .section-head { grid-template-columns: 1.5fr 1fr; gap: var(--sp-8); }
}
.section-head h2 { max-width: 18ch; }

/* ---------- Product Categories ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--paper);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: background 0.25s ease, color 0.25s ease;
  min-height: 320px;
}
.product-card:hover { background: var(--ink); color: var(--paper); }
.product-card:hover h3 { color: var(--paper); }
.product-card:hover .product-card-num { color: var(--rust-soft); }
.product-card:hover .product-card-svg { stroke: var(--rust-soft); }

.product-card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  text-transform: uppercase;
}
.product-card h3 { font-size: 1.5rem; }
.product-card p { font-size: 0.9rem; line-height: 1.55; }

.product-card-svg {
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
  width: 64px;
  height: 64px;
  margin-bottom: var(--sp-3);
  transition: stroke 0.25s ease;
}

/* ---------- Brands strip ---------- */
.brand-strip {
  background: var(--paper-deep);
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-6) var(--sp-7);
  list-style: none;
}
.brand-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.65;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.brand-list li:hover { opacity: 1; }
.brand-logo-mark {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.35) contrast(1.1);
  transition: filter 0.2s ease;
}
.brand-list li:hover .brand-logo-mark { filter: grayscale(100%) brightness(0); }
.brand-list-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.005em;
}
/* When logo image is missing (onerror fired), upsize the text caption so it carries the strip on its own */
.brand-list-name.no-logo {
  font-size: 1.5rem;
  color: var(--ink);
}
.brand-list-name sup {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-left: 4px;
}

/* ---------- Brand Section Logo (brands.html) ---------- */
.brand-section-logo {
  margin-bottom: var(--sp-3);
  height: 56px;
  display: flex;
  align-items: center;
}
.brand-section-logo img {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.2) contrast(1.05);
}

/* ---------- Industry Illustrations ---------- */
.industry-illus {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin-bottom: var(--sp-3);
  color: var(--ink);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.industry-card:hover .industry-illus {
  color: var(--rust);
  opacity: 1;
}

/* ---------- Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1);
  margin-top: var(--sp-7);
}
@media (min-width: 720px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
}
@media (min-width: 980px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
}
.industry-row {
  padding: var(--sp-5) var(--sp-2);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  transition: padding 0.2s ease;
}
.industry-row:hover { padding-left: var(--sp-5); }
.industry-row:hover .industry-name { color: var(--rust); }
.industry-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  flex: 0 0 36px;
}
.industry-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--paper-deep);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
@media (min-width: 860px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: var(--paper);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--sp-5);
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--rust);
  font-weight: 400;
  line-height: 1;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 350;
  margin-top: var(--sp-3);
}
.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-9) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(177, 74, 38, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(177, 74, 38, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--paper); margin-bottom: var(--sp-4); }
.cta-banner p { color: rgba(245, 239, 228, 0.8); margin-bottom: var(--sp-6); font-size: 1.15rem; max-width: 50ch; }
.cta-banner .btn-primary { background: var(--rust); }
.cta-banner .btn-primary:hover { background: var(--rust-dark); }
.cta-banner .btn-outline { color: var(--paper); border-color: var(--paper); }
.cta-banner .btn-outline:hover { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-8) 0 var(--sp-5);
  border-top: 4px solid var(--rust);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-7); }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rust-soft);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
  color: var(--paper);
}
.footer p, .footer a, .footer li { color: rgba(245, 239, 228, 0.7); font-size: 0.9rem; }
.footer a:hover { color: var(--rust-soft); }
.footer ul { list-style: none; }
.footer li { padding: var(--sp-1) 0; }
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(245, 239, 228, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.8rem;
  color: rgba(245, 239, 228, 0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ---------- Page Header (interior pages) ---------- */
.page-header {
  padding: var(--sp-9) 0 var(--sp-8);
  border-bottom: 1px solid var(--line);
}
.page-header .crumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--sp-5);
}
.page-header .crumb a { color: var(--rust); }
.page-header h1 { margin-bottom: var(--sp-5); max-width: 16ch; }
.page-header .lead { max-width: 60ch; }

/* ---------- Content Sections (about, products, etc.) ---------- */
.prose {
  max-width: 70ch;
}
.prose p { font-size: 1.05rem; line-height: 1.75; margin-bottom: var(--sp-5); }
.prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose ul { margin-left: var(--sp-5); margin-bottom: var(--sp-5); }
.prose li { padding: var(--sp-1) 0; }

/* Two-column intro */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: start;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: 1fr 1.4fr; gap: var(--sp-8); }
}
.two-col aside {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  position: sticky;
  top: 100px;
}

/* ---------- Product Detail Sections ---------- */
.product-section {
  border-top: 1px solid var(--line);
  padding: var(--sp-8) 0;
}
.product-section:first-of-type { border-top: 0; padding-top: var(--sp-7); }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: start;
}
@media (min-width: 880px) {
  .product-detail-grid { grid-template-columns: 1fr 1.6fr; gap: var(--sp-8); }
}
.product-detail-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--rust);
  margin-bottom: var(--sp-3);
}
.product-detail h2 { font-size: 2.25rem; margin-bottom: var(--sp-4); }
.product-detail p { color: var(--ink-soft); margin-bottom: var(--sp-5); max-width: 55ch; }

.spec-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  gap: var(--sp-3);
}
.spec-list li strong {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  font-weight: 500;
  align-self: start;
  padding-top: 4px;
}
@media (max-width: 580px) {
  .spec-list li { grid-template-columns: 1fr; gap: var(--sp-1); }
}

/* ---------- Brand Cards ---------- */
.brand-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
@media (min-width: 720px) {
  .brand-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .brand-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.brand-card {
  border: 1px solid var(--line);
  padding: var(--sp-6);
  background: var(--paper);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.brand-card:hover { border-color: var(--rust); transform: translateY(-2px); }
.brand-card-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.brand-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.brand-card p { font-size: 0.95rem; color: var(--ink-soft); }
.brand-card ul { margin-top: var(--sp-4); list-style: none; }
.brand-card li {
  font-size: 0.9rem;
  padding: var(--sp-1) 0;
  color: var(--steel);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.brand-card li::before {
  content: '·';
  color: var(--rust);
  font-weight: 700;
}

/* ---------- Industries page ---------- */
.industry-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
@media (min-width: 720px) {
  .industry-card-grid { grid-template-columns: repeat(2, 1fr); }
}

.industry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
  transition: border-color 0.2s ease;
}
.industry-card:hover { border-color: var(--rust); }
.industry-card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--rust);
  line-height: 1;
}
.industry-card h3 { font-size: 1.4rem; margin-bottom: var(--sp-2); }
.industry-card p { font-size: 0.95rem; color: var(--ink-soft); }
.industry-card .typical {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  margin-top: var(--sp-7);
}
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--sp-8); }
}
.contact-block {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--sp-3);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
}
.contact-value a:hover { color: var(--rust); }
.contact-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--steel);
  margin-top: var(--sp-2);
}

/* Form */
.contact-form {
  background: var(--paper-deep);
  padding: var(--sp-7);
  border: 1px solid var(--line);
}
.form-row {
  margin-bottom: var(--sp-5);
}
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--steel);
  margin-bottom: var(--sp-2);
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 580px) {
  .form-row-grid { grid-template-columns: 1fr 1fr; }
}

.map-frame {
  margin-top: var(--sp-7);
  border: 1px solid var(--line);
  background: var(--paper-deep);
  aspect-ratio: 16/9;
  width: 100%;
  display: block;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { fill: white; width: 28px; height: 28px; }

/* Utility */
.divider-thick { height: 4px; background: var(--rust); width: 48px; margin: var(--sp-5) 0; }
.muted { color: var(--steel); }
.text-center { text-align: center; }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-7 { margin-bottom: var(--sp-7); }

/* ---------- Brand Detail Sections (brands.html) ---------- */
.brand-section {
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--line);
}
.brand-section:first-of-type { border-top: none; }
.brand-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 880px) {
  .brand-section-grid {
    grid-template-columns: 320px 1fr;
    gap: var(--sp-8);
  }
}
.brand-meta-block {
  border-left: 3px solid var(--rust);
  padding-left: var(--sp-5);
}
.brand-meta-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.brand-meta-since {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--sp-4);
}
.brand-meta-block p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink-soft);
  white-space: nowrap;
}
.brand-content h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
}
.brand-content h4:not(:first-child) { margin-top: var(--sp-6); }

/* ---------- SKU Tables ---------- */
.sku-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 600px) {
  .sku-table { grid-template-columns: 1fr 1fr; }
}
.sku-table li {
  list-style: none;
  font-size: 0.875rem;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.sku-table li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--rust);
  border-radius: 50%;
  flex-shrink: 0;
}
.size-range {
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper-deep);
  border-left: 3px solid var(--ink);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.size-range strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: var(--sp-2);
}

/* ---------- Group Companies Section (contact.html) ---------- */
.group-companies {
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
}
.group-intro {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}
.group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 700px) {
  .group-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .group-grid { grid-template-columns: repeat(3, 1fr); }
}
.group-card {
  border: 1px solid var(--line);
  padding: var(--sp-5);
  background: var(--paper);
  transition: border-color 0.2s ease;
}
.group-card:hover { border-color: var(--rust); }
.group-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.group-card-desc {
  font-size: 0.875rem;
  color: var(--steel);
  margin-bottom: var(--sp-3);
}
.group-card-phone {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--rust);
  font-weight: 500;
}
.group-card-phone:hover { color: var(--rust-dark); text-decoration: underline; }

/* ---------- PDF Download CTA ---------- */
.pdf-download-block {
  margin: var(--sp-8) 0;
  padding: var(--sp-7);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 700px) {
  .pdf-download-block { grid-template-columns: 1fr auto; gap: var(--sp-7); }
}
.pdf-download-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--rust);
}
.pdf-download-text .eyebrow {
  color: var(--rust-soft);
  margin-bottom: var(--sp-2);
}
.pdf-download-text h3 {
  color: var(--paper);
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}
.pdf-download-text p {
  font-size: 0.9rem;
  color: rgba(245, 239, 228, 0.7);
  margin: 0;
}
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--rust);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.pdf-download-btn:hover { background: var(--rust-dark); }
.pdf-download-btn svg { width: 18px; height: 18px; }

/* ---------- Anchored brand nav (brands page) ---------- */
.brand-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-6) 0 var(--sp-7);
  padding: var(--sp-4);
  background: var(--paper-deep);
  border: 1px solid var(--line);
}
.brand-anchor-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-3);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.brand-anchor-nav a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- Blog / Article ---------- */
.article-meta {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.article-meta-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.04em;
}
.article-section {
  padding: var(--sp-7) 0 var(--sp-8);
}
.article-body {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body h2 {
  font-size: 1.7rem;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: var(--sp-4); }
.article-body ul,
.article-body ol {
  margin: 0 0 var(--sp-4) var(--sp-4);
  padding-left: var(--sp-3);
}
.article-body ul li,
.article-body ol li { margin-bottom: var(--sp-2); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-numbered-list {
  list-style: decimal;
}
.article-checklist {
  list-style: none;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.article-checklist li {
  position: relative;
  padding-left: 28px;
}
.article-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--rust);
  border-radius: 2px;
}
.article-checklist li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--rust);
  border-bottom: 2px solid var(--rust);
  transform: rotate(45deg);
}
.article-source-note {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  margin-top: var(--sp-6);
}

/* ---------- Featured Insight (home page) ---------- */
.insight-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-6);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--sp-6);
  background: var(--paper);
  transition: border-color 0.2s ease;
}
.insight-card:hover { border-color: var(--rust); }
@media (max-width: 700px) {
  .insight-card { grid-template-columns: 1fr; padding: var(--sp-5); }
}
.insight-card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.insight-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.insight-card h3 a { color: var(--ink); border: none; }
.insight-card h3 a:hover { color: var(--rust); }
.insight-card-excerpt {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: var(--sp-3);
}
.insight-card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  border-bottom: 1px solid var(--rust);
  padding-bottom: 2px;
}

/* ---------- Locations pointer (contact page) ---------- */
.locations-pointer {
  padding: var(--sp-7) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.locations-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0;
}
.locations-list li {
  margin-bottom: var(--sp-3);
}
.locations-list li a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.locations-list li a:hover {
  border-left-color: var(--rust);
  background: var(--cream);
}
.locations-list li strong {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
}
