/* Shams Djazair — landing page C (long page). Mobile first. sm = 640px, lg = 1000px. */

body { font-size: 16px; line-height: 1.5; }

.c-wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 4vw, 64px); padding-right: clamp(20px, 4vw, 64px); }

/* ---------- header ---------- */
.c-header { border-bottom: 1px solid var(--color-hairline); background: #fff; }
.c-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.c-logo { height: 46px; width: auto; }
.c-header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-lang { flex: none; }
.c-tel { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.c-tel-num, .c-header-cta { display: none; }
.c-header-cta { align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--color-ink); border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.c-header-cta:hover { color: var(--color-ink); background: var(--color-navy-050); }

/* ---------- hero ---------- */
.c-hero { background: var(--color-paper); scroll-margin-top: 0; }
.c-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 48px; }
.c-hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.c-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-navy); }
.c-eyebrow--bold { font-weight: 700; }
.c-eyebrow-bar { flex: none; width: 24px; height: 3px; background: var(--color-navy); }
.c-h1 { font-size: 36px; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.c-mark { background-image: linear-gradient(transparent 82%, var(--color-accent) 82%, var(--color-accent) 94%, transparent 94%); }
.c-hero-lead { display: none; max-width: 52ch; font-size: 18px; color: var(--color-text); text-wrap: pretty; }
.c-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 700; }
.c-checks li { display: flex; align-items: center; gap: 6px; }
.c-awards { display: flex; flex-wrap: wrap; gap: 10px; }
.c-award { display: flex; align-items: center; gap: 9px; padding: 8px; padding-inline-end: 16px; background: #fff; border: 1px solid var(--color-hairline); border-radius: 16px; }
.c-award img { flex: none; width: 48px; height: 48px; }
.c-award p { font-size: 13px; line-height: 1.25; font-weight: 700; }

/* ---------- form card ---------- */
.c-card { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 28px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-form-card); scroll-margin-top: 12px; }
.c-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 11px; font-weight: 700; line-height: 1.3; }
.c-steps li { display: flex; flex-direction: column; gap: 8px; color: var(--color-text-muted); }
.c-steps-bar { height: 6px; border-radius: var(--radius-pill); background: var(--color-hairline); }
.c-steps li.is-on { color: var(--color-ink); }
.c-steps li.is-on .c-steps-bar { background: var(--color-accent); border: 1.5px solid var(--color-ink); }

.c-card-body { min-width: 0; }
.c-step { display: flex; flex-direction: column; gap: 22px; }
.c-q { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c-q-title { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--color-ink); }
.c-q-title--lg { font-size: 20px; line-height: 1.25; }
.c-q-help { margin-top: -6px; font-size: 13px; color: var(--color-text-muted); }
.c-q[data-q="site"] { gap: 22px; }

.c-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.c-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-opts--1 { grid-template-columns: minmax(0, 1fr); }
.c-tile { min-height: 60px; padding: 10px 14px; border-radius: var(--radius-tile-c); font-size: 15px; }
.c-tile svg { flex: none; }
.c-tile > span { min-width: 0; }
.c-tile--text { font-size: 14px; }
.c-tile-label { min-width: 0; }
/* icons of the answers (icons.js): same ink as the site icons of step 1 */
.c-tile .opt-ic { color: inherit; }
.c-tile.opt--unsure .opt-ic { color: var(--color-text-muted); }
/* two columns on phones: the icon sits above the label, so that the label keeps the full width */
.c-opts--2 > .c-tile--text { flex-direction: column; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 8px; text-align: center; }
.c-q[data-q="toit"] .c-opts--2 > .c-tile--text { min-height: 96px; }
.c-tile--other { justify-content: center; min-height: 48px; padding: 0 14px; font-size: 14px; text-align: center; }
.c-tile--desc { gap: 14px; min-height: 68px; }
.c-tile-txt { display: flex; flex-direction: column; gap: 2px; }
.c-tile-txt strong { font-size: 15px; font-weight: 700; }
.c-tile-txt span { font-size: 13px; font-weight: 400; color: var(--color-text-muted); }
/* check icon at the right of a selected large option */
.c-opts:not(.c-opts--2) > .c-tile[aria-pressed="true"]::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-inline-start: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23192E45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.c-card-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.c-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; padding-inline-end: 4px; background: none; border: 0; color: var(--color-ink); font-size: 14px; font-weight: 700; }
.c-back:hover { color: var(--color-navy); }
.c-next { margin-inline-start: auto; }
.c-next-hint { margin-top: -12px; font-size: 13px; color: var(--color-text-muted); text-align: end; }
.c-card-note { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--color-text-muted); }
.c-card-note svg { flex: none; }

