/* ==========================================================================
   Solar Grant Compass Advisory Inc. (solargrantcompass.com)
   Design System: One Motif (Octagonal Solar Array Plate) · Bottle Green & Gold
   Fonts: Libre Franklin (Display 700) / Source Serif 4 (Text 400, 600, Italic)
   ========================================================================== */

:root {
  --sgc-bg: #133621;
  --sgc-surface: #1a4429;
  --sgc-surface-elevated: #215434;
  --sgc-surface-card: #173d25;
  --sgc-ink: #f4d96c;
  --sgc-ink-bright: #fdf5d2;
  --sgc-muted: #cbbd76;
  --sgc-accent: #f4d96c;
  --sgc-accent-hover: #fae58c;
  --sgc-accent-ink: #133621;
  --sgc-border: rgba(244, 217, 108, 0.24);
  --sgc-border-strong: rgba(244, 217, 108, 0.52);

  --sgc-font-display: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sgc-font-text: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);
  --step-head: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --step-hero: clamp(2rem, 1.4rem + 2.6vw, 3.35rem);

  --sgc-cut-sm: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --sgc-cut-md: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  --sgc-cut-lg: polygon(26px 0, calc(100% - 26px) 0, 100% 26px, 100% calc(100% - 26px), calc(100% - 26px) 100%, 26px 100%, 0 calc(100% - 26px), 0 26px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--sgc-bg);
  color: var(--sgc-ink-bright);
  font-family: var(--sgc-font-text);
  font-size: var(--step-body);
  line-height: 1.58;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--sgc-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover, a:focus-visible {
  color: var(--sgc-accent-hover);
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Top Advertorial Bar */
.sgc-adv-ribbon {
  background-color: #0c2415;
  border-bottom: 1px solid var(--sgc-border);
  padding: 0.55rem 1.25rem;
  text-align: center;
}

.sgc-adv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sgc-accent);
  background-color: var(--sgc-surface);
  padding: 0.28rem 0.95rem;
  clip-path: var(--sgc-cut-sm);
}

.sgc-adv-dot {
  width: 8px;
  height: 8px;
  background-color: var(--sgc-accent);
  display: inline-block;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* Site Header */
.sgc-header {
  border-bottom: 1px solid var(--sgc-border);
  background-color: rgba(19, 54, 33, 0.94);
  position: relative;
  z-index: 10;
}

.sgc-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sgc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.sgc-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--sgc-ink);
}

.sgc-brand-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  clip-path: var(--sgc-cut-sm);
}

.sgc-brand-text {
  display: flex;
  flex-direction: column;
}

.sgc-brand-title {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: var(--sgc-ink);
  line-height: 1.1;
}

.sgc-brand-sub {
  font-family: var(--sgc-font-text);
  font-size: 0.8125rem;
  color: var(--sgc-muted);
}

.sgc-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.sgc-nav a {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-small);
  text-decoration: none;
  color: var(--sgc-ink-bright);
  letter-spacing: 0.01em;
}

.sgc-nav a:hover {
  color: var(--sgc-accent);
}

/* Hero & Quiz Stage — Giant Cropped Octagonal Solar Motif */
.sgc-hero-stage {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--sgc-border);
}

.sgc-giant-motif {
  position: absolute;
  right: -14vw;
  top: 6%;
  width: 68vw;
  max-width: 860px;
  aspect-ratio: 1 / 1;
  background-color: var(--sgc-surface);
  border: 2px solid var(--sgc-border);
  clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
  pointer-events: none;
  z-index: 0;
}

.sgc-giant-motif::after {
  content: "";
  position: absolute;
  inset: 14%;
  background-color: rgba(244, 217, 108, 0.06);
  clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
}

.sgc-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: start;
}

.sgc-hero-copy {
  padding-top: 0.5rem;
}

.sgc-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--sgc-accent-ink);
  background-color: var(--sgc-accent);
  padding: 0.35rem 0.9rem;
  clip-path: var(--sgc-cut-sm);
  margin-bottom: 1.25rem;
}

.sgc-h1 {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-hero);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--sgc-ink);
  margin-bottom: 1.25rem;
}

.sgc-lead {
  font-size: var(--step-lead);
  color: var(--sgc-ink-bright);
  margin-bottom: 1.5rem;
  max-width: 58ch;
}

