/* ============================================================
   BFORT Wires & Cables
   Industrial minimalist. Off-white canvas, white surfaces,
   hairlines, and one muted brick-red accent.
   Nothing decorative that isn't useful.
   ============================================================ */

:root {
  --red: #b33939;
  --red-dark: #932e2e;
  --wa: #1fa855;

  --ink: #1a1a1a;
  --body: #4d4d4a;
  --muted: #6b6b64;

  --bg: #fafaf8;
  --bg-alt: #f1f1ed;
  --surface: #ffffff;
  --line: #e4e3dd;
  --line-dark: #cfcec7;

  --r: 8px;
  --r-sm: 6px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -.033em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }

.eyebrow {
  display: block; font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.lead { font-size: 1.1rem; color: var(--body); }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }

[lang="hi"] { font-family: "Noto Sans Devanagari", var(--font); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  padding: 12px 22px; min-height: 46px; border-radius: var(--r-sm);
  border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--line-dark); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: #f2f2f2; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178c46; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { height: 34px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-size: 1.18rem; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.brand__text b span { color: var(--red); }
.brand__text small {
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px; font-weight: 500;
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: .94rem; font-weight: 500; color: var(--body); transition: color .18s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; background: none;
  border: 0; cursor: pointer; padding: 0;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--ink); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center; padding: 84px 0;
}
.hero p { margin-top: 20px; font-size: 1.12rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__motto { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__motto b { display: block; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.hero__motto span {
  display: block; margin-top: 6px; font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero__motto span i { font-style: normal; color: var(--red); }

/* ---------- Photography ---------- */
.frame {
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--bg-alt);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--43 img { aspect-ratio: 4 / 3; }
.frame--169 img { aspect-ratio: 16 / 9; }

.figure { display: grid; gap: 14px; }
.figure figcaption { font-size: .89rem; color: var(--muted); }
.figure figcaption b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------- Spec bar ---------- */
.specbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 1px; background: var(--line); border-block: 1px solid var(--line);
}
.specbar > div { background: var(--surface); padding: 20px 24px; }
.specbar dt {
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.specbar dd { margin-top: 7px; font-size: .95rem; font-weight: 600; color: var(--ink); }

/* ---------- Numbered list (quality) ---------- */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.numbered > li { padding-top: 22px; border-top: 2px solid var(--ink); }
.numbered b {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; color: var(--red); margin-bottom: 14px;
}
.numbered h3 { margin-bottom: 8px; }
.numbered p { font-size: .96rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex; flex-direction: column;
  padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s;
}
.card:hover { border-color: var(--line-dark); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  font-size: .74rem; font-weight: 500; color: var(--body);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 100px;
}
.card__rule { width: 26px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 18px; }

/* ---------- Applications ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.apps > div { background: var(--surface); padding: 24px 26px; }
.apps b { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }
.apps span { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { display: grid; gap: 13px; margin-top: 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.checklist svg { width: 19px; height: 19px; flex: none; color: var(--red); margin-top: 3px; }
.checklist b { color: var(--ink); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.025em; }
.page-hero p { margin-top: 14px; font-size: 1.08rem; max-width: 56ch; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- CTA ---------- */
.cta { background: var(--red); border-radius: var(--r); padding: 56px 40px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.86); margin: 12px auto 28px; max-width: 46ch; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead { background: var(--bg-alt); }
th { padding: 14px 20px; text-align: left; font-size: .88rem; font-weight: 600; color: var(--ink); }
td { padding: 14px 20px; font-size: .94rem; }
tbody tr { border-top: 1px solid var(--line); }
.table-note { margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.info { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.info > * { background: var(--surface); padding: 22px 24px; display: block; }
.info b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 5px; }
.info a { display: block; font-size: .95rem; color: var(--body); }
.info a:hover { color: var(--red); }
.info span { font-size: .93rem; color: var(--muted); }
.info__wa { background: #f2fbf5 !important; }
.info__wa b { color: var(--wa); }

.form { border: 1px solid var(--line); border-radius: var(--r); padding: 30px; background: var(--surface); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa1ad; }
.field select { appearance: none; -webkit-appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,57,57,.16);
}
.field textarea { resize: vertical; min-height: 118px; }
.form__note { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; }
.form__ok {
  display: none; margin-bottom: 16px; padding: 13px 15px;
  background: #f2fbf5; border: 1px solid #b8e6c9; border-radius: var(--r-sm);
  color: #15703c; font-size: .9rem; font-weight: 500;
}

/* ---------- Footer ---------- */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; }
.footer__brand p { margin-top: 16px; font-size: .93rem; max-width: 30ch; }
.footer h4 {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.footer nav a { display: block; padding: 5px 0; font-size: .93rem; transition: color .18s; }
.footer nav a:hover { color: var(--red); }
.footer__motto { margin-top: 20px; }
.footer__motto b { display: block; font-size: 1.02rem; color: var(--ink); }
.footer__motto span {
  display: block; margin-top: 3px; font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.footer__bottom {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: var(--muted);
}
.footer__bottom b { color: var(--red); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: background .18s;
}
.wa-float:hover { background: #178c46; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; padding: 64px 0; }
  .numbered { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav { height: 62px; }
  .nav__links {
    display: none; position: fixed; top: 62px; left: 12px; right: 12px; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 11px 12px; border-radius: var(--r-sm); }
  .nav__links a:hover, .nav__links a.active { background: var(--bg-alt); }
  .nav__toggle { display: block; }
  .nav__cta .btn { display: none; }
  .hero__actions .btn { flex: 1; min-width: 150px; }
  .numbered, .grid--3, .grid--2, .apps { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 44px; }
  .cta { padding: 44px 24px; }
  .cta__actions .btn { flex: 1; min-width: 160px; }
  .form { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
}
