/* ==========================================================================
   helisolarco.com - publication stylesheet
   Mobile-first, RTL, light theme only. BEM naming, custom-property palette.
   Art direction: clean white editorial column, navy headlines, royal-blue links.
   ========================================================================== */

:root {
  color-scheme: only light;

  --ink: #0d0b2e;
  --text: #262840;
  --muted: #565a70;
  --blue: #1240b0;
  --blue-deep: #0b2c80;
  --blue-soft: #e6edfc;
  --tint: #f3f6fd;
  --line: #dde3f0;
  --white: #ffffff;

  --font-head: "Cairo", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-body: "Noto Sans Arabic", "Cairo", Tahoma, Arial, sans-serif;

  --gutter: 20px;
  --col: 852px;
  --col-wide: 1080px;
  --radius: 6px;
  --shadow-head: 0 6px 18px rgba(13, 11, 46, 0.08);
  --section-gap: 48px;
}

/* ---------- Reset / base ---------- */

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

html {
  background-color: #ffffff;
  color: #262840;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #262840;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.95;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

a:hover {
  color: var(--blue-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--ink);
}

p {
  margin: 0 0 1.35em;
}

.nowrap {
  white-space: nowrap;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background-color: var(--ink);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

/* ---------- Reading progress ---------- */

.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  height: 3px;
  background-color: transparent;
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--blue);
  transform: scaleX(0);
  transform-origin: right center;
}

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  z-index: 20;
  background-color: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-head);
}

.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  max-width: var(--col-wide);
  min-height: 64px;
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.masthead__brand {
  grid-column: 2;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

a.masthead__brand:hover {
  color: var(--blue);
}

.masthead__label {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background-color: #ffffff;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---------- Page frame ---------- */

.page {
  display: block;
  counter-reset: part;
  background-color: #ffffff;
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: calc(var(--col) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  max-width: calc(var(--col-wide) + var(--gutter) * 2);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 24px 0;
  background-color: #ffffff;
  color: var(--text);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.hero__kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--blue);
}

.hero__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.hero__dek {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.8;
  color: #3a3d57;
}

.hero__media {
  margin: 24px 0 0;
}

.hero__frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--tint);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}

/* ---------- Byline + badge row ---------- */

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 18px 0;
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.byline__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.byline__avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--blue-soft);
  color: var(--blue);
}

.byline__text {
  margin: 0;
  color: var(--text);
}

.byline__text strong {
  color: var(--ink);
  font-weight: 700;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badges__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.badges__item--check {
  color: var(--ink);
}

.badges__text {
  padding-bottom: 1px;
  border-bottom: 1px dotted var(--muted);
}

.badges__icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--blue);
}

/* ---------- Story ---------- */

.story {
  padding-block: 32px 24px;
  background-color: #ffffff;
  color: var(--text);
}

.story__lead {
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.9;
  color: var(--ink);
}

.story p strong,
.section p strong {
  color: var(--ink);
  font-weight: 700;
}

.section {
  counter-increment: part;
  padding-block: var(--section-gap) 0;
  background-color: #ffffff;
  color: var(--text);
}

.section--tint {
  margin-top: var(--section-gap);
  padding-block: var(--section-gap);
  background-color: var(--tint);
}

.section--last {
  padding-bottom: 24px;
}

.section__title {
  display: flex;
  gap: 0.45em;
  margin-bottom: 20px;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  font-weight: 800;
  line-height: 1.5;
  text-wrap: balance;
}

.section__title::before {
  content: counter(part) ".";
  flex: none;
  color: var(--blue);
}

.section__grid {
  display: grid;
  gap: 8px;
}

.section__text {
  min-width: 0;
}

.section__media {
  min-width: 0;
}

.story__section-end {
  margin-bottom: 0;
}

/* ---------- Lists ---------- */

.steps {
  list-style: none;
  margin: 24px 0 8px;
  counter-reset: step;
}

.steps__item {
  position: relative;
  counter-increment: step;
  margin: 0 0 14px;
  padding-inline-start: 52px;
  min-height: 40px;
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--blue);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.steps__item strong {
  color: var(--ink);
}

.checks {
  list-style: none;
  margin: 16px 0 24px;
}

.checks__item {
  position: relative;
  margin: 0 0 12px;
  padding-inline-start: 34px;
}

.checks__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.78em;
  width: 10px;
  height: 10px;
  background-color: var(--blue);
  transform: rotate(45deg);
}

/* ---------- Figures (stills + loop) ---------- */

.figure {
  margin: 32px 0;
}

.figure__frame {
  overflow: hidden;
  background-color: var(--tint);
}

.figure__frame--wide {
  aspect-ratio: 16 / 9;
}

