/* ============================================================
   SOLAR HARBOUR — Brand Inverters (sh-bi)
   Scoped to .sh-bi — cannot affect other pages.
   Navy #18457b · Gold #f8bc2d · Green #1a8a5c
   ============================================================ */

.sh-bi {
  --sh-bi-navy:      #18457b;
  --sh-bi-navy-rgb:  24,69,123;
  --sh-bi-gold:      #f8bc2d;
  --sh-bi-gold-rgb:  248,188,45;
  --sh-bi-green:     #1a8a5c;
  --sh-bi-ink:       #1b2a3d;
  --sh-bi-ink-2:     rgba(24,69,123,.78);
  --sh-bi-muted:     #5a6a7e;
  --sh-bi-tint:      #f3f6fa;
  --sh-bi-line:      rgba(24,69,123,.14);
  --sh-bi-head:      'Montserrat', system-ui, -apple-system, sans-serif;
  --sh-bi-body:      'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--sh-bi-ink);
  font-family: var(--sh-bi-body);
  line-height: 1.7;
}

/* --- Resets --- */
:where(.sh-bi) h1,:where(.sh-bi) h2,:where(.sh-bi) h3,:where(.sh-bi) h4 {
  font-family: var(--sh-bi-head);
  color: var(--sh-bi-navy);
  margin: 0 0 .6em;
  line-height: 1.25;
}
:where(.sh-bi) p { margin: 0 0 1em; }
:where(.sh-bi) ul { margin: 0 0 1.2em; padding-left: 1.4em; }
:where(.sh-bi) li { margin-bottom: .45em; }
:where(.sh-bi) a { color: var(--sh-bi-navy); text-decoration: underline; text-decoration-color: var(--sh-bi-gold); text-underline-offset: 2px; }
:where(.sh-bi) a:hover { color: var(--sh-bi-gold); }
:where(.sh-bi) strong { color: var(--sh-bi-navy); }
:where(.sh-bi) img { max-width: 100%; height: auto; }

/* --- Hero --- */
.sh-bi__hero {
  background: linear-gradient(135deg, var(--sh-bi-navy) 0%, #0f2f56 100%);
  color: #fff;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--sh-bi-gold);
}
.sh-bi__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(248,188,45,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(248,188,45,.08) 0%, transparent 40%);
  pointer-events: none;
  animation: sh-bi-glow 6s ease-in-out infinite alternate;
}
.sh-bi__hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 800px;
  margin: 0 auto .6em;
  position: relative;
}
.sh-bi__hero p {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 1.5em;
  position: relative;
}
@keyframes sh-bi-glow {
  0%   { opacity: .5; transform: scale(1); }
  100% { opacity: 1;  transform: scale(1.05); }
}

/* --- Button --- */
.sh-bi__btn {
  display: inline-block;
  background: var(--sh-bi-gold);
  color: var(--sh-bi-navy);
  font-family: var(--sh-bi-head);
  font-weight: 700;
  font-size: 1rem;
  padding: .85em 2em;
  border-radius: 6px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.sh-bi__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248,188,45,.35);
  color: var(--sh-bi-navy);
}
.sh-bi__btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: sh-bi-shine 3s ease-in-out infinite;
}
@keyframes sh-bi-shine {
  0%   { left: -100%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}

/* --- Content Sections --- */
.sh-bi section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.sh-bi section + section {
  border-top: 1px solid var(--sh-bi-line);
}
.sh-bi section h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: .8em;
}
.sh-bi section h3 {
  font-size: 1.15rem;
  margin-top: 1.8em;
  margin-bottom: .5em;
}

/* --- Tables --- */
.sh-bi table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0 1.5em;
  font-size: .92rem;
}
.sh-bi thead th {
  background: var(--sh-bi-navy);
  color: #fff;
  font-family: var(--sh-bi-head);
  font-weight: 600;
  padding: .75em 1em;
  text-align: left;
  white-space: nowrap;
}
.sh-bi tbody td {
  padding: .7em 1em;
  border-bottom: 1px solid var(--sh-bi-line);
}
.sh-bi tbody tr:nth-child(even) {
  background: var(--sh-bi-tint);
}
.sh-bi tbody tr:hover {
  background: rgba(248,188,45,.08);
}
@media (max-width: 640px) {
  .sh-bi table { font-size: .82rem; }
  .sh-bi thead th, .sh-bi tbody td { padding: .55em .6em; }
}

