/* ============================================================
   AL-AWAIL FACILITIES MANAGEMENT CO. — شركة الأوائل لإدارة المرافق
   Premium corporate system · White / Emerald / Deep Forest
   RTL-first (Arabic) with full LTR (English) support.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --white: #ffffff;
  --off: #f5f8f6;
  --tint: #e9f2ee;
  --emerald: #0b6b4f;
  --emerald-deep: #08503b;
  --emerald-soft: #e3f0ea;
  --forest: #0d3327;
  --forest-deep: #092419;
  --mint: #8fd0b8;
  --ink: #14211b;
  --gray: #55635c;
  --line: #dde6e1;

  --shadow-sm: 0 2px 10px rgba(13, 51, 39, 0.07);
  --shadow-md: 0 14px 36px rgba(13, 51, 39, 0.12);
  --shadow-lg: 0 30px 70px rgba(9, 36, 25, 0.2);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --header-h: 84px;
  --header-h-s: 70px;
  --logo-h: 54px;
  --logo-h-s: 46px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-lux: cubic-bezier(0.19, 1, 0.22, 1);

  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-s) + 16px);
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-ar);
}

html:lang(en) {
  font-family: var(--font-en);
}

body {
  background: var(--white);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.2s ease;
}

html:lang(en) body {
  font-size: 1rem;
  line-height: 1.7;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

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

/* Typography: no lonely last words. Headings and short blocks are balanced,
   longer running text uses "pretty" wrapping. */
p,
li,
blockquote,
figcaption {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

.hero-sub,
.page-hero-lead,
.cta-sub,
.mv-text,
.feature-text,
.svc-card p,
.why-card p,
.principle-card p,
.aside-cta-text,
.form-intro,
.footer-copy {
  text-wrap: balance;
}

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

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

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--emerald);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero :focus-visible,
.page-hero :focus-visible,
.section-dark :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.site-header:not(.scrolled):not(.is-solid):not(.menu-open) :focus-visible {
  outline-color: var(--mint);
}

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--forest);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* Language switching: no flash of the wrong language, soft cross-fade */
html.is-en:not(.i18n-ready) body {
  opacity: 0;
  animation: i18nFailsafe 0s linear 1.6s forwards;
}

@keyframes i18nFailsafe {
  to {
    opacity: 1;
  }
}

html.lang-switching body {
  opacity: 0;
  transition-duration: 0.12s;
}

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-arrow {
  transition: transform 0.3s var(--ease);
}

[dir="rtl"] .icon-arrow {
  transform: scaleX(-1);
}

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

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-tinted {
  background: var(--off);
}

.section-dark {
  position: relative;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(11, 107, 79, 0.32), transparent 60%),
    var(--forest);
  color: var(--white);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--emerald);
  font-size: 0.88rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow.is-light {
  color: var(--mint);
}

.eyebrow.is-center {
  display: flex;
  justify-content: center;
}

html:lang(en) .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--forest);
  text-wrap: balance;
}

html:lang(en) .section-title {
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-title.is-light {
  color: var(--white);
}

.section-title.is-sm {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.section-lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--gray);
  font-size: 1.06rem;
}

.section-lead.is-light {
  color: rgba(255, 255, 255, 0.78);
}

.lead {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--gray);
  font-size: 1.1rem;
}

.body-text {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--gray);
}

