/* ==========================================================================
   Bara Metal Heat Treatment — site stylesheet
   Built on Bootstrap 5.3 (grid, utilities, navbar, dropdown, collapse)
   ========================================================================== */

:root {
  --bara-red: #e30613;
  --bara-red-dark: #b8050f;
  --ink: #0f1113;
  --ink-2: #2e3238;
  --muted: #676d75;
  --line: #e7e5e0;
  --stone: #f6f5f2;
  --paper: #ffffff;
  --steel: #16191d;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink-2);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 15, 17, 19;
  --bs-link-hover-color: var(--bara-red);
  --bs-link-hover-color-rgb: 227, 6, 19;
  --bs-border-color: var(--line);
  --bs-primary: var(--bara-red);
  --bs-primary-rgb: 227, 6, 19;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1, .h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); letter-spacing: -0.035em; }
h2, .h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); letter-spacing: -0.03em; }
h3, .h3 { font-size: 1.3rem; }
p { margin-bottom: 1.1rem; }
a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--bara-red); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--bara-red); color: #fff; }
:focus-visible { outline: 2px solid var(--bara-red); outline-offset: 3px; }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--muted); font-weight: 400; }
.text-muted-2 { color: var(--muted) !important; }
.text-red { color: var(--bara-red) !important; }
.bg-stone { background: var(--stone); }
.section { padding: var(--section-y) 0; }
.section-sm { padding: clamp(3rem, 6vw, 5rem) 0; }
.border-top-line { border-top: 1px solid var(--line); }
.mw-640 { max-width: 640px; }
.mw-720 { max-width: 720px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: .75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bara-red);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.light { color: #ff5a62; }

/* ---------- Buttons ---------- */
.btn-bara, .btn-ghost, .btn-light-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .95rem 1.6rem; border-radius: var(--radius);
  border: 1px solid transparent; background-image: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-bara { background: var(--bara-red); color: #fff; }
.btn-bara:hover, .btn-bara:focus { background: var(--bara-red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-bara svg, .btn-ghost svg, .btn-light-ghost svg, .link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-bara:hover svg, .btn-ghost:hover svg, .btn-light-ghost:hover svg, .link-arrow:hover svg { transform: translateX(4px); }
.btn-sm-nav { padding: .7rem 1.2rem; font-size: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--bara-red); border-color: var(--bara-red); }

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-box {
  width: 52px; height: 52px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--bara-red); background: var(--paper);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(15,17,19,.05); }
.site-header .navbar { padding: .85rem 0; background: transparent !important; }
.navbar-brand { padding: 0; margin-right: 2rem; }
.navbar-brand img { height: 42px; width: auto; }
.site-header .nav-link {
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  color: var(--ink-2) !important; padding: .5rem 1rem !important; position: relative;
}
.site-header .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 1.5px;
  background: var(--bara-red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .nav-link.active, .site-header .nav-link:hover { color: var(--ink) !important; }
.site-header .dropdown-toggle::after {
  border: 0; width: 7px; height: 7px; margin-left: .45rem; vertical-align: .2rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); position: static; background: none;
}
.site-header .dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15,17,19,.08);
  padding: .5rem; min-width: 260px; margin-top: .6rem !important;
}
.site-header .dropdown-item {
  border-radius: 3px; padding: .75rem .9rem; font-size: .93rem; color: var(--ink);
  display: flex; flex-direction: column; line-height: 1.35; white-space: normal;
}
.site-header .dropdown-item small { color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.site-header .dropdown-item:hover, .site-header .dropdown-item.active { background: var(--stone); color: var(--bara-red); }
.navbar-toggler { border: 0; padding: .5rem; box-shadow: none !important; }
.navbar-toggler .bar { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.navbar-toggler[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 992px) {
  .site-header .dropdown:hover > .dropdown-menu { display: block; }
  .site-header .dropdown > .dropdown-menu { top: 100%; margin-top: 0 !important; }
  .site-header .dropdown > .dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
}
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { border-top: 1px solid var(--line); margin-top: .9rem; padding: .75rem 0 1.25rem; }
  .site-header .nav-link { padding: .8rem 0 !important; border-bottom: 1px solid var(--line); }
  .site-header .nav-link::after { display: none; }
  .site-header .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 .5rem .75rem; margin: 0 !important; }
  .site-header .nav-cta { margin-top: 1.25rem; }
}

