/* ============================================================
   Bharatech Smart Industrial — Website stylesheet
   Built on the BSI Design System (warm revision)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* Brand colors */
  --bsi-navy:        #14315E;
  --bsi-navy-deep:   #0B2545;
  --bsi-navy-ink:    #1F1A14;
  --bsi-saffron:     #E8A11A;
  --bsi-saffron-2:   #FFD166;
  --bsi-terracotta:  #CC6B3D;
  --bsi-leaf:        #2F7A4F;
  --bsi-clay:        #B84A2C;

  /* Warm neutrals */
  --bsi-ink:         #2A1F12;
  --bsi-slate:       #7A6A55;
  --bsi-line:        #E6DDC8;
  --bsi-paper:       #F3EDE2;
  --bsi-cream:       #FAF6EE;

  /* Semantic */
  --fg-1: var(--bsi-navy-deep);
  --fg-2: var(--bsi-ink);
  --fg-3: var(--bsi-slate);
  --fg-on-dark: #FBF3E3;
  --fg-on-dark-muted: #D9C8A8;
  --bg-page: var(--bsi-cream);
  --bg-panel: var(--bsi-paper);
  --bg-dark: var(--bsi-navy-ink);
  --accent: var(--bsi-saffron);

  /* Type */
  --font-sans: 'Carlito', 'Calibri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Source Serif Pro', 'Times New Roman', serif;

  /* Radii / shadows */
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(60,40,16,0.07), 0 1px 1px rgba(60,40,16,0.04);
  --shadow-2: 0 4px 14px rgba(60,40,16,0.10), 0 1px 2px rgba(60,40,16,0.06);
  --shadow-3: 0 18px 44px rgba(60,40,16,0.14), 0 2px 4px rgba(60,40,16,0.07);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--fg-2); background: var(--bg-page);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bsi-navy); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography roles ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bsi-saffron); margin-bottom: 14px;
}
h1, .hero-title {
  font-family: var(--font-serif); font-weight: 700; color: var(--fg-1);
  font-size: clamp(34px, 5vw, 54px); line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  font-family: var(--font-serif); font-weight: 700; color: var(--fg-1);
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; text-wrap: balance;
}
h3 { font-size: 20px; font-weight: 700; color: var(--fg-1); line-height: 1.3; }
.lead { font-size: 19px; line-height: 1.6; color: var(--fg-2); max-width: 62ch; }
.muted { color: var(--fg-3); }
.rule-saffron { height: 2px; background: var(--bsi-saffron); border: 0; width: 48px; margin: 18px 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bsi-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 17px; color: var(--fg-1); }
.brand-sub { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--fg-2); font-weight: 700; font-size: 15px;
  padding: 9px 14px; border-radius: var(--r-md); transition: background 160ms var(--ease);
}
.nav-links a:hover { background: var(--bg-panel); }
.nav-links a.active { color: var(--bsi-navy-deep); box-shadow: inset 0 -2px 0 var(--bsi-saffron); border-radius: 0; }
.nav-cta {
  background: var(--bsi-navy-deep) !important; color: var(--fg-on-dark) !important;
  border-radius: var(--r-pill) !important; padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--bsi-navy) !important; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 8px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 24px; height: 2.5px; background: var(--bsi-navy-deep);
  border-radius: 2px; position: relative; content: ""; transition: all 200ms var(--ease);
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 13px 28px; border-radius: var(--r-pill); transition: all 180ms var(--ease);
}
.btn-primary { background: var(--bsi-saffron); color: var(--bsi-navy-deep); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--bsi-saffron-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--bsi-navy-deep); color: var(--bsi-navy-deep); }
.btn-outline:hover { background: var(--bsi-navy-deep); color: var(--fg-on-dark); }
.btn-outline-light { border: 2px solid var(--fg-on-dark-muted); color: var(--fg-on-dark); }
.btn-outline-light:hover { border-color: var(--bsi-saffron); color: var(--bsi-saffron-2); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-panel); }
.section-dark { background: var(--bg-dark); color: var(--fg-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--fg-on-dark); }
.section-dark .lead, .section-dark p { color: var(--fg-on-dark-muted); }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--fg-on-dark);
  background: linear-gradient(rgba(11,23,38,0.72), rgba(31,26,20,0.82)), url('../img/cover-factory.jpg') center/cover;
  padding: 130px 0 120px;
}
.hero .eyebrow { color: var(--bsi-saffron-2); }
.hero-title { color: var(--fg-on-dark); max-width: 760px; }
.hero p.lead { color: var(--fg-on-dark-muted); margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: rgba(232,161,26,0.16); color: var(--bsi-saffron-2);
  border: 1px solid rgba(232,161,26,0.35);
}

