/* ==========================================================================
   SHREE BALAJI FABRICATION AND ENGINEERING WORKS
   Design tokens:
   --ink:      #14161A  (near-black steel)
   --charcoal: #1F232B  (panel dark)
   --steel:    #3A4048  (mid steel gray)
   --cream:    #F5F2EA  (light section bg)
   --amber:    #E8A33D  (hot-metal gold, primary accent)
   --ember:    #C1440E  (welding-spark orange, secondary accent)
   --white:    #FFFFFF
   Type: "Barlow Condensed" (display, industrial stencil-adjacent) +
         "Inter" (body, clean utility face)
   Signature: a dashed "weld seam" divider between sections
   ========================================================================== */

:root {
  --ink: #14161A;
  --charcoal: #1F232B;
  --steel: #3A4048;
  --cream: #F5F2EA;
  --amber: #E8A33D;
  --ember: #C1440E;
  --white: #FFFFFF;
  --radius: 4px;
  --max-width: 1240px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.5em;
  line-height: 1.05;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- weld-seam divider (signature element) ---------- */
.weld-seam {
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--amber) 0 14px, transparent 14px 26px);
  background-position: center;
  background-repeat: repeat-x;
  background-size: 26px 3px;
  background-position-y: center;
  opacity: 0.9;
}
.weld-seam.on-dark { opacity: 0.55; }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #C9CDD3; font-size: 0.85rem; }
.topbar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 8px 24px;
  display: flex; gap: 28px; flex-wrap: wrap;
}
.topbar-item { color: #C9CDD3; }
.topbar-item:hover { color: var(--amber); }

/* ---------- header ---------- */
.main-header { background: var(--white); border-bottom: 3px solid var(--amber); position: sticky; top: 0; z-index: 100; }
.main-header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.4rem;
  border: 2px solid var(--amber);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; letter-spacing: 0.5px; }
.brand-text small { font-size: 0.62rem; letter-spacing: 1.5px; color: var(--ember); font-weight: 600; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.8px;
  font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--ember); border-bottom-color: var(--amber); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.5px;
  font-size: 1rem; padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f0b155; }