/* ---------- Hero (home) — full-bleed photo ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(88vh, 860px); display: flex; align-items: flex-end;
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(2.5rem, 5vh, 3.5rem);
  background: var(--steel); color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  animation: heroZoom 18s var(--ease) both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,11,13,.88) 0%, rgba(10,11,13,.70) 38%, rgba(10,11,13,.25) 72%, rgba(10,11,13,.10) 100%),
    linear-gradient(0deg, rgba(10,11,13,.75) 0%, rgba(10,11,13,0) 45%);
}
.hero-inner { max-width: 760px; padding-left: 1.75rem; border-left: 3px solid var(--bara-red); }
.hero h1 { color: #fff; margin-bottom: 1.5rem; font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.hero h1 .accent { color: #ff2b36; }
.hero .lead { color: rgba(255,255,255,.80); max-width: 36rem; margin-bottom: 2.25rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: .75rem 2.5rem;
  margin: clamp(3rem, 8vh, 5rem) 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-points li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-points .ico { width: 18px; height: 18px; color: #ff2b36; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (max-width: 767.98px) {
  .hero { min-height: 92vh; }
  .hero::before { background: linear-gradient(0deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.70) 55%, rgba(10,11,13,.35) 100%); }
  .hero-inner { padding-left: 1.1rem; }
  .hero-points { gap: .6rem 1.5rem; }
}

/* ---------- Page header (inner) — photo banner ---------- */
.page-header {
  position: relative; overflow: hidden; isolation: isolate; background: var(--steel);
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(3.5rem, 6vw, 5rem);
  min-height: 460px; display: flex; align-items: flex-end;
}
.page-header .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 18s var(--ease) both; }
.page-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,11,13,.88) 0%, rgba(10,11,13,.65) 45%, rgba(10,11,13,.25) 100%),
    linear-gradient(0deg, rgba(10,11,13,.6) 0%, rgba(10,11,13,0) 50%);
}
.page-header h1 { color: #fff; font-size: clamp(2.4rem, 4.8vw, 3.9rem); margin-bottom: 1.1rem; }
.page-header .lead { color: rgba(255,255,255,.80); max-width: 40rem; margin-bottom: 0; }
.page-header .eyebrow { color: #ff4a53; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1.6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
@media (max-width: 767.98px) {
  .page-header { min-height: 380px; }
  .page-header::before { background: linear-gradient(0deg, rgba(10,11,13,.9) 0%, rgba(10,11,13,.6) 60%, rgba(10,11,13,.4) 100%); }
}

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--stone); }
.stat { padding: 2.5rem 1.5rem; text-align: left; height: 100%; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.stat .num sup { font-size: .5em; color: var(--bara-red); top: -.8em; margin-left: 2px; }
.stat .label { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: .75rem; }
@media (max-width: 767.98px) {
  .stats .col-6:nth-child(odd) .stat { border-left: 0; }
  .stats .col-6:nth-child(-n+2) .stat { border-bottom: 1px solid var(--line); }
  .stat { padding: 1.75rem 1rem; }
}

/* ---------- Section heading ---------- */
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--muted); max-width: 36rem; margin: 0; font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.svc-card {
  position: relative; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem; background: var(--paper);
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px;
  background: var(--bara-red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15,17,19,.07); border-color: #d9d6cf; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover .ico-box { background: var(--bara-red); color: #fff; border-color: var(--bara-red); }
.svc-card .num { position: absolute; top: 2rem; right: 2rem; font-family: var(--font-head); font-size: .85rem; color: #b9b5ad; letter-spacing: .08em; }
.svc-card h3 { margin: 1.6rem 0 .75rem; font-size: 1.3rem; }
.svc-card p { color: var(--muted); font-size: .97rem; margin-bottom: 1.25rem; }
.svc-card .link-arrow { margin-top: auto; align-self: flex-start; }
a.svc-card { color: inherit; }

.check-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.check-list li { position: relative; padding-left: 1.75rem; font-size: .93rem; color: var(--ink-2); margin-bottom: .55rem; line-height: 1.55; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px;
  border-left: 1.5px solid var(--bara-red); border-bottom: 1.5px solid var(--bara-red); transform: rotate(-45deg);
}
.svc-card .suit { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; }

/* ---------- Service detail rows (services page) ---------- */
.svc-row { padding: clamp(2.5rem, 5vw, 3.75rem) 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .idx { font-family: var(--font-head); font-size: .9rem; color: var(--bara-red); letter-spacing: .1em; font-weight: 600; }
.svc-row h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: .6rem 0 0; }
.svc-row p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Media + text feature ---------- */
.feature-img { position: relative; border-radius: var(--radius); overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; transition: transform 1.2s var(--ease); }
.feature-img:hover img { transform: scale(1.03); }
.feature-tag {
  position: absolute; right: 0; bottom: 0; background: var(--bara-red); color: #fff;
  padding: 1.25rem 1.5rem; font-family: var(--font-head); line-height: 1.1;
}
.feature-tag strong { display: block; font-size: 2rem; letter-spacing: -.03em; }
.feature-tag span { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-body); opacity: .9; }

.point { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.point:last-child { border-bottom: 1px solid var(--line); }
.point h3 { font-size: 1.08rem; margin: 0 0 .35rem; letter-spacing: -.01em; }
.point p { margin: 0; color: var(--muted); font-size: .95rem; }
.point .ico { color: var(--bara-red); margin-top: .15rem; }

/* ---------- Plant cards ---------- */
.plant-card { display: block; color: inherit; height: 100%; }
.plant-card .img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--stone); }
.plant-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.plant-card:hover .img img { transform: scale(1.04); }
.plant-card .body { padding-top: 1.6rem; }
.plant-card .tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plant-card h3 { font-size: 1.6rem; margin: .5rem 0 .75rem; }
.plant-card p { color: var(--muted); }
.plant-card:hover h3 { color: var(--bara-red); }