.body-text.is-strong {
  margin-top: 22px;
  padding-inline-start: 18px;
  border-inline-start: 3px solid var(--emerald);
  color: var(--forest);
  font-weight: 600;
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.section-head.is-center .eyebrow {
  justify-content: center;
}

.section-head.is-center .section-lead {
  margin-inline: auto;
}

.section-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-split .section-head {
  margin-bottom: 0;
}

.section-more {
  margin-top: 40px;
}

.intro-block {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.intro-block .section-lead {
  margin-inline: auto;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn .icon {
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 107, 79, 0.28);
}

.btn-primary:hover {
  background: var(--emerald-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(11, 107, 79, 0.36);
}

.btn-outline {
  border-color: rgba(13, 51, 39, 0.25);
  color: var(--forest);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline:hover .icon-arrow {
  transform: translateX(3px);
}

[dir="rtl"] .btn-outline:hover .icon-arrow {
  transform: scaleX(-1) translateX(3px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 14px;
  color: var(--emerald);
  font-weight: 700;
}

.link-arrow::before {
  content: "";
  order: 2;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease);
}

[dir="rtl"] .link-arrow::before {
  transform: scaleX(-1);
}

.link-arrow:hover::before {
  transform: translateX(4px);
}

[dir="rtl"] .link-arrow:hover::before {
  transform: scaleX(-1) translateX(4px);
}

.link-arrow.is-light {
  color: var(--mint);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  color: var(--white);
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    color 0.4s var(--ease);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 18px;
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}

/* Desktop only — same physical layout in Arabic and English:
   logo left · menu centered · actions right. Text direction inside the menu
   still follows the language. (On mobile the header follows the page direction.) */
@media (min-width: 1141px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    direction: ltr;
  }
}

.site-header.scrolled,
.site-header.is-solid,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(13, 51, 39, 0.08), 0 10px 30px rgba(13, 51, 39, 0.06);
  color: var(--forest);
}

.site-header.scrolled .header-inner,
.site-header.is-solid .header-inner,
.site-header.menu-open .header-inner {
  height: var(--header-h-s);
}

/* Brand (official logo — white/mint over the hero, green once the header turns white) */
.brand {
  position: relative;
  display: block;
  justify-self: start;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: none;
  height: var(--logo-h);
  transition:
    height 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.brand .logo-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.site-header.scrolled .brand-logo,
.site-header.is-solid .brand-logo,
.site-header.menu-open .brand-logo {
  height: var(--logo-h-s);
}

.site-header.scrolled .logo-light,
.site-header.is-solid .logo-light,
.site-header.menu-open .logo-light {
  opacity: 0;
}

.site-header.scrolled .logo-color,
.site-header.is-solid .logo-color,
.site-header.menu-open .logo-color {
  opacity: 1;
}

/* Desktop navigation */
.main-nav {
  justify-self: center;
}

html[dir="rtl"] .main-nav {
  direction: rtl;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 10px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.92;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  inset-inline: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.site-header.scrolled .nav-link::after,
.site-header.is-solid .nav-link::after {
  background: var(--emerald);
}

.site-header.scrolled .nav-link:hover,
.site-header.is-solid .nav-link:hover,
.site-header.scrolled .nav-link.is-active,
.site-header.is-solid .nav-link.is-active {
  color: var(--emerald);
}

/* Services dropdown */
.dd-toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-inline-start: -10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.85;
}

.dd-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.has-dd:hover .dd-toggle .icon,
.has-dd.open .dd-toggle .icon {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: -24px;
  width: 348px;
  padding: 10px;
  background: var(--white);
  color: var(--forest);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.3s var(--ease),
    visibility 0s linear 0.25s;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  inset-inline: 0;
  height: 16px;
}

.has-dd:hover .dropdown,
.has-dd:focus-within .dropdown,
.has-dd.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.dd-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.dd-link .icon {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 8px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.dd-link:hover {
  background: var(--off);
  color: var(--emerald);
}

.dd-link:hover .icon {
  background: var(--emerald);
  color: var(--white);
}

.dd-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 12px 14px 8px;
  border-top: 1px solid var(--line);
  color: var(--emerald);
  font-size: 0.9rem;
  font-weight: 700;
}

.dd-all:hover .icon-arrow {
  transform: translateX(4px);
}

[dir="rtl"] .dd-all:hover .icon-arrow {
  transform: scaleX(-1) translateX(4px);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lang-sep {
  display: none;
}

.lang-opt {
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0.72;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.lang-opt.active {
  background: var(--white);
  color: var(--forest);
  opacity: 1;
}

.site-header.scrolled .lang-switch,
.site-header.is-solid .lang-switch,
.site-header.menu-open .lang-switch {
  border-color: rgba(13, 51, 39, 0.16);
  background: rgba(13, 51, 39, 0.04);
}

.site-header.scrolled .lang-switch:hover,
.site-header.is-solid .lang-switch:hover,
.site-header.menu-open .lang-switch:hover {
  background: rgba(11, 107, 79, 0.1);
}

.site-header.scrolled .lang-opt.active,
.site-header.is-solid .lang-opt.active,
.site-header.menu-open .lang-opt.active {
  background: var(--emerald);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  background: transparent;
  color: inherit;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  max-height: calc(100vh - var(--header-h-s));
  max-height: calc(100dvh - var(--header-h-s));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 30px 50px rgba(9, 36, 25, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.35s var(--ease),
    visibility 0s linear 0.35s;
}

.mobile-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.mm-inner {
  width: min(640px, calc(100% - 40px));
  margin-inline: auto;
  padding: 8px 0 28px;
}

.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
}

.mm-link.is-active {
  color: var(--emerald);
}

.mm-details summary {
  list-style: none;
  cursor: pointer;
}

.mm-details summary::-webkit-details-marker {
  display: none;
}

.mm-details summary .icon {
  transition: transform 0.3s var(--ease);
}

.mm-details[open] summary .icon {
  transform: rotate(180deg);
}

.mm-sub {
  display: grid;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--line);
}

.mm-sub-link {
  padding: 11px 18px;
  border-radius: 10px;
  color: var(--gray);
  font-size: 0.97rem;
  font-weight: 600;
}

.mm-sub-link:hover {
  background: var(--off);
  color: var(--emerald);
}

.mm-all {
  color: var(--emerald);
  font-weight: 700;
}

.mm-cta {
  width: 100%;
  margin-top: 22px;
}

.mm-contact {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: var(--gray);
  font-weight: 600;
}

.mm-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-contact .icon {
  color: var(--emerald);
}

/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(660px, 100vh);
  min-height: max(660px, 100svh);
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: -60px 0;
  z-index: -2;
  will-change: transform;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: heroZoom 14s var(--ease-lux) both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

.hero-overlay {
  --a: 100deg;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(9, 36, 25, 0.88) 0%, rgba(9, 36, 25, 0.1) 42%, rgba(9, 36, 25, 0.5) 100%),
    linear-gradient(var(--a), rgba(9, 36, 25, 0.86) 0%, rgba(11, 60, 44, 0.6) 48%, rgba(11, 107, 79, 0.16) 100%);
}

[dir="rtl"] .hero-overlay {
  --a: 260deg;
}

.hero-content {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 48px;
}

.hero-content > * {
  max-width: 780px;
}

.hero-content > .hero-title {
  max-width: 940px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 700;
}

html:lang(en) .hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker-line {
  width: 44px;
  height: 2px;
  background: currentColor;
  opacity: 0.8;
}

.hero-title {
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.32;
  text-wrap: balance;
}

html:lang(en) .hero-title {
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: normal;
  color: var(--mint);
}

@media (min-width: 721px) {
  .hero-title em {
    white-space: nowrap;
  }
}

.hero-sub {
  max-width: 600px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-facts-wrap {
  padding-bottom: 36px;
}

.hero-facts {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-facts li + li {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-facts .icon {
  color: var(--mint);
}

/* Entrance sequence (animation-only so hover states are never blocked) */
html.js .hero-kicker,
html.js .hero-title,
html.js .hero-sub,
html.js .hero-actions,
html.js .hero-facts {
  animation: riseIn 1s var(--ease-lux) backwards;
}

html.js .hero-kicker { animation-delay: 0.15s; }
html.js .hero-title { animation-delay: 0.3s; }
html.js .hero-sub { animation-delay: 0.48s; }
html.js .hero-actions { animation-delay: 0.64s; }
html.js .hero-facts { animation-delay: 0.85s; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(400px, 46vw, 540px);
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--white);
}

.page-hero-media {
  position: absolute;
  inset: -40px 0;
  z-index: -2;
  will-change: transform;
}

.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 12s var(--ease-lux) both;
}

.page-hero-overlay {
  --a: 100deg;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(9, 36, 25, 0.86) 0%, rgba(9, 36, 25, 0.12) 55%, rgba(9, 36, 25, 0.5) 100%),
    linear-gradient(var(--a), rgba(9, 36, 25, 0.84) 0%, rgba(11, 60, 44, 0.55) 55%, rgba(11, 107, 79, 0.18) 100%);
}

[dir="rtl"] .page-hero-overlay {
  --a: 260deg;
}

.page-hero-content {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-hero-content > * {
  max-width: 800px;
}

.page-hero-title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

html:lang(en) .page-hero-title {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.page-hero-lead {
  margin-top: 16px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

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

.breadcrumb {
  margin-bottom: 22px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 10px;
  opacity: 0.5;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}

/* ============================================================
   ABOUT (home teaser)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
}

.about-media::before,
.about-media::after {
  content: "";
  position: absolute;
  width: clamp(72px, 9vw, 120px);
  height: clamp(72px, 9vw, 120px);
  border: 2px solid var(--emerald);
  opacity: 0.45;
  pointer-events: none;
}

.about-media::before {
  top: -16px;
  inset-inline-start: -16px;
  border-inline-end: 0;
  border-bottom: 0;
  border-start-start-radius: var(--r-lg);
}

.about-media::after {
  bottom: -16px;
  inset-inline-end: -16px;
  border-inline-start: 0;
  border-top: 0;
  border-end-end-radius: var(--r-lg);
}

/* Frosted-glass caption bar on the photo: logo on the left, short fact on the right */
.about-badge {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  direction: ltr;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(9, 36, 25, 0.58);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(9, 36, 25, 0.35);
  color: var(--white);
}

.about-badge-logo {
  display: block;
  flex: none;
  width: auto;
  height: 34px;
}

.about-badge-text {
  display: grid;
  line-height: 1.3;
  text-align: right;
}

html[dir="rtl"] .about-badge-text {
  direction: rtl;
}

.about-badge-text strong {
  color: var(--mint);
  font-size: 1.02rem;
  font-weight: 800;
}

.about-badge-text span {
  font-size: 0.82rem;
  opacity: 0.88;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.highlights li {
  position: relative;
  padding-inline-start: 34px;
  color: var(--forest);
  font-weight: 700;
}

.highlights li::before,
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.32em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6b4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.svc-card {
  position: relative;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.svc-card:nth-child(-n + 3) {
  grid-column: span 4;
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 107, 79, 0.3);
  box-shadow: var(--shadow-md);
}

.svc-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--tint);
}

.svc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-lux);
}

.svc-card:hover .svc-card-media img {
  transform: scale(1.06);
}

.svc-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 36, 25, 0.35), transparent 55%);
  pointer-events: none;
}