/* contact step */
.c-contact-head { display: flex; flex-direction: column; gap: 6px; }
.c-confid { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.c-form { display: flex; flex-direction: column; gap: 16px; }
.c-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.c-info { display: flex; gap: 12px; padding: 16px; background: var(--color-navy-100); border-radius: 14px; }
.c-info svg { flex: none; margin-top: 2px; }
.c-info div { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; }
.c-info strong { font-weight: 700; }
.c-info span { color: var(--color-text); }
.c-submit { align-self: stretch; min-height: 56px; padding: 0 28px; font-size: 16px; }
.c-fineprint { font-size: 12px; line-height: 1.45; color: var(--color-text-muted); }

/* confirmation */
.c-done { gap: 14px; }
.c-done-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-navy); color: var(--color-accent); }
.c-done-title { font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
.c-done-text { max-width: 52ch; font-size: 15px; color: var(--color-text); }
.c-done-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.c-done-actions .btn { padding: 0 24px; white-space: normal; }
.c-linkbtn { align-self: flex-start; min-height: 44px; padding: 0; background: transparent; border: 0; color: var(--color-text-muted); font-size: 13px; font-weight: 600; text-decoration: underline; }

/* ---------- client logos ---------- */
.c-logos-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; padding-top: 36px; padding-bottom: 36px; }
.c-logos-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); }
.c-logos-grid { display: none; }
.c-logos-marquee { flex: 1 1 100%; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.c-logos-marquee .logo-track img { margin-right: 40px; object-fit: contain; }

/* ---------- numbers ---------- */
.c-numbers { padding-top: 12px; }
.c-numbers-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: center; gap: 32px 64px; padding: clamp(28px, 4vw, 56px); background: var(--color-navy); border-radius: var(--radius-panel); color: #fff; }
.c-numbers-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.c-numbers-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.c-numbers-title { max-width: 16ch; font-size: clamp(28px, 2.9vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.c-numbers-lead { max-width: 40ch; font-size: 16px; color: var(--color-on-navy-muted); text-wrap: pretty; }
.c-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.3); min-width: 0; }
.c-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: clamp(16px, 2vw, 24px) clamp(14px, 2vw, 26px); background: var(--color-navy); }
.c-stats dt { font-size: 14px; line-height: 1.35; color: var(--color-on-navy-muted); }
.c-stats dd { font-size: clamp(28px, 3.4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--color-accent); }

/* ---------- section titles ---------- */
.c-h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.c-h2--xb { font-weight: 800; }
.c-h2--20 { max-width: 20ch; }
.c-h2--22 { max-width: 22ch; }

/* ---------- projects ---------- */
.c-projects { scroll-margin-top: 0; }
.c-projects-in { display: flex; flex-direction: column; gap: 40px; padding-top: 80px; padding-bottom: 96px; }
.c-projects-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.c-projects-titles { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c-projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.c-project { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-card-project); box-shadow: 0 1px 2px rgba(17,17,17,0.06), 0 14px 36px rgba(17,17,17,0.07); min-width: 0; }
.c-project-media { position: relative; }
.c-project-photo { width: 100%; height: 230px; object-fit: cover; object-position: center; border-radius: 17px 17px 0 0; background: var(--color-border); }
.c-project-photo--school { object-position: center 70%; }
.c-project-photo--mobilis { object-position: center 12%; }
.c-project-tag { position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 12px; font-size: 12px; }
.c-project-logo { position: absolute; inset-inline-start: 22px; bottom: -30px; display: flex; align-items: center; height: 60px; padding: 10px 14px; background: #fff; border: 1px solid var(--color-hairline); border-radius: 14px; box-shadow: 0 6px 18px rgba(17,17,17,0.12); }
.c-project-logo img { width: auto; height: 36px; }
.c-project-logo--miclat img { height: 40px; }
.c-project-logo--mobilis img { height: 34px; }
.c-project-body { flex-grow: 1; display: flex; flex-direction: column; gap: 12px; padding: 50px 24px 24px; }
.c-project-figure { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--color-navy); }
.c-project-text { font-size: 15px; color: var(--color-text); }
.c-project-facts { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-hairline); font-size: 13px; font-weight: 600; }
.c-project-facts li { display: flex; align-items: center; gap: 8px; }
.c-yes { width: 20px; height: 20px; }

