/* =============================================================
   DESHRAJ STEELS — Design System v2
   Taste-skill redesign: Cold Industrial palette, Geist type stack
   ============================================================= */

:root {
  /* PALETTE — Cold Industrial */
  --white:    #F8F8F6;
  --white-2:  #EFEFED;
  --black:    #111110;
  --black-2:  #1C1C1A;
  --red:      #C8002A;
  --red-2:    #E8003A;
  --steel:    #6B6B72;
  --card:     #E8E8E6;
  --line:     rgba(17,17,16,0.10);
  --line-light: rgba(248,248,246,0.14);

  /* SHADOW — hue-tinted (never pure black) */
  --shadow-sm:  0 2px 8px -2px rgba(17,17,16,0.08);
  --shadow-md:  0 8px 24px -6px rgba(17,17,16,0.10), 0 2px 6px -2px rgba(200,0,42,0.06);
  --shadow-lg:  0 20px 48px -12px rgba(17,17,16,0.12), 0 4px 12px -4px rgba(200,0,42,0.08);

  /* EASING — spring physics */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--black);
  font-family: 'Geist', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* TYPE — Geist stack */
h1, h2, h3, h4 {
  font-family: 'Geist', 'Inter', sans-serif;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-weight: 700;
}
.mono { font-family: 'Geist Mono', 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* CONTAINER */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* EYEBROW — used sparingly (max 1 per 3 sections) */
.eyebrow {
  font-family: 'Geist Mono', 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--red); display: inline-block; }

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

/* FOCUS */
*:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ========================================
   NAV
   ======================================== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,248,246,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease-out);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 20px 32px;
  transition: padding 0.3s var(--ease-out);
}
header.scrolled nav { padding: 14px 32px; }

.logo {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.logo span { color: var(--red); }

.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; color: var(--black); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--black); color: var(--white); padding: 10px 20px;
  border-radius: 2px;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.nav-cta:hover { background: var(--red); }