.svc-num {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  z-index: 1;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(9, 36, 25, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.svc-card-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 38px 24px 24px;
}

.svc-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(11, 107, 79, 0.3);
}

.svc-ico .icon {
  width: 26px;
  height: 26px;
}

.svc-card .svc-ico {
  position: absolute;
  top: -26px;
  inset-inline-start: 24px;
  transition: transform 0.45s var(--ease-lux);
}

.svc-card:hover .svc-ico {
  transform: translateY(-4px);
}

.svc-card h3 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}

html:lang(en) .svc-card h3 {
  line-height: 1.3;
}

.svc-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.svc-card p {
  color: var(--gray);
  font-size: 0.94rem;
  line-height: 1.75;
}

.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--emerald);
  font-size: 0.92rem;
  font-weight: 700;
}

.svc-card:hover .svc-more .icon-arrow {
  transform: translateX(4px);
}

[dir="rtl"] .svc-card:hover .svc-more .icon-arrow {
  transform: scaleX(-1) translateX(4px);
}

#services-section {
  padding-bottom: clamp(48px, 6vw, 72px);
}

/* ============================================================
   FEATURE BAND
   ============================================================ */
.section-feature {
  padding-bottom: clamp(72px, 9vw, 120px);
  background: var(--off);
}

.feature-band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: clamp(440px, 46vw, 560px);
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: var(--forest-deep);
}

