/* =====================================================================
   Ashapura Metal Industries — design system + components
   Industrial-premium: steel-charcoal chrome, refined brand red,
   cool neutrals, Barlow Semi Condensed + Inter. Mobile-first.
   ===================================================================== */

:root {
  /* brand */
  --brand:      #C42026;
  --brand-600:  #A5171C;
  --brand-700:  #7E1216;
  --brand-050:  #FBEAEA;

  /* ink / neutrals (cool steel) */
  --ink:        #14181E;
  --ink-2:      #2C333C;
  --muted:      #57626E;
  --faint:      #8A94A0;
  --line:       #E4E8EC;
  --line-2:     #D2D9DF;
  --paper:      #F4F6F8;
  --surface:    #FFFFFF;
  --surface-2:  #EDF1F4;

  /* dark chrome */
  --steel-900:  #171D25;
  --steel-800:  #202833;
  --steel-700:  #2E3844;
  --on-dark:    #E9ECF0;
  --on-dark-mut:#9DA8B4;

  /* accents */
  --wa:         #25D366;
  --wa-700:     #128C7E;
  --gold:       #C79A3E;
  --ok:         #1F7A46;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(15,20,26,.05), 0 4px 14px rgba(15,20,26,.06);
  --shadow:     0 2px 6px rgba(15,20,26,.06), 0 14px 40px rgba(15,20,26,.08);
  --container:  1180px;
  --header-h:   72px;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Semi Condensed", "Arial Narrow", var(--sans);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.section-head { max-width: 640px; margin: 0 0 30px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 8px 0 0; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(196,32,38,.35); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { --bg: var(--brand); } .btn--primary:hover { --bg: var(--brand-600); }
.btn--wa { --bg: var(--wa); } .btn--wa:hover { --bg: var(--wa-700); }
.btn--dark { --bg: var(--steel-800); } .btn--dark:hover { --bg: var(--steel-700); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--ghost:hover { --bg: var(--surface-2); --fg: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 16px; padding: 0 28px; }
.btn--sm { min-height: 40px; font-size: 14px; padding: 0 15px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--steel-900); color: var(--on-dark); box-shadow: 0 1px 0 rgba(255,255,255,.04), var(--shadow-sm); }
.header-bar { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { width: 46px; height: 46px; border-radius: 10px; background: #fff; padding: 5px; object-fit: contain; flex: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; color: #fff; letter-spacing: -.01em; }
.brand__name small { display: block; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mut); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--on-dark); font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.active { color: #fff; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .callpill { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; color: var(--on-dark); font-size: 12px; }
.header-cta .callpill b { font-family: var(--display); font-size: 18px; color: #fff; }
.hamburger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--steel-700); background: var(--steel-800); color: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger svg { width: 22px; height: 22px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,14,18,.55); backdrop-filter: blur(2px); }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 86%); background: var(--steel-900); color: var(--on-dark); display: flex; flex-direction: column; padding: 18px; gap: 6px; animation: drawerIn .2s ease; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer__panel { animation: none; } }
.drawer__top { display: flex; align-items: center; margin-bottom: 10px; }
.drawer__top .brand__name { color: #fff; }
.drawer__close { margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--steel-700); background: var(--steel-800); color: #fff; font-size: 20px; cursor: pointer; }
.drawer a.dl { color: var(--on-dark); font-weight: 600; font-size: 17px; padding: 14px 12px; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.drawer a.dl:hover { background: rgba(255,255,255,.06); color: #fff; }
.drawer__cta { margin-top: auto; display: grid; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--steel-900); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(1100px 500px at 85% -10%, rgba(196,32,38,.22), transparent 60%),
  linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: clamp(40px, 6vw, 84px) 0; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #fff; background: linear-gradient(180deg, transparent 62%, rgba(196,32,38,.55) 0); padding: 0 .05em; }
.hero__lead { color: var(--on-dark-mut); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 52ch; margin: 18px 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats .s b { font-family: var(--display); font-size: 1.7rem; color: #fff; display: block; line-height: 1; }
.hero__stats .s span { font-size: 12.5px; color: var(--on-dark-mut); letter-spacing: .04em; }
.hero__media { position: relative; }
.hero__media .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__media img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow); background: var(--steel-800); }
.hero__media img:nth-child(1) { aspect-ratio: 3/4; grid-row: span 2; }

/* ---------- trust bar ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust__row { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; padding: 16px 0; }
.trust__item { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.trust__item svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ---------- category chips (filter) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; }
.chip { font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: .12s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* category cards (home) */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.catcard { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--steel-800); box-shadow: var(--shadow-sm); }
.catcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.catcard:hover img { transform: scale(1.06); }
.catcard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.05rem; background: linear-gradient(0deg, rgba(10,14,18,.85), transparent); }

/* ---------- product grid + card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard__img { position: relative; aspect-ratio: 1/1; background: var(--surface-2); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__tag { position: absolute; top: 10px; left: 10px; background: rgba(23,29,37,.86); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 15px 16px; }
.pcard__title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.12; color: var(--ink); }
.pcard__price { margin: 8px 0 0; font-weight: 700; color: var(--brand); font-size: 1.05rem; font-family: var(--display); }
.pcard__price .u { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pcard__price .noprice { color: var(--muted); font-weight: 600; font-size: .95rem; }
.pcard__specs { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pcard__specs li { font-size: 13px; color: var(--muted); display: flex; gap: 6px; }
.pcard__specs li b { color: var(--ink-2); font-weight: 600; }
.pcard__foot { margin-top: auto; padding-top: 14px; }
.pcard__foot .btn { width: 100%; }

/* ---------- features / why us ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.feature__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.statbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); }
.statbox b { font-family: var(--display); font-size: 1.5rem; color: var(--ink); display: block; line-height: 1; }
.statbox span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; border-radius: 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(30px,5vw,50px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: 6px 0 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field label .req { color: var(--brand); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); font: inherit; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050); }
.formmsg { display: none; padding: 12px 15px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.formmsg.is-ok { display: block; background: #e6f4ea; color: var(--ok); border: 1px solid #a9d9bb; }
.formmsg.is-error { display: block; background: var(--brand-050); color: var(--brand-700); border: 1px solid #f0b8b8; }

/* ---------- footer ---------- */
.site-footer { background: var(--steel-900); color: var(--on-dark-mut); padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: var(--on-dark-mut); display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-about .brand__name { color: #fff; margin-bottom: 12px; }
.footer-about p { font-size: 14px; color: var(--on-dark-mut); }
.footer-contact div { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0; text-align: center; font-size: 13px; color: var(--on-dark-mut); }

/* ---------- sticky mobile CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; grid-template-columns: 1fr 1fr 1fr; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,20,26,.1); padding-bottom: env(safe-area-inset-bottom); }
.mobile-cta a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.mobile-cta a svg { width: 22px; height: 22px; }
.mobile-cta a.call { color: var(--brand); }
.mobile-cta a.wa { color: var(--wa-700); }
.mobile-cta a.enq { color: var(--ink-2); }
.mobile-cta a + a { border-left: 1px solid var(--line); }

/* ---------- contact modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: none; }
.modal.open { display: grid; place-items: center; padding: 18px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10,14,18,.55); backdrop-filter: blur(3px); }
.modal__card { position: relative; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); width: 100%; max-width: 440px; padding: 26px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 18px; cursor: pointer; color: var(--muted); }
.modal__card h3 { text-align: center; font-size: 1.5rem; }
.modal__card .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.modal__opts { display: grid; gap: 10px; }
.modal__opt { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; }
.modal__opt:hover { border-color: var(--brand); background: var(--brand-050); color: var(--ink); }
.modal__opt .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.modal__opt small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.modal__addr { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13.5px; color: var(--muted); }

/* loading / empty */
.loading, .empty { text-align: center; padding: 46px 16px; color: var(--muted); grid-column: 1/-1; }
.skeleton { border-radius: var(--radius); aspect-ratio: 1/1; background: linear-gradient(90deg,#eaedf0,#f4f6f8,#eaedf0); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@media (prefers-reduced-motion: reduce){ .skeleton{ animation:none } }

.page-head { background: var(--steel-900); color: #fff; padding: clamp(30px,5vw,56px) 0; position: relative; overflow: hidden; }
.page-head::after { content:""; position:absolute; inset:0; background: radial-gradient(800px 300px at 90% 0%, rgba(196,32,38,.22), transparent 60%); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; }
.page-head .crumb { color: var(--on-dark-mut); font-size: 13px; margin-bottom: 8px; }
.page-head .crumb a { color: var(--on-dark-mut); } .page-head .crumb a:hover { color: #fff; }

/* ---------- hero vector art + badge ---------- */
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.hero__art .scene { transition: opacity 1s ease; }
.hero__art .scene:not(.active) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero__art .scene { transition: none; } }
.hero__badge { position: absolute; left: -10px; bottom: 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 12px; max-width: 280px; }
.hero__badge .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.hero__badge b { display: block; font-family: var(--display); color: var(--ink); font-size: 1.05rem; line-height: 1.1; }
.hero__badge small { color: var(--muted); font-size: 12.5px; }
.hero__chip { position: absolute; right: 12px; top: 14px; background: rgba(23,29,37,.7); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }

/* ---------- about gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; align-items: start; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface-2); border: 1px solid var(--line); }
.gallery figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- language switcher ---------- */
.lang { display: inline-flex; align-items: center; background: var(--steel-800); border: 1px solid var(--steel-700); border-radius: 999px; padding: 3px; gap: 2px; }
.lang button { border: 0; background: none; color: var(--on-dark-mut); font: 600 13px/1 var(--sans); padding: 7px 11px; border-radius: 999px; cursor: pointer; min-width: 34px; }
.lang button:hover { color: #fff; }
.lang button.active { background: var(--brand); color: #fff; }
.drawer .lang { align-self: flex-start; margin: 4px 0 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .catgrid { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .hamburger { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: 64px; } /* room for sticky CTA */
  .mobile-cta { display: grid; }
  .catgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form .row2 { grid-template-columns: 1fr; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .pcard__specs { display: none; } /* keep mobile cards compact */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
