:root {
  /* BSC brand palette: navy-blue (structure) + red (accent/CTA) */
  --teal-900: #0e1c44;
  --teal-700: #1b2f66;
  --teal-600: #24407f;
  --teal-500: #2f74b5;
  --teal-100: #d6e4f5;
  --teal-50: #eef4fb;
  --orange-600: #a30f12;
  --orange-500: #d6181c;
  --orange-400: #e6393d;
  /* Explicit brand tokens */
  --bsc-red: #d6181c;
  --bsc-red-dark: #a30f12;
  --bsc-navy: #14224d;
  --bsc-blue: #2f74b5;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --surface: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .14);
  --radius: 14px;
  --radius-sm: 10px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-700);
  background: var(--white);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink-900); font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); }

.container-wide { max-width: 1240px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; transition: all .18s ease; }
.btn-primary { background: var(--teal-700); border-color: var(--teal-700); }
.btn-primary:hover { background: var(--teal-900); border-color: var(--teal-900); }
.btn-accent { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.btn-accent:hover { background: var(--orange-600); border-color: var(--orange-600); color: #fff; }
.btn-outline-light-2 { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-light-2:hover { background: #fff; color: var(--teal-900); }
.btn-outline-teal { border: 1.5px solid var(--teal-700); color: var(--teal-700); background: transparent; }
.btn-outline-teal:hover { background: var(--teal-700); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-900); color: #cfeae6; font-size: .85rem; }
.topbar a { color: #cfeae6; }
.topbar a:hover { color: #fff; }

/* ---------- Navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: var(--shadow-sm); }
.site-header .nav-inner { width: 100%; max-width: 100%; padding-left: 1.5rem; padding-right: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-brand { padding-top: 0; padding-bottom: 0; }
.navbar-brand .brand-logo { height: 52px; width: auto; }
.navbar-brand .brand-divider { width: 1px; height: 38px; background: #e2e8f0; margin: 0 .85rem; flex: none; }
.navbar-brand .brand-text { line-height: 1.12; }
.navbar-brand .brand-text strong { color: var(--bsc-navy); font-size: 1.3rem; font-weight: 700; display: block; max-width: 11rem; }
.navbar .nav-link { color: var(--ink-700); font-weight: 600; padding: .5rem 1rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--teal-700); }

.mega-menu { min-width: 280px; padding: .85rem 1rem; border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); margin-top: .4rem; }
.mega-menu .col-md-4 { flex: 0 0 100%; max-width: 100%; }
.mega-menu h6 { color: var(--orange-600); text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; margin-bottom: .5rem; }
.mega-menu a { display: block; color: var(--ink-700); padding: .3rem 0; font-weight: 500; white-space: nowrap; }
.mega-menu a:hover { color: var(--teal-700); padding-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  /* Catalogue cover (page-1) as the backdrop. A directional navy overlay keeps
     the left side dark for readable text while fading lighter on the right so
     the products stay clearly visible. */
  background: linear-gradient(90deg, rgba(11,22,55,.94) 0%, rgba(13,25,62,.84) 38%, rgba(20,38,85,.5) 66%, rgba(30,54,110,.3) 100%),
              url("../../catalogs/all-products/page-1.webp") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .25;
}
.hero .container-wide { position: relative; z-index: 2; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.hero .lead { color: #d7f1ec; font-size: 1.12rem; max-width: 620px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #fff; margin-bottom: 1.25rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: .82rem; color: #bfe6e0; text-transform: uppercase; letter-spacing: .08em; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 1.5rem; backdrop-filter: blur(6px);
}
.hero-card .icon-tile { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:1.4rem; color:#fff; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-tint { background: var(--surface); }
.eyebrow { color: var(--orange-600); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-top: .35rem; }

/* ---------- Category cards ---------- */
.cat-card {
  display: block; background: #fff; border: 1px solid #eef2f5; border-radius: var(--radius);
  padding: 1.5rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.cat-card .icon {
  width: 56px; height: 56px; border-radius: 14px; display:flex; align-items:center; justify-content:center;
  background: var(--teal-50); color: var(--teal-700); font-size: 1.6rem; margin-bottom: 1rem;
}
.cat-card h3 { font-size: 1.08rem; margin-bottom: .35rem; color: var(--ink-900); }
.cat-card p { font-size: .9rem; color: var(--ink-500); margin: 0; }
.cat-card .group-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-600); font-weight: 700; }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff; border: 1px solid #eef2f5; border-radius: var(--radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-thumb {
  aspect-ratio: 4 / 3; background: var(--teal-50); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .ph-icon { font-size: 3rem; color: var(--teal-500); opacity: .55; }
.product-badge { position: absolute; top: .65rem; left: .65rem; background: var(--orange-500); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; }
.product-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-card .cat-label { font-size: .72rem; color: var(--teal-700); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.product-card h3 { font-size: 1.02rem; margin: .25rem 0 .4rem; }
.product-card h3 a { color: var(--ink-900); }
.product-card h3 a:hover { color: var(--teal-700); }
.product-card .desc { font-size: .87rem; color: var(--ink-500); margin-bottom: .9rem; flex: 1; }
.product-card .meta { font-size: .78rem; color: var(--ink-500); }

/* ---------- Feature / why-us ---------- */
.feature { text-align: left; }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); color: #fff; display:flex; align-items:center; justify-content:center; font-size: 1.4rem; margin-bottom: 1rem; }
.feature h4 { font-size: 1.05rem; }
.feature p { font-size: .92rem; color: var(--ink-500); }

/* ---------- Industries ---------- */
.industry-card { border-radius: var(--radius); padding: 1.75rem; color: #fff; height: 100%; position: relative; overflow: hidden; }
.industry-card.agri { background: linear-gradient(135deg, #15803d, #22c55e); }
.industry-card.constr { background: linear-gradient(135deg, #b45309, var(--orange-500)); }
.industry-card.indus { background: linear-gradient(135deg, var(--teal-900), var(--teal-600)); }
.industry-card.infra { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.industry-card h3 { color: #fff; }
.industry-card ul { list-style: none; padding: 0; margin: .75rem 0 0; }
.industry-card li { padding: .2rem 0; font-size: .92rem; opacity: .95; }
.industry-card li::before { content: "\2713"; margin-right: .5rem; font-weight: 700; }
.industry-card .ic { font-size: 2rem; margin-bottom: .5rem; display:block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--orange-600), var(--orange-500)); color: #fff; border-radius: 20px; padding: 3rem; }
.cta-band h2 { color: #fff; }

/* ---------- Home catalogue showcase ---------- */
.catalog-showcase {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 55%, var(--teal-600) 100%);
  border-radius: 20px; padding: 3rem; color: #fff; overflow: hidden;
}
.catalog-showcase .eyebrow-light { color: var(--teal-100); }
.catalog-showcase .showcase-title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .9rem; }
.catalog-showcase .showcase-lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 32rem; margin-bottom: 0; }
.showcase-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.showcase-badges span {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: .4rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
}
.showcase-badges i { color: var(--teal-100); }
.showcase-frames { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.showcase-img { border-radius: 8px; background: #fff; border: 4px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.showcase-img.front { position: relative; z-index: 2; width: 62%; max-width: 280px; transform: rotate(-4deg); }
.showcase-img.back { position: absolute; right: 6%; top: 4%; z-index: 1; width: 56%; max-width: 250px; transform: rotate(6deg); opacity: .95; }
@media (max-width: 991.98px) {
  .catalog-showcase { padding: 2rem 1.5rem; }
  .showcase-frames { min-height: 420px; margin-top: 1.25rem; }
}
@media (max-width: 575.98px) {
  .showcase-img.front { width: 68%; }
  .showcase-img.back { width: 60%; right: 2%; }
}

/* ---------- Filters / sidebar ---------- */
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .8rem; border-radius: 10px; color: var(--ink-700); font-weight: 500; }
.filter-list a:hover { background: var(--teal-50); color: var(--teal-700); }
.filter-list a.active { background: var(--teal-700); color: #fff; }
.filter-list a.active .badge { background: rgba(255,255,255,.25); }
.filter-list .badge { background: #eef2f5; color: var(--ink-500); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--surface); border-bottom: 1px solid #eef2f5; }
.breadcrumb { margin: 0; }
.breadcrumb a { color: var(--ink-500); }

/* ---------- Product detail ---------- */
.spec-table th { width: 38%; color: var(--ink-500); font-weight: 600; background: var(--surface); }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--teal-50); aspect-ratio: 4/3; display:flex; align-items:center; justify-content:center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .ph-icon { font-size: 5rem; color: var(--teal-500); opacity: .5; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--teal-700); }
.chip { display:inline-block; background: var(--teal-50); color: var(--teal-700); border-radius: 999px; padding: .25rem .8rem; font-size: .8rem; font-weight: 600; margin: 0 .35rem .35rem 0; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: var(--radius-sm); border-color: #e2e8f0; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 .2rem rgba(20,184,166,.18); }
.form-label { font-weight: 600; color: var(--ink-700); font-size: .9rem; }
.card-soft { border: 1px solid #eef2f5; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #94a3b8; padding: 3.5rem 0 1.5rem; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: var(--teal-500); }
.site-footer .footer-brand strong { color: #fff; font-size: 1.05rem; line-height: 1.1; }
.site-footer .footer-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: .3rem .5rem;
}
.site-footer .footer-logo-chip img { height: 34px; width: auto; display: block; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 1040;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(37,211,102,.45); transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

@media (max-width: 991px) {
  .mega-menu { min-width: auto; }
}

/* ================================================================
   Catalog viewer (view-only PDF page images)
   ================================================================ */
.catalog-shell { display: flex; gap: 1.5rem; align-items: flex-start; }

.catalog-sidebar {
  width: 280px; flex-shrink: 0; position: sticky; top: 96px;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.catalog-sidebar h6 { color: var(--orange-600); text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; margin: 1rem 0 .5rem; }
.catalog-sidebar h6:first-child { margin-top: 0; }

.catalog-main { flex: 1; min-width: 0; }

.viewer-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid #eef2f5; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: .65rem 1rem; margin-bottom: 1.25rem;
  position: sticky; top: 88px; z-index: 5; flex-wrap: wrap;
}
.viewer-toolbar .title { font-weight: 700; color: var(--ink-900); }
.viewer-toolbar .title small { display: block; font-weight: 500; color: var(--ink-500); font-size: .8rem; }
.viewer-toolbar .zoom-group { display: flex; align-items: center; gap: .4rem; }
.viewer-toolbar .zoom-group .btn { padding: .4rem .7rem; }
.viewer-toolbar .zoom-level { min-width: 52px; text-align: center; font-weight: 600; font-size: .9rem; color: var(--ink-700); }

/* Stage that hosts page images. View-only: select & drag disabled. */
.viewer-stage {
  background: #525659; border-radius: var(--radius); padding: 1.5rem 1rem;
  min-height: 60vh; display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.viewer-page {
  position: relative; width: 100%; max-width: var(--page-width, 800px);
  transition: max-width .15s ease;
}
.viewer-page img {
  display: block; width: 100%; height: auto; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
/* Transparent overlay deters drag/save-as on the image itself. */
.viewer-page .page-guard { position: absolute; inset: 0; z-index: 2; background: transparent; }
.viewer-page .page-num {
  position: absolute; top: 8px; right: 12px; z-index: 3;
  background: rgba(15,23,42,.6); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .15rem .55rem; border-radius: 999px; pointer-events: none;
}

.viewer-empty {
  background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius);
  padding: 3.5rem 2rem; text-align: center; color: var(--ink-500);
}
.viewer-empty i { font-size: 2.6rem; color: var(--teal-500); opacity: .7; }

.viewer-loading { color: #cbd5e1; padding: 3rem; text-align: center; }

@media (max-width: 991px) {
  .catalog-shell { flex-direction: column; }
  .catalog-sidebar { width: 100%; position: static; max-height: none; }
  .viewer-toolbar { position: static; top: auto; }
}