/* ---------- reasons ---------- */
.c-reasons { background: var(--color-paper); }
.c-reasons-in { display: flex; flex-direction: column; gap: 40px; padding-top: 88px; padding-bottom: 88px; }
.c-reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.c-reason { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border: 1px solid var(--color-hairline); border-radius: 14px; box-shadow: var(--shadow-card-soft); min-width: 0; }
.c-reason img { align-self: flex-start; width: 84px; height: 84px; margin: -4px 0 0; margin-inline-start: -6px; }
.c-reason h3 { font-size: 22px; line-height: 1.15; font-weight: 700; }
.c-reason p { font-size: 15px; color: var(--color-text); }

/* ---------- process ---------- */
.c-process-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); align-items: center; gap: 48px 72px; padding-top: 96px; padding-bottom: 96px; }
.c-process-photo { position: relative; min-height: 460px; overflow: hidden; border-radius: 8px; background: var(--color-border); }
.c-process-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.c-process-text { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.c-process-list { display: flex; flex-direction: column; }
.c-process-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
.c-process-rail { display: flex; flex-direction: column; align-items: center; }
.c-process-num { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--color-paper); font-size: 24px; line-height: 1; font-weight: 800; color: var(--color-navy); }
.c-process-line { flex: 1 1 auto; min-height: 12px; margin: 6px 0; border-left: 2px dashed var(--color-border-control); }
.c-process-item { display: flex; flex-direction: column; gap: 2px; padding-bottom: 18px; }
.c-process-item--last { padding-bottom: 0; }
.c-process-item strong { display: flex; align-items: center; min-height: 56px; font-size: 18px; line-height: 1.2; font-weight: 700; }
.c-process-item span { font-size: 15px; color: var(--color-text); text-wrap: pretty; }

/* ---------- FAQ ---------- */
.c-faq { background: var(--color-paper); }
.c-faq-in { display: flex; flex-direction: column; gap: 40px; padding-top: 88px; padding-bottom: 88px; }
.c-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0 64px; }
.c-faq-item { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--color-border); }
.c-faq-item h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.c-faq-item p { font-size: 15px; color: var(--color-text); }

/* ---------- closing band ---------- */
.c-band { background: var(--color-accent); }
.c-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: 80px; padding-bottom: 80px; }
.c-band-title { max-width: 18ch; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.c-band-btn { gap: 12px; padding: 8px 32px; font-size: 16px; border-color: var(--color-ink); white-space: normal; text-align: start; justify-content: space-between; }

/* ---------- footer ---------- */
.c-footer { background: var(--color-paper); border-top: 1px solid var(--color-hairline); }
.c-footer-in { display: flex; flex-direction: column; gap: 36px; padding-top: 56px; padding-bottom: 28px; font-size: 14px; color: var(--color-text); }
.c-footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.c-footer-brand { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.c-footer-brand img { height: 48px; width: auto; }
.c-footer-brand p { max-width: 36ch; font-size: 15px; text-wrap: pretty; }
.c-footer-col { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.c-footer-label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.c-footer-col a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.c-footer-col a svg, .c-footer-col address svg { flex: none; }
.c-footer-col address { display: flex; align-items: flex-start; gap: 10px; padding-top: 11px; font-style: normal; font-weight: 600; line-height: 1.6; }
.c-footer-col address svg { margin-top: 3px; }
.c-footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: 13px; color: var(--color-text-muted); }
.c-footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.c-footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text-muted); }