/* Page hero (inner pages) */
.page-hero { background: var(--bg-dark); color: var(--fg-on-dark); padding: 72px 0 64px; }
.page-hero h1 { color: var(--fg-on-dark); font-size: clamp(30px, 4vw, 44px); }
.page-hero .lead { color: var(--fg-on-dark-muted); margin-top: 16px; }
.page-hero .eyebrow { color: var(--bsi-saffron-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { border-top: 3px solid var(--bsi-saffron); padding-top: 18px; }
.stat-num {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(34px, 4vw, 46px);
  line-height: 1; color: var(--bsi-navy-deep); letter-spacing: -0.02em;
}
.section-dark .stat-num, .hero .stat-num { color: var(--bsi-saffron); }
.stat-label { margin-top: 8px; color: var(--fg-3); font-size: 15px; }
.section-dark .stat-label { color: var(--fg-on-dark-muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--bsi-cream); border: 1px solid var(--bsi-line);
  border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-1);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-accent { border-top: 3px solid var(--bsi-saffron); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-3); font-size: 15.5px; }
.card .icon { width: 44px; height: 44px; margin-bottom: 18px; }

/* Product cards */
.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-card .product-img {
  background: #fff; padding: 28px; height: 250px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--bsi-line);
}
.product-card .product-img img { max-height: 194px; width: auto; object-fit: contain; }
.product-card .product-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.product-card .specline { color: var(--fg-3); font-size: 14.5px; margin: 8px 0 16px; }
.product-card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--bsi-navy-deep); font-size: 15px; }
.product-card .card-link::after { content: " →"; color: var(--bsi-saffron); }

/* ---------- Checklist ---------- */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; font-size: 16px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--bsi-leaf); font-weight: 700;
}
.checks-2col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img img { border-radius: var(--r-lg); box-shadow: var(--shadow-3); }

/* ---------- Spec tables ---------- */
.spec-block { margin-top: 60px; scroll-margin-top: 90px; }
.spec-header { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.spec-header img { height: 130px; width: auto; background: #fff; border: 1px solid var(--bsi-line); border-radius: var(--r-md); padding: 12px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-sm);
  background: var(--bsi-saffron); color: var(--bsi-navy-deep);
}
table.spec { width: 100%; border-collapse: collapse; background: var(--bsi-cream); border: 1px solid var(--bsi-line); border-radius: var(--r-md); overflow: hidden; }
table.spec th, table.spec td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--bsi-line); font-size: 15px; vertical-align: top; }
table.spec th { width: 34%; color: var(--fg-1); font-weight: 700; background: var(--bg-panel); }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }

.feature-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip {
  font-size: 13.5px; font-weight: 700; color: var(--bsi-navy-deep);
  background: var(--bg-panel); border: 1px solid var(--bsi-line);
  padding: 7px 13px; border-radius: var(--r-pill);
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.gallery figure img { border-radius: var(--r-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-1); }
.gallery figcaption { font-size: 14px; color: var(--fg-3); margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-tile a { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--bsi-navy-deep); text-decoration: none; word-break: break-word; }
.contact-tile a:hover { color: var(--bsi-terracotta); }
.contact-tile .k { margin-bottom: 8px; }
.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bsi-navy-deep); color: var(--fg-on-dark); padding: 72px 0; }
.cta-band h2 { color: var(--fg-on-dark); }
.cta-band p { color: var(--fg-on-dark-muted); margin: 14px 0 28px; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--fg-on-dark-muted); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; margin-bottom: 44px; }
.site-footer h4 { color: var(--fg-on-dark); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: var(--fg-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--bsi-saffron-2); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 42px; }
.footer-brand .brand-name { color: var(--fg-on-dark); }
.footer-bottom { border-top: 1px solid rgba(251,243,227,0.12); padding-top: 24px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .hero { padding: 96px 0 84px; }
}
@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bsi-cream); border-bottom: 1px solid var(--bsi-line);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px;
    box-shadow: var(--shadow-2);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  table.spec th { width: 42%; }
}
