/* ============================================================
   LAYERQUESTAR — SOLUTIONS HUB PAGE
   Prefix: solhub
   Uses Global.css tokens only. No :root defined here.
   ============================================================ */

/* ------------------------------------------------------------
   Shared section layout
   ------------------------------------------------------------ */
.solhub-sec {
  padding: var(--sp-7) var(--sp-5);
}

.solhub-sec--white {
  background: var(--white);
}

.solhub-sec .section-header {
  margin-bottom: var(--sp-5);
}

.solhub-anchor {
  scroll-margin-top: var(--sp-8);
}

.solhub-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.solhub-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Dark surface (S8)
   ------------------------------------------------------------ */
.solhub-dark.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(215,25,32,.24), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.06), transparent 34%),
    linear-gradient(135deg, #0B0D10 0%, #171A1F 55%, #24272E 100%);
}

.solhub-dark.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  pointer-events: none;
}

.solhub-dark.section-dark > .section-inner {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   S1 HERO
   ------------------------------------------------------------ */
.solhub-hero.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: var(--sp-8) var(--sp-5);
}

.solhub-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden; 
}

.solhub-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: cb-hero-breathe 8s ease-in-out infinite;
  transform-origin: center center;
}

.solhub-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(215,25,32,.24), transparent 32%),
    linear-gradient(90deg, rgba(11,13,16,0.94) 0%, rgba(11,13,16,0.76) 55%, rgba(11,13,16,0.50) 100%);
}

.solhub-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.solhub-hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-mid);
  border: 1px solid rgba(239,59,66,0.40);
  background: rgba(215,25,32,0.12);
  padding: var(--sp-1) var(--sp-2);
  border-radius: 100px;
  margin-bottom: var(--sp-3);
}

.solhub-hero h1 {
  font-size: clamp(32px, 5vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--white);
  max-width: 860px;
  margin-bottom: var(--sp-3);
  text-wrap: pretty;
}

.solhub-hero h1 em {
  font-style: normal;
  color: var(--brand-mid);
}

.solhub-hero__sub {
  font-size: var(--text-md);
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 700px;
  margin-bottom: var(--sp-3);
}

.solhub-hero__tagline {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-4);
}

.solhub-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ------------------------------------------------------------
   S2 CHOOSER (dark panel inside a light section)
   ------------------------------------------------------------ */
.solhub-choose {
  background: var(--gray-50);
}

.solhub-choose__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.solhub-choose__col {
  padding: var(--sp-4);
}

.solhub-choose__col--right {
  border-left: 1px solid rgba(255,255,255,0.10);
}

.solhub-choose__label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.solhub-choose__list {
  list-style: none;
  display: grid;
  gap: var(--sp-1);
}

.solhub-choose__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.solhub-choose__item:hover {
  background: rgba(215,25,32,0.12);
  border-color: rgba(239,59,66,0.30);
}

.solhub-choose__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.10);
  color: var(--brand-mid);
}

.solhub-choose__item:hover .solhub-choose__icon {
  background: rgba(215,25,32,0.20);
}

.solhub-choose__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.solhub-choose__title {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.solhub-choose__desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
}

/* ------------------------------------------------------------
   S3 GOALS
   ------------------------------------------------------------ */
.solhub-goal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--gray-100);
}

.solhub-goal:first-of-type {
  border-top: none;
  padding-top: 0;
}

.solhub-goal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: var(--sp-2);
}

.solhub-goal__num {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-1);
}

.solhub-goal__main h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-800);
  margin-bottom: var(--sp-2);
}

.solhub-goal__answer {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: var(--sp-3);
}

.solhub-goal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.solhub-goal__panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}

.solhub-goal__panel h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
}

.solhub-goal__panel h4:not(:first-child) {
  margin-top: var(--sp-3);
}

.solhub-list {
  list-style: none;
  display: grid;
  gap: var(--sp-1);
}

.solhub-list li {
  position: relative;
  padding-left: var(--sp-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--gray-800);
}

.solhub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--brand);
}

.solhub-list--note li {
  color: var(--gray-600);
}

.solhub-list--note li::before {
  background: var(--gray-400);
}

/* ------------------------------------------------------------
   S4 END-PRODUCT LINES
   ------------------------------------------------------------ */
.solhub-lines {
  background: var(--gray-50);
}

.solhub-lines__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
}

.solhub-line {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.solhub-line:nth-child(4),
.solhub-line:nth-child(5) {
  grid-column: span 3;
}

.solhub-line:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.solhub-line__img {
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
}

.solhub-line__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.solhub-line__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--sp-3);
}

.solhub-line__num {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-1);
}

.solhub-line__body h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.25;
  color: var(--gray-800);
  margin-bottom: var(--sp-1);
}

.solhub-line__answer {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
}

.solhub-line__specs {
  border: 1px solid var(--gray-100);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--sp-3);
  flex-grow: 1;
}

.solhub-line__spec {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.solhub-line__spec:first-child {
  border-top: none;
}

.solhub-line__spec:nth-child(even) {
  background: var(--gray-50);
}

.solhub-line__spec dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-600);
  padding-top: 2px;
}

.solhub-line__spec dd {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--gray-800);
}

.solhub-line__body .btn {
  align-self: flex-start;
}

/* ------------------------------------------------------------
   S5 COMPARISON TABLE
   ------------------------------------------------------------ */
.solhub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.solhub-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: left;
}

.solhub-table thead th {
  background: var(--graphite);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: var(--sp-2);
  white-space: nowrap;
}

