/* SOVEREIGN SOLAR MASTER CITADEL STYLESHEET 2026 */
:root {
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --card: #111827;
  --card-hover: #1e293b;
  --border: #1e293b;
  --border-focus: #3b82f6;
  --emerald: #10b981;
  --emerald-dark: #064e3b;
  --emerald-light: #a7f3d0;
  --amber: #f59e0b;
  --amber-dark: #78350f;
  --sky: #38bdf8;
  --sky-dark: #0369a1;
  --rose: #f43f5e;
  --text: #f8fafc;
  --text-dim: #cbd5e1;
  --muted: #94a3b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #7dd3fc; text-decoration: underline; }

.topbar {
  background: var(--emerald-dark);
  color: var(--emerald-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.02em;
}

.site-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}
.brand-logo span { color: var(--emerald); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* HERO SECTION */
.citadel-hero {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}
.citadel-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.lead-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 820px;
  margin-bottom: 24px;
}
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.stat-item .lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.stat-item .val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.stat-item .val.green { color: var(--emerald); }

/* AUDIT & FORM LAYOUT */
.quote-audit-section { padding: 40px 0; }
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; }
}

.audit-info h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.audit-info p {
  color: var(--text-dim);
  margin-bottom: 18px;
}
.benefit-checklist {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.95rem;
}
.benefit-checklist li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* QUOTE CARD BOX */
.quote-card-box {
  background: var(--card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.quote-card-box h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #fff;
}
.form-trust-text {
  font-size: 0.85rem;
  color: var(--emerald);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
  min-height: 48px;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--emerald);
}
.form-micro {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.cta-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.1s, background 0.2s;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-submit-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}
.cta-submit-btn:active { transform: translateY(0); }

/* TABLE OF CONTENTS */
.toc-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
}
.toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.toc-list li a {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-list li a:hover { color: var(--sky); }

/* DIAGRAM EMBEDS */
.diagram-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
.diagram-container img, .diagram-container svg {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.diagram-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
}

/* TABLES & COMPARISON MATRICES */
.pricing-matrix-section { padding: 40px 0; }
.pricing-matrix-section h2 { font-size: 1.6rem; margin-bottom: 16px; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pricing-table, .comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: var(--card);
}
.pricing-table th, .comparison-table th {
  background: var(--bg-alt);
  padding: 14px 18px;
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-table td, .comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.pricing-table tr:hover td, .comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.badge-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-cross {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* CITADEL DEEP DIVE ARTICLES */
.citadel-deep-dive { padding: 40px 0; }
.deep-dive-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.deep-dive-card h2, .deep-dive-card h3 {
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
}
.deep-dive-card p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 1rem;
}
.compliance-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
  color: #fde68a;
}
.compliance-box strong { color: #fff; }

/* NEARBY CITADELS GRID */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.nearby-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: all 0.15s;
}
.nearby-card:hover {
  background: var(--card-hover);
  border-color: var(--emerald);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* FOOTER */
.site-footer {
  background: #020617;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- INTERACTIVE ROI CALCULATOR STYLES --- */
.solar-calc-box {
  background: linear-gradient(145deg, #111827 0%, #0f172a 100%);
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius);
  padding: 32px;
  margin: 36px 0;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
}
.solar-calc-box h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc-subtext {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .calc-controls { grid-template-columns: 1fr; }
}
.calc-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.calc-val-badge {
  background: #064e3b;
  color: var(--emerald-light);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 800;
  font-family: monospace;
}
.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  border: 2px solid #fff;
}
.calc-select {
  width: 100%;
  padding: 12px 14px;
  background: #090d16;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  min-height: 48px;
  outline: none;
}
.calc-select:focus { border-color: var(--emerald); }

.calc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.calc-metric-card {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.calc-metric-card.highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}
.calc-metric-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.calc-metric-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.calc-metric-val.green { color: var(--emerald); }
.calc-metric-val.amber { color: var(--amber); }

.calc-cta-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: transform 0.1s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
}
.calc-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
}

/* --- MOBILE STICKY BOTTOM RADAR BAR --- */
.mobile-sticky-radar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-sticky-radar.active {
  transform: translateY(0);
}
.radar-text {
  display: flex;
  flex-direction: column;
}
.radar-town {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.radar-sub {
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 600;
}
.radar-open-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* --- QUICK MODAL OVERLAY --- */
.radar-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.radar-modal-overlay.open {
  display: flex;
}
.radar-modal-box {
  background: #111827;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  max-height: 90vh;
  overflow-y: auto;
}
.radar-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.radar-modal-close:hover { color: #fff; }

/* --- ENGINEERING SPECS ACCORDION --- */
.engineering-spec-box {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.spec-item {
  border-left: 3px solid var(--sky);
  padding-left: 12px;
}
.spec-item .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-item .val {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
