
:root{
  --bg:#071715;
  --paper:#0c211f;
  --paper-2:#102a27;
  --ink:#f0f8f4;
  --muted:#a9bbb4;
  --deep:#0b3f3b;
  --green:#72c47f;
  --leaf:#a6d66f;
  --yellow:#e8c755;
  --cream:#17302c;
  --line:rgba(255,255,255,.09);
  --shadow:0 28px 80px rgba(0,0,0,.34);
  --max:1280px;
}
html[data-theme="light"]{
  --bg:#f6f5ef;
  --paper:#fffef9;
  --paper-2:#edf1e8;
  --ink:#103e40;
  --muted:#6f817a;
  --deep:#0c4846;
  --green:#368e58;
  --leaf:#93ca64;
  --yellow:#d8b632;
  --cream:#ece8da;
  --line:rgba(16,62,64,.13);
  --shadow:0 28px 80px rgba(19,67,58,.13);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:"Tajawal",sans-serif;line-height:1.8;overflow-x:hidden
}
html[lang="en"] body{font-family:"Inter",sans-serif}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select{font:inherit}
button{cursor:pointer}
.svg-sprite{position:absolute;overflow:hidden}
.container{width:min(var(--max),calc(100% - 36px));margin:auto}
.icon{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .75s ease,transform .75s ease}
.reveal.show{opacity:1;transform:none}

/* Navigation */
.site-header{position:fixed;top:14px;left:0;right:0;z-index:1000}
.nav-shell{
  min-height:72px;padding:0 16px 0 20px;border-radius:24px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(244,246,241,.9);backdrop-filter:blur(18px);
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;
  box-shadow:0 12px 40px rgba(0,0,0,.12)
}
html[data-theme="dark"] .nav-shell{background:rgba(14,31,29,.88);border-color:var(--line)}
.brand img{width:118px;height:62px;object-fit:contain}
.main-nav ul{display:flex;justify-content:center;gap:27px;list-style:none;margin:0;padding:0;font-size:14px;font-weight:700}
.main-nav a{position:relative;padding:10px 0}
.main-nav a::after{content:"";position:absolute;bottom:0;inset-inline-start:0;width:0;height:2px;background:var(--green);transition:.25s}
.main-nav a:hover::after,.main-nav a.active::after{width:100%}
.nav-actions{display:flex;gap:8px}
.control{height:42px;border-radius:14px;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:0 13px;display:flex;align-items:center;justify-content:center;gap:8px}
.icon-control{width:42px;padding:0}
.menu-control{display:none}

