/* ==========================================================================
   Gangeshwar Enterprises — TMT Bar
   Design tokens: mill scale graphite, concrete grey, hot-metal amber,
   temper blue. Display face Archivo (variable width), body IBM Plex Sans,
   data IBM Plex Mono.
   ========================================================================== */

:root {
  /* colour */
  --graphite: #0f1830;
  --mill: #17264f;
  --slab: #17264f;
  --slab-2: #27396e;
  --zinc: #9aa4b4;
  --zinc-lt: #c3cbd8;
  --concrete: #e7e8e4;
  --paper: #f4f5f2;
  --white: #ffffff;
  --amber: #f26522;
  --amber-dk: #c94e12;
  --amber-tint: #fdf0e6;
  --temper: #27396e;
  --temper-dk: #17264f;
  --rust: #9c4a1e;
  --ok: #2f7d5d;
  --line: #d4d6d1;
  --line-dark: #2b3a63;

  /* type */
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-hero: clamp(2.4rem, 6.2vw, 4.6rem);
  --fs-h2: clamp(1.7rem, 3.4vw, 2.65rem);
  --fs-h3: clamp(1.15rem, 1.9vw, 1.45rem);
  --fs-body: clamp(1rem, 1.05vw, 1.075rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* space */
  --gap: 1.25rem;
  --pad-s: clamp(2.5rem, 5vw, 4rem);
  --pad-l: clamp(3.5rem, 7vw, 6.5rem);
  --wrap: 1240px;
  --radius: 3px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--graphite);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--temper-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber-dk); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-stretch: 105%; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.1em; }
li { margin-bottom: 0.4em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: #fff; padding: 0.7rem 1.2rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* ------------------------------------------------- signature: rib rule -- */
/* The rolled rib pattern of a TMT bar, used as the divider throughout.    */
.rib {
  height: 13px;
  border: 0;
  margin: 0;
  background:
    repeating-linear-gradient(64deg, rgba(0,0,0,0) 0 7px, rgba(0,0,0,.42) 7px 10px),
    linear-gradient(180deg, #5f666b 0%, #c6cbce 20%, #949a9f 52%, #3a4045 100%);
}
.rib--thick { height: 22px; }
.rib--amber {
  background:
    repeating-linear-gradient(64deg, rgba(0,0,0,0) 0 7px, rgba(0,0,0,.38) 7px 10px),
    linear-gradient(180deg, #ff9057 0%, #f26522 45%, #a33a08 100%);
}

/* ------------------------------------------------------------- header -- */
.masthead {
  background: var(--graphite);
  color: var(--concrete);
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line-dark);
}
.masthead__bar {
  display: flex; align-items: center; gap: var(--gap);
  padding: 0.7rem 0;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__name {
  font-family: var(--display); font-weight: 800; font-stretch: 120%;
  text-transform: uppercase; letter-spacing: 0.01em; font-size: 1.05rem; line-height: 1;
}
.logo__sub {
  display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--zinc); text-transform: uppercase; margin-top: 3px;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: var(--concrete); text-decoration: none; font-size: var(--fs-sm);
  font-weight: 500; letter-spacing: 0.01em;
}
.nav a:hover { color: var(--amber); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-dark);
  color: var(--concrete); padding: 0.45rem 0.7rem; font-family: var(--mono);
  font-size: var(--fs-xs); letter-spacing: 0.1em; cursor: pointer; border-radius: var(--radius);
}

/* ----------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.9rem;
  padding: 0.78rem 1.35rem; border: 0; border-radius: var(--radius);
  background: var(--amber); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--amber-dk); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--concrete); box-shadow: inset 0 0 0 1.5px var(--zinc); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px var(--amber); }
.btn--dark { background: var(--graphite); }
.btn--dark:hover { background: var(--slab); }
.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.8rem; }

/* -------------------------------------------------- eyebrow / tag --- */
.tag {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-dk);
  background: var(--amber-tint); padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border-left: 3px solid var(--amber); margin-bottom: 0.9rem;
}
.tag--dark { color: var(--amber); background: rgba(242,101,34,.12); }

