/*
 * Solar landing page (templates/landing-page.php), after the Claude design.
 * The explorer itself lives in explorer.css; this file is everything around it.
 * Salient styles headings, paragraphs and buttons with heavy selectors and
 * !important; where the page differs, we only override inside .solar-page.
 */

.solar-page {
  --solar-green: #00963E;
  --solar-green-hover: #007F34;
  --solar-lime: #AFCA00;
  --solar-lime-hover: #9AB200;
  --solar-heading: #000000;
  --solar-body: #1A1A1A;
  --solar-muted: #6B6B6B;
  --solar-border: #D4D4D4;
  --solar-grey: #EEEEEE;
  --solar-font: Hind, system-ui, sans-serif;
  --solar-shadow-panel: 0 4px 30px rgba(0, 0, 0, .05);
  --solar-shadow-card-hover: 0 10px 28px rgba(0, 0, 0, .12);
  --solar-ease: cubic-bezier(.4, 0, .2, 1);
  --solar-section-y: 96px;
  --solar-section-y-tight: 64px;
  --solar-card-p: 48px;

  /* The child theme draws a large grey triangle via .container-wrap::before; keep the page above it */
  position: relative;
  z-index: 1;
  padding: 0 !important;
  background: #FFFFFF;
  color: var(--solar-body);
  font-family: var(--solar-font);
  font-size: 16px;
  line-height: 1.75;
}

html:has(.solar-page) {
  scroll-behavior: smooth;
}

/* Salient 18 (online) gives .container-wrap 40px padding on a grey background;
   the landing page runs edge to edge between header and footer */
body.page-template-visser-solar-general .container-wrap,
body.page-template-visser-solar-personal .container-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.solar-page h1,
.solar-page h2,
.solar-page h3,
.solar-page p,
.solar-page ul {
  padding: 0;
  font-family: inherit;
  text-transform: none;
}

.solar-page b {
  font-weight: 700;
  color: var(--solar-heading);
}

/* Sections, like Section in the design system */
.solar-section {
  padding: var(--solar-section-y) 0;
  background: #FFFFFF;
}

.solar-section--tight {
  padding: var(--solar-section-y-tight) 0;
}

.solar-section--muted {
  background: var(--solar-grey);
}

.solar-section--diagonal {
  background: linear-gradient(196deg, #FFFFFF 0 42%, var(--solar-grey) 42.1% 100%);
}

.solar-section--diagonal-dark {
  background: linear-gradient(196deg, #484848 0 38%, #333333 38.1% 100%);
  color: #FFFFFF;
}

.solar-container {
  max-width: 1264px;
  margin: 0 auto;
  padding: 0 24px;
}

.solar-page .solar-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--solar-green);
}

.solar-page .solar-container .solar-h2 {
  max-width: 20ch;
  margin: 16px 0 24px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--solar-heading);
}

.solar-page .solar-container p {
  max-width: 60ch;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--solar-body);
}

.solar-page .solar-container p:last-child {
  margin-bottom: 0;
}

.solar-icon {
  display: flex;
  flex: none;
  color: var(--solar-green);
}

/* Buttons: always a pill, bold, 14px. Salient has its own styles for links and buttons. */
.solar-page .solar-container .solar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font: 700 14px/1 var(--solar-font) !important;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 250ms var(--solar-ease), color 250ms var(--solar-ease);
}

.solar-page .solar-btn--primary {
  background: var(--solar-green) !important;
  color: #FFFFFF !important;
}

.solar-page .solar-btn--primary:hover {
  background: var(--solar-green-hover) !important;
}

.solar-page .solar-btn--lime {
  background: var(--solar-lime) !important;
  color: #000000 !important;
}

.solar-page .solar-btn--lime:hover {
  background: var(--solar-lime-hover) !important;
}

/* Hero */
.solar-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}

.solar-page .solar-container .solar-hero__title {
  max-width: 18ch;
  margin: 24px 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--solar-heading);
}

.solar-page .solar-container .solar-hero__lead {
  max-width: 46ch;
  margin: 0 0 32px;
  font-size: 20px;
  line-height: 1.75;
}

