/* Delta Solar inner pages */

.solar-page-hero {
  padding: 52px 80px 44px;
  text-align: center;
  border-bottom: 1px solid var(--solar-border, rgba(255, 255, 255, 0.12));
  background: radial-gradient(circle at 50% 0%, rgba(246, 163, 41, 0.12), transparent 55%);
}

.solar-page-hero .eyebrow {
  color: var(--solar-orange, #f6a329);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}

.solar-page-hero h1 {
  margin: 10px 0 14px;
  font-size: 38px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.solar-page-hero h1 span {
  color: var(--solar-orange, #f6a329);
}

.solar-page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--solar-muted, #b8b8b8);
  line-height: 1.65;
  font-size: 16px;
}

.solar-page-body {
  padding: 48px 80px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.solar-content-block {
  margin-bottom: 48px;
}

.solar-content-block h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #fff;
}

.solar-content-block h2:after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--solar-orange, #f6a329);
  margin-top: 12px;
}

.solar-content-block p {
  color: #d8d8d8;
  line-height: 1.75;
  font-size: 15px;
  margin: 0 0 16px;
}

.solar-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 0;
}

.solar-highlight-card {
  padding: 22px 18px;
  border: 1px solid var(--solar-border, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  background: var(--solar-card-bg, linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)));
  text-align: center;
}

.solar-highlight-card strong {
  display: block;
  font-size: 28px;
  color: var(--solar-orange, #f6a329);
  font-weight: 900;
  margin-bottom: 6px;
}

.solar-highlight-card span {
  font-size: 13px;
  color: var(--solar-muted, #b8b8b8);
  line-height: 1.45;
}

.solar-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.solar-vision-card {
  padding: 28px 24px;
  border: 1px solid var(--solar-border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  background: rgba(246, 163, 41, 0.06);
}

.solar-vision-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--solar-orange, #f6a329);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.solar-vision-card p {
  margin: 0;
  color: #ddd;
  line-height: 1.7;
  font-size: 15px;
}

.solar-item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solar-item-card {
  padding: 26px 22px;
  border: 1px solid var(--solar-border, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  background: var(--solar-card-bg, linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)));
  transition: border-color 0.2s, transform 0.2s;
}

.solar-item-card:hover {
  border-color: rgba(246, 163, 41, 0.45);
  transform: translateY(-4px);
}

.solar-item-card .solar-icon {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--solar-orange, #f6a329);
  line-height: 1;
}

.solar-item-card .solar-icon i {
  font-size: 28px;
  line-height: 1;
}

.solar-item-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
}

.solar-item-card p {
  margin: 0;
  font-size: 14px;
  color: var(--solar-muted, #b8b8b8);
  line-height: 1.6;
}

.solar-product-card .solar-product-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  margin-bottom: 16px;
  background: repeating-linear-gradient(45deg, #141414 0 20px, #1a1a1a 20px 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 163, 41, 0.35);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  overflow: hidden;
}

.solar-product-card .solar-product-img:has(img) {
  background: #141414;
}

.solar-product-card .solar-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.solar-product-card.is-clickable {
  cursor: pointer;
  position: relative;
}

.solar-product-card.is-clickable:focus-visible {
  outline: 2px solid var(--solar-orange, #f6a329);
  outline-offset: 3px;
}

.solar-product-card-hint {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--solar-orange, #f6a329);
}

.solar-product-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.solar-product-dialog[hidden] {
  display: none;
}

body.solar-dialog-open {
  overflow: hidden;
}

.solar-product-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.solar-product-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 32px 28px 28px;
  border-radius: 12px;
  border: 1px solid var(--solar-border, rgba(255, 255, 255, 0.12));
  background: linear-gradient(160deg, #1a1a1a 0%, #101010 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.solar-product-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.solar-product-dialog-close:hover {
  border-color: rgba(246, 163, 41, 0.5);
  background: rgba(246, 163, 41, 0.12);
}

.solar-product-dialog-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.solar-product-dialog-panel h2 span {
  color: var(--solar-orange, #f6a329);
}

.solar-product-dialog-intro {
  margin: 0 0 24px;
  color: var(--solar-muted, #b8b8b8);
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}

.solar-product-dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.solar-product-dialog-grid.is-2-col {
  grid-template-columns: repeat(2, 1fr);
}

.solar-product-dialog-item {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--solar-border, rgba(255, 255, 255, 0.12));
  background: var(--solar-card-bg, linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)));
}

.solar-product-dialog-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.solar-product-dialog-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.solar-product-dialog-item h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.35;
}

.solar-product-dialog-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--solar-muted, #b8b8b8);
}

/* Projects horizontal scroll showcase */
.solar-projects-section {
  margin-bottom: 24px;
}

