/* =========================================================
   Sri Hari Tex — Design System
   Palette born from the product itself: charcoal like asphalt,
   amber like oil held up to light, steel blue for trust,
   rust for urgency. Signature element: the "level gauge" —
   an oil-dipstick-style fill bar used for stock levels and
   as an ambient motif, because that's genuinely informative
   here, not just decoration.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Color */
  --charcoal:      #1B1B1D;
  --charcoal-2:    #232326;
  --graphite:      #3A3A3D;
  --graphite-line: #4A4A4E;
  --amber:         #C6811A;
  --amber-bright:  #E0A23B;
  --steel:         #2C5D8F;
  --steel-light:   #4C7DB0;
  --rust:          #A13D2B;
  --warm-white:    #F3EFE7;
  --warm-white-2:  #E7E1D3;
  --ink:           #201E1B;

  /* Type */
  --font-display: 'Archivo Black', 'Barlow Condensed', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 3px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-condensed); font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Eyebrow / label chip ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--charcoal);
  color: var(--warm-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--amber);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--warm-white);
  letter-spacing: 0.01em;
}
.brand-mark span { color: var(--amber); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warm-white-2);
  opacity: 0.7;
  display: none;
}
@media (min-width: 720px) { .brand-sub { display: inline; } }

.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--warm-white-2);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--amber-bright); border-color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--graphite-line);
  color: var(--warm-white);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--radius);
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0 4px; }
  .site-header .container { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--charcoal); }
.btn-amber:hover { background: var(--amber-bright); }
.btn-outline { background: transparent; color: var(--warm-white); border-color: var(--graphite-line); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber-bright); }
.btn-steel { background: var(--steel); color: var(--warm-white); }
.btn-steel:hover { background: var(--steel-light); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: transparent; border-color: var(--rust); color: var(--rust); }
.btn-danger:hover { background: var(--rust); color: var(--warm-white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--warm-white);
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero::before {
  /* faint drum-ring texture, purely decorative */
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 40px solid var(--graphite);
  opacity: 0.35;
}
.hero::after {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -180px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 26px solid var(--amber);
  opacity: 0.12;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero .container { display: flex; align-items: center; gap: 40px; justify-content: space-between; }
.hero-visual { position: relative; z-index: 2; flex: 0 0 380px; max-width: 380px; }
.hero-visual img { width: 100%; height: auto; }
@media (max-width: 900px) { .hero-visual { display: none; } }
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--amber);
  box-shadow: 0 24px 54px rgba(0,0,0,0.45);
}
.photo-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-frame .photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(27,27,29,0.88);
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-top: 1px solid var(--graphite-line);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.03;
  margin: 18px 0 20px;
  color: var(--warm-white);
}
.hero h1 span { color: var(--amber); }
.hero p.lead {
  font-size: 18px;
  color: var(--warm-white-2);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

/* the gauge motif, used ambiently in the hero */
.hero-gauge {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--warm-white-2);
  letter-spacing: 0.06em;
}
.gauge-track {
  width: 180px;
  height: 10px;
  border: 1px solid var(--graphite-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--charcoal-2);
}
.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  width: 82%;
}

.brand-strip {
  background: var(--charcoal-2);
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  padding: 18px 0;
}
.brand-strip .container {
  display: flex;
  gap: 34px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--warm-white-2);
  font-family: var(--font-condensed);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}
.brand-strip strong { color: var(--amber-bright); }
.brand-strip .container span { margin-right: 34px; display: inline-block; }
.brand-strip .container span:last-child { margin-right: 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.promo-visual { flex: 0 0 260px; max-width: 260px; opacity: 0.95; }
.promo-visual img { width: 100%; height: auto; }
@media (max-width: 720px) { .promo-visual { display: none; } }
.promo-visual .photo-frame img { aspect-ratio: 4 / 3; }
.section-dark { background: var(--charcoal); color: var(--warm-white); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-top: 12px;
}
.section-dark .section-head p { color: var(--warm-white-2); }
.section-head p { color: #5b564d; font-size: 16px; }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cat-card {
  background: var(--charcoal-2);
  color: var(--warm-white);
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--graphite);
  border-left: 4px solid var(--amber);
  transition: border-color .15s, transform .15s, background .15s;
}
.cat-card:hover { border-left-color: var(--amber-bright); transform: translateY(-3px); background: #28282b; }
.cat-card .cat-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warm-white-2);
  opacity: .6;
  display: block;
  margin-bottom: 10px;
}
.cat-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 14px;
  color: var(--warm-white-2);
  margin-bottom: 14px;
}
.cat-card .cat-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-bright);
  letter-spacing: 0.04em;
}