/* --- FAQ Accordion --- */
.sh-bi__faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.sh-bi__faq h2 { text-align: center; margin-bottom: 1.2em; }
.sh-bi__faq-item {
  border: 1px solid var(--sh-bi-line);
  border-radius: 8px;
  margin-bottom: .7rem;
  overflow: hidden;
  transition: box-shadow .2s;
}
.sh-bi__faq-item:hover {
  box-shadow: 0 2px 12px rgba(24,69,123,.06);
}
.sh-bi__faq-item h3 {
  font-size: 1rem;
  margin: 0;
  padding: 1em 2.5em 1em 1.2em;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.sh-bi__faq-item h3::after {
  content: '+';
  position: absolute;
  right: 1.1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--sh-bi-gold);
  font-weight: 700;
  transition: transform .3s;
}
.sh-bi__faq-item.open h3::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}
.sh-bi__faq-item p {
  padding: 0 1.2em 1em;
  margin: 0;
  color: var(--sh-bi-muted);
  display: none;
}
.sh-bi__faq-item.open p {
  display: block;
  animation: sh-bi-fadein .3s ease;
}
@keyframes sh-bi-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- FAQ Toggle + Scroll Reveal --- */
.sh-bi__faq-item { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.sh-bi__faq-item.sh-bi--visible { opacity: 1; transform: translateY(0); }

/* --- CTA --- */
.sh-bi__cta {
  background: linear-gradient(135deg, var(--sh-bi-navy) 0%, #0f2f56 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.sh-bi__cta::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(248,188,45,.15), transparent 70%);
  top: -80px; right: -60px;
  border-radius: 50%;
  animation: sh-bi-ctapulse 4s ease-in-out infinite alternate;
}
.sh-bi__cta h2 { color: #fff; position: relative; }
.sh-bi__cta p  { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 1.5em; position: relative; }
.sh-bi__cta a:not(.sh-bi__btn) { color: var(--sh-bi-gold); }
@keyframes sh-bi-ctapulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* --- Related Links --- */
.sh-bi__related {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--sh-bi-line);
}
.sh-bi__related h2 { font-size: 1.2rem; }
.sh-bi__related h3 { font-size: 1.05rem; margin-top: 1.4em; }
.sh-bi__related ul { list-style: none; padding: 0; }
.sh-bi__related li {
  padding: .5em 0;
  border-bottom: 1px solid var(--sh-bi-line);
}
.sh-bi__related li:last-child { border-bottom: none; }
.sh-bi__related a {
  font-weight: 600;
  text-decoration: none;
}
.sh-bi__related a:hover {
  color: var(--sh-bi-gold);
}
.sh-bi__related a::before {
  content: '→ ';
  color: var(--sh-bi-gold);
}

/* --- Brand Inverter extras (none needed) --- */

/* --- Responsive --- */
@media (max-width: 767px) {
  .sh-bi__hero { padding: 2.5rem 1.2rem 2rem; }
  .sh-bi__hero h1 { font-size: 1.4rem; }
  .sh-bi section { padding: 1.8rem 1.2rem; }
  .sh-bi__stats { padding: 2rem 1.2rem; }
  .sh-bi__stats-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .sh-bi__faq { padding: 1.8rem 1.2rem; }
  .sh-bi__cta { padding: 2rem 1.2rem; }
  .sh-bi__btn { display: block; text-align: center; }
}
@media (max-width: 480px) {
  .sh-bi__stats-grid { grid-template-columns: 1fr; }
  .sh-bi__stat-val { font-size: 1.15rem; }
}
/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .sh-bi *, .sh-bi *::before, .sh-bi *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