[dir="rtl"] .feature-band {
  justify-content: flex-start;
}

.feature-media {
  position: absolute;
  inset: -40px 0;
  z-index: -2;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.feature-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(9, 36, 25, 0.55), transparent 55%);
}

.feature-panel {
  width: min(500px, 100%);
  margin: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.feature-title {
  color: var(--forest);
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
}

html:lang(en) .feature-title {
  line-height: 1.22;
}

.feature-text {
  margin-top: 12px;
  color: var(--gray);
  font-size: 0.98rem;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 24px;
}

.feature-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 700;
}

.feature-chips .icon {
  color: var(--emerald);
}

/* ============================================================
   VISION & MISSION
   ============================================================ */
.mv-section {
  overflow: hidden;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mv-card {
  position: relative;
  padding: clamp(28px, 3.6vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 65%);
  transition:
    transform 0.45s var(--ease-lux),
    border-color 0.45s ease;
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: 0.7;
}

.mv-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 208, 184, 0.4);
}

.mv-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: rgba(143, 208, 184, 0.14);
  color: var(--mint);
}

.mv-ico .icon {
  width: 28px;
  height: 28px;
}

.mv-label {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 800;
}

.mv-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  line-height: 1.95;
}

.mv-section.is-large .mv-text {
  font-size: clamp(1.15rem, 1.8vw, 1.38rem);
}

