/* Solar PPA & ESA page (extends styles.css) */
:root { --lap: 64px; }   /* how far the fact card reaches over the hero (above) and into the next section (below) */
.sl-hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 80vh, 720px); padding: calc(var(--header-h) + 40px) 0 120px; color: #fff;
  background: linear-gradient(90deg, rgba(0,24,72,.92) 0%, rgba(0,32,96,.62) 50%, rgba(0,32,96,.2) 100%), url("assets/img/solar-hero.jpg") center 62% / cover no-repeat, var(--navy); }
.sl-hero h1 { max-width: 13ch; margin-bottom: .4em; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.sl-lead { max-width: 52ch; font-size: 1.1rem; font-weight: 500; color: rgba(255,255,255,.92); margin: 0 0 2em; text-shadow: 0 1px 14px rgba(0,18,56,.6); }
.sl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.sl-actions .btn-ghost { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 0; border: 0; border-radius: 0; background: none; color: #fff; }
.sl-actions .btn-ghost::after { content: ""; width: 44px; height: 1.5px; background: currentColor; transform: scaleX(.45); transform-origin: left center; transition: transform .25s; }
.sl-actions .btn-ghost:hover, .sl-actions .btn-ghost:focus-visible { background: none; color: #fff; }
.sl-actions .btn-ghost:hover::after, .sl-actions .btn-ghost:focus-visible::after { transform: scaleX(1); }

/* The fact card straddles the hero edge. The facts box is pulled up by --lap over the hero; its lower part (below --lap) is painted
   in the colour the next section starts with, so no strip of page background can show beside the card, whatever the card's height. */
.sl-facts { position: relative; z-index: 1; margin-top: calc(var(--lap) * -1); background: linear-gradient(to bottom, transparent var(--lap), #fff var(--lap)); }
.sl-facts-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 28px; list-style: none; background: #fff; border-radius: var(--radius); box-shadow: 0 18px 48px rgba(0,24,72,.16); }
.sl-facts-in li { display: flex; align-items: baseline; gap: 18px; padding: 30px 28px 30px 0; }
.sl-facts-in li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.sl-facts-in b { font: 600 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font); color: var(--navy); letter-spacing: -.02em; }
.sl-facts-in li > span { color: var(--muted); font-size: .92rem; line-height: 1.4; max-width: 24ch; }

.sl-flow { background: var(--mist); }
.sl-sub { max-width: 60ch; color: var(--muted); margin: 0 0 48px; }
/* How it works: on wide screens solar.js builds a stepper (one continuous rail, one detail panel, below). The plain numbered list
   below is what narrow screens and no-JS visitors get: circle left, text right, one continuous vertical line. */
.sl-steps { counter-reset: st; display: grid; gap: 30px; max-width: 640px; margin: 0; padding: 0; list-style: none; }
.sl-steps li { counter-increment: st; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-content: start; }
.sl-steps li::before { content: counter(st); grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: #fff; font-weight: 600; box-shadow: 0 0 0 6px var(--mist); position: relative; z-index: 1; }
.sl-steps li > b { grid-column: 2; padding-top: 10px; font-size: 1.15rem; color: var(--navy); }
.sl-steps li > span { grid-column: 2; color: var(--muted); font-size: .92rem; }
.sl-steps li:not(:last-child)::after { content: ""; position: absolute; top: 52px; bottom: -24px; left: 21px; width: 2px; background: var(--cyan); }
@media (min-width: 1081px) { .has-stepper .sl-steps { display: none; } }

.sl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.sl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px; display: flex; flex-direction: column; }
.sl-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cyan); color: #fff; margin-bottom: 20px; }
.sl-ico svg { width: 26px; height: 26px; }
.sl-card h3 { font-size: 1.3rem; }
.sl-card > p { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }
.sl-ticks { display: grid; gap: 10px; margin: auto 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.sl-ticks li { position: relative; padding-left: 30px; font-size: .92rem; font-weight: 500; }
.sl-ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; }

.sl-why { background: linear-gradient(to bottom, #fff 0, rgba(255,255,255,0) 200px) no-repeat, linear-gradient(to right, #fff 0%, #fff 30%, rgba(255,255,255,0) 100%) no-repeat, linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)), url("assets/img/solar-why-bg.jpg?v=1") center / cover no-repeat, #fff; }
.sl-offer { background: var(--navy); }
.sl-offer .sl-card { color: var(--navy); }
.sl-offer h2 { color: #fff; }
.sl-offer .eyebrow { color: #5fd0f5; }
.sl-refs { background: var(--mist); padding: clamp(48px, 6vw, 76px) 0; }
.sl-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 44px 0 0; padding: 0; list-style: none; }
.sl-why-grid li { padding: 24px 0 0; border-top: 1px solid var(--line); }
.sl-why-grid h3 { color: var(--navy); font-size: 1.5rem; margin-bottom: 6px; }
.sl-why-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.sl-refs-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.sl-refs-list li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 1px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sl-refs-list b { color: var(--navy); font-weight: 600; font-size: .95rem; }
.sl-refs-tag { color: var(--cyan); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--cyan); border-radius: 999px; padding: 2px 10px; line-height: 1.4; white-space: nowrap; }
.sl-refs-meta { flex-basis: 100%; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.sl-refs .sl-refs-lead { margin-bottom: 18px; }

.sl-end { background: #fff; }
.sl-end-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.sl-end h2 { max-width: 20ch; }
.sl-end p { color: var(--muted); margin: 0; max-width: 52ch; }
.sl-end-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sl-mail { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }


@media (max-width: 1080px) {
  .sl-cards { grid-template-columns: 1fr; }
  .sl-why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .sl-refs-list { grid-template-columns: 1fr; }
  .sl-end-in { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --lap: 48px; }
  .sl-hero { padding-bottom: 96px; background: linear-gradient(180deg, rgba(0,24,72,.88) 0%, rgba(0,32,96,.7) 100%), url("assets/img/solar-hero.jpg") center / cover no-repeat, var(--navy); }
  .sl-facts-in { grid-template-columns: 1fr; padding: 0 20px; }
  .sl-facts-in li, .sl-facts-in li + li { padding: 20px 0; border-left: 0; }
  .sl-facts-in li + li { border-top: 1px solid var(--line); }
  .sl-why-grid { grid-template-columns: 1fr; }
}
}

/* Own header: back to Promexa, logo + business-line tag, in-page menu, Contact us */
.solar-page .header-inner { gap: 18px; }
.solar-page .brand { margin-right: 0; }
.sl-back { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; color: #fff; text-decoration: none; font: 600 .74rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); transition: background-color var(--hover), color var(--hover); white-space: nowrap; }
.sl-back:hover, .sl-back:focus-visible { background: #fff; color: var(--navy); }
.sl-back > span:first-child { font-size: 1rem; line-height: 1; transition: transform var(--hover); }
.sl-back:hover > span:first-child { transform: translateX(-3px); }
.sl-tag { text-decoration: none; transition: color var(--hover); margin-right: 6px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.3); font: 600 .8rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #5fd0f5; white-space: nowrap; }
.sl-tag:hover, .sl-tag:focus-visible { color: #fff; }
@media (max-width: 700px) {
  .sl-back { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .sl-back-t, .sl-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sl-back > span:first-child { transition: none; } }


/* How it works stepper (built by solar.js; wide screens only) */
.sl-stepper { display: none; }
@media (min-width: 1081px) {
  .sl-stepper { display: block; --i: 0; --n: 7; }
  .sl-st-track { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
  .sl-st-line { position: absolute; left: calc(100% / (2 * var(--n))); right: calc(100% / (2 * var(--n))); top: 21px; height: 2px; background: rgba(0,168,225,.25); }
  .sl-st-line i { display: block; height: 100%; background: var(--cyan); transition: width .5s cubic-bezier(.22, .8, .3, 1); }
  .sl-st-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 6px; border: 0; background: none; font: inherit; cursor: pointer; text-align: center; }
  .sl-st-node em { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 1rem/1 var(--font); font-style: normal; color: var(--cyan); background: #fff; box-shadow: 0 0 0 6px var(--mist), inset 0 0 0 2px var(--cyan); transition: background-color .3s, color .3s, transform .3s; }
  .sl-st-node.done em { background: var(--cyan); color: #fff; }
  .sl-st-node.act em { background: var(--navy); color: #fff; transform: scale(1.14); box-shadow: 0 0 0 6px var(--mist), 0 0 0 9px rgba(0,168,225,.35); }
  .sl-st-node b { font-size: .95rem; line-height: 1.3; color: var(--muted); font-weight: 500; transition: color .3s; }
  .sl-st-node.act b, .sl-st-node:hover b { color: var(--navy); }
  .sl-st-node.act b { font-weight: 600; }
  .sl-st-node:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 12px; }
  .sl-st-panel { position: relative; margin-top: 36px; padding: 34px 44px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0,24,72,.08); }
  .sl-st-panel::before { content: ""; position: absolute; top: -9px; left: calc((var(--i) + .5) / var(--n) * 100%); width: 16px; height: 16px; margin-left: -8px; background: #fff; border: solid var(--line); border-width: 1px 0 0 1px; transform: rotate(45deg); transition: left .5s cubic-bezier(.22, .8, .3, 1); }
  .sl-st-count { margin: 0 0 6px; color: var(--cyan); font-weight: 600; letter-spacing: .14em; font-size: .8rem; }
  .sl-st-panel h3 { margin: 0 0 10px; font-size: 1.6rem; color: var(--navy); }
  .sl-st-panel > p:not(.sl-st-count) { margin: 0; max-width: 64ch; font-size: 1.05rem; color: var(--muted); }
  .sl-st-nav { position: absolute; right: 30px; bottom: 26px; display: flex; gap: 8px; }
  .sl-st-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--navy); background: none; color: var(--navy); font-size: 1.1rem; cursor: pointer; transition: background-color var(--hover), color var(--hover); }
  .sl-st-nav button:hover:not([disabled]), .sl-st-nav button:focus-visible { background: var(--navy); color: #fff; }
  .sl-st-nav button[disabled] { opacity: .3; cursor: default; }
}
@media (prefers-reduced-motion: reduce) { .sl-st-line i, .sl-st-node em, .sl-st-panel::before { transition: none; } }