.solhub-table tbody th,
.solhub-table tbody td {
  padding: var(--sp-2);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--gray-800);
  border-top: 1px solid var(--gray-100);
  vertical-align: top;
}

.solhub-table tbody th {
  font-weight: 800;
  white-space: nowrap;
}

.solhub-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.solhub-table tbody tr:hover {
  background: var(--brand-subtle);
}

.solhub-compare__note {
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 780px;
}

/* ------------------------------------------------------------
   S6 WHY COMPLETE LINE
   ------------------------------------------------------------ */
.solhub-why {
  background: var(--gray-50);
}

.solhub-why__tagline {
  font-size: var(--text-md);
  font-weight: 800;
  line-height: 1.4;
  color: var(--gray-800);
  margin-bottom: var(--sp-4);
}

.solhub-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.solhub-why__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* ------------------------------------------------------------
   S7 FAQ
   ------------------------------------------------------------ */
.solhub-faq__list {
  display: grid;
  gap: var(--sp-1);
  max-width: 860px;
}

.solhub-faq__item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.solhub-faq__item:hover,
.solhub-faq__item[open] {
  border-color: var(--brand);
}

.solhub-faq__item[open] {
  box-shadow: var(--shadow-card);
}

.solhub-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-800);
  cursor: pointer;
  list-style: none;
}

.solhub-faq__q::-webkit-details-marker {
  display: none;
}

.solhub-faq__q:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.solhub-faq__chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--brand);
  transition: transform 0.25s ease;
}

.solhub-faq__item[open] .solhub-faq__chevron {
  transform: rotate(180deg);
}

.solhub-faq__a {
  padding: 0 var(--sp-3) var(--sp-3);
}

.solhub-faq__a p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-600);
}

/* ------------------------------------------------------------
   S8 FINAL CTA
   ------------------------------------------------------------ */
.solhub-cta.solhub-dark.section-dark {
  padding: var(--sp-8) var(--sp-5);
}

.solhub-cta__inner {
  text-align: center;
  max-width: 860px;
}

.solhub-cta__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: var(--sp-2);
}

.solhub-cta__h2 {
  font-size: clamp(26px, 4vw, var(--text-3xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.solhub-cta__h2 em {
  font-style: normal;
  color: var(--brand-mid);
}

.solhub-cta__sub {
  font-size: var(--text-md);
  line-height: 1.7;
  color: rgba(255,255,255,0.70);
  max-width: 680px;
  margin: 0 auto var(--sp-4);
}

.solhub-cta__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}

.solhub-cta__chip {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: var(--sp-1) var(--sp-2);
}

.solhub-cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.solhub-cta__turnkey {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.60);
}

.solhub-cta__turnkey a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

.solhub-cta__turnkey a:hover {
  color: var(--brand-mid);
}

/* Solutions Micro */
.solhub-breadcrumb,
.solhub-line__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.solhub-breadcrumb {
  gap: var(--sp-1);
  margin-bottom: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--gray-200);
}

.solhub-breadcrumb a {
  color: var(--white);
  text-decoration: underline;
}

.solhub-breadcrumb a,
.solhub-line__quote {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.solhub-line__actions .btn {
  align-self: center;
  white-space: normal;
}

.solhub-breadcrumb a:focus-visible,
.solhub-line__actions a:focus-visible,
.solhub-table-wrap:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.solhub-sizing {
  background: var(--off-white);
}

.solhub-sizing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.solhub-sizing__card {
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.solhub-sizing__card h3 {
  font-size: var(--text-lg);
  color: var(--gray-800);
  margin-bottom: var(--sp-2);
}

.solhub-sizing__specs {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  font-size: var(--text-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.solhub-sizing__specs tbody th,
.solhub-sizing__specs td {
  padding: var(--sp-1) 0;
  border-top: 1px solid var(--gray-100);
  vertical-align: top;
}

.solhub-sizing__specs tbody th {
  width: 40%;
  padding-right: var(--sp-2);
  color: var(--gray-600);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .solhub-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solhub-lines__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solhub-line,
  .solhub-line:nth-child(4),
  .solhub-line:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 960px) {
  .solhub-sizing__grid {
    grid-template-columns: 1fr;
  }

  .solhub-sec {
    padding: var(--sp-6) var(--sp-3);
  }

  .solhub-hero.section-dark,
  .solhub-cta.solhub-dark.section-dark {
    padding: var(--sp-7) var(--sp-3);
  }

  .solhub-choose__panel {
    grid-template-columns: 1fr;
  }

  .solhub-choose__col {
    padding: var(--sp-3);
  }

  .solhub-choose__col--right {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.10);
  }

  .solhub-goal {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    padding: var(--sp-5) 0;
  }

  .solhub-lines__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .solhub-sec {
    padding: var(--sp-6) var(--sp-2);
  }

  .solhub-hero.section-dark,
  .solhub-cta.solhub-dark.section-dark {
    padding: var(--sp-6) var(--sp-2);
  }

  .solhub-hero__btns,
  .solhub-cta__btns {
    flex-direction: column;
    align-items: stretch;
  }

  .solhub-goal__panel {
    padding: var(--sp-3);
  }

  .solhub-line__spec {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .solhub-why__grid {
    grid-template-columns: 1fr;
  }

  .solhub-faq__q {
    padding: var(--sp-2);
  }

  .solhub-faq__a {
    padding: 0 var(--sp-2) var(--sp-2);
  }
}

@keyframes cb-hero-breathe {
  0%   { transform: scale(1.00); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1.00); }
}