/* Hero */
.hero{min-height:100svh;position:relative;color:#fff;overflow:hidden}
.hero-media,.hero-overlay{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-overlay{
  background:
    linear-gradient(90deg,rgba(4,29,27,.12) 0%,rgba(4,29,27,.52) 48%,rgba(4,29,27,.93) 100%),
    linear-gradient(0deg,rgba(4,23,22,.66),transparent 58%)
}
html[dir="ltr"] .hero-overlay{
  background:
    linear-gradient(-90deg,rgba(4,29,27,.12) 0%,rgba(4,29,27,.52) 48%,rgba(4,29,27,.93) 100%),
    linear-gradient(0deg,rgba(4,23,22,.66),transparent 58%)
}
.hero-layout{
  min-height:100svh;position:relative;display:flex;align-items:center;
  justify-content:space-between;gap:50px;padding-top:122px;padding-bottom:70px
}
.hero-content{width:min(720px,68%);margin-inline-start:auto}
html[dir="ltr"] .hero-content{margin-inline-start:0;margin-inline-end:auto}
.kicker,.eyebrow{display:flex;align-items:center;gap:10px;color:var(--leaf);font-size:13px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase}
.kicker::before,.eyebrow::before{content:"";width:48px;height:1px;background:currentColor;flex:0 0 auto}
.hero h1{
  margin:22px 0 24px;font-size:clamp(58px,7.2vw,104px);
  line-height:1.02;letter-spacing:-2.8px;max-width:760px
}
.hero h1 span,.hero h1 em{display:block;font-style:normal}
.hero h1 em{color:var(--yellow)}
.hero-content>p{max-width:620px;font-size:18px;color:rgba(255,255,255,.76);margin:0}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.button{min-height:56px;border-radius:18px;padding:0 24px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:800;transition:.25s}
.button:hover{transform:translateY(-3px)}
.button-primary{background:var(--leaf);color:#103d36}
.button-secondary{border-color:rgba(255,255,255,.3);color:#fff;background:rgba(255,255,255,.04)}
.hero-metric{
  align-self:flex-end;width:188px;height:188px;border-radius:50%;
  border:1px solid rgba(255,255,255,.3);background:rgba(10,38,35,.42);
  backdrop-filter:blur(12px);display:flex;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;margin-bottom:4px
}
.hero-metric strong{font-size:38px;line-height:1;color:var(--yellow);margin:8px 0 5px}
.hero-metric span{font-size:12px;color:rgba(255,255,255,.72)}
.hero-metric .metric-label{color:var(--leaf);font-weight:700}

/* Partners */
.partners{background:var(--paper);border-bottom:1px solid var(--line)}
.partners-layout{min-height:96px;display:grid;grid-template-columns:auto 1fr;gap:36px;align-items:center}
.partners-title{font-size:13px;color:var(--muted);white-space:nowrap}
.partner-names{display:grid;grid-template-columns:repeat(5,1fr);gap:22px}
.partner-names span{text-align:center;font-weight:800;letter-spacing:.5px;color:color-mix(in srgb,var(--ink) 58%,transparent)}

/* About */
.about-section{padding:120px 0}
.about-layout{display:grid;grid-template-columns:1.08fr .92fr;gap:76px;align-items:center}
.about-gallery{position:relative;min-height:690px}
.about-image{margin:0;overflow:hidden}
.about-image img{width:100%;height:100%;object-fit:cover}
.about-image-main{width:76%;height:620px;border-radius:180px 28px 28px 28px}
.about-image-side{
  position:absolute;inset-inline-end:0;bottom:0;width:48%;height:310px;
  border-radius:28px 28px 150px 28px;border:10px solid var(--bg)
}
.about-badge{
  position:absolute;top:28px;inset-inline-end:14px;width:150px;height:150px;border-radius:50%;
  background:var(--yellow);color:#123d38;display:grid;place-items:center;text-align:center;
  padding:20px;font-weight:800;box-shadow:var(--shadow)
}
.about-badge .icon{width:34px;height:34px}
.about-copy h2,.section-heading h2,.join-copy h2{
  margin:12px 0 20px;font-size:clamp(40px,5vw,68px);line-height:1.12
}
.about-copy>p,.section-heading>p,.join-copy>p{color:var(--muted);margin:0}
.feature-list{display:grid;gap:0;margin:30px 0}
.feature-list>div{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}
.feature-list span{color:var(--green);font-weight:800}
.feature-list p{margin:0}
.text-link{display:inline-flex;align-items:center;gap:10px;color:var(--green);font-weight:800}

/* Impact */
.impact-section{padding:110px 0;background:linear-gradient(145deg,var(--deep),#082d2b);color:#fff;overflow:hidden}
.impact-heading{display:grid;grid-template-columns:.9fr 1.1fr;gap:80px;align-items:end;margin-bottom:46px}
.impact-heading h2{margin:12px 0 0;font-size:clamp(48px,6vw,82px);line-height:1.05}
.impact-heading h2 span,.impact-heading h2 em{display:block;font-style:normal}
.impact-heading h2 em{color:var(--yellow)}
.impact-heading p{margin:0;color:rgba(255,255,255,.66);max-width:620px}
.impact-dashboard{
  display:grid;grid-template-columns:repeat(4,1fr);
  border-top:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14)
}
.impact-dashboard article{padding:30px 24px;border-inline-end:1px solid rgba(255,255,255,.14)}
.impact-dashboard article:last-child{border:0}
.impact-dashboard .icon{width:30px;height:30px;color:var(--leaf);margin-bottom:18px}
.impact-dashboard strong{display:block;font-size:56px;line-height:1;color:var(--yellow);margin-bottom:10px}
.impact-dashboard span{font-size:14px;color:rgba(255,255,255,.7)}
.impact-gallery{
  margin-top:46px;display:grid;grid-template-columns:1.2fr .8fr;
  grid-template-rows:230px 310px;gap:16px
}
.impact-photo{margin:0;position:relative;overflow:hidden;border-radius:28px}
.impact-photo img{width:100%;height:100%;object-fit:cover;transition:.5s}
.impact-photo:hover img{transform:scale(1.035)}
.impact-photo-large{grid-row:1/3}
.impact-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,26,24,.76),transparent 58%)}
.impact-photo-top::after{display:none}
.impact-photo figcaption{position:absolute;z-index:2;bottom:24px;inset-inline:24px}
.impact-photo figcaption span{display:block;font-size:12px;color:var(--leaf);margin-bottom:5px}
.impact-photo figcaption strong{font-size:24px}

/* Shared headings */
.services-section,.projects-section{padding:110px 0}
.section-heading{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:end;margin-bottom:46px}

/* Services */
.services-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}
.service-feature{min-height:630px;position:relative;overflow:hidden;border-radius:34px;color:#fff}
.service-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.service-feature::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(4,28,26,.85),transparent 68%)}
.service-feature>div{position:absolute;z-index:2;bottom:32px;inset-inline:32px}
.service-feature h3{font-size:38px;margin:8px 0}
.service-feature p{max-width:560px;color:rgba(255,255,255,.75)}
.service-list{display:grid;gap:18px}
.service-row{
  background:var(--paper);border:1px solid var(--line);border-radius:28px;
  padding:26px;display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;transition:.25s
}
.service-row:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.service-icon{width:58px;height:58px;border-radius:18px;background:var(--cream);display:grid;place-items:center;color:var(--green)}
.service-row h3{margin:0 0 4px}
.service-row p{margin:0;color:var(--muted);font-size:14px}

