/* Jaybee Industries — brand system */
:root {
  --ink: #12171c;
  --ink-soft: #1b232b;
  --steel: #2a3640;
  --mist: #d7dee5;
  --paper: #eef2f5;
  --paper-soft: #f7f9fb;
  --brand: #a03035;
  --brand-deep: #7d2227;
  --copper: #c27a3a;
  --line: rgba(18, 23, 28, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);
  --text: #1c252e;
  --text-dim: #5b6b78;
  --text-on-dark: #eef2f5;
  --text-on-dark-dim: #aeb9c3;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(18, 23, 28, 0.22);
  --radius: 4px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1140px;
  --header-h: 4.5rem;
}

*,
*::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-soft);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  list-style: none;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-solid,
.site-header.page-header {
  background: rgba(18, 23, 28, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-on-dark-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
}

.nav-links a {
  color: var(--text-on-dark-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white) !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0.45) 0%, rgba(12, 16, 20, 0.55) 40%, rgba(12, 16, 20, 0.88) 100%),
    url("../img/banner1.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-zoom 14s ease-out forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 70% 35%, rgba(160, 48, 53, 0.22), transparent 65%),
    linear-gradient(90deg, rgba(12, 16, 20, 0.55), transparent 55%);
}

@keyframes hero-zoom {
  to { transform: scale(1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero-brand em {
  font-style: normal;
  color: #f0c7c9;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.3;
  max-width: 28ch;
  margin-bottom: 0.85rem;
  color: var(--text-on-dark);
}

.hero .lede {
  color: var(--text-on-dark-dim);
  max-width: 42ch;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--steel);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section-dark .text-dim,
.section-dark .lede,
.section-dark .section-head p:not(.eyebrow) {
  color: var(--text-on-dark-dim);
}

.section-paper {
  background: var(--paper);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.65rem;
}

.section-dark .eyebrow {
  color: #e38a8e;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.lede {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* Stats strip — only below hero */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.split-media {
  min-height: 360px;
  background:
    linear-gradient(160deg, rgba(18, 23, 28, 0.15), rgba(160, 48, 53, 0.18)),
    url("../img/transformer.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.split.reverse .split-media {
  order: -1;
  background-image:
    linear-gradient(160deg, rgba(18, 23, 28, 0.2), rgba(160, 48, 53, 0.12)),
    url("../img/services.webp");
  background-size: cover;
  background-position: center;
}

.checklist {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-dim);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--brand);
}

/* Pillars / values — not cardy; open list with separators */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.pillar {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line-light);
}

.pillar:not(:last-child) {
  border-right: 1px solid var(--line-light);
  padding-right: 1.75rem;
  margin-right: 1.75rem;
}

.pillar h3 {
  color: var(--white);
}

.pillar p {
  color: var(--text-on-dark-dim);
  font-size: 0.98rem;
}

/* Product range */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.product-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.15rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.product-item img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  background: var(--paper);
}

.product-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.product-item .spec {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

.product-list {
  display: grid;
  gap: 0;
}

.product-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

.product-row:first-child {
  border-top: 1px solid var(--line);
}

.product-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--paper);
}

.product-row p {
  color: var(--text-dim);
}

/* Industries */
.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.industry-strip span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel);
  border-bottom: 1px solid var(--mist);
  padding: 0.35rem 0;
}

/* Services steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 0.65rem;
}

.step p {
  color: var(--text-dim);
}

/* Awards band */
.award-band {
  background:
    linear-gradient(110deg, rgba(18, 23, 28, 0.88), rgba(160, 48, 53, 0.55)),
    url("../img/hero-brand.webp") center / cover no-repeat;
  color: var(--white);
  padding: 4.5rem 0;
}

.award-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--text-dim);
  max-width: 60ch;
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0.5), rgba(12, 16, 20, 0.85)),
    url("../img/banner2.webp") center / cover no-repeat;
}

.page-hero-media.about {
  background-image:
    linear-gradient(180deg, rgba(12, 16, 20, 0.5), rgba(12, 16, 20, 0.85)),
    url("../img/banner3.webp");
  background-size: cover;
  background-position: center;
}

.page-hero-media.products {
  background-image:
    linear-gradient(180deg, rgba(12, 16, 20, 0.55), rgba(12, 16, 20, 0.88)),
    url("../img/page-title.jpg");
  background-size: cover;
  background-position: center;
}

.page-hero-media.contact {
  background-image:
    linear-gradient(180deg, rgba(12, 16, 20, 0.55), rgba(12, 16, 20, 0.88)),
    url("../img/facility.webp");
  background-size: cover;
  background-position: center;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 2.75rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.page-hero p {
  margin-top: 0.65rem;
  color: var(--text-on-dark-dim);
  max-width: 42ch;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-block + .contact-block {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.contact-block h3 {
  margin-bottom: 0.35rem;
}

.contact-block p,
.contact-block a {
  color: var(--text-dim);
}

.contact-block a:hover {
  color: var(--brand);
}

.units {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.75rem;
}

.unit strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.unit span {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--mist);
  background: var(--white);
  padding: 0.75rem 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
}

.form-note {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--brand-deep);
}

/* Values list */
.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.value {
  padding-top: 0.85rem;
  border-top: 2px solid var(--brand);
}

.value strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.value span {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* CTA footer band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: var(--text-on-dark-dim);
}

/* Site footer */
.site-footer {
  background: #0c1014;
  color: var(--text-on-dark-dim);
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.85rem;
}

.footer-brand p {
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

  .split,
  .product-row,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .pillar-grid,
  .steps,
  .values {
    grid-template-columns: 1fr;
  }

  .pillar:not(:last-child) {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(18, 23, 28, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .product-item {
    grid-template-columns: 1fr;
  }

  .product-item img {
    width: 100%;
    height: 180px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-bottom: 3rem;
  }

  .brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; transform: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