.btn-outline-dark { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-dark:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--white);
  background-image:
    linear-gradient(180deg, rgba(20,22,26,0.88), rgba(20,22,26,0.94)),
    repeating-linear-gradient(135deg, #22262e 0 2px, #14161A 2px 40px);
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--amber); color: var(--amber);
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.85rem; letter-spacing: 1.5px;
  padding: 8px 16px; border-radius: 2px; margin-bottom: 24px;
}
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--ember); border-radius: 50%; display: inline-block; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 850px; }
.hero h1 .accent { color: var(--amber); }
.hero-sub { font-size: 1.1rem; color: #D6D9DD; max-width: 640px; margin-bottom: 8px; }
.hero-sub strong { color: var(--amber); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- stats strip ---------- */
.stats-strip { background: var(--charcoal); border-top: 1px solid #2c313b; border-bottom: 1px solid #2c313b; }
.stats-strip-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card { color: var(--white); }
.stat-icon {
  width: 46px; height: 46px; background: var(--amber); color: var(--ink); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px;
}
.stat-card .stat-number { font-family: 'Barlow Condensed', sans-serif; font-size: 2.1rem; color: var(--amber); font-weight: 700; }
.stat-card .stat-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.6px; }
.stat-card .stat-note { font-size: 0.85rem; color: #A9AEB6; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.dark { background: var(--ink); color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { color: var(--ember); font-family: 'Barlow Condensed', sans-serif; letter-spacing: 2px; font-weight: 700; font-size: 0.9rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 8px; }
.section-head .rule { width: 60px; height: 3px; background: var(--amber); margin: 18px auto 18px; }
.section-head p { color: var(--steel); }
.section.dark .section-head p { color: #C9CDD3; }

/* ---------- category filter ---------- */
.category-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.category-tab {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.6px;
  padding: 12px 26px; border: 2px solid var(--steel); border-radius: var(--radius);
  background: transparent; cursor: pointer; color: var(--ink);
}
.category-tab.active, .category-tab:hover { background: var(--ink); color: var(--amber); border-color: var(--ink); }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.product-card {
  background: var(--white); border: 1px solid #e6e1d4; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: 0 14px 30px rgba(20,22,26,0.12); transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 4/3; background: #ddd; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--amber);
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; letter-spacing: 1px; font-weight: 700;
  padding: 6px 12px; border-radius: 2px;
}
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.4rem; margin-bottom: 4px; }
.product-capacity { color: var(--ember); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; margin-bottom: 12px; }
.product-desc { color: var(--steel); font-size: 0.95rem; flex: 1; }
.product-features { margin: 14px 0; }
.product-features li { font-size: 0.9rem; padding: 4px 0; }
.product-features li::before { content: '✓ '; color: var(--ember); font-weight: 700; }
.product-card .btn { margin-top: 8px; align-self: flex-start; }

/* ---------- why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card {
  background: var(--charcoal); border: 1px solid #2c313b; border-radius: var(--radius); padding: 28px;
}
.why-icon {
  width: 48px; height: 48px; background: rgba(232,163,61,0.15); color: var(--amber);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
}
.why-card h3 { font-size: 1.3rem; }
.why-card p { color: #C9CDD3; font-size: 0.92rem; }
.why-card .why-figure { font-family: 'Barlow Condensed', sans-serif; color: var(--amber); font-size: 1.8rem; font-weight: 700; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid #e6e1d4; border-radius: var(--radius); overflow: hidden; }
.faq-item.open { border-color: var(--amber); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1.1rem;
}
.faq-q .qnum { color: var(--ember); margin-right: 10px; }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%; background: #eee; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s ease;
}
.faq-item.open .faq-toggle { background: var(--amber); transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--steel); }

/* ---------- contact / enquiry ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact-info p { color: #C9CDD3; }
.contact-details { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-details a, .contact-details span { color: var(--amber); font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; }
.contact-form-card { background: var(--charcoal); border: 1px solid #2c313b; border-radius: var(--radius); padding: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; margin-bottom: 6px; color: var(--white); letter-spacing: 0.4px; }
.form-group .req { color: var(--ember); }
.form-control {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid #414753;
  background: #262b34; color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.95rem;
}
.form-control::placeholder { color: #7d838d; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.85rem; color: #A9AEB6; margin-top: -8px; margin-bottom: 18px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #1f3a25; color: #9be6a4; border: 1px solid #2f5c39; }
.alert-error { background: #3a1f1f; color: #e6a4a4; border: 1px solid #5c2f2f; }

/* ---------- about page ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.about-grid img { border-radius: var(--radius); }
.timeline { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.timeline-item { display: flex; gap: 18px; }
.timeline-year { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--ember); font-size: 1.3rem; width: 70px; flex-shrink: 0; }
.timeline-text p { color: var(--steel); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--white); }
.footer-strip { border-bottom: 1px solid #2c313b; }
.footer-strip-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 26px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.strip-item span { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--amber); font-size: 1.15rem; }
.strip-item small { color: #A9AEB6; font-size: 0.8rem; }
.footer-main-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 50px 24px 30px;
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 30px;
}
.footer-col h4 { color: var(--amber); font-size: 1.1rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #C9CDD3; margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid #2c313b; text-align: center; padding: 18px; font-size: 0.85rem; color: #7d838d; }

/* ---------- whatsapp fab ---------- */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); z-index: 200;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap, .about-grid { grid-template-columns: 1fr; }
  .footer-main-inner { grid-template-columns: 1fr; }
  .footer-strip-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 16px 24px; gap: 4px; border-top: 1px solid #eee;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .topbar-inner { font-size: 0.75rem; gap: 16px; }
  .hero { padding: 60px 0 50px; }
}