/* Projects */
.projects-section{background:var(--paper)}
.projects-grid{display:grid;grid-template-columns:1.15fr .85fr;grid-template-rows:300px 300px;gap:16px}
.project-card{position:relative;overflow:hidden;border-radius:28px;color:#fff}
.project-card img{width:100%;height:100%;object-fit:cover;transition:.5s}
.project-card:hover img{transform:scale(1.04)}
.project-large{grid-row:1/3}
.project-card::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,27,25,.82),transparent 60%)}
.project-card>div{position:absolute;z-index:2;bottom:22px;inset-inline:22px}
.project-card span{font-size:12px;color:var(--leaf)}
.project-card h3{margin:5px 0 0;font-size:26px}

/* Join */
.join-section{padding:100px 0;background:var(--paper-2)}
.join-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:center}
.join-form{background:var(--paper);border:1px solid var(--line);padding:30px;border-radius:30px;box-shadow:var(--shadow)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
label{display:grid;gap:6px}
label span{font-size:13px;color:var(--muted)}
input,select{height:48px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);outline:0}
.form-button{width:100%;margin-top:20px;background:var(--deep);color:#fff}

/* Footer */
footer{background:#061310;color:#fff;padding:34px 0}
.footer-layout{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px}
.footer-layout img{width:110px;height:62px;object-fit:contain}
.footer-layout p{margin:0;color:rgba(255,255,255,.62)}
.footer-layout span{font-size:13px;color:rgba(255,255,255,.42)}

@media(max-width:1040px){
  .main-nav ul{gap:16px;font-size:13px}
  .about-layout,.services-layout,.join-layout{grid-template-columns:1fr}
  .impact-heading,.section-heading{grid-template-columns:1fr;gap:18px}
  .partner-names{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .main-nav{position:fixed;top:92px;inset-inline:18px;display:none}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;align-items:stretch;gap:6px;background:var(--paper);padding:18px;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
  .menu-control{display:flex}
  .language-control span{display:none}
  .nav-shell{grid-template-columns:auto auto}
  .hero-layout{align-items:flex-end}
  .hero-content{width:100%;margin:0}
  .hero-metric{display:none}
  .impact-dashboard{grid-template-columns:1fr 1fr}
  .impact-dashboard article:nth-child(2){border-inline-end:0}
}
@media(max-width:640px){
  .site-header{top:8px}
  .nav-shell{min-height:62px;border-radius:18px}
  .brand img{width:92px;height:50px}
  .main-nav{top:78px}
  .hero-layout{padding-top:105px;padding-bottom:48px}
  .hero h1{font-size:50px;letter-spacing:-1.5px}
  .hero-content>p{font-size:16px}
  .partners-layout{grid-template-columns:1fr;padding:20px 0}
  .partner-names{grid-template-columns:repeat(2,1fr)}
  .about-section,.services-section,.projects-section{padding:76px 0}
  .about-layout{gap:34px}
  .about-gallery{min-height:490px}
  .about-image-main{height:460px;width:88%}
  .about-image-side{height:220px}
  .about-badge{width:108px;height:108px;font-size:12px}
  .impact-section{padding:78px 0}
  .impact-heading h2{font-size:50px}
  .impact-dashboard{grid-template-columns:1fr}
  .impact-dashboard article{border-inline-end:0;border-bottom:1px solid rgba(255,255,255,.14)}
  .impact-gallery{grid-template-columns:1fr;grid-template-rows:360px 260px 320px}
  .impact-photo-large{grid-row:auto}
  .service-feature{min-height:510px}
  .service-feature h3{font-size:30px}
  .projects-grid{grid-template-columns:1fr;grid-template-rows:repeat(3,320px)}
  .project-large{grid-row:auto}
  .form-grid{grid-template-columns:1fr}
  .footer-layout{grid-template-columns:1fr;text-align:center}
  .footer-layout img{margin:auto}
}


/* =========================================================
   V3 — Refined RTL hero composition and image-led art direction
   ========================================================= */

.hero-layout{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(560px,720px);
  grid-template-areas:"metric content";
  align-items:center;
  gap:clamp(48px,7vw,110px);
  min-height:100svh;
  padding-top:132px;
  padding-bottom:72px;
}

.hero-content{
  grid-area:content;
  width:100%;
  max-width:720px;
  margin:0;
  justify-self:end;
  text-align:right;
  direction:rtl;
}

.hero-content .kicker{
  justify-content:flex-start;
  width:100%;
}

.hero h1{
  max-width:720px;
  margin:24px 0 26px;
  text-align:right;
}

.hero h1 span,
.hero h1 em{
  width:100%;
}

.hero-content>p{
  max-width:610px;
  margin:0;
  margin-inline-start:auto;
  text-align:right;
}

.hero-actions{
  justify-content:flex-start;
  direction:rtl;
}

.hero-metric{
  grid-area:metric;
  justify-self:start;
  align-self:end;
  margin:0 0 10px;
}

html[dir="ltr"] .hero-layout{
  grid-template-columns:minmax(560px,720px) minmax(180px,1fr);
  grid-template-areas:"content metric";
}

html[dir="ltr"] .hero-content{
  justify-self:start;
  text-align:left;
  direction:ltr;
}

html[dir="ltr"] .hero-content .kicker,
html[dir="ltr"] .hero-actions{
  justify-content:flex-start;
}

html[dir="ltr"] .hero-content>p{
  margin-inline-start:0;
  margin-inline-end:auto;
  text-align:left;
}

html[dir="ltr"] .hero h1{
  text-align:left;
}

html[dir="ltr"] .hero-metric{
  justify-self:end;
}

/* Refined overlays preserve image clarity and keep the text zone readable */
.hero-overlay{
  background:
    linear-gradient(90deg,rgba(5,24,22,.05) 0%,rgba(5,24,22,.34) 40%,rgba(5,24,22,.92) 100%),
    linear-gradient(0deg,rgba(4,22,20,.72),rgba(4,22,20,.08) 58%);
}

html[dir="ltr"] .hero-overlay{
  background:
    linear-gradient(-90deg,rgba(5,24,22,.05) 0%,rgba(5,24,22,.34) 40%,rgba(5,24,22,.92) 100%),
    linear-gradient(0deg,rgba(4,22,20,.72),rgba(4,22,20,.08) 58%);
}

.hero-media img{
  object-position:center 56%;
  filter:saturate(.95) contrast(1.03);
}

/* More premium spacing and image treatment across the website */
.about-section,
.services-section,
.projects-section{
  padding-block:124px;
}

.about-image,
.impact-photo,
.service-feature,
.project-card{
  background:#0b211e;
}

.about-image img,
.impact-photo img,
.service-feature img,
.project-card img{
  filter:saturate(.92) contrast(1.03);
}

.impact-heading{
  gap:clamp(42px,7vw,96px);
  margin-bottom:54px;
}

.impact-heading p{
  max-width:560px;
  font-size:17px;
}

.impact-dashboard{
  background:rgba(255,255,255,.025);
}

.impact-dashboard article{
  min-height:190px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.impact-gallery{
  grid-template-columns:1.18fr .82fr;
  grid-template-rows:250px 330px;
  gap:18px;
  margin-top:52px;
}

.impact-photo{
  border:1px solid rgba(255,255,255,.08);
}

.impact-photo figcaption{
  max-width:80%;
}

.impact-photo figcaption strong{
  display:block;
  line-height:1.35;
}

/* Maintain clean mobile behavior */
@media(max-width:980px){
  .hero-layout{
    grid-template-columns:1fr;
    grid-template-areas:"content";
    align-items:end;
    padding-top:118px;
    padding-bottom:56px;
  }

  .hero-content{
    justify-self:stretch;
    max-width:760px;
    width:100%;
  }

  .hero-metric{
    display:none;
  }
}

@media(max-width:640px){
  .hero-layout{
    padding-top:104px;
    padding-bottom:44px;
  }

  .hero h1{
    font-size:clamp(46px,14vw,58px);
    line-height:1.04;
  }

  .hero-content>p{
    font-size:16px;
    max-width:100%;
  }

  .hero-actions{
    gap:10px;
  }

  .hero-actions .button{
    min-height:52px;
    padding-inline:18px;
  }

  .impact-gallery{
    grid-template-columns:1fr;
    grid-template-rows:360px 250px 310px;
  }
}


/* =========================================================
   V4 — Final RTL hero alignment, edge spacing, and light default
   ========================================================= */

html[data-theme="light"]{
  color-scheme:light;
}

.hero{
  min-height:100svh;
}

.hero-layout{
  width:min(1440px,calc(100% - 64px));
  margin-inline:auto;
  display:grid;
  grid-template-columns:minmax(180px,260px) minmax(520px,620px);
  grid-template-areas:"metric content";
  justify-content:space-between;
  align-items:center;
  column-gap:clamp(60px,8vw,150px);
  padding-top:138px;
  padding-bottom:76px;
}

.hero-content{
  grid-area:content;
  width:100%;
  max-width:620px;
  justify-self:end;
  align-self:center;
  margin:0;
  padding:0;
  text-align:right;
  direction:rtl;
}

.hero-content .kicker{
  justify-content:flex-start;
  margin:0 0 22px;
}

.hero h1{
  margin:0;
  max-width:620px;
  font-size:clamp(54px,5.9vw,88px);
  line-height:1.04;
  letter-spacing:-2px;
  text-wrap:balance;
}

.hero h1 span,
.hero h1 em{
  display:block;
  width:100%;
}

.hero h1 em{
  margin-top:8px;
}

.hero-content>p{
  max-width:570px;
  margin:28px 0 0;
  margin-inline-start:auto;
  font-size:17px;
  line-height:2;
  text-align:right;
  color:rgba(255,255,255,.78);
}

.hero-actions{
  margin-top:30px;
  justify-content:flex-start;
  align-items:center;
  direction:rtl;
}

.hero-metric{
  grid-area:metric;
  justify-self:start;
  align-self:end;
  width:174px;
  height:174px;
  margin:0 0 6px;
}

.hero-overlay{
  background:
    linear-gradient(90deg,rgba(3,22,20,.12) 0%,rgba(3,22,20,.34) 42%,rgba(3,22,20,.92) 100%),
    linear-gradient(0deg,rgba(3,20,18,.68),rgba(3,20,18,.04) 60%);
}

.hero-media img{
  object-position:center 52%;
  filter:saturate(.96) contrast(1.04) brightness(.92);
}

html[dir="ltr"] .hero-layout{
  grid-template-columns:minmax(520px,620px) minmax(180px,260px);
  grid-template-areas:"content metric";
}

html[dir="ltr"] .hero-content{
  justify-self:start;
  direction:ltr;
  text-align:left;
}

html[dir="ltr"] .hero h1,
html[dir="ltr"] .hero-content>p{
  text-align:left;
}

html[dir="ltr"] .hero-content>p{
  margin-inline-start:0;
  margin-inline-end:auto;
}

html[dir="ltr"] .hero-metric{
  justify-self:end;
}

html[dir="ltr"] .hero-overlay{
  background:
    linear-gradient(-90deg,rgba(3,22,20,.12) 0%,rgba(3,22,20,.34) 42%,rgba(3,22,20,.92) 100%),
    linear-gradient(0deg,rgba(3,20,18,.68),rgba(3,20,18,.04) 60%);
}

@media(max-width:1100px){
  .hero-layout{
    width:min(100%,calc(100% - 40px));
    grid-template-columns:1fr;
    grid-template-areas:"content";
    justify-content:stretch;
    align-items:end;
    padding-top:124px;
    padding-bottom:54px;
  }

  .hero-content{
    justify-self:stretch;
    max-width:680px;
    margin-inline-start:auto;
  }

  html[dir="ltr"] .hero-content{
    margin-inline-start:0;
    margin-inline-end:auto;
  }

  .hero-metric{
    display:none;
  }
}

@media(max-width:640px){
  .hero-layout{
    width:calc(100% - 28px);
    padding-top:98px;
    padding-bottom:40px;
  }

  .hero-content .kicker{
    margin-bottom:18px;
    font-size:12px;
  }

  .hero h1{
    font-size:clamp(44px,13vw,58px);
    line-height:1.06;
    letter-spacing:-1px;
  }

  .hero-content>p{
    margin-top:22px;
    font-size:15px;
    line-height:1.9;
  }

  .hero-actions{
    margin-top:24px;
    gap:10px;
  }

  .hero-actions .button{
    min-height:50px;
    padding-inline:17px;
  }
}


/* =========================================================
   V5 — Unambiguous RTL hero placement
   Arabic text: far right
   Impact metric: far left
   ========================================================= */

.hero{
  position:relative;
  min-height:100svh;
  isolation:isolate;
}

.hero-layout{
  position:relative;
  display:block;
  width:min(1480px,calc(100% - 64px));
  min-height:100svh;
  margin-inline:auto;
  padding:0;
}

/* Arabic / RTL: lock all text to the right edge */
html[dir="rtl"] .hero-content{
  position:absolute;
  top:50%;
  right:0;
  left:auto;
  transform:translateY(-46%);
  width:min(600px,48vw);
  max-width:600px;
  margin:0;
  padding:0;
  direction:rtl;
  text-align:right;
  justify-self:auto;
}

html[dir="rtl"] .hero-content .kicker{
  justify-content:flex-start;
  text-align:right;
}

html[dir="rtl"] .hero h1{
  width:100%;
  max-width:600px;
  margin:20px 0 0;
  text-align:right;
  font-size:clamp(52px,5.5vw,82px);
  line-height:1.06;
  letter-spacing:-1.6px;
}

html[dir="rtl"] .hero h1 span,
html[dir="rtl"] .hero h1 em{
  display:block;
  width:100%;
  text-align:right;
}

html[dir="rtl"] .hero h1 em{
  margin-top:31px;
}

html[dir="rtl"] .hero-content>p{
  width:min(560px,100%);
  max-width:560px;
  margin:26px 0 0;
  margin-left:auto;
  margin-right:0;
  text-align:right;
  font-size:17px;
  line-height:1.95;
}

html[dir="rtl"] .hero-actions{
  justify-content:flex-start;
  direction:rtl;
  margin-top:28px;
}

/* Arabic / RTL: lock metric to the left edge */
html[dir="rtl"] .hero-metric{
  position:absolute;
  left:0;
  right:auto;
  bottom:64px;
  width:176px;
  height:176px;
  margin:0;
  justify-self:auto;
  align-self:auto;
}

/* English / LTR: exact mirrored composition */
html[dir="ltr"] .hero-content{
  position:absolute;
  top:50%;
  left:0;
  right:auto;
  transform:translateY(-46%);
  width:min(600px,48vw);
  max-width:600px;
  margin:0;
  padding:0;
  direction:ltr;
  text-align:left;
}

html[dir="ltr"] .hero-content .kicker{
  justify-content:flex-start;
  text-align:left;
}

html[dir="ltr"] .hero h1,
html[dir="ltr"] .hero h1 span,
html[dir="ltr"] .hero h1 em,
html[dir="ltr"] .hero-content>p{
  text-align:left;
}

html[dir="ltr"] .hero-content>p{
  margin-left:0;
  margin-right:auto;
}

html[dir="ltr"] .hero-metric{
  position:absolute;
  right:0;
  left:auto;
  bottom:64px;
  width:176px;
  height:176px;
  margin:0;
}

/* Eco Environment image treatment */
.hero-media img{
  object-position:center 58%;
  filter:saturate(1.02) contrast(1.05) brightness(.9);
}

.hero-overlay{
  background:
    linear-gradient(90deg,rgba(5,24,22,.24) 0%,rgba(5,24,22,.20) 42%,rgba(5,24,22,.90) 100%),
    linear-gradient(0deg,rgba(3,20,18,.70),rgba(3,20,18,.03) 60%);
}

html[dir="ltr"] .hero-overlay{
  background:
    linear-gradient(-90deg,rgba(5,24,22,.24) 0%,rgba(5,24,22,.20) 42%,rgba(5,24,22,.90) 100%),
    linear-gradient(0deg,rgba(3,20,18,.70),rgba(3,20,18,.03) 60%);
}

/* Reduce line crowding and preserve generous edge spacing */
.hero-content .kicker{
  margin-bottom:18px;
}

.hero-actions .button{
  min-width:142px;
}

@media(max-width:1100px){
  .hero-layout{
    width:calc(100% - 40px);
  }

  html[dir="rtl"] .hero-content,
  html[dir="ltr"] .hero-content{
    top:auto;
    bottom:52px;
    transform:none;
    width:min(650px,72vw);
    max-width:650px;
  }

  html[dir="rtl"] .hero-content{right:0;left:auto}
  html[dir="ltr"] .hero-content{left:0;right:auto}

  .hero-metric{
    display:none!important;
  }
}

@media(max-width:640px){
  .hero-layout{
    width:calc(100% - 28px);
  }

  html[dir="rtl"] .hero-content,
  html[dir="ltr"] .hero-content{
    bottom:38px;
    width:100%;
    max-width:100%;
  }

  html[dir="rtl"] .hero h1,
  html[dir="ltr"] .hero h1{
    font-size:clamp(43px,13vw,56px);
    line-height:1.08;
  }

  .hero-content>p{
    margin-top:20px!important;
    font-size:15px!important;
    line-height:1.85!important;
  }

  .hero-actions{
    margin-top:22px!important;
    gap:9px!important;
  }

  .hero-actions .button{
    min-width:auto;
    min-height:49px;
    padding-inline:16px;
  }
}


/* =========================================================
   V6 — Dual logo system for Light / Dark themes
   ========================================================= */

.theme-logo{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  transition:opacity .18s ease,filter .18s ease;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  width:118px;
  height:62px;
  flex:0 0 auto;
}

.brand .theme-logo{
  width:118px;
  height:62px;
}

.footer-layout .theme-logo{
  width:110px;
  height:62px;
  margin:0;
}

/* Slight enhancement for the dark-mode logo on translucent headers */
html[data-theme="dark"] .theme-logo{
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

@media(max-width:640px){
  .brand{
    width:92px;
    height:50px;
  }

  .brand .theme-logo{
    width:92px;
    height:50px;
  }
}