/* ------------------------------------------------------- breadcrumb -- */
.crumbs {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.05em;
  color: var(--zinc); padding: 0.75rem 0; text-transform: uppercase;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 0.45rem; color: var(--slab-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--zinc); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs--dark { background: var(--mill); }

/* ------------------------------------------------------------ hero --- */
.hero { background: var(--graphite); color: var(--concrete); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 20%, transparent 75%);
}
.hero__inner {
  position: relative; display: grid; gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1.15fr 0.85fr; align-items: center;
  padding: var(--pad-l) 0;
}
.hero h1 { color: var(--white); text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--zinc-lt); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem;
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--zinc);
}
.hero__meta strong { color: var(--white); font-weight: 600; display: block; font-size: 1rem; letter-spacing: 0; }

/* --------------------------------- signature: mill test certificate --- */
.mtc {
  background: #fbfbf8; color: var(--graphite);
  border: 1px solid var(--line); border-top: 5px solid var(--amber);
  box-shadow: 0 22px 50px -28px rgba(0,0,0,.8);
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.5;
}
.mtc__head {
  padding: 0.85rem 1rem; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
}
.mtc__title { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--zinc); }
.mtc__grade { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.mtc__rows { padding: 0.35rem 0; }
.mtc__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 1rem; border-bottom: 1px dotted #e3e3dd;
}
.mtc__row:last-child { border-bottom: 0; }
.mtc__row dt { color: var(--zinc); margin: 0; }
.mtc__row dd { margin: 0; font-weight: 600; text-align: right; }
.mtc__foot {
  padding: 0.7rem 1rem; background: #f0f0eb; border-top: 1px dashed var(--line);
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zinc);
  display: flex; justify-content: space-between; gap: 0.5rem;
}
.mtc dl { margin: 0; }

