@font-face {
  font-family: "Open Sans Condensed";
  src: url("fonts/OpenSans_Condensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic ExtraCondensed";
  src: url("fonts/NotoSansArabic_ExtraCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16252d;
  --muted: #5f6d75;
  --paper: #f7f7f2;
  --white: #ffffff;
  --teal: #0c6f78;
  --teal-dark: #074d56;
  --gold: #c89a3f;
  --line: #dfe5e5;
  --shadow: 0 18px 48px rgba(14, 39, 46, 0.13);
  --radius: 8px;
}

:root[data-theme="dark"] {
  --ink: #eef4f4;
  --muted: #a8b7bd;
  --paper: #101820;
  --white: #17232b;
  --teal: #3fb4bf;
  --teal-dark: #0e2d36;
  --gold: #e0b961;
  --line: #2a3a43;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

html[lang="ar"] body {
  font-family: "Noto Sans Arabic ExtraCondensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.12rem;
}

[dir="rtl"] {
  direction: rtl;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.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(12px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(23, 35, 43, 0.96);
}

.topbar {
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.88rem;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: var(--white);
}

.nav-inner {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  border-radius: 4px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1.06rem;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 1.4rem;
}

.site-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 111, 120, 0.08);
}

.language-toggle button,
.theme-toggle {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.language-toggle button {
  min-width: 36px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.language-toggle button:hover,
.language-toggle button.is-active {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(12, 111, 120, 0.22);
  transform: scale(1.05);
}

.theme-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(223, 229, 229, 0.86));
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(14, 39, 46, 0.13);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(180deg);
  box-shadow: 0 12px 28px rgba(14, 39, 46, 0.22);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .moon-icon {
  display: none;
  color: #9aa9ff;
}

.theme-toggle .sun-icon {
  color: #d9a72f;
}

:root[data-theme="dark"] .theme-toggle {
  background: linear-gradient(145deg, #24333d, #111b22);
  box-shadow: 0 0 0 2px rgba(63, 180, 191, 0.25), 0 12px 28px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  color: var(--ink);
}

.main-nav .button {
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--teal-dark);
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--gold);
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(7, 39, 48, 0.88), rgba(7, 39, 48, 0.54), rgba(7, 39, 48, 0.2)),
    url("hero-bg.png") center / cover;
  color: #ffffff;
}

.hero.page-hero {
  min-height: 360px;
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 80px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 18px;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 780px;
  font-size: 1.2rem;
}

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

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}

.section {
  padding: 78px 0;
}

.section.white {
  background: var(--white);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.feature-image {
  width: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.compact-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(14, 39, 46, 0.05);
}

:root[data-theme="dark"] .quote,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .contact-panel,
:root[data-theme="dark"] .form-panel,
:root[data-theme="dark"] .cookie-banner {
  background: var(--white);
}

.white .card {
  background: #fbfbf8;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 20px;
}

.service-list,
.values-list,
.specialisms {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

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

.service-list li,
.values-list li,
.specialisms li {
  padding: 12px 14px;
  background: rgba(12, 111, 120, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote {
  margin: 36px 0 0;
  padding: 28px;
  background: var(--white);
  color: var(--ink);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote cite {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.cta-band {
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--teal-dark);
  color: #ffffff;
  border-radius: var(--radius);
}

.cta-band p {
  max-width: 690px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 34px;
  align-items: start;
}

.contact-panel,
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 4px 0 0;
  font-weight: 700;
}

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

label {
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #cfd9d9;
  border-radius: var(--radius);
  font: inherit;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  background: #0f171d;
  color: var(--ink);
}

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

.hp-field {
  position: absolute;
  left: -9999px;
}

.map-frame {
  width: 100%;
  height: 390px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy {
  max-width: 850px;
}

.policy h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.site-footer {
  background: #101c21;
  color: rgba(255, 255, 255, 0.82);
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  margin-bottom: 34px;
}

.site-footer a {
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 420px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1040px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-controls {
    margin-left: 0;
  }

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

@media (max-width: 860px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    order: 4;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .site-controls {
    margin-left: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .button {
    margin: 14px 24px 18px;
  }

  .hero,
  .hero.page-hero {
    min-height: 460px;
  }

  .split,
  .split.reverse,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .feature-image {
    order: 2;
  }

  .cards,
  .compact-cards,
  .specialisms {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .topbar {
    display: none;
  }

  .brand-text strong {
    font-size: 0.82rem;
  }

  .brand-logo {
    height: 38px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-text {
    max-width: 138px;
  }

  .site-controls {
    gap: 6px;
  }

  .language-toggle {
    padding: 4px;
  }

  .language-toggle button {
    min-width: 32px;
    min-height: 32px;
    padding: 5px 8px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-content {
    padding: 68px 0 58px;
  }

  .section {
    padding: 56px 0;
  }

  .card,
  .contact-panel,
  .form-panel {
    padding: 22px;
  }
}
