/* Jaybee Kirpalpur — mill / nameplate design. Maroon matches jaybeeindustries.com. */
:root {
  --maroon: #8b2a38;
  --maroon-deep: #5c1a24;
  --maroon-soft: #b84554;
  --brass: #b08d57;
  --brass-light: #d4c4a3;
  --steel: #1c2228;
  --steel-mid: #2a333c;
  --ink: #f3efe6;
  --paper: #fbf8f2;
  --panel: #ffffff;
  --text: #1a1d21;
  --muted: #5c6570;
  --line: rgba(28, 34, 40, 0.12);
  --shadow: 0 18px 40px rgba(28, 34, 40, 0.1);
  --radius: 14px;
  --max: 1160px;
  --header-h: 4.6rem;
  --font-display: "Barlow Condensed", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--maroon), var(--brass));
  z-index: 80;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.mill-bar {
  background: var(--steel);
  color: #e8e2d6;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}
.mill-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.mill-bar a { color: var(--brass-light); }
.mill-bar span { opacity: 0.85; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand img { width: 168px; height: auto; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 0.55rem 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a[aria-current="page"],
.nav-links a:hover { color: var(--maroon); }
.has-dropdown { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
  z-index: 20;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.has-dropdown.is-open .nav-dropdown { display: block; }
.nav-dropdown a { padding: 0.45rem 0.9rem; font-size: 0.88rem; }
.nav-tools { display: flex; gap: 0.5rem; align-items: center; margin-left: 0.6rem; }
.nav-phone {
  font-weight: 700;
  color: var(--maroon);
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: var(--steel);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-deep); }
.btn-brass { background: var(--brass); color: var(--steel); }
.btn-outline { border-color: var(--steel); color: var(--steel); background: transparent; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp svg, .wa-fab svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: #1c2228 center/cover no-repeat;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 34, 40, 0.82) 0%, rgba(28, 34, 40, 0.45) 55%, rgba(139, 42, 56, 0.35) 100%),
    repeating-linear-gradient(-18deg, transparent, transparent 18px, rgba(176, 141, 87, 0.05) 18px, rgba(176, 141, 87, 0.05) 19px);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.2rem 0 3.2rem;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 0.55rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 14ch;
}
.hero p { max-width: 38rem; margin-top: 0.9rem; color: #efe7dc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.nameplates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 2rem;
}
.nameplate {
  border: 1px solid rgba(176, 141, 87, 0.45);
  background: rgba(28, 34, 40, 0.45);
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
}
.nameplate strong { display: block; font-family: var(--font-display); font-size: 1.45rem; }
.nameplate span { font-size: 0.78rem; opacity: 0.85; }

.section { padding: 4rem 0; }
.section-steel { background: var(--steel); color: #f3efe6; }
.section-steel .eyebrow { color: var(--brass-light); }
.section-warm { background: #efe8dc; }
.section-head { max-width: 42rem; margin-bottom: 1.6rem; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lede { color: var(--muted); margin-top: 0.5rem; }
.section-steel .lede { color: #c9c3b8; }

.grid-3, .grid-4, .product-grid, .cert-grid {
  display: grid;
  gap: 1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(3, 1fr); }
.cert-grid { grid-template-columns: repeat(4, 1fr); }

.card, .q-card, .cert-card, .unit-card, .product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-transform: uppercase;
}
.product-card p { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0 0.8rem; }
.product-card .card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.split-media {
  min-height: 320px;
  border-radius: var(--radius);
  background: #ddd center/cover no-repeat;
  border: 1px solid var(--line);
}
.unit-list { display: grid; gap: 0.8rem; }
.unit-card { display: grid; gap: 0.25rem; }
.unit-card strong { color: var(--maroon); }

.page-hero {
  position: relative;
  color: #fff;
  padding: 4.4rem 0 2.6rem;
  overflow: hidden;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  background: var(--steel) center/cover no-repeat;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28,34,40,.86), rgba(139,42,56,.45));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  max-width: 18ch;
}

.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.product-feature img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.spec-list { margin: 0.8rem 0 1.1rem 1.1rem; }

.cta-band {
  background: var(--maroon);
  color: #fff;
  padding: 2.4rem 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.form { display: grid; gap: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 0.28rem; }
.req::after { content: " *"; color: var(--maroon); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(139, 42, 56, 0.35);
  border-color: var(--maroon);
}
.is-bad { border-color: #b42318 !important; }
.field-hint, .form-status { font-size: 0.82rem; color: var(--muted); }
.pin-served { color: #1f7a3a; font-size: 0.82rem; margin-top: 0.25rem; }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; }
.contact-block { margin-top: 1rem; }
.contact-block a { color: var(--maroon); font-weight: 700; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 700; }

.site-footer {
  background: var(--steel);
  color: #d9d3c8;
  padding: 2.6rem 0 5.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
}
.footer-brand p { margin: 0.8rem 0; max-width: 34rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.footer-cols h4 { color: #fff; margin-bottom: 0.6rem; font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.footer-cols a, .footer-social a { display: block; padding: 0.18rem 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.footer-legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.float-widgets {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.wa-fab, .call-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.wa-fab { background: #25d366; }
.call-fab { background: var(--maroon); }

.mobile-dock { display: none; }

.thanks-screen {
  position: fixed;
  inset: 0;
  background: rgba(28, 34, 40, 0.72);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.thanks-card {
  background: #fff;
  max-width: 32rem;
  width: 100%;
  border-radius: 16px;
  padding: 1.6rem;
}
.thanks-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.thanks-close {
  background: none;
  border: 0;
  color: var(--maroon);
  font-weight: 700;
  cursor: pointer;
}

.quick-dock {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 35;
}
.quick-panel {
  display: none;
  width: min(22rem, calc(100vw - 2rem));
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 0.5rem;
}
.quick-dock.is-open .quick-panel { display: block; }
.quick-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 34;
}
.quick-backdrop.is-open { display: block; }

@media (max-width: 980px) {
  body::before { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.4rem;
    margin: 0 0 0.8rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-dropdown { position: static; box-shadow: none; border: 0; display: none; }
  .has-dropdown.is-open .nav-dropdown { display: block; }
  .nav-tools { display: none; }
  .nameplates, .grid-3, .grid-4, .product-grid, .cert-grid, .split, .product-feature, .contact-grid, .form-row, .footer-top, .footer-cols {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 72vh; }
  .hero h1 { max-width: none; }
  .float-widgets, .quick-dock { display: none; }
  .mobile-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--steel);
  }
  .mobile-dock a {
    color: #fff;
    text-align: center;
    padding: 0.85rem;
    font-weight: 800;
  }
  .mobile-dock .dock-call { background: var(--maroon); }
  .mobile-dock .dock-wa { background: #25d366; }
  .site-footer { padding-bottom: 5.2rem; }
}

@media (max-width: 640px) {
  .hero-copy { padding: 3.2rem 0 2.2rem; }
  .section { padding: 2.6rem 0; }
}
