/* ==========================================================================
   BPC Solutions — commercial website design system
   HTML5 / CSS3 / vanilla JS static site. No build step, no external fonts.
   ========================================================================== */

:root {
  /* Brand palette — original BPC Solutions identity (not HubSpot/Odoo) */
  --ink-900: #0f1b2d;
  --ink-800: #16243a;
  --ink-700: #223457;
  --ink-600: #334874;
  --ink-500: #4c6491;
  --ink-400: #7488ab;
  --ink-300: #a6b4cc;
  --ink-200: #d2d9e8;
  --ink-100: #eef1f8;
  --ink-50:  #f7f9fc;

  --teal-700: #0b7d6c;
  --teal-600: #0f9d87;
  --teal-500: #14b89f;
  --teal-100: #d9f3ee;

  --amber-600: #c7791f;
  --amber-500: #e09123;
  --amber-100: #fbead1;

  --red-600: #c0392b;
  --green-700: #1f8a4d;

  --white: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 27, 45, 0.14);

  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--ink-900); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--ink-50); }
.section--dark { background: var(--ink-900); color: var(--ink-100); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: .6em;
}
.lede { font-size: 1.15rem; color: var(--ink-600); max-width: 62ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink-900); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .75em 1.4em; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all .15s ease;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); }
.btn-secondary { background: var(--white); color: var(--ink-800); border-color: var(--ink-200); }
.btn-secondary:hover { border-color: var(--ink-400); background: var(--ink-50); }
.btn-ghost { background: transparent; color: var(--ink-100); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-amber { background: var(--amber-500); color: #fff; }
.btn-amber:hover { background: var(--amber-600); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }

/* Header / nav ----------------------------------------------------------- */
header.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(6px); border-bottom: 1px solid var(--ink-100);
  height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink-900); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-600), var(--ink-700));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1rem;
  flex: none;
}
nav.main-nav { display: none; }
nav.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a, nav.main-nav > ul > li > button.nav-top {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 10px; font-weight: 600; font-size: .88rem;
  color: var(--ink-700); border-radius: var(--radius-sm); background: none; border: none; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
nav.main-nav > ul > li > a:hover, nav.main-nav > ul > li > button.nav-top:hover,
nav.main-nav > ul > li.open > button.nav-top { background: var(--ink-100); text-decoration: none; color: var(--ink-900); }
.caret { font-size: .7em; transition: transform .15s ease; }
li.open .caret { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
@media (min-width: 1180px) {
  .header-cta { display: inline-flex; }
}
.mobile-nav-toggle {
  display: inline-flex; background: none; border: 1px solid var(--ink-200); border-radius: var(--radius-sm);
  width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
}

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--ink-100); box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md); padding: 22px; display: none; min-width: 560px; max-width: 760px;
}
li.open .mega { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mega-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin-bottom: .6em; }
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li { margin-bottom: 2px; }
.mega-col a {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--ink-800); font-weight: 500; font-size: .92rem;
}
.mega-col a:hover { background: var(--ink-50); text-decoration: none; color: var(--teal-700); }
.mega-col a span.desc { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-500); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); z-index: 480;
  overflow-y: auto; padding: 10px 18px 40px;
}
.mobile-nav.show { display: block; }
.mobile-nav details { border-bottom: 1px solid var(--ink-100); }
.mobile-nav summary { padding: 14px 4px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav a { display: block; padding: 9px 4px; color: var(--ink-700); font-weight: 500; }
.mobile-nav > a.top-link { display: block; padding: 14px 4px; font-weight: 700; color: var(--ink-900); border-bottom: 1px solid var(--ink-100); }

@media (min-width: 1040px) {
  nav.main-nav { display: block; }
  .mobile-nav-toggle { display: none; }
}

/* Hero --------------------------------------------------------------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(20,184,159,.12), transparent),
              linear-gradient(180deg, var(--ink-50), #fff 60%);
  padding: 72px 0 40px;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero-sub { font-size: 1.2rem; color: var(--ink-600); max-width: 56ch; margin-bottom: 1.4em; }
.hero-art {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--ink-100);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

/* Cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-shot { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-100); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin-bottom: 0; }
.card-body p { color: var(--ink-600); font-size: .93rem; margin-bottom: .4em; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px;
  border-radius: 999px; background: var(--ink-100); color: var(--ink-600);
}
.tag--teal { background: var(--teal-100); color: var(--teal-700); }
.tag--amber { background: var(--amber-100); color: var(--amber-600); }
.card-link { margin-top: auto; font-weight: 700; font-size: .9rem; }

.icon-tile {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--teal-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.feature {
  display: flex; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
}
.feature h3 { margin-bottom: .3em; font-size: 1.05rem; }
.feature p { color: var(--ink-600); font-size: .92rem; margin: 0; }

/* Breadcrumbs / page header --------------------------------------------- */
.page-header { padding: 46px 0 36px; background: var(--ink-50); border-bottom: 1px solid var(--ink-100); }
.breadcrumbs { font-size: .85rem; color: var(--ink-500); margin-bottom: .8em; }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs span { margin: 0 6px; }

/* Tabs ------------------------------------------------------------------ */
.tabs { border-bottom: 1px solid var(--ink-200); display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px; }
.tab-btn {
  padding: 10px 16px; border: none; background: none; font-weight: 600; color: var(--ink-500); cursor: pointer;
  border-bottom: 2px solid transparent; font-family: inherit; font-size: .92rem; white-space: nowrap;
}
.tab-btn.active { color: var(--teal-700); border-bottom-color: var(--teal-600); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Accordion / FAQ -------------------------------------------------------- */
.accordion-item { border-bottom: 1px solid var(--ink-100); }
.accordion-item summary {
  padding: 16px 4px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 10px; color: var(--ink-900);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: "+"; font-size: 1.3rem; color: var(--teal-700); flex: none; }
.accordion-item[open] summary::after { content: "–"; }
.accordion-item p { padding: 0 4px 16px; color: var(--ink-600); }

/* Gallery / lightbox ------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button.shot {
  border: 1px solid var(--ink-100); border-radius: var(--radius-md); overflow: hidden; padding: 0; cursor: zoom-in;
  background: var(--ink-100); aspect-ratio: 16/10;
}
.gallery button.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .2s ease; }
.gallery button.shot:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed; inset: 0; background: rgba(10,16,28,.88); z-index: 900; display: none;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.show { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #cfd9ee; text-align: center; margin-top: 12px; font-size: .9rem; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
}
.lightbox-prev { left: 18px; } .lightbox-next { right: 18px; }

/* Forms ------------------------------------------------------------------ */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7em .85em; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); font: inherit;
  background: var(--white); color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; }