/* ---------- small phones ---------- */
@media (max-width: 359px) {
  .c-card { padding: 20px; }
  .c-opts--2 { grid-template-columns: minmax(0, 1fr); }
  .c-opts--2 > .c-tile--text, .c-q[data-q="toit"] .c-opts--2 > .c-tile--text { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 60px; padding: 10px 14px; text-align: start; }
  /* header: logo + language menu + phone button on 280 px */
  .c-header-in { column-gap: 12px; }
  .c-logo { height: 40px; }
  .c-header-actions { gap: 8px; }
  .c-header .lang-select { padding: 0 24px 0 32px; font-size: 12px; background-position: left 9px center, right 8px center; }
  .c-h1 { font-size: 32px; }
  .c-eyebrow { letter-spacing: 0.12em; }
  .c-steps { font-size: 10px; }
  .c-project-figure { font-size: 34px; }
}

/* ---------- sm ≥ 640px ---------- */
@media (min-width: 640px) {
  .c-header-actions { gap: 12px 20px; }
  .c-header-cta { display: inline-flex; }
  .c-hero-lead { display: block; }
  .c-h1 { font-size: 42px; }
  .c-steps { gap: 8px; font-size: 13px; }
  .c-logos-grid { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); align-items: center; gap: 20px 32px; }
  .c-logos-grid img { width: 100%; height: 56px; object-fit: contain; }
  .c-logos-marquee { display: none; }
  .c-submit { align-self: flex-start; padding: 0 32px; }
  .c-opts--2 > .c-tile--text, .c-q[data-q="toit"] .c-opts--2 > .c-tile--text { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 60px; padding: 10px 14px; text-align: start; }
  .c-q[data-q="toit"] .c-opts--2 > .c-tile--text { min-height: 68px; }
}

/* the phone number comes back when the header has room for it next to the language menu */
@media (min-width: 800px) {
  .c-tel-num { display: inline; }
  .c-header-actions { gap: 12px 24px; }
}

/* ---------- lg ≥ 1000px ---------- */
@media (min-width: 1000px) {
  .c-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 48px 64px; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(48px, 5.5vw, 80px); }
  .c-hero-text { padding-top: 8px; }
  .c-h1 { font-size: 48px; line-height: 1.04; }
  .c-card { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .c-logos-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- scroll targets: a new question arrives at the top of the screen ---------- */
.c-q { scroll-margin-top: 16px; }

/* The hidden anti-robot field of the form is parked far to the left (base.css). In a right-to-left page that side
   is the scrolling side, so the field is parked on the right instead. */
[dir="rtl"] .hp-field { left: auto !important; right: -9999px !important; }

/* ---------- figures stay left-to-right in Arabic ("6 MWc", "300 kW", "PV + BESS") ---------- */
[dir="rtl"] .c-stats dd, [dir="rtl"] .c-project-figure { direction: ltr; text-align: right; }

/* ---------- Arabic (Cairo): taller letters need more line height ---------- */
html[lang="ar"] .c-h1 { line-height: 1.32; }
html[lang="ar"] .c-h2, html[lang="ar"] .c-numbers-title, html[lang="ar"] .c-band-title, html[lang="ar"] .c-done-title { line-height: 1.35; }
html[lang="ar"] .c-q-title, html[lang="ar"] .c-q-title--lg, html[lang="ar"] .c-reason h3, html[lang="ar"] .c-faq-item h3 { line-height: 1.5; }
html[lang="ar"] .c-award p, html[lang="ar"] .c-steps, html[lang="ar"] .c-tile, html[lang="ar"] .c-process-item strong { line-height: 1.45; }
html[lang="ar"] .c-eyebrow, html[lang="ar"] .c-numbers-eyebrow, html[lang="ar"] .c-logos-label, html[lang="ar"] .c-footer-label { font-size: 14px; }
html[lang="ar"] .c-mark { background-image: linear-gradient(transparent 78%, var(--color-accent) 78%, var(--color-accent) 90%, transparent 90%); }
html[lang="ar"] .c-stats dt { line-height: 1.5; }

/* typed area */
.c-area-help { margin: -4px 0 2px; font-size: 13px; color: var(--color-text-muted); }