.figure__frame--video {
  aspect-ratio: 1200 / 630;
}

.figure__frame--tall {
  aspect-ratio: 4 / 3;
}

.figure__img,
.figure__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__img--top {
  object-position: 50% 28%;
}

.figure__img--face {
  object-position: 40% 40%;
}

.figure__caption {
  padding-top: 10px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Call to action (primary-style link block) ---------- */

.cta {
  margin: 36px 0 0;
  padding-top: 4px;
}

.cta__lead {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
}

.cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background-color: var(--blue);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--blue-deep);
}

.cta__btn:hover {
  background-color: #0e3597;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--blue-deep), 0 10px 22px rgba(18, 64, 176, 0.22);
}

.cta__btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--blue-deep);
}

.cta__icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.cta-hint {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Footer / imprint ---------- */

.bottom {
  margin-top: 56px;
  padding-block: 8px 48px;
  padding-inline: max(var(--gutter), calc((100% - var(--col)) / 2));
  background-color: #ffffff;
  color: #565a70;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.contact_info {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  background-color: #ffffff;
  color: #565a70;
}

.contact_info__group {
  margin: 0;
  background-color: #ffffff;
  color: #565a70;
}

.contact_info__group:first-child {
  color: #3a3d57;
  font-weight: 600;
}

.contact_info__addr {
  direction: ltr;
  unicode-bidi: isolate;
}

.legal_links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 20px;
  background-color: #ffffff;
}

.legal_links__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #1240b0;
  font-weight: 500;
  text-decoration: none;
}

.legal_links__link:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

.legal_links__link[aria-current="page"] {
  color: #0d0b2e;
  font-weight: 700;
}

.end_line {
  max-width: 78ch;
  margin: 0;
  background-color: #ffffff;
  color: #565a70;
  font-size: 0.8125rem;
  line-height: 1.9;
}

/* ---------- Document pages (about + legal) ---------- */

.doc {
  padding-block: 28px 8px;
  background-color: #ffffff;
  color: var(--text);
}

.doc__crumb {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.doc__crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.doc__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}

.policy-dates {
  display: block;
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.doc__intro {
  margin-top: 24px;
  font-size: clamp(1.125rem, 1.07rem + 0.3vw, 1.25rem);
  color: var(--ink);
}

.doc__section {
  margin-top: 36px;
}

.doc__heading {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  font-weight: 800;
  line-height: 1.5;
}

.doc__list {
  margin: 0 0 1.35em;
  padding-inline-start: 1.4em;
}

.doc__list li {
  margin-bottom: 8px;
}

.doc__list li::marker {
  color: var(--blue);
}

.doc__address {
  margin: 0 0 1.35em;
  font-style: normal;
}

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

@media (min-width: 480px) {
  :root {
    --gutter: 24px;
  }

  .masthead__brand {
    font-size: 1.375rem;
  }

  .masthead__label {
    font-size: 0.8125rem;
    padding-inline: 12px;
  }

  .cta__btn {
    display: inline-flex;
    width: auto;
    min-width: 320px;
  }

  .hero__frame {
    aspect-ratio: 16 / 9;
  }

  .legal_links {
    gap: 4px 22px;
  }
}

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

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-gap: 64px;
  }

  body {
    font-size: 1.1875rem;
  }

  .masthead__inner {
    min-height: 84px;
    padding-block: 14px;
  }

  .masthead__brand {
    font-size: 1.625rem;
  }

  .hero {
    padding-top: 36px;
  }

  .hero__kicker {
    font-size: 0.9375rem;
  }

  .hero__media {
    margin-top: 32px;
  }

  .hero__frame {
    aspect-ratio: 852 / 400;
  }

  .byline {
    padding-top: 22px;
    font-size: 0.875rem;
  }

  .story {
    padding-top: 44px;
  }

  .figure {
    margin-block: 44px;
  }

  .cta {
    margin-top: 44px;
  }

  .contact_info {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: 40px;
    margin-bottom: 24px;
  }

  .bottom {
    margin-top: 72px;
    padding-bottom: 64px;
  }

  .doc {
    padding-top: 44px;
  }

  .doc__section {
    margin-top: 44px;
  }
}

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

@media (min-width: 1024px) {
  body {
    font-size: 1.25rem;
  }

  .section__grid--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    align-items: start;
    column-gap: 56px;
  }

  .section__grid--split .figure {
    margin-block: 8px 0;
  }

  .section__grid--split .figure__frame--tall {
    aspect-ratio: 4 / 5;
  }

  .hero__title {
    line-height: 1.34;
  }

  .story p,
  .section p {
    line-height: 2;
  }

  .cta__btn {
    min-width: 360px;
  }

  .doc__section p,
  .doc__list {
    font-size: 1.125rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