/* ---------- Product grid & card ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-chip {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border: 1px solid #d8d2c2;
  border-radius: 20px;
  color: var(--ink);
  background: var(--warm-white);
  transition: background .15s, color .15s, border-color .15s;
}
.filter-chip:hover { border-color: var(--amber); }
.filter-chip.active { background: var(--charcoal); color: var(--amber-bright); border-color: var(--charcoal); }

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 420px;
}
.search-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #d8d2c2;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  color: var(--ink);
  border: 1px solid #e4dfd2;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.product-card:hover { box-shadow: 0 10px 26px rgba(27,27,29,0.12); transform: translateY(-2px); }
.product-media {
  aspect-ratio: 4 / 3;
  background: var(--warm-white-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #e4dfd2;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-brand-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--charcoal);
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 3px;
  text-transform: uppercase;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { font-family: var(--font-mono); font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.05em; }
.product-body h3 { font-size: 19px; line-height: 1.2; }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--warm-white-2);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 3px;
}
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e0dbcc;
}
.price { font-family: var(--font-mono); font-weight: 600; font-size: 18px; color: var(--ink); }
.price small { font-weight: 400; font-size: 11px; color: #8a8578; display: block; }

/* stock gauge — the signature element, reused as real UI here */
.stock-gauge { width: 96px; }
.stock-gauge .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.stock-gauge .track {
  height: 7px;
  border-radius: 4px;
  background: #e9e4d6;
  overflow: hidden;
}
.stock-gauge .fill { height: 100%; }
.stock-gauge.high .label { color: #3f7d4c; }
.stock-gauge.high .fill { background: #3f7d4c; }
.stock-gauge.mid .label { color: var(--steel); }
.stock-gauge.mid .fill { background: var(--steel); }
.stock-gauge.low .label { color: var(--amber); }
.stock-gauge.low .fill { background: var(--amber); }
.stock-gauge.out .label { color: var(--rust); }
.stock-gauge.out .fill { background: var(--rust); }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed #d8d2c2;
  border-radius: var(--radius);
  color: #6b665a;
}

/* ---------- Why us / features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.feature h4 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: #5b564d; font-size: 15px; }
.feature .feature-mark {
  width: 38px; height: 6px; background: var(--amber); margin-bottom: 14px; border-radius: 3px;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: 34px; margin-top: 28px; flex-wrap: wrap; }
.stat-row .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--charcoal);
}
.stat-row .stat strong span { color: var(--amber); }
.stat-row .stat small { font-family: var(--font-mono); font-size: 11.5px; color: #6b665a; text-transform: uppercase; letter-spacing: 0.05em; }
.about-card {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 30px;
  border-radius: var(--radius);
  border-top: 4px solid var(--amber);
}
.about-card h3 { font-size: 20px; margin-bottom: 12px; }
.about-card ul li { padding: 8px 0; border-bottom: 1px solid var(--graphite); font-size: 14.5px; color: var(--warm-white-2); }
.about-card ul li:last-child { border-bottom: none; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 30px;
  border-radius: var(--radius);
}
.contact-info-card .row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--graphite); }
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row strong { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-bright); margin-bottom: 3px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-condensed); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d2c2;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 22px; font-size: 14.5px; }
.alert-success { background: #e7f2ea; color: #285c37; border: 1px solid #b9dcc3; }
.alert-error { background: #f8e8e4; color: #7d2c1c; border: 1px solid #edc0b3; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--warm-white-2);
  padding: 52px 0 26px;
  border-top: 3px solid var(--amber);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin-bottom: 14px;
}
.footer-grid ul li { padding: 5px 0; font-size: 14.5px; }
.footer-grid ul a:hover { color: var(--amber-bright); }
.footer-bottom {
  border-top: 1px solid var(--graphite);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #9b968a;
  font-family: var(--font-mono);
}

/* ---------- Misc page header (about/contact/products) ---------- */
.page-header {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 46px 0;
  border-bottom: 3px solid var(--amber);
}
.page-header h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.page-header p { color: var(--warm-white-2); max-width: 560px; margin-top: 10px; margin-bottom: 0; }

.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--warm-white-2); opacity: .8; }
.breadcrumb a:hover { color: var(--amber-bright); }
