/* =============================================================================
   bulcad.css  –  Autodesk-style design system for BulcadPLM
   Drop this in wwwroot/css/ and reference it in _Layout.cshtml AFTER site.css.
   Bootstrap is still loaded for grid/utilities; these classes override the nav
   and add the Autodesk charcoal aesthetic.
   ============================================================================= */

/* ── TOKENS ────────────────────────────────────────────────────────────────── */
:root {
  --bplm-blue:          #0696D7;
  --bplm-blue-dark:     #0474a8;
  --bplm-charcoal:      #1a1a1a;
  --bplm-charcoal2:     #2a2a2a;
  --bplm-charcoal3:     #3c3c3c;
  --bplm-mid:           #666666;
  --bplm-light:         #f5f5f5;
  --bplm-border:        #e0e0e0;
  --bplm-border-dark:   rgba(255,255,255,0.1);
  --bplm-radius:        3px;
  --bplm-font:          'Inter', Arial, sans-serif;
}

/* ── BASE RESET ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--bplm-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bplm-charcoal3);
  background: #fff;
}

a { color: var(--bplm-blue); }
a:hover { color: var(--bplm-blue-dark); }

/* ── HEADER / NAV ──────────────────────────────────────────────────────────── */
.bplm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.bplm-nav {
  background: var(--bplm-charcoal);
  border-bottom: 1px solid var(--bplm-border-dark);
  height: 56px;
}

.bplm-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

/* Brand */
.bplm-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.bplm-nav__brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--bplm-blue);
  border-radius: 4px;
}

.bplm-nav__brand-text {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.bplm-nav__brand-text strong {
  font-weight: 700;
  color: #fff;
}

/* Mobile toggle */
.bplm-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.bplm-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 1px;
  transition: all 0.2s;
}

/* Nav menu */
.bplm-nav__menu {
  display: flex !important;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.bplm-nav__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
}

.bplm-nav__item { position: relative; }

.bplm-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 56px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  font-family: var(--bplm-font);
}

.bplm-nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.bplm-nav__caret {
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s;
}

/* Dropdown */
.bplm-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bplm-charcoal2);
  border: 1px solid var(--bplm-border-dark);
  border-top: 2px solid var(--bplm-blue);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 200;
}

.bplm-nav__item--dropdown:hover .bplm-nav__dropdown,
.bplm-nav__item--dropdown:focus-within .bplm-nav__dropdown {
  display: block;
}

.bplm-nav__item--dropdown:hover .bplm-nav__caret {
  transform: rotate(180deg);
}

.bplm-nav__dropdown-item {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.bplm-nav__dropdown-item:hover {
  background: rgba(6,150,215,0.12);
  color: #fff;
}

/* Language switcher */
.bplm-nav__lang {
  display: flex;
  gap: 2px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--bplm-border-dark);
}

.bplm-nav__lang-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.bplm-nav__lang-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

.bplm-nav__lang-btn.is-active {
  background: var(--bplm-blue);
  border-color: var(--bplm-blue);
  color: #fff;
}

/* CTA button */
.bplm-nav__cta {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bplm-blue);
  color: #fff !important;
  border-radius: var(--bplm-radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.bplm-nav__cta:hover {
  background: var(--bplm-blue-dark);
  color: #fff !important;
}

/* ── MOBILE NAV ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .bplm-nav { height: auto; }
  .bplm-nav__inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }

  .bplm-nav__toggle {
    display: flex;
    margin-left: auto;
  }

  .bplm-nav__menu {
    display: none !important;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
  }

  .bplm-nav__menu.show {
    display: flex !important;
  }

  .bplm-nav__links { flex-direction: column; }

  .bplm-nav__link {
    height: auto;
    padding: 10px 0;
    border-bottom: 1px solid var(--bplm-border-dark);
  }

  .bplm-nav__dropdown {
    position: static;
    border-top: none;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    padding: 0;
  }

  .bplm-nav__item--dropdown:hover .bplm-nav__dropdown {
    display: none;
  }

  .bplm-nav__dropdown-item { padding: 8px 16px; }

  .bplm-nav__lang { margin: 8px 0 0; padding: 8px 0 0; border-left: none; border-top: 1px solid var(--bplm-border-dark); }

  .bplm-nav__cta { margin-top: 10px; text-align: center; }
}

/* ── STATS BAR ─────────────────────────────────────────────────────────────── */
.bplm-stats {
  background: var(--bplm-charcoal2);
  border-top: 1px solid var(--bplm-border-dark);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.bplm-stat {
  padding: 18px 36px;
  text-align: center;
  border-right: 1px solid var(--bplm-border-dark);
}

.bplm-stat:last-child { border-right: none; }

.bplm-stat__num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.bplm-stat__num em {
  color: var(--bplm-blue);
  font-style: normal;
}

.bplm-stat__label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── PAGE SECTIONS ─────────────────────────────────────────────────────────── */
.bplm-section {
  padding: 56px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.bplm-section--full { max-width: none; padding-left: 0; padding-right: 0; }
.bplm-section--dark  { background: var(--bplm-charcoal); }
.bplm-section--light { background: var(--bplm-light); }

.bplm-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bplm-blue);
  margin-bottom: 8px;
}

.bplm-section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--bplm-charcoal);
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.bplm-section-title--white { color: #fff; }

.bplm-section-sub {
  font-size: 15px;
  color: var(--bplm-mid);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 36px;
}

.bplm-section-sub--white { color: rgba(255,255,255,0.65); }

/* ── SERVICE CARDS ─────────────────────────────────────────────────────────── */
.bplm-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--bplm-border);
  border-top: 1px solid var(--bplm-border);
}

