/* SOLSTICE NRG: Industrial Solar EPC Style System
   Light, engineering-technical direction: paper surfaces, hairline rules,
   spec-sheet typography (IBM Plex Sans/Mono + Inter), blueprint motifs. */

:root {
  --bg-page: #F7F8FA;          /* Paper background */
  --bg-card: #FFFFFF;          /* Card / surface */
  --bg-card-alt: #F1F3F6;      /* Alternating section tint */
  --bg-inverse: #0E1720;       /* Deep graphite-navy anchor (footer, CTA bands) */

  --border-primary: #E2E5EA;   /* Hairline rules */
  --border-strong: #CBD1DB;

  --text-primary: #10161F;     /* Near-black graphite */
  --text-silver: #4A5568;      /* Secondary body text (kept var name for compatibility) */
  --text-slate-400: #6B7280;   /* Captions / labels */
  --text-muted: #8993A4;
  --text-inverse: #F2F4F7;

  --color-amber: #92400E;      /* Deep burnt gold accent, AA on white */
  --color-amber-hover: #B45309;
  --color-amber-soft: #FDF3E7; /* Tint background for badges */
  --color-amber-soft-border: #E9C08A;

  --color-emerald: #0F766E;    /* Technical teal-green for PPA / economics */
  --color-blue: #1D4A66;       /* Blueprint steel-blue, secondary technical accent */
}

/* Base Styles */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-page);
  color: var(--text-silver);
  font-family: 'Inter', sans-serif;
}

/* Engineering-documentation type system: display face on headings + labels,
   monospace on specs/data; cascades sitewide with no per-page markup change. */
h1, h2, h3, h4, h5, h6 {
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.tracking-widest,
.tracking-wide {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.14em !important;
}

.b2b-table th {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}

/* Premium Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-amber-hover);
}

/* Hero: blueprint grid instead of a dark radial glow */
.executive-bg-gradient {
  background-color: var(--bg-page);
  background-image:
    linear-gradient(rgba(29, 74, 102, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 74, 102, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  position: relative;
}
.executive-bg-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247,248,250,0) 0%, var(--bg-page) 92%);
  pointer-events: none;
}

/* Signature element: technical drawing corner brackets on key frames */
.blueprint-frame {
  position: relative;
}
.blueprint-frame::before,
.blueprint-frame::after,
.blueprint-frame > .bp-corner-tl,
.blueprint-frame > .bp-corner-br {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--color-amber-hover);
  z-index: 10;
}
.blueprint-frame::before {
  top: -8px; left: -8px;
  border-top: 2px solid var(--color-amber-hover);
  border-left: 2px solid var(--color-amber-hover);
}
.blueprint-frame::after {
  bottom: -8px; right: -8px;
  border-bottom: 2px solid var(--color-amber-hover);
  border-right: 2px solid var(--color-amber-hover);
}

/* Custom B2B Elements */
.b2b-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.b2b-card:hover {
  border-color: rgba(146, 64, 14, 0.45);
  box-shadow: 0 10px 24px -12px rgba(16, 22, 31, 0.12);
  transform: translateY(-2px);
}

.b2b-card-glow {
  background-color: var(--color-amber-soft);
  border: 1px solid var(--color-amber-soft-border);
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* B2B Sliders */
.b2b-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 0.25rem;
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
}

.b2b-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-amber-hover);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.15);
  transition: transform 0.1s ease, background-color 0.2s;
}
.b2b-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background-color: var(--color-amber);
}

/* Custom Forms */
.b2b-input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.b2b-input:focus {
  border-color: var(--color-amber-hover);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}
.b2b-input::placeholder {
  color: var(--text-muted);
}

/* Custom Buttons */
.btn-gold-primary {
  background-color: var(--color-amber);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(146, 64, 14, 0.18);
}
.btn-gold-primary:hover {
  background-color: var(--color-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(146, 64, 14, 0.28);
}

.btn-dark-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  background-color: var(--bg-card);
}
.btn-dark-outline:hover {
  border-color: var(--color-amber-hover);
  color: var(--color-amber);
}

/* Custom Tables */
.b2b-table-container {
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  overflow: hidden;
}
.b2b-table th {
  background-color: var(--bg-card-alt);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-primary);
  text-transform: uppercase;
  font-size: 0.68rem;
}
.b2b-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-primary);
  transition: background-color 0.2s;
}
.b2b-table tr:last-child td {
  border-bottom: none;
}
.b2b-table tr:hover td {
  background-color: rgba(16, 22, 31, 0.02);
}
.b2b-table td.highlight-column {
  background-color: var(--color-amber-soft);
}
.b2b-table tr:hover td.highlight-column {
  background-color: #FBEAD2;
}

/* Scrolling Marquee Styling: dark technical strip anchor */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.b2b-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--bg-inverse);
  border-bottom: 1px solid #1B2733;
  border-top: 1px solid #1B2733;
  display: flex;
}

.b2b-marquee-content {
  display: inline-flex;
  animation: marquee 35s linear infinite;
  padding: 0.75rem 0;
}

.b2b-marquee-item {
  color: #9AA5B4;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

.b2b-marquee-item::after {
  content: '●';
  margin-left: 3rem;
  color: var(--color-amber-hover);
  opacity: 0.9;
}

/* Typography & Long Read Optimization */
p {
  line-height: 1.75;
}
ol, ul {
  line-height: 1.7;
}
.b2b-card p {
  line-height: 1.6;
}