/* ---------- Industry tiles ---------- */
.ind-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; height: 100%; background: var(--paper); transition: border-color .3s var(--ease); }
.ind-tile:hover { border-color: var(--ink); }
.ind-tile .ico { width: 30px; height: 30px; color: var(--bara-red); stroke-width: 1.3; }
.ind-tile h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.ind-tile p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 2.25rem 2.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--bara-red); }
.timeline li.now::before { background: var(--bara-red); box-shadow: 0 0 0 6px rgba(227,6,19,.12); }
.timeline .yr { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.35rem; letter-spacing: -.02em; }
.timeline p { margin: .2rem 0 0; color: var(--muted); font-size: .97rem; }

/* ---------- Dark band / CTA ---------- */
.band-dark { background: var(--steel); color: #c9ccd1; position: relative; overflow: hidden; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead, .band-dark p { color: #a9aeb5; }
.cta { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.cta::before {
  content: ""; position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: 260px; height: 150px; opacity: .14;
  background: repeating-linear-gradient(to bottom, var(--bara-red) 0 18px, transparent 18px 44px);
}
.cta .note { font-size: .85rem; color: #80868e; margin-top: 1rem; }

/* ---------- Cert / spec blocks ---------- */
.spec { border-left: 2px solid var(--bara-red); padding: .25rem 0 .25rem 1.5rem; margin-bottom: 2rem; }
.spec h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.spec p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); cursor: zoom-in; border: 0; padding: 0; text-align: left; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem;
  color: #fff; font-size: .88rem; font-weight: 500;
  background: linear-gradient(to top, rgba(10,11,13,.72), rgba(10,11,13,0));
}
.g-wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.g-tall { grid-column: span 4; aspect-ratio: auto; }
.g-half { grid-column: span 6; aspect-ratio: 16 / 10; }
.g-third { grid-column: span 4; aspect-ratio: 4 / 3.2; }
@media (max-width: 767.98px) {
  .gallery { grid-template-columns: 1fr; }
  .g-wide, .g-tall, .g-half, .g-third { grid-column: auto; aspect-ratio: 4 / 3; }
}

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,11,13,.94); display: none; align-items: center; justify-content: center; padding: 4rem 1.5rem 2rem; }
.lightbox.open { display: flex; animation: fadeIn .3s var(--ease); }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: #c9ccd1; text-align: center; margin-top: 1rem; font-size: .92rem; }
.lightbox button { position: absolute; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s; }
.lightbox button:hover { background: rgba(255,255,255,.1); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Fact list (plant pages) ---------- */
.facts { border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { font-weight: 500; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.s5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.s5 > div { padding: 1.75rem 1.25rem; border-right: 1px solid var(--line); background: var(--paper); }
.s5 > div:last-child { border-right: 0; }
.s5 .k { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.s5 .v { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.s5 .n { font-size: .75rem; color: var(--bara-red); letter-spacing: .12em; font-weight: 600; }
@media (max-width: 767.98px) {
  .s5 { grid-template-columns: 1fr 1fr; }
  .s5 > div { border-bottom: 1px solid var(--line); }
}

/* ---------- Contact ---------- */
.form-panel { border: 1px solid var(--line); border-top: 2px solid var(--bara-red); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); background: var(--paper); }
.form-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.form-label .req { color: var(--bara-red); }
.form-control, .form-select {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem;
  font-size: .97rem; color: var(--ink); background-color: var(--paper); box-shadow: none !important;
  transition: border-color .2s var(--ease);
}
.form-control::placeholder { color: #a3a7ad; }
.form-control:focus, .form-select:focus { border-color: var(--ink); }
.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated .form-select:invalid { border-color: var(--bara-red); background-image: none; }
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: var(--line); background-image: none; }
.invalid-feedback { color: var(--bara-red); font-size: .82rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .95rem; margin-top: 1.25rem; }
.form-status.ok { display: block; background: #eef7f0; color: #1d5c32; border: 1px solid #cfe7d6; }
.form-status.err { display: block; background: #fdf0f0; color: #8a1018; border: 1px solid #f4d0d2; }

.reach { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.reach:first-of-type { border-top: 1px solid var(--line); }
.reach .ico-box { width: 46px; height: 46px; }
.reach small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.reach strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.02rem; margin: .15rem 0; }
.reach a { color: inherit; }
.reach a:hover { color: var(--bara-red); }
.reach span { color: var(--muted); font-size: .92rem; }
a.reach:hover .ico-box { background: var(--bara-red); color: #fff; border-color: var(--bara-red); }
.map-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.map-wrap .map-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--paper); font-size: .93rem; font-weight: 500; color: var(--ink); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.85) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9aa0a8; padding: clamp(4rem, 7vw, 5.5rem) 0 2rem; font-size: .94rem; }
.site-footer .brand img { height: 74px; width: auto; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .65rem; }
.site-footer a { color: #c9ccd1; }
.site-footer a:hover { color: #fff; }
.site-footer .contact-line { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .9rem; }
.site-footer .contact-line .ico { width: 18px; height: 18px; color: var(--bara-red); margin-top: .3rem; }
.site-footer .bottom { border-top: 1px solid #262a2f; margin-top: 3.5rem; padding-top: 1.75rem; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020;
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(15,17,19,.25);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); background: var(--bara-red); color: #fff; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .40s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Layout safety ---------- */
html, body { overflow-x: clip; }
.container { --bs-gutter-x: 3rem; }
@media (max-width: 575.98px) { .container { --bs-gutter-x: 2.5rem; } .row.g-5 { --bs-gutter-x: 2.5rem; } }
/* Dropdown caret (overrides the nav underline pseudo-element) */
.site-header .nav-link.dropdown-toggle::after,
.site-header .nav-link.dropdown-toggle:hover::after,
.site-header .nav-link.dropdown-toggle.active::after {
  content: ""; display: inline-block; position: static; width: 6px; height: 6px;
  margin-left: .5rem; vertical-align: .22rem; background: none;
  border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transform-origin: center;
}
.site-header .nav-link.dropdown-toggle.active { color: var(--bara-red) !important; }

/* ---------- Contact form (simplified) ---------- */
.form-panel { border-top: 1px solid var(--line); }
.form-label { font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: .4rem; display: block; }
.form-label .opt { color: var(--muted); font-weight: 400; }
.ms { position: relative; }
.ms summary { list-style: none; cursor: pointer; user-select: none; }
.ms summary::-webkit-details-marker { display: none; }
.ms-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ms-text.is-empty { color: #a3a7ad; }
.ms-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15,17,19,.10); padding: .4rem; max-height: 320px; overflow: auto;
}
.ms-opt { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 3px; cursor: pointer; font-size: .95rem; color: var(--ink); margin: 0; }
.ms-opt:hover { background: var(--stone); }
.ms-opt input { width: 17px; height: 17px; accent-color: var(--ink); margin: 0; }
.ms.invalid summary { border-color: var(--bara-red); }
.svc-error { display: none; }
.ms.invalid + .svc-error { display: block; }

/* ---------- Contact details: equal weight ---------- */
.reach { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.reach:first-of-type { border-top: 1px solid var(--line); }
.reach small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.reach a, .reach > div > span { display: block; color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.6; }
.reach a:hover { color: var(--bara-red); }

/* ---------- CTA phone numbers ---------- */
.cta-phones { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin: 1.1rem 0 0; font-size: .95rem; color: #a9aeb5; }
.cta-phones .ico { width: 17px; height: 17px; color: #a9aeb5; }
.cta-phones a { color: #fff; }
.cta-phones a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 991.98px) { .cta-phones { justify-content: flex-start; } }
.cta::before { display: none; }
.site-footer .addr-name { display: block; color: #fff; font-weight: 500; margin-bottom: .1rem; }
.facts dd a { color: var(--ink); }
.facts dd a:hover { color: var(--bara-red); }
.facts-stack > div { flex-direction: column; gap: .2rem; }
.facts-stack dd { text-align: left; font-weight: 400; line-height: 1.6; }
.facts-stack dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* ---------- Timeline: live pulse on "Today" ---------- */
.timeline li.now::before { box-shadow: none; z-index: 1; }
.timeline li.now::after,
.timeline li.now > .yr::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--bara-red); opacity: 0; pointer-events: none;
  animation: tlPulse 2.4s cubic-bezier(.2,.6,.3,1) infinite;
}
.timeline li.now > .yr::before { animation-delay: 1.2s; }
@keyframes tlPulse {
  0%   { transform: scale(1);   opacity: .55; }
  80%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline li.now::after, .timeline li.now > .yr::before { animation: none; opacity: 0; }
  .timeline li.now::before { box-shadow: 0 0 0 6px rgba(227,6,19,.12); }
}

/* Header: full logo with tagline */
.site-header .navbar { padding: .7rem 0; }
.navbar-brand img { height: 62px; width: auto; }
@media (max-width: 991.98px) { .navbar-brand img { height: 52px; } }
html { scroll-padding-top: 110px; }
.map-wrap .map-head { align-items: flex-start; }
.map-wrap .map-head strong { color: var(--ink); font-weight: 600; font-size: 1rem; }
.map-wrap .map-addr { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.map-wrap .map-head .link-arrow { flex-shrink: 0; }
.map-wrap iframe { height: 380px; }
.map-wrap .map-head { flex-wrap: nowrap; }
@media (max-width: 575.98px) { .map-wrap .map-head { flex-wrap: wrap; } }

/* ---------- Light hover on feature points (About > Facility & equipment) ---------- */
.point-hover {
  border-bottom: 0; margin: 0 -1rem; padding: 1.5rem 1rem; border-radius: var(--radius);
  position: relative; transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.point-hover::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; top: -1px; height: 1px; background: var(--line);
  transition: opacity .35s var(--ease);
}
.point-hover { border-top: 0; }
.point-hover .ico { transition: transform .35s var(--ease); }
.point-hover h3 { transition: color .35s var(--ease); }
@media (hover: hover) {
  .point-hover:hover { background: #fff; box-shadow: 0 14px 34px rgba(15,17,19,.06); transform: translateY(-2px); }
  .point-hover:hover::after { opacity: 0; }
  .point-hover:hover .ico { transform: translateY(-2px) scale(1.06); }
}
.point.point-hover, .point.point-hover:last-child { border: 0; }

/* ==========================================================================
   DARK THEME — active when <html data-theme="dark">
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1f2f4;          /* headings / strong text */
  --ink-2: #c4c8ce;        /* body text */
  --muted: #8d939b;        /* secondary text */
  --line: #262a30;         /* dividers / borders */
  --stone: #121519;        /* alternate section bg */
  --paper: #171a1f;        /* cards / surfaces */
  --steel: #1b1f25;        /* CTA band */
  --page: #0c0e11;         /* page background */
  --bara-red: #e30613;
  --bara-red-dark: #ff2b36;
  --bs-body-color: var(--ink-2);
  --bs-body-bg: var(--page);
  --bs-border-color: var(--line);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 241, 242, 244;
}
[data-theme="dark"] body { background: var(--page); color: var(--ink-2); }
[data-theme="dark"] .bg-stone, [data-theme="dark"] .stats { background: var(--stone); }
[data-theme="dark"] .section, [data-theme="dark"] .section-sm { background-color: transparent; }

/* header */
[data-theme="dark"] .site-header { background: rgba(12,14,17,.92); }
[data-theme="dark"] .site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
[data-theme="dark"] .site-header .nav-link { color: var(--ink-2) !important; }
[data-theme="dark"] .site-header .nav-link:hover, [data-theme="dark"] .site-header .nav-link.active { color: var(--ink) !important; }
[data-theme="dark"] .site-header .nav-link.dropdown-toggle.active { color: #ff3b45 !important; }
[data-theme="dark"] .site-header .dropdown-menu { --bs-dropdown-bg: var(--paper); background: var(--paper); border-color: var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
[data-theme="dark"] .site-header .dropdown-item { color: var(--ink); }
[data-theme="dark"] .site-header .dropdown-item:hover, [data-theme="dark"] .site-header .dropdown-item.active { background: #1f2329; color: #ff3b45; }
[data-theme="dark"] .navbar-toggler .bar { background: var(--ink); }
@media (max-width: 991.98px) { [data-theme="dark"] .site-header .navbar-collapse { background: transparent; } }

/* accents slightly brighter on dark for contrast */
[data-theme="dark"] .eyebrow, [data-theme="dark"] .text-red, [data-theme="dark"] .svc-row .idx { color: #ff3b45; }
[data-theme="dark"] a:hover { color: #ff3b45; }
[data-theme="dark"] .check-list li::before { border-color: #ff3b45; }

/* buttons */
[data-theme="dark"] .btn-ghost { color: var(--ink); border-color: rgba(241,242,244,.55); }
[data-theme="dark"] .btn-ghost:hover { background: var(--ink); color: var(--page); border-color: var(--ink); }
[data-theme="dark"] .link-arrow { color: var(--ink); border-color: var(--ink); }
[data-theme="dark"] .link-arrow:hover { color: #ff3b45; border-color: #ff3b45; }

/* cards & tiles */
[data-theme="dark"] .ico-box { background: transparent; border-color: #2e333a; color: #ff3b45; }
[data-theme="dark"] .svc-card:hover { border-color: #353a42; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
[data-theme="dark"] .svc-card:hover .ico-box, [data-theme="dark"] a.reach:hover .ico-box { color: #fff; }
[data-theme="dark"] .ind-tile:hover { border-color: #4a5058; }
[data-theme="dark"] .ind-tile .ico, [data-theme="dark"] .point .ico { color: #ff3b45; }
[data-theme="dark"] .point-hover:hover { background: var(--paper); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
[data-theme="dark"] .plant-card .img { background: var(--paper); }
[data-theme="dark"] .feature-img, [data-theme="dark"] .g-item { background: var(--paper); }

/* timeline */
[data-theme="dark"] .timeline li::before { background: var(--page); }
[data-theme="dark"] .timeline li.now::before { background: var(--bara-red); }

/* CTA band & footer */
[data-theme="dark"] .band-dark { background: var(--steel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .site-footer { background: #08090b; }
[data-theme="dark"] .site-footer .bottom { border-top-color: var(--line); }
[data-theme="dark"] .wa-float { background: #262a30; }
[data-theme="dark"] .wa-float:hover { background: var(--bara-red); }

/* forms */
[data-theme="dark"] .form-panel { background: var(--paper); border-color: var(--line); }
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background-color: #0f1215; border-color: #2e333a; color: var(--ink); }
[data-theme="dark"] .form-control:focus, [data-theme="dark"] .form-select:focus { border-color: #8d939b; background-color: #0f1215; color: var(--ink); }
[data-theme="dark"] .form-control::placeholder, [data-theme="dark"] .ms-text.is-empty { color: #646a72; }
[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c4c8ce' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
[data-theme="dark"] .ms-menu { background: var(--paper); border-color: var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
[data-theme="dark"] .ms-opt:hover { background: #1f2329; }
[data-theme="dark"] .ms-opt input { accent-color: #ff3b45; }
[data-theme="dark"] .form-status.ok { background: #10251a; color: #9fe0b5; border-color: #1f4a32; }
[data-theme="dark"] .form-status.err { background: #2a1214; color: #ffb3b8; border-color: #4d1d21; }
[data-theme="dark"] .invalid-feedback { color: #ff6b73; }

/* maps, facts, misc */
[data-theme="dark"] .map-wrap { background: var(--paper); border-color: var(--line); }
[data-theme="dark"] .map-wrap .map-head { background: var(--paper); border-bottom-color: var(--line); }
[data-theme="dark"] .map-wrap iframe { filter: grayscale(1) invert(.9) hue-rotate(180deg) contrast(.9); }
[data-theme="dark"] .s5 > div { background: var(--paper); }
[data-theme="dark"] .proc-nav-help, [data-theme="dark"] .sx-help { background: var(--paper); }
[data-theme="dark"] .facts dd a { color: var(--ink); }

/* logo swap: dark theme uses the logo with white tagline */
.logo-on-dark { display: none !important; }
[data-theme="dark"] .logo-on-light { display: none !important; }
[data-theme="dark"] .logo-on-dark { display: inline-block !important; }

/* ---------- Dark theme: button hovers (buttons keep their own colours) ---------- */
[data-theme="dark"] { --bara-red-dark: #c4050f; }
[data-theme="dark"] .btn-bara:hover, [data-theme="dark"] .btn-bara:focus-visible {
  background: #c4050f; color: #fff; box-shadow: 0 10px 28px rgba(227,6,19,.35);
}
[data-theme="dark"] .btn-light-ghost:hover, [data-theme="dark"] .btn-light-ghost:focus-visible { background: #fff; color: #0c0e11; border-color: #fff; }
[data-theme="dark"] .btn-ghost:hover, [data-theme="dark"] .btn-ghost:focus-visible { background: var(--ink); color: #0c0e11; border-color: var(--ink); }
[data-theme="dark"] .wa-float:hover { color: #fff; }
[data-theme="dark"] .svc-card:hover, [data-theme="dark"] .plant-card:hover { color: inherit; }
/* light theme: same soft lift for the main button */
.btn-bara:hover { box-shadow: 0 10px 24px rgba(227,6,19,.22); }
.site-footer .powered strong { color: #c9ccd1; font-weight: 500; }
@media (max-width: 767.98px) { .site-footer .bottom { flex-direction: column; } }

/* ==========================================================================
   THEME TOGGLE (sun / moon, top right)
   ========================================================================== */
.site-header .navbar > .container { flex-wrap: wrap; }
.theme-toggle {
  order: 1; margin-left: auto; margin-right: .5rem;
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; padding: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.theme-toggle .ico { width: 19px; height: 19px; grid-area: 1 / 1; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.navbar-toggler { order: 2; }
.navbar-collapse { order: 3; }
@media (min-width: 992px) {
  .navbar-collapse { order: 1; }
  .theme-toggle { order: 2; margin-left: 1rem; margin-right: 0; }
}
/* light mode shows the moon (switch to dark); dark mode shows the sun (switch to light) */
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .i-moon { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
/* hover — explicit colours per theme so the generic link hover never interferes */
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme="dark"] .theme-toggle { border-color: #2e333a; color: var(--ink); }
[data-theme="dark"] .theme-toggle:hover, [data-theme="dark"] .theme-toggle:focus-visible { background: #f1f2f4; color: #0c0e11; border-color: #f1f2f4; }

/* smooth colour fade only while switching (class added by script for ~0.5s) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}
@media (prefers-reduced-motion: reduce) { html.theme-anim * { transition: none !important; } }