.solar-projects-section > p {
  color: var(--solar-muted, #b8b8b8);
  margin: 0 0 24px;
  font-size: 14px;
}

.solar-projects-scroll-wrap {
  margin-left: -80px;
  margin-right: -80px;
  padding: 0 80px;
}

.solar-projects-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 80px;
  padding: 8px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 163, 41, 0.5) rgba(255, 255, 255, 0.06);
}

.solar-projects-scroll::-webkit-scrollbar {
  height: 8px;
}

.solar-projects-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.solar-projects-scroll::-webkit-scrollbar-thumb {
  background: rgba(246, 163, 41, 0.45);
  border-radius: 8px;
}

.solar-project-showcase {
  flex: 0 0 340px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--solar-border, rgba(255, 255, 255, 0.12));
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, transform 0.2s;
}

.solar-project-showcase:hover {
  border-color: rgba(246, 163, 41, 0.4);
  transform: translateY(-4px);
}

.solar-project-images {
  position: relative;
  height: 210px;
  background: #1a1a1a;
  overflow: hidden;
}

.solar-project-images-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.solar-project-showcase.is-clickable {
  cursor: pointer;
}

.solar-project-showcase.is-clickable:focus-visible {
  outline: 2px solid var(--solar-orange, #f6a329);
  outline-offset: 3px;
}

.solar-project-view-hint {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--solar-orange, #f6a329);
}

.solar-project-gallery-dialog .solar-product-dialog-panel {
  width: min(920px, 100%);
}

.solar-project-dialog-gallery {
  display: flex;
  flex-direction: row;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 163, 41, 0.5) rgba(255, 255, 255, 0.06);
}

.solar-project-dialog-gallery::-webkit-scrollbar {
  height: 8px;
}

.solar-project-dialog-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.solar-project-dialog-gallery::-webkit-scrollbar-thumb {
  background: rgba(246, 163, 41, 0.45);
  border-radius: 8px;
}

.solar-project-dialog-gallery img {
  flex: 0 0 auto;
  width: min(420px, 78vw);
  max-height: 320px;
  height: auto;
  object-fit: contain;
  display: block;
  scroll-snap-align: start;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
}

.solar-project-img {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #1a1a1a 0 18px, #222 18px 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solar-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solar-project-img span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(246, 163, 41, 0.35);
  font-weight: 700;
  pointer-events: none;
}

.solar-project-img:has(img) span {
  display: none;
}

.solar-project-showcase-body {
  padding: 20px 18px 22px;
}

.solar-project-showcase-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.solar-project-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--solar-muted, #b8b8b8);
}

.solar-project-pin {
  color: var(--solar-orange, #f6a329);
  font-size: 14px;
  line-height: 1;
}

.solar-project-stats {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.solar-project-stat {
  flex: 1;
  text-align: center;
}

.solar-project-stat:first-child {
  text-align: left;
}

.solar-project-stat:last-child {
  text-align: right;
}

.solar-project-stat strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--solar-orange, #f6a329);
  margin-bottom: 4px;
  line-height: 1.2;
}

.solar-project-stat span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--solar-muted, #999);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .solar-projects-scroll-wrap {
    margin-left: -34px;
    margin-right: -34px;
    padding: 0 34px;
  }

  .solar-projects-scroll {
    scroll-padding-left: 34px;
  }
}

@media (max-width: 480px) {
  .solar-projects-scroll-wrap {
    margin-left: -22px;
    margin-right: -22px;
    padding: 0 22px;
  }

  .solar-projects-scroll {
    scroll-padding-left: 22px;
  }

  .solar-project-showcase {
    flex: 0 0 300px;
  }
}

.solar-page-cta {
  text-align: center;
  padding: 40px 32px;
  margin-top: 16px;
  border: 1px solid rgba(246, 163, 41, 0.3);
  border-radius: 12px;
  background: rgba(246, 163, 41, 0.08);
}

.solar-page-cta h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.solar-page-cta p {
  margin: 0 0 22px;
  color: var(--solar-muted, #b8b8b8);
}

.solar-page-cta .solar-btn.primary {
  display: inline-flex;
}

.solar-cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.solar-cert-badge {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(246, 163, 41, 0.35);
  background: rgba(246, 163, 41, 0.1);
  color: var(--solar-orange, #f6a329);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 1180px) {
  .solar-page-hero,
  .solar-page-body {
    padding-left: 34px;
    padding-right: 34px;
  }

  .solar-item-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solar-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .solar-page-hero h1 {
    font-size: 28px;
  }

  .solar-split-grid,
  .solar-item-grid,
  .solar-highlight-grid {
    grid-template-columns: 1fr;
  }

  .solar-product-dialog-grid {
    grid-template-columns: 1fr;
  }

  .solar-product-dialog-panel {
    padding: 28px 20px 20px;
  }
}

@media (max-width: 480px) {
  .solar-page-hero,
  .solar-page-body {
    padding-left: 22px;
    padding-right: 22px;
  }
}