/* ============================================================
   WHY US / PRINCIPLES / SECTORS
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.why-card,
.principle-card,
.sector-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.why-card:hover,
.principle-card:hover,
.sector-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 107, 79, 0.28);
  box-shadow: var(--shadow-md);
}

.why-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--emerald-soft);
  color: var(--emerald);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.45s var(--ease-lux);
}

.why-ico .icon {
  width: 26px;
  height: 26px;
}

.why-card:hover .why-ico,
.principle-card:hover .why-ico,
.sector-card:hover .why-ico {
  background: var(--emerald);
  color: var(--white);
  transform: translateY(-3px);
}

.why-card h3,
.principle-card h3,
.sector-card h3 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1.1rem;
  font-weight: 800;
}

.why-card p,
.principle-card p {
  color: var(--gray);
  font-size: 0.96rem;
  line-height: 1.75;
}

.why-closing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 44px auto 0;
  padding: 18px 30px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--forest);
  font-weight: 700;
  text-align: center;
}

.why-closing .icon {
  color: var(--emerald);
}

.section-tinted .why-card,
.section-tinted .principle-card {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

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

.principles-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
}

.principle-card {
  padding: 26px 24px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sector-card {
  text-align: center;
  padding: 36px 20px;
}

/* Service page: "How we carry out the work" */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
}

.process-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 107, 79, 0.28);
  box-shadow: var(--shadow-md);
}

.process-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 1rem;
  font-weight: 800;
}

.process-card h3 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1.05rem;
  font-weight: 800;
}

.process-card p {
  color: var(--gray);
  font-size: 0.94rem;
  line-height: 1.75;
}

.sector-card .why-ico {
  margin-inline: auto;
}

.sector-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

/* Clients (logo wall) */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.client-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 107, 79, 0.28);
  box-shadow: var(--shadow-md);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--forest-deep);
  color: var(--white);
  text-align: center;
}

.cta-bg-wrap {
  position: absolute;
  inset: -50px 0;
  z-index: -2;
}

.cta-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(9, 36, 25, 0.92), rgba(9, 36, 25, 0.74) 55%, rgba(13, 51, 39, 0.66)),
    linear-gradient(100deg, rgba(8, 80, 59, 0.3), transparent 60%);
}

.cta-title {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

html:lang(en) .cta-title {
  max-width: 24ch;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cta-sub {
  max-width: 560px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.cta-contacts a,
.cta-loc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.cta-contacts a:hover {
  color: var(--mint);
}

.cta-contacts .icon {
  color: var(--mint);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.15fr 1.25fr;
  gap: 48px;
  padding-block: clamp(56px, 7vw, 84px) 56px;
}

.footer-brand .brand {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand .brand-logo {
  height: 60px;
}

.footer-brand p {
  max-width: 340px;
  font-size: 0.95rem;
  line-height: 1.85;
}

.footer-title {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 12px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--emerald);
}

.footer-nav ul {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.94rem;
  transition:
    color 0.2s ease,
    padding 0.25s var(--ease);
}

.footer-nav a:hover {
  color: var(--white);
  padding-inline-start: 6px;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 14px;
  font-size: 0.94rem;
}

.footer-contact .footer-title {
  margin-bottom: 8px;
}

.footer-contact > a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: color 0.2s ease;
}

.footer-contact > a:hover {
  color: var(--white);
}

.fi {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--mint);
}

.fi .icon {
  width: 17px;
  height: 17px;
}

.footer-addr {
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
}

.footer-dev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-dev-brand {
  color: var(--white);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-dev-brand:hover {
  color: var(--mint);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.story-media {
  position: relative;
  padding-bottom: clamp(48px, 8vw, 90px);
}

.story-img-main {
  width: 88%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
}

.story-img-sub {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 52%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 8px solid var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}

/* Team-at-work video (about page) */
.video-card {
  overflow: hidden;
  width: min(520px, 100%);
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: var(--forest-deep);
  box-shadow: var(--shadow-lg);
}

.video-el {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--forest-deep);
}

.facts-band {
  padding: clamp(36px, 5vw, 56px) 0;
  background: var(--forest);
  color: var(--white);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.facts-grid li {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding-inline-start: 20px;
  border-inline-start: 2px solid rgba(143, 208, 184, 0.35);
}

.facts-grid .icon {
  margin-bottom: 8px;
  width: 26px;
  height: 26px;
  color: var(--mint);
}

.fact-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 600;
}

.facts-grid strong {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.4;
}

/* ============================================================
   SERVICES PAGE (rows)
   ============================================================ */
.svc-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
}

.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.svc-row:nth-child(even) .svc-row-media {
  order: 2;
}

.svc-row-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.svc-row-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease-lux);
}

