/**
 * SICA Homepage Styles
 * Modern, trust-building design for solar customer advocacy
 */

/* ==========================================================================
   Container Standards
   ========================================================================== */

.container {
  max-width: var(--container-content, 1360px);
  margin: 0 auto;
  padding-left: var(--container-gutter, 40px);
  padding-right: var(--container-gutter, 40px);
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background: linear-gradient(135deg, #1a74bb 0%, #25a7e2 100%);
  color: var(--color-white);
  padding: clamp(72px, 7vw, 96px) 0 clamp(64px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(251, 175, 63, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-white);
}

.hero-subheadline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-ctas .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-metric {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fbaf3f;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

.hero-visual__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 55, 91, 0.28);
}

.hero-photo-credit {
  margin: 10px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
}

.hero-photo-location {
  color: var(--color-white);
  font-weight: 600;
  text-align: left;
}

.hero-photo-credit a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 0.2em;
}

.hero-photo-credit a:hover,
.hero-photo-credit a:focus-visible {
  text-decoration-color: currentColor;
}

/* ==========================================================================
   Trust Building Section
   ========================================================================== */

.trust-section {
  padding: clamp(72px, 7vw, 100px) 0;
  background: var(--color-gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--color-gray-600);
}

.section-header.centered {
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.trust-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.trust-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1a74bb 0%, #25a7e2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: 24px;
}

.trust-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 12px;
}

.trust-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-600);
}

/* Testimonials Carousel */
.testimonials-carousel {
  margin-bottom: 80px;
  overflow: hidden;
  padding: 40px 0;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  animation: scroll 30s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 24px)); }
}

.testimonial-card {
  flex: 0 0 400px;
  background: var(--color-white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #fbaf3f;
}

.testimonial-rating {
  color: #fbaf3f;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  color: var(--color-gray-900);
  font-weight: 600;
  margin-bottom: 4px;
}

.testimonial-author span {
  color: var(--color-gray-600);
  font-size: 0.875rem;
}

/* Impact Dashboard */
.impact-dashboard {
  background: linear-gradient(135deg, #1a74bb 0%, #25a7e2 100%);
  padding: 60px;
  border-radius: 20px;
  color: var(--color-white);
  text-align: center;
}

.impact-dashboard h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--color-white);
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.impact-stat {
  text-align: center;
}

.impact-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fbaf3f;
  line-height: 1;
  margin-bottom: 8px;
}

.citation-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: all 0.2s ease;
}

.citation-link:hover {
  color: #fbaf3f;
}

.impact-unit {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */

.calculator-section {
  padding: clamp(72px, 7vw, 100px) 0;
  background: var(--color-white);
}

.calculator-container {
  max-width: 900px;
  margin: 0 auto;
}

.calculator-card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 48px;
  border: 2px solid var(--color-gray-200);
}

/* Progress Bar */
.calculator-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gray-200);
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
  background: linear-gradient(135deg, #1a74bb 0%, #25a7e2 100%);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-600);
}

.progress-step.active .step-label {
  color: var(--color-gray-900);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--color-gray-200);
  position: relative;
  margin: 0 16px;
}

/* Calculator Form */
.calculator-form {
  min-height: 400px;
}

.calculator-step {
  display: none;
}

.calculator-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.calculator-step h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 32px;
  text-align: center;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--color-gray-300);
  border-radius: 12px;
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #25a7e2;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-with-prefix {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-600);
}

.input-with-prefix input {
  padding-left: 40px;
}

.input-help {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-top: 8px;
}

.calculator-actions {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.btn-block {
  width: 100%;
}

/* Calculator Results */
.calculator-loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-gray-200);
  border-top-color: #25a7e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.calculator-loading p {
  color: var(--color-gray-600);
  font-size: 1.125rem;
}

.calculator-results {
  animation: fadeIn 0.5s ease;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.result-card {
  background: var(--color-gray-50);
  padding: 24px;
  border-radius: 12px;
  border: 2px solid var(--color-gray-200);
  transition: all 0.2s ease;
}

.result-card:hover {
  border-color: #25a7e2;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.result-card.primary {
  background: linear-gradient(135deg, #1a74bb 0%, #25a7e2 100%);
  color: var(--color-white);
  grid-column: 1 / -1;
}

.result-card.highlight {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--color-white);
  grid-column: 1 / -1;
}

.result-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  opacity: 0.9;
}

.result-card:not(.primary):not(.highlight) .result-label {
  color: var(--color-gray-600);
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}

.result-card.primary .result-value,
.result-card.highlight .result-value {
  color: var(--color-white);
  font-size: 3rem;
}

.result-card:not(.primary):not(.highlight) .result-value {
  color: var(--color-gray-900);
}

.result-detail {
  font-size: 0.875rem;
  opacity: 0.8;
}

.result-card:not(.primary):not(.highlight) .result-detail {
  color: var(--color-gray-600);
}

.results-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Trust Badges */
.calculator-trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-gray-200);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge svg {
  color: #10b981;
}

/* ==========================================================================
   Company Search Section
   ========================================================================== */

