/* Jaksh Steel Trading — minimal, lightweight stylesheet */

:root {
  --blue: #1a5fd6;
  --blue-dark: #0f46a8;
  --ink: #1d2229;
  --slate: #3a414b;
  --muted: #69717d;
  --line: #e5e8ec;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --dark: #15191f;
  --radius: 12px;
  --wrap: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font: 400 1rem/1.7 var(--font);
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 .6em;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.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;
}

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .5rem 1rem; background: var(--ink); color: #fff; border-radius: 6px;
}
.skip:focus { top: 1rem; color: #fff; }

.eyebrow {
  margin-bottom: .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}

.lead { font-size: 1.15rem; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  font: 600 .95rem/1 var(--font);
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--line); }
.btn--sm { padding: .65rem 1.15rem; font-size: .88rem; }

.link { font-weight: 600; }
.link span { display: inline-block; transition: transform .2s; }
.link:hover span { transform: translateX(4px); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand img { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--slate); font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child  { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { color: var(--blue); }
.hero__text > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.hero__media { margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.tags li {
  padding: .35rem .9rem;
  font-size: .85rem; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Stats */
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; margin-bottom: .25rem; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.stat:first-child strong { color: var(--blue); }
.stat span { font-size: .9rem; color: var(--muted); }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #aab1bb; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: #6f9cf0; }

.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head--wide { max-width: 780px; }
.section__head p:not(.eyebrow) { color: var(--muted); }

.center { text-align: center; margin-top: 2.5rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split__media img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.split__media img:last-child { margin-top: 3rem; }
.split__media--single { display: block; }
.split__media--single img { aspect-ratio: 4 / 3; margin-top: 0 !important; }
.split__text > p:not(.eyebrow):not(.lead) { color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.product {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  color: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product:hover { color: inherit; border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(15, 70, 168, .45); }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.product:hover img { transform: scale(1.05); }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.product__no { font-size: .75rem; font-weight: 600; color: var(--muted); }
.product h3 { margin: .2rem 0 .4rem; font-size: 1.2rem; }
.product__desc { margin-bottom: 1rem; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.product__more { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--blue); }

/* Strength cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
.icon {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 1.25rem;
  fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: #eaf1fd; border-radius: 10px;
}

/* Why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.why__item { padding-top: 1.5rem; border-top: 1px solid #2c333d; }
.why__item p { margin: 0; font-size: .95rem; }

/* Supply steps */
.steps { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem .45rem .45rem;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  background: var(--bg-alt); border-radius: 999px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem;
  font-size: .75rem; font-weight: 600; color: #fff;
  background: var(--blue); border-radius: 50%;
}

.goal { margin: 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--blue); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.goal p { margin: 0; color: var(--ink); }
.goal p:first-child { font-weight: 600; margin-bottom: .25rem; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.contact > div { max-width: 640px; }
.contact p:not(.eyebrow) { margin: 0; color: var(--muted); }

input {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 95, 214, .15); }
input.is-invalid { border-color: #d64545; }

.form__status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form__status.is-ok { color: #1f8a4c; }
.form__status.is-error { color: #d64545; }

/* Footer */
.footer { padding-top: 4rem; background: var(--bg); border-top: 1px solid var(--line); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr; gap: 3rem; padding-bottom: 3rem; }
.footer__logo { width: 150px; margin-bottom: 1rem; }
.footer__grid p { color: var(--muted); }
.footer__nav { display: grid; align-content: start; gap: .6rem; }
.footer__nav a { color: var(--slate); }
.footer__nav a:hover { color: var(--blue); }
.newsletter h3 { font-size: 1rem; }
.newsletter__field { display: flex; gap: .5rem; }
.newsletter__field input { flex: 1; min-width: 0; }
.newsletter .form__status { margin-top: .5rem; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--muted); }

/* ---------- Products page ---------- */
html:has(.jump) { scroll-padding-top: 130px; }

.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.back { display: inline-block; margin-bottom: 1.5rem; font-size: .9rem; font-weight: 600; }

.jump {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-block: 1px solid var(--line);
}
.jump__inner { display: flex; gap: .25rem; padding-block: .55rem; overflow-x: auto; scrollbar-width: none; }
.jump__inner::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; padding: .4rem .9rem;
  font-size: .88rem; font-weight: 500; color: var(--slate);
  border-radius: 999px; transition: background .2s, color .2s;
}
.jump a:hover, .jump a.is-active { background: var(--bg-alt); color: var(--ink); }
.jump a.is-active { background: #eaf1fd; color: var(--blue); }

.spec { margin: 1.75rem 0 2rem; }
.spec dt {
  margin-bottom: .6rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
}
.spec dd { margin: 0 0 1.4rem; }
.spec dd:last-child { margin-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: .3rem .8rem;
  font-size: .85rem; font-weight: 500; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
}
.chips--grade li { color: var(--blue); background: #eaf1fd; border-color: transparent; font-weight: 600; }
.chips--spaced { margin-bottom: 1rem; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: .1rem; top: .5em;
  width: .7rem; height: .38rem;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.checks--dark { margin-top: 1.5rem; }
.checks--dark li { padding-block: .75rem; color: #fff; border-bottom: 1px solid #2c333d; }
.checks--dark li::before { top: 1.2em; border-color: #6f9cf0; }

.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); }

.grade__code { display: block; margin-bottom: .75rem; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--blue); }
.section--alt .card { background: var(--bg); }

.note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.note p { margin: 0; color: var(--muted); }
.note strong { color: var(--ink); }

.finishes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.finishes p:not(.eyebrow) { color: var(--muted); }
.finish-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.finish-list li {
  display: grid; place-items: center; aspect-ratio: 3 / 2;
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, #fbfcfd, #e9edf1);
}

.section--dark .lead--light { color: #fff; }
.section--dark .split p:not(.eyebrow) { color: #aab1bb; }
.section--dark .btn { margin-top: .75rem; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .cards, .why { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--pad) 1.25rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }

  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .split--rev .split__media { order: 0; }
}

@media (max-width: 560px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .products li:last-child { grid-column: 1 / -1; }
  .products li:last-child img { aspect-ratio: 16 / 7; }
  .product__desc { display: none; }
  .cards, .why, .stats__grid, .footer__grid { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(3) { border-left: 0; padding-inline: 0; padding-block: 1.25rem; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .split__media img:last-child { margin-top: 1.5rem; }
  .newsletter__field { flex-direction: column; }
}

/* Products page — responsive */
@media (max-width: 1024px) {
  .profiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .finishes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .profiles, .checks { grid-template-columns: 1fr; }
  .finish-list { gap: .6rem; }
  .finish-list li { font-size: 1.05rem; }
  .note { flex-direction: column; align-items: flex-start; }
}