/* --------------------------------------------------------- sections --- */
.section { padding: var(--pad-s) 0; }
.section--tight { padding: clamp(2rem, 3.5vw, 3rem) 0; }
.section--dark { background: var(--mill); color: var(--concrete); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--concrete { background: var(--concrete); }
.section__head { max-width: 68ch; margin-bottom: 2rem; }
.section__head p { color: #4b5257; }
.section--dark .section__head p { color: var(--zinc-lt); }

/* ------------------------------------------------------------ grid ---- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: minmax(0,1fr) 340px; gap: clamp(1.5rem,3vw,3rem); align-items: start; }

/* ----------------------------------------------------------- cards ---- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem;
}
.card h3 { margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; }
.card__n {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.12em;
  color: var(--amber-dk); display: block; margin-bottom: 0.5rem;
}
.section--dark .card { background: var(--slab); border-color: var(--line-dark); }
.section--dark .card p { color: var(--zinc-lt); }

.link-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--zinc-lt); border-radius: var(--radius);
  padding: 0.85rem 1rem; text-decoration: none; color: var(--graphite);
  transition: border-color .15s ease, transform .15s ease;
}
.link-card:hover { border-left-color: var(--amber); transform: translateX(2px); color: var(--graphite); }
.link-card strong { display: block; font-weight: 600; }
.link-card span { font-family: var(--mono); font-size: var(--fs-xs); color: var(--zinc); letter-spacing: 0.06em; }

/* ----------------------------------------------------------- table ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 0.82rem; }
caption { text-align: left; padding: 0.9rem 1rem; font-family: var(--body); font-size: var(--fs-sm); color: #4b5257; border-bottom: 1px solid var(--line); }
th, td { padding: 0.62rem 0.9rem; text-align: left; border-bottom: 1px solid #edeee9; white-space: nowrap; }
thead th {
  background: var(--graphite); color: var(--concrete); font-weight: 600;
  font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase;
}
tbody tr:nth-child(even) { background: #fafaf7; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }

/* ------------------------------------------------------------ specs --- */
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec-strip div { background: var(--white); padding: 1rem; }
.spec-strip dt { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.11em; text-transform: uppercase; color: var(--zinc); margin-bottom: 0.3rem; }
.spec-strip dd { margin: 0; font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 1.45rem; text-transform: uppercase; }
.spec-strip dd small { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; color: var(--zinc); letter-spacing: 0.06em; }

/* ------------------------------------------------------------ media --- */
.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.figure figcaption {
  padding: 0.65rem 0.9rem; font-family: var(--mono); font-size: var(--fs-xs);
  color: var(--zinc); letter-spacing: 0.05em; border-top: 1px solid var(--line);
}
.media-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* -------------------------------------------------------------- faq --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 600; list-style: none; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 0.85rem;
  font-family: var(--mono); font-size: 1.3rem; color: var(--amber); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { padding: 0 0 1.1rem; color: #4b5257; max-width: 78ch; }

/* -------------------------------------------------- people also ask --- */
.pasf { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.pasf li {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.04em;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--temper); padding: 0.42rem 0.7rem; color: #444b50;
  margin: 0;
}

/* ----------------------------------------------------------- callout -- */
.callout {
  border-left: 4px solid var(--rust); background: #fbf3ee;
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
}
.callout h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.callout p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- cta --- */
.cta-band { background: var(--graphite); color: var(--concrete); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: clamp(2rem,4vw,3.2rem) 0;
}
.cta-band h2 { margin-bottom: 0.3rem; color: var(--white); max-width: 22ch; }
.cta-band p { color: var(--zinc-lt); margin: 0; max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ------------------------------------------------------------ aside --- */
.quote-box {
  background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--amber);
  border-radius: var(--radius); padding: 1.35rem; position: sticky; top: 84px;
}
.quote-box h3 { font-size: 1.15rem; }
.field { margin-bottom: 0.75rem; }
.field label {
  display: block; font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--zinc); margin-bottom: 0.3rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--body); font-size: 0.95rem; background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); background: #fff; }
.quote-box .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.quote-box__note { font-family: var(--mono); font-size: 0.68rem; color: var(--zinc); letter-spacing: 0.04em; margin: 0.8rem 0 0; }

/* ----------------------------------------------------------- footer --- */
.footer { background: var(--graphite); color: var(--zinc-lt); padding-top: var(--pad-s); }
.footer h4 {
  font-size: 0.78rem; letter-spacing: 0.16em; color: var(--white);
  font-family: var(--mono); font-weight: 600; font-stretch: normal; margin-bottom: 0.9rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.4rem; }
.footer a { color: var(--zinc-lt); text-decoration: none; font-size: 0.88rem; }
.footer a:hover { color: var(--amber); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1.8rem; padding-bottom: 2.4rem; }
.footer__legal {
  border-top: 1px solid var(--line-dark); padding: 1.2rem 0; font-family: var(--mono);
  font-size: var(--fs-xs); color: var(--zinc); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 0.8rem;
}
.footer__legal a { font-size: var(--fs-xs); }

/* --------------------------------------------------------- sticky bar - */
.callbar { display: none; }

/* ------------------------------------------------------------ utils --- */
.mono { font-family: var(--mono); }
.muted { color: var(--zinc); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > :first-child { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------- responsive --- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .grid--sidebar { grid-template-columns: 1fr; }
  .quote-box { position: static; }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--mill); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 0.5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 0.8rem; width: 100%; justify-content: center; border-bottom: 0; }
  .nav__toggle { display: block; margin-left: auto; }
  .grid--2, .grid--3, .grid--4, .media-row { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 64px; }
  .callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    border-top: 1px solid var(--line-dark);
  }
  .callbar a {
    flex: 1; text-align: center; padding: 1rem 0.5rem; text-decoration: none;
    font-family: var(--display); font-weight: 700; font-stretch: 112%;
    text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem;
  }
  .callbar__call { background: var(--graphite); color: var(--white); }
  .callbar__wa { background: var(--amber); color: #fff; }
}

/* --------------------------------------------------------- a11y prefs - */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------- print -- */
@media print {
  .masthead, .footer, .cta-band, .callbar, .quote-box { display: none; }
  body { background: #fff; }
}