.company-search-section {
  padding: clamp(72px, 7vw, 100px) 0;
  background: var(--color-gray-50);
}

.search-interface {
  max-width: 1000px;
  margin: 0 auto 60px;
}

.search-bar {
  background: var(--color-white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-input-group {
  position: relative;
  margin-bottom: 20px;
}

.search-input-group > .search-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  pointer-events: none;
}

.search-input-group input {
  width: 100%;
  padding: 16px 60px 16px 48px;
  border: 2px solid var(--color-gray-300);
  border-radius: 12px;
  font-size: 1.125rem;
}

.search-input-group input:focus {
  outline: none;
  border-color: #25a7e2;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.location-detect {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-gray-500);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.location-detect svg {
  position: static;
  transform: none;
}

.location-detect.detecting svg {
  animation: locationPulse 900ms ease-in-out infinite alternate;
}

@keyframes locationPulse {
  from {
    opacity: 0.45;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.location-detect:hover {
  background: var(--color-gray-100);
  color: #25a7e2;
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
}

.search-filters select {
  padding: 12px 16px;
  border: 2px solid var(--color-gray-300);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--color-white);
  cursor: pointer;
}

.search-filters select:focus {
  outline: none;
  border-color: #25a7e2;
}

/* Featured Companies */
.featured-companies h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 32px;
  text-align: center;
}

/* Geolocation CTA */
.geolocation-cta {
  text-align: center;
  margin: 40px 0;
}

.geolocation-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.geolocation-status {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 24px;
}

.geolocation-status.success {
  color: #10b981;
}

.geolocation-status.warning {
  color: #fbaf3f;
}

.geolocation-status.error {
  color: #ef4444;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 3vw, 36px);
  margin-bottom: 40px;
  min-height: 200px;
}

/* Provider cards */
.homepage .provider-card {
  background: var(--sica-white, #ffffff);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 12px 32px rgba(12, 74, 110, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homepage .provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(12, 74, 110, 0.13);
}

.homepage .provider-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-gray-100);
}

.homepage .provider-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.homepage .provider-info {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.provider-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.provider-score-inline {
  flex-shrink: 0;
}

.homepage .provider-score-inline {
  margin-top: 2px;
}

.homepage .provider-score-inline .sica-score-badge {
  min-width: 72px;
  padding: 10px;
}

.homepage .provider-score-inline .score-value {
  font-size: 1.35rem;
}

.provider-header-content {
  min-width: 0;
  flex: 1;
}

.provider-name {
  margin: 4px 0 0;
  line-height: 1.2;
}

.provider-name a {
  color: var(--sica-dark, #1e3a5f);
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.provider-name a:hover {
  color: var(--sica-light-blue, #25a7e2);
}

.provider-card .score-label {
  font-weight: 600 !important;
}

.provider-location {
  color: var(--color-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.provider-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
}

.provider-facts div {
  min-width: 0;
}

.provider-facts dt {
  margin-bottom: 4px;
  color: var(--color-gray-500);
  font-size: 0.7rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.provider-facts dd {
  margin: 0;
  color: var(--color-gray-800);
  font-size: 0.85rem;
  line-height: 1.4;
}

.provider-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.provider-services li {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f5fb;
  color: #075f8d;
  font-size: 0.75rem;
  line-height: 1.2;
}

.provider-excerpt {
  margin: 0 0 20px;
  color: var(--color-gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.homepage .provider-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.homepage .provider-actions .btn-sm {
  min-width: 0;
  text-align: center;
}

.homepage .provider-actions .compare-toggle {
  grid-column: 1 / -1;
}

.compare-toggle.active {
  background: var(--sica-orange, #fbaf3f) !important;
  color: white !important;
}

.homepage-compare-tray {
  position: sticky;
  bottom: 20px;
  z-index: var(--z-index-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 36px;
  max-width: 760px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #102a3c;
  color: #f5f9fb;
  box-shadow: 0 18px 42px rgba(16, 42, 60, 0.24);
}

.homepage-compare-tray[hidden] {
  display: none;
}

.homepage-compare-tray__summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.homepage-compare-tray__summary strong {
  color: #f5f9fb;
  font-size: 1rem;
}

.homepage-compare-tray__summary span {
  color: #b8cad4;
  font-size: 0.82rem;
}

.homepage-compare-tray__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.homepage-compare-tray .btn-text {
  color: #d9e6ec;
}

.homepage-compare-tray .is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.no-results,
.error-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.no-results h3,
.error-state h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: var(--color-gray-700);
}

.no-results p,
.error-state p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

.search-footer {
  text-align: center;
}

/* ==========================================================================
   Education Section
   ========================================================================== */

.education-section {
  padding: clamp(72px, 7vw, 100px) 0;
  background: var(--color-white);
}

/* Journey Map */
.solar-journey-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 80px;
  padding: 40px 20px;
}

.journey-step {
  flex: 0 0 200px;
  text-align: center;
  padding: 32px 24px;
  background: var(--color-gray-50);
  border-radius: 16px;
  border: 2px solid var(--color-gray-200);
  transition: all 0.3s ease;
}

.journey-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #25a7e2;
}

.journey-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1a74bb 0%, #25a7e2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin: 0 auto 16px;
}

.journey-step h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 8px;
}

.journey-step p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 16px;
}

.journey-link {
  color: #25a7e2;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.journey-link:hover {
  color: #1a74bb;
}

.journey-arrow {
  font-size: 2rem;
  color: var(--color-gray-400);
  font-weight: 300;
}

/* News Ticker */
.news-ticker {
  background: var(--color-gray-900);
  color: var(--color-white);
  padding: 20px 0;
  margin-bottom: 60px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 32px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbaf3f;
  background: var(--color-gray-900);
  z-index: 2;
  border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.ticker-content {
  display: inline-block;
  padding: 0 32px 0 200px;
  font-size: 0.875rem;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}

.ticker-content a {
  color: var(--color-white);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.ticker-content a:hover {
  color: #fbaf3f;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Guides Carousel */
.guides-carousel {
  margin-bottom: 60px;
}

.guides-carousel h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 32px;
}

.guides-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--color-white);
  padding: 28px;
  border-radius: 12px;
  border: 2px solid var(--color-gray-200);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #25a7e2;
}

.guide-category {
  display: inline-block;
  padding: 4px 12px;
  background: #fbaf3f;
  color: var(--color-gray-900);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  margin-bottom: 16px;
}

.guide-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 16px;
  line-height: 1.6;
}

.guide-meta {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Expert CTA */
.expert-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  color: var(--color-white);
}

.expert-cta-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-white);
}

.expert-cta-content p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Installer Section
   ========================================================================== */

.installer-section {
  padding: clamp(72px, 7vw, 100px) 0;
  background: var(--color-gray-900);
  color: var(--color-white);
}

.installer-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbaf3f;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  margin-bottom: 20px;
}

