/* =========================================================
   Nexum Industrial — Cassiopeia custom CSS
   File: /media/templates/site/cassiopeia/css/user.css

   Purpose:
   - remove default Cassiopeia chrome for the homepage hero;
   - style the Nexum Industrial hero section;
   - keep CSS clean, without duplicated override blocks.
========================================================= */

/* -------------------------
   Design tokens
------------------------- */

:root {
  --nx-dark: #050b12;
  --nx-dark-2: #071525;
  --nx-panel: rgba(5, 11, 18, 0.72);
  --nx-blue: #1684d8;
  --nx-blue-bright: #1e9bff;
  --nx-white: #ffffff;
  --nx-muted: #b8c4d4;
  --nx-border: rgba(255, 255, 255, 0.12);
  --nx-border-strong: rgba(255, 255, 255, 0.18);
  --nx-shadow-blue: rgba(22, 132, 216, 0.28);
  --nx-max: 1280px;
}

/* -------------------------
   Cassiopeia cleanup
------------------------- */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--nx-dark);
}

body.site {
  background: var(--nx-dark);
}

/* Hide the default Cassiopeia header/breadcrumbs.
   Nexum Hero has its own header/navigation. */
.container-header,
.container-breadcrumbs,
.breadcrumb {
  display: none !important;
}

/* Make the banner position full-width and remove Cassiopeia wrapper spacing. */
.site-grid,
.grid-child,
.container-banner,
.container-banner > .grid-child,
.container-banner .moduletable,
.container-banner .mod-custom,
.container-banner .card,
.container-banner .card-body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.site-grid {
  display: block !important;
  background: var(--nx-dark) !important;
}

/* On the current one-page MVP we do not use the default Featured Articles area.
   Remove this rule later if content is added through com_content below the hero. */
body.view-featured .container-component {
  display: none !important;
}

/* -------------------------
   Hero base
------------------------- */

