@font-face {
  font-family: "NRT Reg";
  src: url("../fonts/NRT-Reg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #171c1e;
  --muted: #657174;
  --paper: #f5f6f2;
  --white: #ffffff;
  --teal: #0b746c;
  --teal-dark: #073f3c;
  --gold: #e1c600;
  --gold-soft: #f0df64;
  --red: #c83b31;
  --line: rgba(23, 28, 30, 0.14);
  --shadow: 0 24px 70px rgba(13, 25, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Naskh Arabic", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body.is-rtl {
  font-family: "NRT Reg", "Noto Naskh Arabic", Tahoma, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 60px;
  height: 60px;
  padding: 1px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.15;
}

.brand small {
  max-width: 240px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.3;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #243033;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-menu > a {
  position: relative;
  padding: 8px 0;
}

.site-menu > a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 180ms ease;
}

.site-menu > a:hover::after,
.site-menu > a:focus-visible::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f6;
}

.lang-btn {
  min-width: 38px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.lang-btn.is-active {
  color: #111;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 130px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #0c2528;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 20, 22, 0.92) 0%, rgba(5, 35, 38, 0.72) 48%, rgba(5, 35, 38, 0.18) 78%),
    linear-gradient(0deg, rgba(4, 22, 24, 0.68), transparent 58%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 72px;
  align-items: end;
  padding: 92px 0 76px;
}

.hero-copy {
  max-width: 790px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.is-rtl .kicker {
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 5rem;
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  margin-bottom: 20px;
  font-size: 3.25rem;
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.hero-activity {
  margin: 0 0 22px;
  color: var(--gold-soft);
  font-size: 1.15rem;
  font-weight: 700;
}

.hero-tagline {
  max-width: 650px;
  margin-bottom: 15px;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1.25;
}

.hero-summary {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111;
  background: var(--gold);
}

.btn-primary:hover {
  background: #f0d700;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.hero-details {
  display: grid;
  align-self: end;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.36);
}

.hero-details > div {
  padding: 2px 0 22px 28px;
}

body.is-rtl .hero-details > div {
  padding: 2px 28px 22px 0;
}

.hero-details > div + div {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-details span,
.contact-list span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.is-rtl .hero-details span,
body.is-rtl .contact-list span {
  text-transform: none;
}

.hero-details strong,
.hero-details a {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.stats-row {
  color: var(--white);
  background: var(--teal-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid article {
  min-height: 126px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.13);
}

.stats-grid article:last-child {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.13);
}

.stat-number {
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.stats-grid strong,
.stats-grid div span {
  display: block;
}

.stats-grid strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.stats-grid div span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.content-section,
.solar-focus,
.contact-section {
  padding: 104px 0;
}

.split,
.image-copy,
.contact-grid,
.services-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 76px;
  align-items: center;
}

.about-section {
  background: var(--paper);
}

.section-intro .kicker,
.section-heading .kicker,
.solar-copy .kicker {
  color: var(--teal);
}

.about-copy > p,
.section-heading > p,
.service-list p,
.solar-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy > p {
  max-width: 610px;
  font-size: 1.22rem;
}

.company-signature {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.company-signature img {
  width: 88px;
  height: 70px;
  object-fit: contain;
}

.company-signature strong,
.company-signature span {
  display: block;
}

.company-signature strong {
  font-size: 1.12rem;
}

.company-signature span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.services {
  color: var(--white);
  background: #171c1e;
}

.services-layout {
  align-items: start;
}

.services .section-heading {
  position: sticky;
  top: 118px;
}

.services .section-heading > p {
  color: rgba(255, 255, 255, 0.64);
}

.service-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.service-list article {
  min-height: 190px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.service-number {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-list h3 {
  font-size: 1.42rem;
}

.service-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
}

.solar-focus {
  background: var(--white);
}

.image-copy {
  grid-template-columns: 1.12fr 0.88fr;
}

.image-stage {
  position: relative;
  min-height: 590px;
  padding-inline-end: 72px;
  padding-bottom: 68px;
}

.image-stage > img {
  width: 100%;
  height: 590px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.image-inset {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 49%;
  padding: 8px 0 0 8px;
  background: var(--white);
}

body.is-rtl .image-inset {
  padding: 8px 8px 0 0;
}

.image-inset img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.solar-copy {
  padding-inline-start: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.contact-section {
  color: var(--white);
  background: var(--teal-dark);
}

.contact-section .kicker {
  color: var(--gold-soft);
}

.contact-section p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.contact-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-list a,
.contact-list p {
  display: block;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-list strong {
  display: block;
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

footer {
  padding: 25px 0;
  color: rgba(255, 255, 255, 0.64);
  background: #101415;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.admin-body {
  background: #f3f5f1;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-top h1,
.login-box h1 {
  color: var(--ink);
  font-size: 3rem;
}

.admin-card {
  padding: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(23, 32, 33, 0.08);
}

.admin-card h2 {
  font-size: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.admin-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.admin-image-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.admin-image-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e8ece8;
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-preview.is-logo {
  background: #ffffff;
}

.admin-image-preview.is-logo img {
  padding: 24px;
  object-fit: contain;
}

.admin-image-item .field {
  padding: 16px;
  margin: 0;
}

.admin-image-item small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: #394649;
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cad4d2;
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-body .btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #f8faf7;
}

.admin-card p {
  color: var(--muted);
}

.notice {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e8f6ef;
  color: #18553e;
  font-weight: 700;
}

.notice.error {
  background: #fff0ed;
  color: #9b3026;
}

.login-box {
  width: min(440px, calc(100% - 32px));
  margin: 10vh auto;
}

@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    inset: 78px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu > a {
    padding: 12px;
  }

  .language-switcher {
    margin-top: 8px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .split,
  .image-copy,
  .contact-grid,
  .services-layout {
    gap: 46px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand small {
    max-width: 200px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg img {
    object-position: 62% center;
  }

  .hero-overlay {
    background: rgba(4, 24, 27, 0.79);
  }

  .hero-grid,
  .split,
  .image-copy,
  .contact-grid,
  .services-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 46px;
    padding: 72px 0 56px;
  }

  .hero-details {
    grid-template-columns: repeat(3, 1fr);
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .hero-details > div,
  body.is-rtl .hero-details > div {
    padding: 20px 18px 0 0;
  }

  body.is-rtl .hero-details > div {
    padding: 20px 0 0 18px;
  }

  .hero-details > div + div {
    padding-top: 20px;
    border-top: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
    padding-inline-start: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid article,
  .stats-grid article:last-child {
    min-height: 96px;
    border-inline: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .content-section,
  .solar-focus,
  .contact-section {
    padding: 76px 0;
  }

  .services .section-heading {
    position: static;
  }

  .image-stage {
    min-height: 500px;
  }

  .image-stage > img {
    height: 500px;
  }

  .admin-grid,
  .admin-grid.three,
  .admin-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    min-height: 72px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    display: none;
  }

  .site-menu {
    inset: 72px 12px auto;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-activity {
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 1.4rem;
  }

  .hero-summary,
  .about-copy > p {
    font-size: 1rem;
  }

  .hero-details {
    grid-template-columns: 1fr;
  }

  .hero-details > div + div {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-inline-start: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .service-list article {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .image-stage {
    min-height: 390px;
    padding-inline-end: 38px;
    padding-bottom: 44px;
  }

  .image-stage > img {
    height: 390px;
  }

  .image-inset {
    width: 57%;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-top h1,
  .login-box h1 {
    font-size: 2.15rem;
  }

  .admin-card h2 {
    font-size: 1.65rem;
  }
}

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

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