.installer-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-white);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.business-benefits {
  margin-bottom: 40px;
}

.business-benefit {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.business-benefit svg {
  flex: 0 0 24px;
  color: #10b981;
}

.business-benefit strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-white);
}

.business-benefit p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.installer-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.business-testimonial {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #fbaf3f;
  border-radius: 8px;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  line-height: 1.6;
}

.business-testimonial .testimonial-author {
  color: rgba(255, 255, 255, 0.7);
}

.business-testimonial .testimonial-author strong {
  color: #ffffff;
}

.business-testimonial .testimonial-author span {
  color: rgba(255, 255, 255, 0.8);
}

/* Installer Visual */
.stats-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-card .stat {
  margin-bottom: 32px;
}

.stats-card .stat:last-child {
  margin-bottom: 0;
}

.stats-card .stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: #fbaf3f;
  line-height: 1;
  margin-bottom: 8px;
}

.stats-card .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-section {
  padding: clamp(72px, 7vw, 100px) 0;
  background: var(--color-gray-50);
}

.newsletter-card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 16px;
}

.newsletter-content > p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: 32px;
  line-height: 1.6;
}

.newsletter-form {
  margin-bottom: 0;
}

.newsletter-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.newsletter-input-group input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--color-gray-300);
  border-radius: 12px;
  font-size: 1rem;
}

.newsletter-input-group input:focus {
  outline: none;
  border-color: #25a7e2;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.newsletter-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}

.newsletter-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gray-600);
}

.newsletter-privacy svg {
  color: #10b981;
}

.newsletter-incentive {
  color: var(--color-gray-700);
}

/* Newsletter Visual */
.newsletter-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.newsletter-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--color-gray-50);
  border-radius: 12px;
}

.newsletter-stat .stat-icon {
  font-size: 2rem;
}

.newsletter-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.newsletter-stat .stat-label {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content,
  .installer-split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .impact-stats,
  .hero-trust-metrics {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-card.primary,
  .result-card.highlight {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subheadline {
    font-size: 1.125rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .calculator-card {
    padding: 32px 24px;
  }

  .calculator-progress {
    flex-direction: column;
    gap: 12px;
  }

  .progress-line {
    width: 2px;
    height: 24px;
    margin: 0;
  }

  .search-filters {
    grid-template-columns: 1fr;
  }

  .solar-journey-map {
    flex-direction: column;
  }

  .journey-arrow {
    transform: rotate(90deg);
  }

  .calculator-trust-badges {
    flex-direction: column;
    gap: 16px;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

  .installer-ctas {
    flex-direction: column;
  }

  /* Company cards responsive */
  .companies-grid {
    grid-template-columns: 1fr;
  }

  .provider-actions {
    flex-direction: column;
  }

  .provider-actions .btn-sm {
    width: 100%;
  }

  .provider-facts {
    grid-template-columns: 1fr 1fr;
  }

  .homepage-compare-tray {
    align-items: stretch;
    flex-direction: column;
    bottom: 10px;
  }

  .homepage-compare-tray__actions {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0 40px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-photo-credit {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .calculator-actions {
    flex-direction: column;
  }

  .calculator-actions .btn {
    width: 100%;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-meta {
    flex-direction: column;
  }

  .provider-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-detect.detecting svg {
    animation: none;
  }

  .homepage .provider-card,
  .homepage .provider-card:hover {
    transform: none;
  }
}