.svc-row:hover .svc-row-media img {
  transform: scale(1.04);
}

.svc-row-title {
  margin: 20px 0 12px;
  color: var(--forest);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.4;
}

html:lang(en) .svc-row-title {
  line-height: 1.2;
}

.svc-row-text {
  margin-bottom: 20px;
  color: var(--gray);
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-inline-start: 34px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.svc-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.svc-ico.is-lg {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 18px;
}

.svc-ico.is-lg .icon {
  width: 30px;
  height: 30px;
}

.svc-aside {
  position: sticky;
  top: calc(var(--header-h-s) + 24px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--off);
}

.aside-title {
  margin-bottom: 20px;
  color: var(--forest);
  font-size: 1.15rem;
  font-weight: 800;
}

.aside-cta {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--forest);
  color: var(--white);
}

.aside-cta-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.aside-cta-text {
  margin: 4px 0 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  line-height: 1.7;
}

.section-gallery {
  padding-bottom: clamp(72px, 9vw, 120px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease-lux);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.mini-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 107, 79, 0.3);
  box-shadow: var(--shadow-md);
}

.mini-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-lux);
}

.mini-card:hover .mini-media img {
  transform: scale(1.07);
}

.mini-body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.mini-body .icon {
  margin-top: 2px;
  color: var(--emerald);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

a.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 107, 79, 0.3);
  box-shadow: var(--shadow-md);
}

.info-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.info-body {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
}

.info-label {
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 600;
}

.info-value {
  color: var(--forest);
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.form-title {
  color: var(--forest);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
}

.form-intro {
  margin: 6px 0 26px;
  color: var(--gray);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 700;
}

.field .opt {
  color: var(--gray);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #7d8a84;
}

[dir="rtl"] .field input[dir="ltr"] {
  text-align: right;
}

.field input:hover,
.field textarea:hover {
  border-color: #c3d1ca;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 107, 79, 0.14);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.field-error {
  margin-top: 6px;
  color: #b3261e;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-submit {
  width: 100%;
}

.form-submit-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status.is-error {
  border-color: rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.08);
  color: #8a2a20;
}

.form-note {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
}

.form-status {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid rgba(11, 107, 79, 0.25);
  border-radius: var(--r);
  background: var(--emerald-soft);
  color: var(--forest);
  font-size: 0.94rem;
  font-weight: 600;
}

.form-status a {
  width: fit-content;
  color: var(--emerald);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   PARTNERS PAGE — statement panel
   ============================================================ */
.quote-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(11, 107, 79, 0.45), transparent 62%),
    var(--forest);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.quote-ico {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: var(--mint);
  opacity: 0.85;
}

.quote-ico .icon {
  width: 100%;
  height: 100%;
  stroke-width: 1.4;
}

.quote-panel blockquote {
  max-width: 62ch;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.85;
  text-wrap: pretty;
}

.quote-panel figcaption {
  margin-top: 28px;
  padding-top: 20px;
  width: fit-content;
  border-top: 2px solid var(--emerald);
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ============================================================
   LOCATION MAP
   ============================================================ */
.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tint);
  box-shadow: var(--shadow-md);
}

.map-frame {
  display: block;
  width: 100%;
  height: clamp(340px, 42vw, 480px);
  border: 0;
}

.map-info {
  position: absolute;
  top: 24px;
  inset-inline-start: 24px;
  display: grid;
  justify-items: start;
  gap: 6px;
  width: min(330px, calc(100% - 48px));
  padding: 22px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.map-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(11, 107, 79, 0.3);
}

.map-title {
  color: var(--forest);
  font-size: 1.12rem;
  font-weight: 800;
}

.map-address {
  margin-bottom: 10px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.map-info .btn:hover .icon-arrow {
  transform: translateX(3px);
}

[dir="rtl"] .map-info .btn:hover .icon-arrow {
  transform: scaleX(-1) translateX(3px);
}

/* ============================================================
   404
   ============================================================ */
.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(11, 107, 79, 0.1), transparent 70%),
    var(--off);
  text-align: center;
}

.notfound-code {
  color: transparent;
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 2px rgba(11, 107, 79, 0.4);
}