.sgc-key-points {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.sgc-key-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--sgc-ink-bright);
}

.sgc-oct-bullet {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 0.42rem;
  background-color: var(--sgc-accent);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* Interactive 3-Step Quiz Card */
.sgc-quiz-shell {
  background-color: var(--sgc-surface-card);
  border: 2px solid var(--sgc-accent);
  padding: 2rem 1.85rem;
  clip-path: var(--sgc-cut-lg);
}

.sgc-safeguard-banner {
  background-color: rgba(244, 217, 108, 0.14);
  border-left: 4px solid var(--sgc-accent);
  padding: 0.75rem 1rem;
  margin-bottom: 1.35rem;
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--sgc-ink);
  line-height: 1.4;
}

.sgc-quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--sgc-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sgc-progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--sgc-bg);
  margin-bottom: 1.5rem;
  clip-path: var(--sgc-cut-sm);
  overflow: hidden;
}

.sgc-progress-bar {
  height: 100%;
  width: 33.33%;
  background-color: var(--sgc-accent);
  transition: width 0.28s ease;
}

.sgc-quiz-step {
  display: none;
}

.sgc-quiz-step.is-active {
  display: block;
  animation: sgcFadeIn 0.24s ease-out;
}

@keyframes sgcFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sgc-step-question {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--sgc-ink-bright);
  margin-bottom: 1.25rem;
}

.sgc-option-stack {
  display: grid;
  gap: 0.85rem;
}

.sgc-quiz-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background-color: var(--sgc-surface-elevated);
  color: var(--sgc-ink-bright);
  border: 1px solid var(--sgc-border-strong);
  padding: 1.05rem 1.25rem;
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  clip-path: var(--sgc-cut-md);
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.sgc-quiz-btn:hover,
.sgc-quiz-btn:focus-visible {
  background-color: var(--sgc-accent);
  color: var(--sgc-accent-ink);
  transform: translateY(-2px);
  outline: none;
}

.sgc-quiz-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(19, 54, 33, 0.35);
  color: inherit;
  font-size: 0.95rem;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* Result View inside Quiz Shell */
.sgc-quiz-result {
  display: none;
}

.sgc-quiz-result.is-active {
  display: block;
  animation: sgcFadeIn 0.28s ease-out;
}

.sgc-result-badge {
  display: inline-block;
  background-color: var(--sgc-accent);
  color: var(--sgc-accent-ink);
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  clip-path: var(--sgc-cut-sm);
  margin-bottom: 0.9rem;
}

.sgc-result-title {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--sgc-ink);
  margin-bottom: 0.85rem;
}

.sgc-result-summary {
  background-color: var(--sgc-bg);
  border: 1px solid var(--sgc-border);
  padding: 1rem 1.15rem;
  margin-bottom: 1.15rem;
  clip-path: var(--sgc-cut-sm);
  font-size: 0.95rem;
}

.sgc-result-summary p {
  margin-bottom: 0.4rem;
}

.sgc-result-summary p:last-child {
  margin-bottom: 0;
}

.sgc-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--sgc-accent);
  color: var(--sgc-accent-ink);
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  padding: 1.15rem 1.35rem;
  clip-path: var(--sgc-cut-md);
  transition: background-color 0.18s ease, transform 0.14s ease;
  margin-top: 0.5rem;
}

.sgc-primary-cta:hover,
.sgc-primary-cta:focus-visible {
  background-color: var(--sgc-accent-hover);
  color: var(--sgc-accent-ink);
  transform: translateY(-2px);
}

.sgc-reset-btn {
  margin-top: 0.9rem;
  background: transparent;
  border: none;
  color: var(--sgc-muted);
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.sgc-reset-btn:hover {
  color: var(--sgc-ink);
}

/* Full-width Motif Divider Band */
.sgc-motif-band {
  background-color: var(--sgc-surface);
  border-bottom: 1px solid var(--sgc-border);
  padding: 1.5rem 0;
}

.sgc-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sgc-band-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.sgc-band-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: var(--sgc-accent);
  color: var(--sgc-accent-ink);
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.sgc-band-title {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sgc-ink);
  margin-bottom: 0.2rem;
}

.sgc-band-desc {
  font-size: 0.92rem;
  color: var(--sgc-ink-bright);
}

/* Reference & Educational Guide Section */
.sgc-reference-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--sgc-border);
}