.nav-cta:active { transform: translateY(1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 22px; height: 2px; background: var(--black); transition: transform 0.25s var(--ease-out), opacity 0.25s; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.35s var(--ease-spring);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-2); border-color: var(--red-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-ghost { border-color: var(--line-light); color: var(--white); }
.btn-ghost:hover { background: rgba(248,248,246,0.08); border-color: rgba(248,248,246,0.35); transform: translateY(-1px); }

.btn-outline { border-color: var(--line); color: var(--black); }
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  display: flex; flex-direction: column;
  overflow: hidden;
  padding-top: 90px;
}
.hero-grid-pattern {
  position: absolute; inset: 0; opacity: 0.4;
  background:
    repeating-linear-gradient(180deg,
      transparent 0px, transparent 47px,
      rgba(248,248,246,0.04) 47px, rgba(248,248,246,0.04) 48px),
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 47px,
      rgba(248,248,246,0.03) 47px, rgba(248,248,246,0.03) 48px);
}
.hero-glow {
  position: absolute; right: -5%; top: 10%; width: 55%; height: 70%;
  background: radial-gradient(ellipse at 60% 40%, rgba(200,0,42,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 80px 32px 60px;
  width: 100%;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(200,0,42,0.9);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.7s var(--ease-spring) 0.1s forwards;
}
.hero-tag::before { content: ""; width: 20px; height: 1px; background: rgba(200,0,42,0.9); }
.hero h1 {
  font-size: clamp(42px, 6.5vw, 88px);
  font-weight: 700; line-height: 0.96; letter-spacing: -0.04em;
  max-width: 820px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-spring) 0.2s forwards;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero-sub {
  font-size: 16px; line-height: 1.65; color: #AAAAA6;
  max-width: 480px; margin-top: 28px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-spring) 0.32s forwards;
}
.hero-actions {
  display: flex; gap: 14px; margin-top: 48px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s var(--ease-spring) 0.44s forwards;
}

/* HERO STATS BAR */
.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-light);
  background: rgba(17,17,16,0.6);
}
.hero-stats-grid {
  max-width: 1180px; margin: 0 auto; padding: 28px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat .num {
  font-family: 'Geist', sans-serif;
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.04em; color: var(--white);
}
.stat .num em { font-style: normal; color: var(--red); }
.stat .label {
  font-size: 11px; color: #888884; text-transform: uppercase;
  letter-spacing: 0.1em; margin-top: 6px;
  font-family: 'Geist Mono', monospace;
}

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 140px 0 80px;
}
.page-header .section-head { margin-bottom: 0; }
.page-header h2 { color: var(--white); letter-spacing: -0.03em; }
.page-header p { color: #AAAAAA; }
.page-header .eyebrow { color: rgba(200,0,42,0.9); }
.page-header .eyebrow::before { background: rgba(200,0,42,0.9); }

/* BREADCRUMB */
.breadcrumb {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: #888884;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.breadcrumb a { color: #888884; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.4; }

/* ========================================
   SECTION SHELL
   ======================================== */
section { padding: 96px 0; }
.section-head { max-width: 600px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; margin-top: 16px;
}
.section-head p { font-size: 15px; color: var(--steel); margin-top: 16px; line-height: 1.7; max-width: 55ch; }

/* ========================================
   CATALOGUE (products index)
   ======================================== */
.catalogue { background: var(--white-2); }

/* TABLE-ROW layout for fabricator audience */
.catalogue-table { width: 100%; border-top: 1px solid var(--line); }
.catalogue-row {
  display: grid;
  grid-template-columns: 80px 1fr 280px 160px;
  gap: 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--black);
  transition: background 0.2s;
}
.catalogue-row:hover { background: var(--card); }
.catalogue-row:active { background: var(--card); }

.cat-thumb {
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; overflow: hidden; background: var(--card);
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cat-info { padding: 20px 24px; border-right: 1px solid var(--line); }
.cat-info h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.cat-info p { font-size: 13px; color: var(--steel); line-height: 1.5; max-width: 55ch; }

.cat-specs { padding: 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.cat-spec-item { display: flex; gap: 10px; align-items: baseline; }
.cat-spec-item .sk { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; min-width: 60px; }
.cat-spec-item .sv { font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 500; }

.cat-cta { padding: 20px 24px; display: flex; align-items: center; justify-content: flex-end; }
.cat-cta-link {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--red); text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}

/* ========================================
   BENTO GRID (homepage products preview)
   ======================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  text-decoration: none; color: var(--black);
  padding: 28px;
  transition: border-color 0.25s, transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
  display: flex; flex-direction: column;
}
.bento-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-card:active { transform: translateY(0) scale(0.99); }
.bento-card.featured { grid-row: span 2; background: var(--black); color: var(--white); }
.bento-card.featured:hover { border-color: var(--red); box-shadow: var(--shadow-lg); }

.bento-card h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 10px; line-height: 1.1;
}
.bento-card.featured h3 { font-size: 28px; }
.bento-card p { font-size: 13px; color: var(--steel); line-height: 1.55; margin-bottom: auto; }
.bento-card.featured p { color: #888884; }
.bento-card-arrow {
  margin-top: 24px;
  font-family: 'Geist Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* ========================================
   WHY US — horizontal divider list
   ======================================== */
.why { background: var(--white); }
.why-list { border-top: 1px solid var(--line); }
.why-item {
  display: grid; grid-template-columns: 200px 1fr 1fr;
  gap: 40px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.why-item-num {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  color: var(--red); letter-spacing: 0.1em; text-transform: uppercase;
}
.why-item h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.why-item p { font-size: 14px; color: var(--steel); line-height: 1.65; }

/* ========================================
   PROCESS / MANUFACTURING — timeline
   ======================================== */
.process { background: var(--black); color: var(--white); }
.process .section-head p { color: #AAAAAA; }

.process-timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.process-timeline::before {
  content: ""; position: absolute;
  top: 28px; left: 0; right: 0; height: 1px;
  background: var(--line-light);
}
.process-step { padding: 0 24px 0 0; }
.process-step:first-child { padding-left: 0; }
.process-step-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--black);
  box-shadow: 0 0 0 1px var(--red);
  margin-bottom: 28px; position: relative; z-index: 1;
}
.process-step .pnum {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  color: rgba(200,0,42,0.8); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.process-step h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.process-step p { font-size: 13px; color: #AAAAAA; line-height: 1.6; }

/* ========================================
   ABOUT
   ======================================== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.about-image-block {
  position: relative; aspect-ratio: 3/4; border-radius: 2px; overflow: hidden;
  background: linear-gradient(160deg, #2a2a28 0%, #111110 60%, #2d0b13 100%);
}
.about-image-block img { width: 100%; height: 100%; object-fit: cover; }
.about-image-tag {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(17,17,16,0.8); backdrop-filter: blur(8px);
  border: 1px solid var(--line-light); padding: 16px 18px; border-radius: 2px;
  color: var(--white);
}
.about-image-tag .mono { font-size: 10px; color: rgba(200,0,42,0.9); letter-spacing: 0.1em; }
.about-image-tag .title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }

.about-copy p { font-size: 16px; line-height: 1.75; color: #333330; margin-bottom: 20px; }
.about-copy p:first-child { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--black); }

.about-list { margin-top: 32px; border-top: 1px solid var(--line); }
.about-list-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.about-list-item .k { font-size: 14px; color: var(--steel); }
.about-list-item .v { font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 500; }

/* ========================================
   PRODUCT DETAIL
   ======================================== */
.product-detail { background: var(--white); }
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
/* Sticky spec sidebar */
.product-specs-sidebar { position: sticky; top: 100px; }

/* ========================================
   CONTACT
   ======================================== */
.contact { background: var(--white-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.contact-info p { font-size: 15px; color: var(--steel); margin-top: 16px; line-height: 1.7; max-width: 44ch; }
.contact-methods { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.contact-method { display: flex; align-items: center; gap: 14px; }
.contact-method .ci {
  width: 42px; height: 42px; border-radius: 2px; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px;
}
.contact-method .ct .l { font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'Geist Mono', monospace; }
.contact-method .ct .v { font-size: 15px; font-weight: 600; margin-top: 2px; letter-spacing: -0.01em; }

form { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: var(--white);
  padding: 11px 13px; font-size: 14px;
  font-family: 'Geist', 'Inter', sans-serif; border-radius: 2px; color: var(--black);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%; margin-top: 6px; padding: 15px; background: var(--red); color: var(--white);
  border: none; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; border-radius: 2px;
  cursor: pointer; transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
  font-family: 'Geist', 'Inter', sans-serif;
}
.form-submit:hover { background: var(--red-2); }
.form-submit:active { transform: translateY(1px) scale(0.99); }

/* ========================================
   FOOTER
   ======================================== */
footer { background: var(--black); color: #AAAAAA; padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light);
}
.footer-logo { font-family: 'Geist', sans-serif; font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.footer-logo span { color: var(--red); }
.footer-grid p { font-size: 13px; margin-top: 14px; line-height: 1.65; max-width: 260px; }
.footer-col h5 { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--white); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 10px; color: #AAAAAA; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 22px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: #666660; flex-wrap: wrap; gap: 10px;
}

/* ========================================
   MOBILE STICKY BAR
   ======================================== */
.mobile-cta-bar { display: none; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.featured { grid-row: span 1; }
  .process-timeline { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-timeline::before { display: none; }
  .why-item { grid-template-columns: 1fr; gap: 12px; }
  .why-item-num { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .catalogue-row { grid-template-columns: 64px 1fr 160px; }
  .cat-cta { display: none; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-specs-sidebar { position: static; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero-inner { padding: 60px 20px 40px; }
  .hero-stats-grid { padding-left: 20px; padding-right: 20px; }
  .bento-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  body { padding-bottom: 72px; }
  .catalogue-row { grid-template-columns: 1fr; }
  .cat-thumb { display: none; }
  .cat-specs { display: none; }
  .mobile-cta-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    background: var(--black); padding: 12px 16px; gap: 10px; border-top: 1px solid var(--line-light);
  }
  .mobile-cta-bar a {
    flex: 1; text-align: center; padding: 13px; border-radius: 2px; font-size: 13px; font-weight: 700;
    font-family: 'Geist', 'Inter', sans-serif;
  }
  .mobile-cta-bar .a1 { background: var(--red); color: var(--white); }
  .mobile-cta-bar .a2 { background: rgba(248,248,246,0.08); color: var(--white); border: 1px solid var(--line-light); }
  section { padding: 56px 0; }
}