.nx-hero {
  position: relative;
  width: 100%;
  min-height: 690px;
  padding-bottom: 42px;
  overflow: hidden;
  color: var(--nx-white);
  background: var(--nx-dark);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.nx-hero-bg,
.nx-hero-overlay {
  position: absolute;
  inset: 0;
}

.nx-hero-bg {
  z-index: 1;
  background-image: url('/images/nexum/hero-industrial.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.52;
  filter: saturate(0.72) contrast(1.08) brightness(0.88);
  transform: scale(1.01);
}

.nx-hero-overlay {
  z-index: 2;
  background:
    radial-gradient(circle at 76% 20%, rgba(30, 155, 255, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(5, 11, 18, 0.99) 0%, rgba(5, 11, 18, 0.94) 38%, rgba(5, 11, 18, 0.62) 68%, rgba(5, 11, 18, 0.30) 100%),
    linear-gradient(180deg, rgba(5, 11, 18, 0.18) 0%, rgba(5, 11, 18, 0.96) 100%);
}

/* -------------------------
   Hero header / navigation
------------------------- */

.nx-header {
  position: relative;
  z-index: 5;
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 30px 40px 0;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nx-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.nx-logo img {
  display: block;
  width: 195px;
  max-width: 100%;
  height: auto;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.48))
    brightness(1.08)
    contrast(1.08);
}

.nx-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nx-nav a,
.nx-lang {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nx-nav a {
  font-size: 11.5px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.045em;
}

.nx-nav a:hover,
.nx-lang:hover {
  color: var(--nx-blue-bright);
}

.nx-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nx-lang {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.nx-header-btn,
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--nx-white);
  border-radius: 5px;
  font-weight: 850;
  letter-spacing: 0.055em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.nx-header-btn {
  min-height: 42px;
  padding: 0 20px;
  font-size: 11.5px;
  background: linear-gradient(135deg, #0d63b8, var(--nx-blue));
  box-shadow: 0 14px 32px var(--nx-shadow-blue);
}

.nx-header-btn:hover,
.nx-btn-primary:hover {
  color: var(--nx-white);
  background: linear-gradient(135deg, var(--nx-blue), var(--nx-blue-bright));
  box-shadow: 0 18px 42px rgba(30, 155, 255, 0.30);
}

/* -------------------------
   Hero content
------------------------- */

.nx-hero-inner {
  position: relative;
  z-index: 4;
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 70px 40px 0;
}

.nx-hero-content {
  max-width: 650px;
}

.nx-eyebrow {
  margin-bottom: 24px;
  color: var(--nx-blue-bright);
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.nx-hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--nx-white);
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: none;
}

.nx-hero h1 span {
  color: var(--nx-white);
}

.nx-hero p {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16.5px;
  line-height: 1.58;
  font-weight: 400;
}

.nx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.nx-btn {
  min-height: 48px;
  padding: 0 24px;
  font-size: 11.5px;
}

.nx-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.nx-btn-primary {
  background: linear-gradient(135deg, #0d63b8, var(--nx-blue));
  box-shadow: 0 16px 38px var(--nx-shadow-blue);
}

.nx-btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.nx-btn-secondary:hover {
  color: var(--nx-white);
  border-color: var(--nx-blue-bright);
  background: rgba(255, 255, 255, 0.055);
}

/* -------------------------
   Metrics strip
------------------------- */

.nx-metrics {
  position: relative;
  z-index: 6;
  max-width: var(--nx-max);
  width: calc(100% - 80px);
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(5, 11, 18, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
}

.nx-metric {
  min-height: 104px;
  padding: 22px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.nx-metric:last-child {
  border-right: none;
}

.nx-metric-icon {
  display: block;
  margin-bottom: 9px;
  color: var(--nx-blue-bright);
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
}

.nx-metric strong {
  display: block;
  color: var(--nx-white);
  font-size: 14.5px;
  line-height: 1.25;
  font-weight: 850;
}

.nx-metric span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12.8px;
  line-height: 1.38;
}

/* -------------------------
   Responsive
------------------------- */

@media (max-width: 1180px) {
  .nx-header,
  .nx-hero-inner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .nx-nav {
    display: none;
  }

  .nx-metrics {
    width: calc(100% - 56px);
    grid-template-columns: repeat(2, 1fr);
  }

  .nx-metric:nth-child(2) {
    border-right: none;
  }

  .nx-metric:nth-child(1),
  .nx-metric:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
}

@media (max-width: 760px) {
  .nx-hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .nx-hero-bg {
    background-position: center;
    opacity: 0.42;
    transform: none;
  }

  .nx-hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 11, 18, 0.94) 0%, rgba(5, 11, 18, 0.985) 100%);
  }

  .nx-header {
    padding: 24px 20px 0;
  }

  .nx-logo {
    padding: 6px 8px;
  }

  .nx-logo img {
    width: 176px;
  }

  .nx-header-actions {
    display: none;
  }

  .nx-hero-inner {
    padding: 68px 20px 0;
  }

  .nx-eyebrow {
    margin-bottom: 20px;
    font-size: 12.5px;
    letter-spacing: 0.07em;
  }

  .nx-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.08;
  }

  .nx-hero p {
    font-size: 16px;
  }

  .nx-hero-actions {
    flex-direction: column;
  }

  .nx-btn {
    width: 100%;
  }

  .nx-metrics {
    width: 100%;
    margin-top: 48px;
    grid-template-columns: 1fr;
    border-left: none;
    border-right: none;
  }

  .nx-metric {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .nx-metric:last-child {
    border-bottom: none;
  }
}

@media (max-width: 420px) {
  .nx-hero h1 {
    font-size: 32px;
  }

  .nx-logo img {
    width: 160px;
  }
}
/* =========================
   NEXUM FINAL VISUAL TUNING
========================= */

/* Logo: убираем тяжелую темную плашку и делаем чище */
.nx-logo {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.nx-logo img {
  width: 230px !important;
  filter:
          brightness(1.22)
          contrast(1.18)
          drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)) !important;
}

/* Header: чуть больше воздуха */
.nx-header {
  padding-top: 34px !important;
}

/* Hero: немного спокойнее и премиальнее */
.nx-hero-inner {
  padding-top: 78px !important;
}

.nx-eyebrow {
  font-size: 13px !important;
  letter-spacing: 0.095em !important;
  margin-bottom: 26px !important;
}

/* Заголовок делаем менее “плакатным” */
.nx-hero h1 {
  font-size: clamp(40px, 3.65vw, 50px) !important;
  line-height: 1.12 !important;
  font-weight: 760 !important;
  letter-spacing: -0.028em !important;
  max-width: 620px !important;
}

/* Подзаголовок чуть легче */
.nx-hero p {
  font-size: 16px !important;
  line-height: 1.62 !important;
  max-width: 610px !important;
  color: rgba(255, 255, 255, 0.76) !important;
}

/* Кнопки — чуть строже */
.nx-btn,
.nx-header-btn {
  border-radius: 4px !important;
  font-weight: 800 !important;
}

/* Метрики — premium lighter */
.nx-metrics {
  margin-top: 56px !important;
  background: rgba(5, 11, 18, 0.66) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

.nx-metric {
  padding: 22px 26px !important;
}

.nx-metric-icon {
  font-size: 22px !important;
}

.nx-metric strong {
  font-size: 14px !important;
  font-weight: 760 !important;
}

.nx-metric span {
  font-size: 12.6px !important;
  color: rgba(255, 255, 255, 0.64) !important;
}

/* =========================
   NEXUM LAYOUT CENTERING & LOGO FIX
========================= */

.nx-header,
.nx-hero-inner,
.nx-metrics {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Важно: возвращаем нормальную внутреннюю сетку */
.nx-header {
  width: calc(100% - 96px) !important;
  padding: 34px 0 0 !important;
}

.nx-hero-inner {
  width: calc(100% - 96px) !important;
  padding: 86px 0 0 !important;
}

.nx-metrics {
  width: calc(100% - 96px) !important;
  margin-top: 64px !important;
}

/* Логотип компактнее и чище */
.nx-logo {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.nx-logo img {
  width: 210px !important;
  height: auto !important;
  filter:
          brightness(1.35)
          contrast(1.22)
          drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55)) !important;
}

/* Меню чуть компактнее, чтобы не спорило с логотипом */
.nx-nav {
  gap: 22px !important;
}

.nx-nav a {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.045em !important;
}

/* Заголовок немного спокойнее */
.nx-hero h1 {
  max-width: 630px !important;
  font-size: clamp(38px, 3.55vw, 52px) !important;
  line-height: 1.13 !important;
  font-weight: 780 !important;
  letter-spacing: -0.03em !important;
}

/* Подзаголовок */
.nx-hero p {
  max-width: 610px !important;
  font-size: 16px !important;
  line-height: 1.62 !important;
}

/* Кнопки чуть менее массивные */
.nx-btn {
  min-height: 46px !important;
  padding: 0 24px !important;
}

.nx-header-btn {
  min-height: 42px !important;
  padding: 0 20px !important;
}

/* Метрики легче */
.nx-metric {
  padding: 24px 28px !important;
}

.nx-metric strong {
  font-size: 14px !important;
  font-weight: 780 !important;
}

.nx-metric span {
  font-size: 12.8px !important;
  color: rgba(255, 255, 255, 0.66) !important;
}