.sgc-section-header {
  max-width: 740px;
  margin-bottom: 2.5rem;
}

.sgc-h2 {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-head);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--sgc-ink);
  margin-bottom: 0.85rem;
}

.sgc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sgc-info-card {
  background-color: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  padding: 1.75rem;
  clip-path: var(--sgc-cut-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sgc-info-card h3 {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--sgc-ink);
  margin-bottom: 0.75rem;
}

.sgc-info-card p {
  font-size: 1rem;
  color: var(--sgc-ink-bright);
  margin-bottom: 1rem;
}

.sgc-card-tag {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--sgc-muted);
}

/* Two-Column Quote / Criterion Section */
.sgc-split-statement {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-bottom: 1px solid var(--sgc-border);
}

.sgc-split-left {
  background-color: var(--sgc-ink);
  color: var(--sgc-accent-ink);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sgc-split-left strong {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
}

.sgc-split-left span {
  font-size: 0.95rem;
  opacity: 0.88;
}

.sgc-split-right {
  background-color: var(--sgc-surface);
  padding: 2.75rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sgc-split-quote {
  font-family: var(--sgc-font-text);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  line-height: 1.38;
  color: var(--sgc-ink-bright);
  margin-bottom: 1rem;
}

.sgc-split-cite {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--sgc-accent);
}

/* Legal Subpages Layout */
.sgc-legal-main {
  flex: 1;
  padding: 3.5rem 0 4.5rem;
}

.sgc-legal-sheet {
  background-color: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  padding: 2.75rem;
  clip-path: var(--sgc-cut-lg);
  max-width: 900px;
  margin: 0 auto;
}

.sgc-legal-sheet h1 {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-head);
  color: var(--sgc-ink);
  margin-bottom: 0.65rem;
}

.sgc-legal-updated {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--sgc-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sgc-border);
}

.sgc-legal-sheet h2 {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--sgc-ink);
  margin: 2rem 0 0.75rem;
}

.sgc-legal-sheet p,
.sgc-legal-sheet li {
  color: var(--sgc-ink-bright);
  margin-bottom: 0.9rem;
}

.sgc-legal-sheet ul {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.sgc-entity-box {
  background-color: var(--sgc-bg);
  border: 1px solid var(--sgc-border-strong);
  padding: 1.5rem;
  clip-path: var(--sgc-cut-md);
  margin: 1.5rem 0;
}

.sgc-entity-box p {
  margin-bottom: 0.45rem;
}

.sgc-entity-box p:last-child {
  margin-bottom: 0;
}

/* Footer — The Mark Built Large */
.sgc-footer {
  background-color: #0d2617;
  border-top: 2px solid var(--sgc-border);
  padding: 3.5rem 0 2.5rem;
  margin-top: auto;
}

.sgc-footer-monument {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 2.5rem;
  align-items: end;
}

.sgc-monument-block {
  background-color: var(--sgc-surface);
  border-top: 3px solid var(--sgc-accent);
  padding: 1rem;
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 2.1rem);
  color: var(--sgc-ink);
  text-align: center;
  letter-spacing: -0.03em;
  clip-path: var(--sgc-cut-sm);
}

.sgc-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sgc-border);
}

.sgc-footer-heading {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sgc-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.sgc-footer-entity p {
  font-size: 0.9375rem;
  color: var(--sgc-ink-bright);
  margin-bottom: 0.35rem;
}

.sgc-footer-links {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.sgc-footer-links a {
  font-family: var(--sgc-font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--sgc-ink-bright);
}

.sgc-footer-links a:hover {
  color: var(--sgc-accent);
}

.sgc-footer-disclaimer {
  padding-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--sgc-muted);
  display: grid;
  gap: 0.75rem;
}

.sgc-footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sgc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--step-small);
  color: var(--sgc-muted);
}

@media (max-width: 920px) {
  .sgc-hero-grid {
    grid-template-columns: 1fr;
  }
  .sgc-band-grid,
  .sgc-cards-grid,
  .sgc-split-statement,
  .sgc-footer-grid {
    grid-template-columns: 1fr;
  }
  .sgc-footer-monument {
    grid-template-columns: repeat(5, 1fr);
  }
  .sgc-legal-sheet {
    padding: 1.75rem 1.25rem;
  }
}