.notfound-title {
  margin: 8px 0 12px;
  color: var(--forest);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.notfound-text {
  max-width: 460px;
  margin: 0 auto 30px;
  color: var(--gray);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ============================================================
   SCROLL REVEAL (animation-based so hover transitions stay instant)
   ============================================================ */
html.js .reveal:not(.in-view) {
  opacity: 0;
}

html.js .reveal.in-view {
  animation: revealUp 0.9s var(--ease-lux) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

html.js .reveal-img:not(.in-view) img {
  clip-path: inset(0 0 100% 0);
}

html.js .reveal-img.in-view img {
  animation: imgReveal 1.2s var(--ease-lux) backwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}

@keyframes imgReveal {
  from {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.1);
  }

  to {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1279px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .mini-grid,
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1140px) {
  :root {
    --header-h: 76px;
    --header-h-s: 66px;
    --logo-h: 48px;
    --logo-h-s: 44px;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-actions {
    gap: 6px;
  }
}

@media (max-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-card,
  .svc-card:nth-child(-n + 3) {
    grid-column: auto;
  }

  .svc-card:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .svc-card:last-child .svc-card-media {
    flex: 0 0 46%;
    aspect-ratio: auto;
  }

  .svc-card:last-child .svc-card-body {
    padding-top: 28px;
  }

  .svc-card:last-child .svc-ico {
    position: static;
    margin-bottom: 16px;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sectors-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .about-grid,
  .story-grid,
  .contact-grid,
  .svc-overview,
  .svc-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-row:nth-child(even) .svc-row-media {
    order: 0;
  }

  .story-media {
    max-width: 560px;
  }

  .mv-grid,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-aside {
    position: static;
  }

  .hero-facts {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1180px, calc(100% - 40px));
  }

  .map-frame {
    height: 300px;
  }

  .map-info {
    position: static;
    width: auto;
    padding: 20px;
    border-radius: 0;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: none;
  }

  /* Compact icon + text rows instead of tall stacked cards */
  .why-card,
  .principle-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 20px;
  }

  .why-card .why-ico,
  .principle-card .why-ico {
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    margin: 0;
  }

  .why-card h3,
  .principle-card h3 {
    margin: 2px 0 4px;
  }

  .cta-contacts {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .svc-grid,
  .why-grid,
  .principles-grid,
  .principles-grid.is-four,
  .form-row,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-card:last-child {
    flex-direction: column;
  }

  .svc-card:last-child .svc-card-body {
    padding-top: 38px;
  }

  .svc-card:last-child .svc-ico {
    position: absolute;
    margin-bottom: 0;
  }

  .svc-card:last-child .svc-card-media {
    flex: none;
    aspect-ratio: 16 / 11;
  }

  .mini-grid,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-facts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-facts li {
    padding: 12px 20px;
  }

  .hero-facts li + li {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }

  .page-hero-actions .btn {
    flex: 1 1 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-band {
    min-height: 0;
    padding-top: 220px;
  }

  .feature-panel {
    margin: 16px;
  }

  .facts-grid {
    gap: 28px 16px;
  }
}

@media (max-width: 460px) {
  :root {
    --logo-h: 44px;
    --logo-h-s: 40px;
  }

  .hamburger {
    width: 40px;
  }

  .lang-opt {
    padding: 4px 10px;
  }

  .sector-card {
    padding: 24px 12px;
  }

  .sector-card h3 {
    font-size: 0.98rem;
  }

  .about-badge {
    inset-inline: 12px;
    bottom: 12px;
    gap: 10px;
    padding: 10px 14px;
  }

  .about-badge-logo {
    height: 28px;
  }

  .svc-aside,
  .form-card {
    padding: 22px;
  }
}

@media (max-width: 375px) {
  :root {
    --logo-h: 36px;
    --logo-h-s: 34px;
  }

  .header-inner {
    column-gap: 8px;
  }
}

@media (max-width: 340px) {
  :root {
    --logo-h: 32px;
    --logo-h-s: 30px;
  }

  .lang-opt {
    padding: 4px 8px;
  }

  .hamburger {
    width: 36px;
    padding: 9px;
  }

  .container {
    width: calc(100% - 32px);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  html.js .reveal:not(.in-view) {
    opacity: 1;
  }

  html.js .reveal-img:not(.in-view) img {
    clip-path: none;
  }

  .hero-media,
  .page-hero-media,
  .feature-media,
  .cta-bg-wrap {
    transform: none !important;
  }
}