@media (max-width: 900px) {
  .bplm-svc-grid { grid-template-columns: 1fr; }
}

.bplm-svc-card {
  background: #fff;
  padding: 28px 24px 32px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.bplm-svc-card:hover { background: #f0f8fd; }

.bplm-svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bplm-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.bplm-svc-card:hover::before { transform: scaleX(1); }

.bplm-svc-icon {
  width: 44px;
  height: 44px;
  background: #e8f4fb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bplm-svc-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bplm-charcoal);
  margin-bottom: 8px;
}

.bplm-svc-card p {
  font-size: 14px;
  color: var(--bplm-mid);
  line-height: 1.6;
  margin-bottom: 18px;
}

.bplm-svc-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--bplm-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.bplm-svc-more::after {
  content: '›';
  font-size: 16px;
  transition: transform 0.15s;
}

.bplm-svc-card:hover .bplm-svc-more::after { transform: translateX(4px); }

/* ── PRODUCT CARDS (dark bg) ────────────────────────────────────────────────── */
.bplm-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .bplm-prod-grid { grid-template-columns: 1fr; }
}

.bplm-prod-card {
  background: var(--bplm-charcoal2);
  border: 1px solid var(--bplm-border-dark);
  padding: 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.bplm-prod-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--bplm-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.bplm-prod-card:hover { border-color: var(--bplm-blue); background: #222; }
.bplm-prod-card:hover::after { transform: scaleX(1); }

.bplm-prod-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.bplm-badge--plm { background: rgba(6,150,215,0.15); color: var(--bplm-blue); border: 1px solid rgba(6,150,215,0.3); }
.bplm-badge--erp { background: rgba(50,205,100,0.1); color: #32cd64; border: 1px solid rgba(50,205,100,0.25); }
.bplm-badge--ar  { background: rgba(255,140,0,0.1); color: #ff9b2e; border: 1px solid rgba(255,140,0,0.25); }

.bplm-prod-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.bplm-prod-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bplm-prod-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--bplm-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
}

/* ── CAD GRID ──────────────────────────────────────────────────────────────── */
.bplm-cad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--bplm-border);
}

@media (max-width: 700px) {
  .bplm-cad-grid { grid-template-columns: 1fr 1fr; }
}

.bplm-cad-item {
  background: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
  transition: background 0.15s;
}

.bplm-cad-item:hover { background: #f0f8fd; }

.bplm-cad-dot {
  width: 8px;
  height: 8px;
  background: var(--bplm-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.bplm-cad-item span { font-size: 13px; font-weight: 700; color: var(--bplm-charcoal); }
.bplm-cad-item small { font-size: 11px; color: var(--bplm-mid); display: block; }

/* ── CONTACT BAND ──────────────────────────────────────────────────────────── */
.bplm-contact {
  background: var(--bplm-blue);
  padding: 48px 24px;
}

.bplm-contact__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.bplm-contact h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.bplm-contact__sub { font-size: 15px; color: rgba(255,255,255,0.75); }

.bplm-contact__details { display: flex; flex-direction: column; gap: 10px; }

.bplm-contact__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.bplm-contact__row a { color: #fff; font-weight: 700; text-decoration: none; }
.bplm-contact__row a:hover { text-decoration: underline; }

.bplm-contact__icon {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.btn-bplm-white {
  background: #fff;
  color: var(--bplm-blue) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--bplm-radius);
  border: none;
  cursor: pointer;
  font-family: var(--bplm-font);
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-bplm-white:hover { background: #e8f4fb; color: var(--bplm-blue) !important; }

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.bplm-footer {
  background: var(--bplm-charcoal);
  border-top: 1px solid var(--bplm-border-dark);
}

.bplm-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bplm-footer__brand { display: flex; align-items: center; gap: 8px; }
.bplm-footer__brand-name { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.7); }
.bplm-footer__brand-sub { font-size: 12px; color: rgba(255,255,255,0.3); }

.bplm-footer__copy { font-size: 12px; color: rgba(255,255,255,0.35); }

.bplm-footer__links { display: flex; gap: 20px; }
.bplm-footer__links a { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; }
.bplm-footer__links a:hover { color: #fff; }

/* ── INNER PAGE CONTENT ────────────────────────────────────────────────────── */
.bplm-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 24px;
}

.bplm-page-hero {
  background: var(--bplm-charcoal);
  padding: 40px 24px;
  border-bottom: 3px solid var(--bplm-blue);
}

.bplm-page-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bplm-page-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.bplm-page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
}

/* Content lists on inner pages */
.bplm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.bplm-list li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 14px;
  color: var(--bplm-charcoal3);
  border-bottom: 1px solid var(--bplm-border);
}

.bplm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--bplm-blue);
  border-radius: 50%;
}

/* Content card for inner pages */
.bplm-card {
  background: #fff;
  border: 1px solid var(--bplm-border);
  border-top: 3px solid var(--bplm-blue);
  padding: 28px;
  margin-bottom: 24px;
}

.bplm-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bplm-charcoal);
  margin-bottom: 12px;
}

/* ── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn-bplm {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--bplm-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  font-family: var(--bplm-font);
  border: none;
}

.btn-bplm--primary { background: var(--bplm-blue); color: #fff !important; }
.btn-bplm--primary:hover { background: var(--bplm-blue-dark); color: #fff !important; }

.btn-bplm--outline { background: transparent; color: var(--bplm-blue); border: 2px solid var(--bplm-blue); }
.btn-bplm--outline:hover { background: var(--bplm-blue); color: #fff; }
