/* helisolarco.com - single stylesheet. Mobile-first, RTL (Arabic), light theme only. */

:root {
  color-scheme: only light;
  --ink: #0d1020;
  --text: #2a3042;
  --muted: #4d556b;
  --paper: #ffffff;
  --soft: #f3f6fc;
  --tint: #e6edfd;
  --line: #d9e1f3;
  --blue: #3b74f5;
  --blue-hover: #5b8cf8;
  --blue-text: #1f55d6;
  --blue-head: #2a62e8;
  --navy: #0b1020;
  --navy-text: #c9d2e8;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(13, 16, 32, .05), 0 12px 32px rgba(31, 85, 214, .08);
  --section-pad: clamp(44px, 7vw, 92px);
  --gutter: 16px;
  --font: "Segoe UI", "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background-color: #ffffff;
  color: #0d1020;
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "masthead"
    "main"
    "footer";
  background-color: #ffffff;
  color: #2a3042;
  font-size: 1.0625rem;
  line-height: 1.9;
  overflow-wrap: break-word;
}

img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }

a {
  color: #1f55d6;
  text-underline-offset: .2em;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a:hover { color: #0d1020; }

:focus-visible {
  outline: 3px solid #0d1020;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background-color: #0d1020;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

/* ---------- Masthead (sticky bar + reading rail) ---------- */

.masthead {
  grid-area: masthead;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  color: #0d1020;
  border-bottom: 1px solid #0d1020;
}

.masthead__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  min-height: 64px;
}

.ad-label {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: #e6edfd;
  color: #1a3fa3;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #0d1020;
  text-decoration: none;
  font-weight: 800;
  font-size: .9375rem;
  direction: ltr;
  line-height: 1;
}
.brand:hover { color: #1f55d6; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background-color: #e6edfd;
  color: #2a62e8;
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__name { letter-spacing: 0; }

.menu { justify-self: end; position: relative; }

.menu__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: transparent;
  color: #0d1020;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s ease;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle:hover { background-color: #e6edfd; }
.menu__toggle svg { width: 24px; height: 24px; }
.menu__icon-close { display: none; }
.menu[open] .menu__icon-open { display: none; }
.menu[open] .menu__icon-close { display: block; }

.menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  width: min(86vw, 340px);
  padding: 8px;
  background-color: #ffffff;
  color: #0d1020;
  border: 1px solid #d9e1f3;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(13, 16, 32, .16);
}
.menu__list { list-style: none; display: grid; gap: 2px; }
.menu__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 14px;
  border-radius: 12px;
  color: #0d1020;
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.5;
}
.menu__link:hover { background-color: #e6edfd; color: #1a3fa3; }

.masthead__back {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: .9375rem;
  font-weight: 600;
  color: #1f55d6;
  text-decoration: none;
}
.masthead__back:hover { color: #0d1020; text-decoration: underline; }

.progress {
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 3px;
  background-color: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background-color: #3b74f5;
  transform: scaleX(var(--p, 0));
  transform-origin: right center;
}

main { grid-area: main; min-width: 0; background-color: #ffffff; color: #2a3042; }

/* ---------- Hero (centered grotesk headline, pills, media) ---------- */

.hero {
  background-color: #ffffff;
  background-image: radial-gradient(ellipse 70% 60% at 50% 0%, #e6edfd 0%, rgba(230, 237, 253, 0) 70%);
  color: #0d1020;
  padding-block: clamp(32px, 6vw, 72px) clamp(36px, 6vw, 72px);
}

.hero__grid {
  display: grid;
  justify-items: center;
  text-align: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "dek"
    "byline"
    "badges"
    "media";
  row-gap: 0;
}

.hero__title {
  grid-area: title;
  max-width: 21em;
  font-size: clamp(1.75rem, 1.1rem + 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  color: #0d1020;
  text-wrap: balance;
}
.accent { color: #2a62e8; }

.hero__dek {
  grid-area: dek;
  max-width: 40em;
  margin-top: 18px;
  font-size: clamp(1rem, .94rem + .5vw, 1.25rem);
  line-height: 1.85;
  color: #3a4258;
  text-wrap: pretty;
}

.hero__byline {
  grid-area: byline;
  margin-top: 10px;
  font-size: .875rem;
  color: #4d556b;
}

.badges {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 16px;
  border: 1px solid #d3dcf5;
  border-radius: 999px;
  background-color: #eef3ff;
  color: #0d1020;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
}
.badge svg { width: 18px; height: 18px; flex: none; color: #2a62e8; }

.hero__media {
  grid-area: media;
  width: 100%;
  max-width: 960px;
  margin-top: clamp(28px, 5vw, 48px);
}

/* ---------- Media frames ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #dbe4f7;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
}
.media-frame--wide { aspect-ratio: 40 / 21; }
.media-frame--photo { aspect-ratio: 4 / 3; }
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure { min-width: 0; }
.caption {
  margin-top: 12px;
  font-size: .875rem;
  line-height: 1.7;
  color: #4d556b;
}

/* ---------- Lead paragraph ---------- */

.lead {
  background-color: #ffffff;
  color: #2a3042;
  padding-block: clamp(8px, 2vw, 24px) var(--section-pad);
}
.lead__text {
  font-size: clamp(1.125rem, 1.04rem + .45vw, 1.375rem);
  line-height: 2;
  color: #1b2135;
}

/* ---------- Q&A sections ---------- */

.qa {
  background-color: #ffffff;
  color: #2a3042;
  padding-block: var(--section-pad);
}
.qa--soft { background-color: #f3f6fc; }
.qa--tint {
  background-color: #e9effd;
  background-image: linear-gradient(180deg, #eef3ff 0%, #e3ebfd 100%);
}

.qa__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "body"
    "media";
  row-gap: 24px;
}
.qa__grid--cards {
  grid-template-areas:
    "head"
    "body"
    "media"
    "cards";
}
.qa__head { grid-area: head; }
.qa__body { grid-area: body; min-width: 0; }
.qa__media { grid-area: media; min-width: 0; }
.qa__cards { grid-area: cards; min-width: 0; }

.qa__head--center { text-align: center; }
.qa__head--center .qa__title { margin-inline: auto; }

.qa__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 0 14px;
  border-radius: 999px;
  background-color: #e6edfd;
  color: #1a3fa3;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1;
}
.qa--soft .qa__kicker { background-color: #dfe8fc; }

.qa__title {
  max-width: 22em;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.4;
  color: #0d1020;
  text-wrap: balance;
}

.qa__body p + p,
.qa__body p + .keyline,
.qa__body .keyline + p { margin-top: 1.1em; }

.prose { max-width: 720px; }
.prose--center { margin-inline: auto; }

.keyline {
  margin-block: 1.6em;
  padding-inline-start: 20px;
  border-inline-start: 4px solid #3b74f5;
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  font-weight: 800;
  line-height: 1.7;
  color: #0d1020;
  text-wrap: balance;
}
.keyline__mark { color: #2a62e8; }

.qa__body em { font-style: normal; font-weight: 700; color: #0d1020; }

/* ---------- Task cards (2 x 2 grid, centered, soft action strip) ---------- */

.task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.task-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  text-align: center;
  padding: 28px 22px 22px;
  background-color: #ffffff;
  color: #2a3042;
  border: 1px solid #d9e1f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(13, 16, 32, .06), 0 18px 40px rgba(31, 85, 214, .14);
}
.task-card__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background-color: #e6edfd;
  color: #2a62e8;
}
.task-card__icon svg { width: 38px; height: 38px; }
.task-card__title {
  margin-top: 18px;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.5;
  color: #0d1020;
}
.task-card__text {
  margin-top: 6px;
  font-size: .9688rem;
  line-height: 1.8;
  color: #4d556b;
}
.task-card__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background-color: #dfe8fc;
  color: #1a3fa3;
  font-size: .9688rem;
  font-weight: 800;
}

/* ---------- Needs checklist ---------- */

.needs {
  display: grid;
  margin: 1.6em 0 0;
  padding: 0;
  list-style: none;
}
.needs__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #d9e1f3;
  color: #1b2135;
  font-weight: 600;
  line-height: 1.8;
}
.needs__item:last-child { border-bottom: 1px solid #d9e1f3; }
.needs__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: #2a62e8;
  color: #ffffff;
}
.needs__tick svg { width: 16px; height: 16px; }

.qa__aside {
  margin-top: 1.4em;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 0;
  margin: 1.8em 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 28px;
  counter-increment: step;
}
.steps__item:last-child { padding-bottom: 0; }
.steps__item::before {
  content: counter(step, arabic-indic);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #2a62e8;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}
.steps__item::after {
  content: "";
  position: absolute;
  inset-inline-start: 23px;
  top: 56px;
  bottom: 8px;
  width: 2px;
  background-color: #c4d2f6;
}
.steps__item:last-child::after { display: none; }
.steps__title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.6;
  color: #0d1020;
  padding-top: 8px;
}
.steps__text {
  grid-column: 2;
  margin-top: 2px;
  font-size: 1rem;
  line-height: 1.85;
  color: #3a4258;
}

/* ---------- Plain list (honest picture) ---------- */

.plain-list {
  display: grid;
  gap: 14px;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}
.plain-list__item {
  position: relative;
  padding-inline-start: 28px;
  line-height: 1.85;
}
.plain-list__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: .8em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3b74f5;
}

/* ---------- CTA ---------- */

.cta-block {
  display: grid;
  justify-items: center;
  margin-top: clamp(30px, 5vw, 44px);
  text-align: center;
}
.cta-lead {
  max-width: 34em;
  margin-bottom: 18px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.8;
  color: #0d1020;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  min-height: 60px;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  background-color: #3b74f5;
  color: #060814;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(59, 116, 245, .28);
}
.cta-button:hover {
  background-color: #5b8cf8;
  color: #060814;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(59, 116, 245, .38);
}
.cta-button:active { transform: translateY(0); }
.cta-button__arrow { font-size: 1.375rem; line-height: 1; }

.link-note {
  max-width: 34em;
  margin-top: 12px;
  font-size: .8125rem;
  line-height: 1.7;
  color: #4d556b;
}

/* ---------- Finale (deep navy band) ---------- */

.finale {
  background-color: #0b1020;
  background-image: radial-gradient(ellipse 60% 80% at 50% 0%, #17224a 0%, rgba(11, 16, 32, 0) 70%);
  color: #c9d2e8;
  padding-block: clamp(52px, 8vw, 104px);
  text-align: center;
}
.finale__title {
  max-width: 20em;
  margin-inline: auto;
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.625rem);
  font-weight: 800;
  line-height: 1.4;
  color: #ffffff;
  text-wrap: balance;
}
.finale__title .accent { color: #7fa6ff; }
.finale__text {
  max-width: 36em;
  margin: 18px auto 0;
  font-size: 1.0625rem;
  line-height: 1.95;
  color: #c9d2e8;
}
.finale .cta-block { margin-top: 32px; }
.finale .cta-button { box-shadow: 0 12px 32px rgba(59, 116, 245, .35); }
.finale .link-note { color: #b4bfd8; }
.finale :focus-visible { outline-color: #ffffff; }

/* ---------- Footer (publisher imprint) ---------- */

.footer {
  grid-area: footer;
  background-color: #ffffff;
  color: #4d556b;
  padding-block: 40px 48px;
  font-size: .8125rem;
  line-height: 1.85;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "owner"
    "links"
    "note";
  gap: 26px;
}
.owner { grid-area: owner; color: #4d556b; font-style: normal; }
.owner p { margin: 0; }
.owner__name { font-weight: 800; color: #0d1020; font-size: .9375rem; }
.owner__ltr { direction: ltr; unicode-bidi: isolate; }

.page-links { grid-area: links; background-color: transparent; }
.page-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3a4258;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.page-links a:hover { color: #1f55d6; text-decoration: underline; }
.page-links a[aria-current="page"] { color: #1f55d6; }

.closing-note {
  grid-area: note;
  max-width: 62em;
  margin: 0;
  font-size: .8125rem;
  line-height: 1.9;
  color: #4d556b;
}

/* ---------- Legal / about pages ---------- */

.legal__head {
  background-color: #f3f6fc;
  color: #0d1020;
  padding-block: clamp(36px, 6vw, 72px) clamp(28px, 5vw, 52px);
}
.legal__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.4;
  color: #0d1020;
  text-wrap: balance;
}
.revision {
  margin-top: 12px;
  font-size: .9375rem;
  color: #4d556b;
}
.legal__body {
  background-color: #ffffff;
  color: #2a3042;
  padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px);
}
.legal__body h2 {
  margin-top: 2em;
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem);
  font-weight: 800;
  line-height: 1.5;
  color: #0d1020;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { margin-top: .8em; }
.legal__body ul { margin: .8em 0 0; padding-inline-start: 1.4em; }
.legal__body li { margin-top: .5em; }
.legal__body .ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- 480px ---------- */

@media (min-width: 480px) {
  :root { --gutter: 20px; }
  .task-card { padding-inline: 28px; }
  .footer__grid { gap: 30px; }
}

/* ---------- 768px ---------- */

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { font-size: 1.125rem; }
  .masthead__inner { min-height: 72px; grid-template-columns: 1fr auto 1fr; column-gap: 16px; }
  .ad-label { font-size: .8125rem; }
  .brand { font-size: 1.0625rem; }
  .brand__mark { width: 34px; height: 34px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .task-card { padding: 34px 32px 28px; }
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .needs__item:nth-child(2) { border-bottom: 1px solid #d9e1f3; }
  .steps__item { grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; }
  .steps__item::before { width: 56px; height: 56px; font-size: 1.5rem; }
  .steps__item::after { inset-inline-start: 27px; top: 64px; }
  .steps__title { padding-top: 12px; font-size: 1.25rem; }
  .footer__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "owner links"
      "note note";
    column-gap: 56px;
    row-gap: 32px;
  }
  .page-links ul { gap: 0 28px; }
}

/* ---------- 1024px ---------- */

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .qa__grid--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas:
      "head media"
      "body media";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 88px);
    row-gap: 24px;
    align-items: start;
  }
  .qa__grid--split-reverse {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas:
      "media head"
      "media body";
  }
  .qa__grid--cards {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas:
      "head media"
      "body media"
      "cards cards";
    grid-template-rows: auto auto auto;
    column-gap: clamp(48px, 6vw, 88px);
    row-gap: 24px;
  }
  .qa__grid--cards .qa__cards { margin-top: 24px; }
  .qa__media { position: sticky; top: 104px; align-self: start; }
  .qa__grid--cards .qa__media { position: static; }
  .needs { grid-template-columns: minmax(0, 1fr); }
  .needs__item:nth-child(2) { border-bottom: 0; }
  .needs__item:last-child { border-bottom: 1px solid #d9e1f3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