.form-note { font-size: .82rem; color: var(--ink-500); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: var(--red-600); }
.demo-banner {
  background: var(--amber-100); color: var(--amber-600); border: 1px solid #f0d19c; padding: 10px 14px;
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}

/* Filter bar -------------------------------------------------------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.filter-bar input[type="search"] {
  flex: 1; min-width: 220px; padding: .7em 1em; border: 1px solid var(--ink-200); border-radius: 999px; font: inherit;
}
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--white); cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--ink-600); font-family: inherit;
}
.chip.active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.result-count { font-size: .85rem; color: var(--ink-500); margin-bottom: 14px; }
[data-filterable][hidden] { display: none; }

/* Stat row ----------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row .num { font-size: 2rem; font-weight: 800; color: var(--ink-900); }
.stat-row .label { font-size: .85rem; color: var(--ink-500); }

/* Diagram box --------------------------------------------------------------- */
.diagram-box {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.lifecycle { display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; }
.lifecycle-step {
  flex: 1 1 140px; background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  padding: 16px; margin: 6px; position: relative;
}
.lifecycle-step .n { font-size: .75rem; font-weight: 800; color: var(--teal-700); letter-spacing: .06em; }
.lifecycle-step h4 { margin: 4px 0 6px; font-size: .98rem; }
.lifecycle-step p { font-size: .82rem; color: var(--ink-600); margin: 0; }

/* Footer --------------------------------------------------------------------- */
footer.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 56px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-grid h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-300); font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--ink-700); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: var(--ink-400);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 10px; }

/* Final CTA band -------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
  color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-200); }

/* Blockers / disclosure notes -------------------------------------------------- */
.note-box {
  border: 1px solid var(--ink-200); background: var(--ink-50); border-radius: var(--radius-md); padding: 16px 18px;
  font-size: .88rem; color: var(--ink-600); margin: 18px 0;
}
.note-box strong { color: var(--ink-800); }

/* Utility ---------------------------------------------------------------------- */
.mt-0{margin-top:0} .mb-0{margin-bottom:0} .mt-lg{margin-top:48px} .mb-lg{margin-bottom:48px}
.text-center{text-align:center} .muted{color:var(--ink-500)}
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
