:root {
  --ink: #12263a;
  --blue: #0e4f8a;
  --blue-deep: #08345c;
  --sky: #e7f2fb;
  --sun: #e8a317;
  --sand: #f6f1e8;
  --line: #d7e2ec;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(14, 47, 80, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fafc;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, strong {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h1, .slide-copy h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin: 0.15em 0 0.25em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0.15em 0 0.4em; }
h3 { font-size: 1.45rem; margin: 0.2em 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: #2a1c00;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.05); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 3vw;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; direction: ltr; flex: none; background: #fff; }
.logo {
  height: 108px;
  width: auto;
  display: block;
  background: #fff;
  direction: ltr;
}
.nav { display: flex; gap: 0.85rem; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--blue); }
.nav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--sun); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; direction: ltr; }
.header-phone {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;
  cursor: pointer;
}
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: white;
  direction: ltr;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  min-width: 2.9rem;
  min-height: 2.5rem;
  padding: 0 0.5rem;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--blue); color: white; }
.lang button:hover { color: var(--blue); }
.lang button[aria-pressed="true"]:hover { color: white; }
a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }
.wa-fab {
  position: fixed;
  z-index: 30;
  top: auto;
  left: auto;
  right: 1.15rem;
  bottom: 1.15rem;
  direction: ltr;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0e7a45;
  color: white;
  box-shadow: 0 10px 28px rgba(18, 140, 94, 0.4);
  text-decoration: none;
}
html[dir="rtl"] .wa-fab { right: 1.15rem; left: auto; }
.wa-fab svg { width: 2rem; height: 2rem; display: block; }
.wa-fab:hover { filter: brightness(1.05); }
.menu-button {
  display: none;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
}

.skip {
  position: absolute;
  inset-inline-start: 0.8rem;
  top: 0.6rem;
  z-index: 40;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--sun);
  color: #2a1c00;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { transform: none; }
body.menu-open .wa-fab { visibility: hidden; }

.hero, .about, .services, .works, .steps, .quote, .contact { scroll-margin-top: 130px; }

