/* ==========================================================================
   Burhani Threading Works — House of Foundation Bolts
   Static HTML/CSS rebuild of the original WordPress (Astra + Elementor) site.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --ink:          #11161d;
  --steel:        #1b232e;
  --steel-light:  #2a3644;
  --red:          #c1272d;
  --red-dark:     #9d1f24;
  --body:         #4a545f;
  --heading:      #14191f;
  --line:         #e2e6ea;
  --bg:           #ffffff;
  --bg-alt:       #f5f7f9;

  --wrap:         1180px;
  --gutter:       20px;
  --radius:       4px;

  --sans:         "Barlow", "Helvetica Neue", Arial, sans-serif;
  --cond:         "Barlow Condensed", "Barlow", Arial, sans-serif;

  --shadow-sm:    0 2px 8px rgba(17, 22, 29, .07);
  --shadow-md:    0 10px 30px rgba(17, 22, 29, .10);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--cond);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

/* --- Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(60px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--steel); color: #b9c3ce; }
.section--dark h2, .section--dark h3 { color: #fff; }

.center { text-align: center; }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Section headings --------------------------------------------------- */
.eyebrow {
  font-family: var(--cond);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .6em;
  display: block;
}

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.05rem; }

.rule {
  width: 64px; height: 3px;
  background: var(--red);
  border: 0; margin: 0 0 28px;
}
.center .rule, .rule.center { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--cond);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar {
  background: #0b0f14;
  color: #8e9aa7;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
}
.topbar a { color: #b9c3ce; }
.topbar a:hover { color: #fff; }
.topbar .sep { color: rgba(255,255,255,.2); }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 58px; height: auto; }
.brand-text { line-height: 1.15; }
.brand-name {
  display: block;
  font-family: var(--cond);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
}
.brand-tag {
  display: block;
  font-size: .73rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--cond);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #cfd7df;
  padding: 10px 16px;
  border-radius: var(--radius);
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--red);
  margin-top: 5px;
}
.nav .btn { margin-left: 12px; padding: 11px 24px; color: #fff; }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin-inline: auto;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 100px 0;
  background: var(--ink) center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,19,.78) 0%, rgba(10,14,19,.68) 55%, rgba(10,14,19,.86) 100%);
}
.hero .wrap { position: relative; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #d4dbe3;
  max-width: 760px;
  margin: 0 auto 38px;
}
.hero .btn-row { justify-content: center; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 1.6rem;
  line-height: 1;
  animation: bob 2s ease-in-out infinite;
}
.scroll-cue:hover { color: #fff; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,9px); } }

/* Compact page banner for inner pages */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 330px;
  padding: 80px 0;
  background: var(--ink) center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,19,.80), rgba(10,14,19,.72));
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.crumb { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb0c0; }
.crumb a { color: #9fb0c0; }
.crumb a:hover { color: #fff; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 26px 30px; flex: 1; }
.card-body h3 { margin-bottom: .45em; }
.card-body p { font-size: .97rem; }
.card-link {
  font-family: var(--cond);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 14px;
}
.card-link::after { content: " →"; }

/* --- Split (image + text) ----------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-family: var(--cond);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}
.stat-label {
  font-family: var(--cond);
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9fb0c0;
  margin-top: 12px;
  display: block;
}

/* --- Product index chips ------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  font-family: var(--cond);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  transition: all .2s ease;
}
.chip:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* --- Product detail blocks ---------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.product:last-child { border-bottom: 0; }
.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.product h3 { margin-bottom: .35em; }
.spec {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.spec li {
  position: relative;
  padding-left: 24px;
  font-size: .96rem;
  margin: 0;
}
.spec li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* --- Overview table ----------------------------------------------------- */
.table-group { margin-bottom: 44px; }
.table-group h3 {
  font-size: 1.3rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  width: 38%;
  font-weight: 500;
  color: var(--body);
  background: var(--bg-alt);
}
.data-table td { font-weight: 600; color: var(--heading); }

/* --- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.info-list { list-style: none; margin: 28px 0 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.info-list li:last-child { border-bottom: 0; }
.info-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--red);
}
.info-icon svg { width: 20px; height: 20px; }
.info-label {
  display: block;
  font-family: var(--cond);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a949f;
}
.info-value { font-weight: 600; color: var(--heading); }

/* --- Form --------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--cond);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--heading);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, .13);
}
.form-note { font-size: .88rem; color: #8a949f; margin-top: 16px; }

/* Honeypot — hidden from people, visible to bots */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Inline form feedback */
.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-status--ok {
  background: rgba(22, 130, 74, .09);
  color: #14663c;
  border: 1px solid rgba(22, 130, 74, .22);
}
.form-status--error {
  background: rgba(193, 39, 45, .09);
  color: var(--red-dark);
  border: 1px solid rgba(193, 39, 45, .22);
}
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid { border-color: rgba(193, 39, 45, .55); }

.map-frame {
  width: 100%;
  max-width: 1400px;
  margin: 8px auto 0;
  padding-inline: var(--gutter);
}
.map-frame iframe {
  width: 100%;
  height: 440px;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  filter: grayscale(.2);
  transition: filter .3s ease;
}
.map-frame iframe:hover { filter: none; }

/* Lead paragraph inside the compact inner-page banner */
.page-hero .hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  margin-bottom: 16px;
}

/* --- CTA strip ---------------------------------------------------------- */
.cta {
  background: var(--red);
  color: #fff;
  padding: clamp(46px, 6vw, 72px) 0;
}
.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.cta h2 { color: #fff; max-width: 760px; margin: 0; }
.cta .btn {
  background: #fff;
  border-color: #fff;
  color: var(--red);
  flex: none;
}
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #9aa6b2;
  padding: clamp(56px, 7vw, 84px) 0 0;
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 42px;
  padding-bottom: 52px;
}
.site-footer h4 {
  font-family: var(--cond);
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.site-footer a { color: #9aa6b2; }
.site-footer a:hover { color: #fff; }
.footer-brand img { width: 86px; margin-bottom: 20px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .88rem;
  color: #78838f;
}

/* Build credit */
.credit a {
  color: #b9c3ce;
  font-weight: 600;
  border-bottom: 1px solid rgba(185, 195, 206, .35);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.credit a:hover { color: #fff; border-bottom-color: var(--red); }

/* --- Floating WhatsApp -------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* --- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  * { transition-duration: .01ms !important; }
}


/* --- Brand transition (Burhani -> Kapasi Iron) --------------------------- */
.rebrand { background: var(--bg-alt); }
.rebrand-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-md);
}
.rebrand-logo { display: block; }
.rebrand-logo img { width: 100%; height: auto; }
.rebrand-body h2 { margin-bottom: .35em; }

.footer-rebrand { font-size: .92rem; }
.footer-rebrand a { color: #fff; }
.footer-rebrand a:hover { color: var(--red); }

@media (max-width: 880px) {
  .rebrand-card { grid-template-columns: 1fr; text-align: left; }
  .rebrand-logo { max-width: 280px; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--steel);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 12px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; }
  .nav a.is-active::after { display: none; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .site-header .wrap { position: relative; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product-media { max-width: 320px; }
  .hero { min-height: 540px; }
  .topbar .wrap { justify-content: center; }
}

@media (max-width: 700px) {
  .map-frame { padding-inline: 0; }
  .map-frame iframe { height: 340px; border-radius: 0; box-shadow: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: left; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; text-align: center; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; text-align: center; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .brand img { width: 46px; }
  .brand-name { font-size: 1.1rem; }
}
