/* ─────────────────────────────────────────────
   NORVEXA INDUSTRIES — Shared Stylesheet
   Theme: Industrial Minimal · Stone · Slate · Crimson
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

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

:root {
  /* Neutral palette — warm stone grays */
  --white:    #ffffff;
  --stone-50: #fafaf9;
  --stone-100:#f5f4f2;
  --stone-200:#e8e6e2;
  --stone-300:#d4d1cb;
  --stone-400:#a8a49c;
  --stone-500:#7a766e;
  --stone-700:#3d3b36;
  --stone-900:#1a1917;
  --ink:      #111110;

  /* Accent */
  --red:      #C0392B;
  --red-soft: rgba(192,57,43,0.08);
  --red-mid:  rgba(192,57,43,0.15);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Radii */
  --r-sm:  4px;
  --r:     8px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow:    0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.10), 0 6px 20px rgba(0,0,0,0.05);

  /* Transitions */
  --t:      0.2s ease;
  --t-md:   0.35s ease;
  --t-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--stone-700);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.icon-svg {
  width: 1em; height: 1em; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--stone-100); }
::-webkit-scrollbar-thumb { background: var(--stone-300); border-radius: 2px; }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 68px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--stone-200);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--stone-500);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--ink); background: var(--stone-100); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 7px 16px !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.03em !important;
  transition: background var(--t) !important;
}
.nav-cta:hover { background: var(--red) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13.5px; letter-spacing: 0.02em;
  padding: 11px 22px; border-radius: var(--r-sm);
  transition: all var(--t-slow); cursor: pointer;
  text-decoration: none; border: none;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--red); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,0.3); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--stone-300); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #a93226; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,0.35); }
.btn-ghost { background: transparent; color: var(--stone-500); padding: 11px 16px; }
.btn-ghost:hover { color: var(--ink); }

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--red);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05; color: var(--ink);
  font-weight: 400; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--red); }
.section-title strong { font-weight: 500; }
.section-body {
  color: var(--stone-500); font-size: 15.5px;
  line-height: 1.75; max-width: 500px;
}
.tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 40px;
  background: var(--red-soft); color: var(--red);
  border: 1px solid var(--red-mid);
}
.tag-neutral {
  background: var(--stone-100); color: var(--stone-500);
  border-color: var(--stone-200);
}

/* ─── SECTION ─── */
.section { padding: 100px 0; }
.section-alt { background: var(--stone-50); }
.section-dark { background: var(--ink); }
.section-head { margin-bottom: 64px; }
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--stone-200); }
.divider-lg { height: 1px; background: var(--stone-200); margin: 0 auto; }

/* ─── TABS ─── */
.tabs-wrap {
  border-bottom: 1px solid var(--stone-200);
  margin-bottom: 64px;
}
.tabs-nav {
  display: flex; gap: 0; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 13.5px; color: var(--stone-400);
  padding: 16px 24px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--t); white-space: nowrap;
  cursor: pointer; background: none;
  border-top: none; border-left: none; border-right: none;
  letter-spacing: 0.01em;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── PRODUCT GRID ─── */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all var(--t-slow);
}
.product-card:hover {
  border-color: var(--stone-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card-img {
  height: 210px; overflow: hidden; background: var(--stone-100);
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 24px; }
.product-card-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.product-card-desc { font-size: 13px; color: var(--stone-500); line-height: 1.65; margin-bottom: 16px; }
.product-card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.spec-chip {
  font-size: 10.5px; font-weight: 500;
  background: var(--stone-100); color: var(--stone-500);
  border: 1px solid var(--stone-200);
  padding: 3px 9px; border-radius: 40px;
  letter-spacing: 0.02em;
}
.product-card-link {
  font-size: 12.5px; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 5px;
  letter-spacing: 0.02em;
  transition: gap var(--t);
}
.product-card:hover .product-card-link { gap: 9px; }

/* ─── SPEC TABLE ─── */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.spec-table td { font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--stone-200); vertical-align: top; }
.spec-table td:first-child { color: var(--stone-400); font-weight: 500; width: 42%; padding-right: 16px; }
.spec-table td:last-child { color: var(--ink); font-weight: 500; }
.spec-table tr:last-child td { border-bottom: none; }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--ink);
  padding: 80px 0;
}
.cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px); line-height: 1.1;
  color: var(--white); max-width: 520px;
}
.cta-band h2 em { font-style: italic; color: rgba(192,57,43,0.85); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--stone-900);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,0.38); line-height: 1.8; max-width: 260px; }
.footer-col-title {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.55); transition: color var(--t); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.28); }
.footer-cert {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  display: flex; align-items: center; gap: 6px;
}
.footer-cert::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 140px 0 80px;
  background: var(--stone-50);
  border-bottom: 1px solid var(--stone-200);
}
.page-hero-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--stone-400); margin-bottom: 20px;
}
.breadcrumb a { color: var(--stone-400); transition: color var(--t); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--stone-300); font-size: 10px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .header-inner { padding: 0 24px; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 400;
  background: var(--white);
  padding: 100px 32px 40px;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 22px; font-weight: 500; color: var(--stone-700);
  padding: 14px 0; border-bottom: 1px solid var(--stone-200);
  transition: color var(--t);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--red); }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  color: var(--stone-500); cursor: pointer;
  padding: 8px;
}
.mobile-nav-close .icon-svg { width: 22px; height: 22px; }