.hero { position: relative; background: var(--blue-deep); }
.carousel {
  position: relative;
  height: min(78vh, 680px);
  min-height: 520px;
  overflow: hidden;
  background: var(--blue-deep);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .pos-roof { object-position: center 62%; }
.slide .pos-city { object-position: center 46%; }
.slide .pos-crew { object-position: 42% 70%; }
.slide .pos-ground { object-position: center 48%; }
.slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 58, 0.72) 0%, rgba(8, 32, 58, 0.22) 30%, rgba(8, 32, 58, 0) 52%);
}
.slide-copy {
  position: absolute;
  z-index: 2;
  inset-inline-start: 6vw;
  inset-inline-end: 24vw;
  top: 1.7rem;
  bottom: auto;
  max-width: 40rem;
  color: white;
}
.slide-copy .eyebrow { color: #f3c15a; }
.slide-copy .lead { font-size: 1.2rem; max-width: 36rem; color: #f4f7fb; }
.carousel-btn {
  position: absolute;
  z-index: 3;
  top: 42%;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel-btn span {
  display: block;
  box-sizing: content-box;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(135deg);
}
.carousel-btn.next span { transform: rotate(-45deg); }
html[dir="rtl"] .carousel-btn.prev span { transform: rotate(-45deg); }
html[dir="rtl"] .carousel-btn.next span { transform: rotate(135deg); }
.carousel-btn.prev { inset-inline-start: 1.1rem; }
.carousel-btn.next { inset-inline-end: 1.1rem; }
.dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 5.6rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.dot[aria-selected="true"] { width: 1.7rem; background: var(--sun); }
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  line-height: 0;
  pointer-events: none;
}
.wave svg { width: 100%; height: 84px; display: block; }

.trust-bar { background: white; padding: 0.2rem 6vw 1.6rem; text-align: center; }
.promise {
  max-width: 46rem;
  margin: 0 auto 0.85rem;
  color: var(--blue-deep);
  font-family: "Noto Naskh Arabic", Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust li { font-size: 0.98rem; font-weight: 700; }
.trust li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-end: 0.45rem;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(-1px);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4.2rem 6vw 5rem;
  background: var(--sand);
}
.about img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 58%;
  border-radius: 1.4rem;
}
.facts { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.facts li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid #e4d8c6;
}
.facts span { color: var(--blue); font-weight: 700; }

.services { padding: 5rem 6vw; background: #f7fafc; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  counter-reset: svc;
}
.service-grid article {
  padding: 1.35rem 1.25rem 1.45rem;
  background: white;
  border-radius: 1.3rem;
  box-shadow: 0 10px 30px rgba(14, 47, 80, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-grid article::before {
  counter-increment: svc;
  content: counter(svc);
  display: block;
  margin-bottom: 0.45rem;
  color: var(--sun);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}
.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-grid h3 { margin: 0 0 0.35rem; }
.service-grid p { margin: 0; color: #24384c; }

.works { padding: 5rem 6vw; background: white; }
.works .section-head { max-width: 46rem; }
.works .section-head p:last-child { max-width: 40rem; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.work {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  overflow: hidden;
}
.work img { width: 100%; height: 230px; object-fit: cover; }
.work .pos-roof { object-position: center 60%; }
.work .pos-city { object-position: center 42%; }
.work .pos-wide { object-position: center 55%; }
.work .pos-ground { object-position: center 42%; }
.work .pos-orchard { object-position: center 28%; }
.work .pos-close { object-position: 32% 40%; }
.work .pos-crew { object-position: center 55%; }
.work figcaption { padding: 0.95rem 1rem 1.15rem; }
.work-kind {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blue);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}
.work figcaption strong { display: block; margin-bottom: 0.35rem; font-size: 1.28rem; line-height: 1.35; }
.work figcaption p { color: #24384c; font-size: 0.98rem; font-weight: 500; line-height: 1.55; }

.steps {
  padding: 5rem 6vw;
  background: var(--blue-deep);
  color: white;
}
.steps-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.4rem;
  align-items: stretch;
}
.steps-photo { margin: 0; border-radius: 1.2rem; overflow: hidden; }
.steps-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 68%;
}
.section-head.light .eyebrow { color: #f3c15a; }
.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.steps li {
  padding: 1.3rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.8rem;
  color: var(--sun);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
}
.steps p { margin-top: 0.4rem; color: #d5e4f2; }

.quote { padding: 5rem 6vw; background: var(--sand); }
.quote-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.layout-plan img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 1.2rem;
}
.layout-plan figcaption { margin-top: 0.85rem; max-width: 36rem; }
.gear-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1rem; }
.gear-row figure { margin: 0; }
.gear-row img { width: 100%; height: 240px; object-fit: cover; border-radius: 0.85rem; }
.gear-inverter { object-position: 70% 16%; }
.gear-cabinet { object-position: center 40%; }
.gear-row figcaption { margin-top: 0.4rem; color: var(--blue); font-size: 0.88rem; font-weight: 700; }
.parts { margin: 0.6rem 0 0; padding-inline-start: 1.1rem; }
.parts li { margin: 0.35rem 0; font-weight: 600; }
.excluded { margin-top: 1rem; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--sand);
}
.contact-panel { padding: 4rem 6vw 6.5rem; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.contact-list li { margin: 0.35rem 0; }
.contact-list a { color: var(--blue); font-weight: 700; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.contact-phone, .mail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact-phone {
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  direction: ltr;
}
form { display: grid; gap: 0.8rem; max-width: 28rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  border: 1px solid #d9cbb6;
  border-radius: 0.8rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: white;
}
.privacy { margin: 0.15rem 0 0; max-width: 28rem; color: #3e5166; font-size: 0.88rem; font-weight: 500; }
.form-note { margin-top: 0.6rem; color: var(--blue); font-weight: 600; }
.form-note.is-fail { color: #8d2b2b; }
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #9b2c2c;
  box-shadow: 0 0 0 3px rgba(155, 44, 44, 0.16);
}
.contact iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 2.2rem 6vw 5.5rem;
  background: var(--ink);
  color: white;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #d7e4f2; font-size: 0.98rem; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: white; }
.footer-address { margin-top: 0.55rem; max-width: 26rem; color: #c5d4e4; }
.footer-side { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-phone, .footer-mail { display: inline-flex; align-items: center; min-height: 44px; }
.footer-phone {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--sun);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  direction: ltr;
}
.footer-mail { color: #d7e4f2; font-size: 0.98rem; font-weight: 600; text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.footer-socials { margin-top: 0.35rem; }
.footer-socials p { margin: 0 0 0.45rem; color: #d7e4f2; font-size: 0.92rem; font-weight: 600; }
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.socials a:hover { background: var(--sun); color: #2a1c00; }
.socials a:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.socials svg { width: 1.2rem; height: 1.2rem; display: block; }
.contact-socials a { background: white; color: var(--blue); border: 1px solid var(--line); }
.reach {
  width: min(22rem, calc(100% - 2rem));
  padding: 1.25rem 1.15rem 1.05rem;
  border: 0;
  border-radius: 1.2rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.reach::backdrop { background: rgba(8, 32, 58, 0.48); }
.reach-kicker { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.45rem; }
.reach-number { margin: 0.35rem 0 0; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.reach-actions { display: grid; gap: 0.55rem; margin: 1rem 0 0.8rem; }
.reach-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.reach-call { background: var(--blue); color: white; }
.reach-sms { background: var(--sand); color: var(--ink); }
.reach-wa { background: #083d28; color: white; }
.reach-close {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.footer-mark {
  margin: 0 0 0.25rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.footer-line { margin-top: 0.2rem; color: #c5d4e4; }
html[lang="fr"] .promise,
html[lang="en"] .promise { font-family: Fraunces, Georgia, serif; }

html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

html[lang="ar"] body { font-family: "Noto Sans Arabic", Outfit, "Segoe UI", sans-serif; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] strong,
html[lang="ar"] .footer-mark,
html[lang="ar"] .steps li::before,
html[lang="ar"] .service-grid article::before,
html[lang="ar"] .reach-kicker,
html[lang="ar"] .promise {
  font-family: "Noto Naskh Arabic", Georgia, serif;
  letter-spacing: 0;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.header-phone, .contact-phone, .footer-phone, .contact-list a[href^="mailto"], .footer-mail { unicode-bidi: isolate; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .service-grid article, html.motion [data-reveal] { transition: none; }
  .service-grid article:hover { transform: none; }
}

@media (max-width: 1120px) {
  .site-header { flex-wrap: wrap; row-gap: 0.35rem; }
  .menu-button { display: inline-flex; align-items: center; min-height: 44px; }
  .header-actions { flex: 1 0 100%; justify-content: flex-end; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.4rem 4vw 1rem;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; font-size: 1.05rem; }
  .logo { height: 88px; }
  .lang button { min-height: 44px; }
}

@media (max-width: 1040px) {
  .about, .steps ol, .quote-layout, .contact, .service-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work { height: auto; }
  .work img { height: 200px; }
  .gear-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about, .steps ol, .quote-layout, .contact { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work img { height: 190px; }
  .logo { height: 76px; }
  .about img, .layout-plan img, .steps-photo img { height: 240px; min-height: 240px; }
  .slide-copy { inset-inline-end: 4.5rem; top: 1.2rem; }
  .carousel { min-height: 560px; }
  .contact-panel { padding-bottom: 6.5rem; }
  .header-phone { min-height: 44px; font-size: 0.82rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .facts li { grid-template-columns: 6.2rem 1fr; }
  .hero, .about, .services, .works, .steps, .quote, .contact { scroll-margin-top: 150px; }
}

@media (max-width: 560px) {
  .carousel { height: 620px; min-height: 620px; }
  .slide-copy { inset-inline-start: 1rem; inset-inline-end: 1rem; top: 0.8rem; }
  .slide-copy h1, .slide-copy h2 { font-size: 1.85rem; }
  .carousel-btn { width: 2.75rem; height: 2.75rem; top: 46%; }
  .dots { bottom: 5.4rem; }
  .trust { justify-content: flex-start; }
  .site-header { padding-inline: 3vw; }
  .works-grid { grid-template-columns: 1fr; }
  .work img { height: 210px; }
}