.solar-page .solar-usps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px 32px;
  max-width: 560px;
  margin: 40px 0 0;
  list-style: none;
}

.solar-usps li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--solar-heading);
}

.solar-usps li::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--solar-green);
  transform: rotate(45deg);
}

.solar-hero__image,
.solar-why__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.solar-hero__image {
  aspect-ratio: 16 / 10;
  object-position: right center;
}

.solar-why__image {
  aspect-ratio: 4 / 3;
}

/* As long as the image is not in assets/images yet */
.solar-image--empty {
  background: var(--solar-grey);
}

/* Text + panel or image side by side */
.solar-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}

.solar-split--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 96px;
  align-items: start;
}

.solar-card {
  padding: var(--solar-card-p);
  background: #FFFFFF;
  box-shadow: var(--solar-shadow-panel);
}

.solar-page .solar-container .solar-card__title {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--solar-heading);
}

/* InfoBlock: icon + heading + text */
.solar-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.solar-info {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
}

.solar-info > .solar-icon {
  padding-top: 4px;
}

.solar-page .solar-container .solar-info h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--solar-heading);
}

/* Why Visser */
.solar-why {
  margin-bottom: 64px;
}

.solar-quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

@media (min-width: 1100px) {
  .solar-quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Certificates */
.solar-page .solar-container .solar-certs__intro {
  max-width: 58ch;
  margin-bottom: 32px;
}

.solar-page .solar-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  list-style: none;
}

.solar-certs li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 14px;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--solar-heading);
}

.solar-certs li::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--solar-lime);
  transform: rotate(45deg);
}

/* FAQ: accordion with <details>, works without JavaScript */
.solar-page .solar-container .solar-faq__title {
  margin-bottom: 40px;
}

.solar-faq {
  max-width: 800px;
}

.solar-faq__item {
  border-bottom: 1px solid var(--solar-border);
}

.solar-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--solar-heading);
  list-style: none;
  cursor: pointer;
}

.solar-faq__item summary::-webkit-details-marker {
  display: none;
}

.solar-faq__item summary:focus-visible {
  outline: 2px solid var(--solar-green);
  outline-offset: 2px;
}

.solar-faq__plus {
  flex: none;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--solar-green);
  transition: transform 250ms var(--solar-ease);
}

/* While closing, [open] stays set until the animation ends; the plus turns back straight away */
.solar-faq__item[open]:not(.is-closing) .solar-faq__plus {
  transform: rotate(45deg);
}

/* Height is animated by landing-page.js; overflow keeps the text inside while it grows */
.solar-faq__answer {
  overflow: hidden;
}

.solar-page .solar-container .solar-faq__item p {
  max-width: 66ch;
  margin: 0 0 24px;
}

/* Dark CTA band */
.solar-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.solar-page .solar-container .solar-cta__title {
  max-width: 24ch;
  margin: 0 0 16px;
  color: #FFFFFF;
}

.solar-page .solar-container .solar-cta__text {
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
}

.solar-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.solar-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.solar-cta__phone a {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--solar-lime) !important;
  text-decoration: none;
  white-space: nowrap;
}

/* Diamond as affordance, like .vs-diamond--inverse */
.solar-diamond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 2px solid var(--solar-lime);
  transform: rotate(45deg);
}

.solar-diamond .solar-icon {
  color: #FFFFFF;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .solar-page {
    --solar-section-y: 56px;
    --solar-section-y-tight: 56px;
    --solar-card-p: 24px;
  }

  .solar-container {
    padding: 0 20px;
  }

  .solar-page .solar-container .solar-hero__title {
    font-size: 32px;
    line-height: 1.15;
  }

  .solar-page .solar-container .solar-h2 {
    font-size: 24px;
  }

  .solar-page .solar-container .solar-hero__lead {
    font-size: 17px;
    line-height: 1.7;
  }

  .solar-page .solar-usps {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .solar-split--wide {
    gap: 48px;
  }

  .solar-quad {
    grid-template-columns: minmax(0, 1fr);
  }

  .solar-certs li {
    padding: 10px 12px;
    font-size: 12px;
    white-space: normal;
  }
}
