:root {
  --navy-900: #031a4a;
  --navy-800: #04225a;
  --navy-700: #0a2a66;
  --brand: #002f74;
  --blue-500: #1f5fbf;
  --blue-300: #6fa8ff;
  --ink: #0b1f4f;
  --text: #33405e;
  --muted: #5b6784;
  --line: #e3e8f2;
  --footer-navy: #00225f;
  --panel: #eef5fc;
  --icon-bg: #e4eefb;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(10, 42, 102, 0.06);
  --container: 1440px;
  --font-head: "Montserrat", "Cairo", system-ui, sans-serif;
  --font-body: "DM Sans", "Cairo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

html[lang="ar"] body {
  --font-head: "Cairo", system-ui, sans-serif;
  --font-body: "Cairo", system-ui, sans-serif;
}

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

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

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: #9cc3ff;
}

main:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
}

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

html[dir="rtl"] .skip-link {
  left: auto;
  right: 16px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 2.5vw, 40px);
}

.container-wide {
  max-width: 1520px;
  padding: 0 clamp(20px, 1.25vw, 20px);
}

.icon-svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn .icon-svg {
  font-size: 18px;
}

.btn-primary {
  background: var(--navy-800);
  color: var(--white);
  padding: 11px 18px;
}

.btn-primary:hover {
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(4, 34, 90, 0.25);
}

.btn-light {
  background: var(--white);
  color: var(--navy-800);
  padding: 11px 22px;
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(10, 42, 102, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.brand-mark {
  width: 118px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--brand);
}

.brand-en {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: -0.1px;
  text-transform: uppercase;
}

.brand-ar {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  direction: rtl;
  text-align: right;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(28px, 2.75vw, 44px);
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0;
  height: 2px;
  background: var(--navy-800);
  transform: scaleX(0);
  transition: transform 0.25s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  min-height: 44px;
  padding: 6px 4px;
  cursor: pointer;
  font: 600 14px var(--font-body);
  color: var(--ink);
}

.lang-toggle .icon-svg {
  font-size: 19px;
  color: var(--brand);
}

.header-divider {
  width: 1px;
  height: 30px;
  background: #c9d1e0;
}

.header-cta {
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

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

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

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-900);
  min-height: clamp(220px, 16.8vw, 330px);
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/page-banner.jpg");
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(4, 30, 84, 0.97) 0%,
    rgba(5, 34, 92, 0.92) 26%,
    rgba(8, 40, 102, 0.62) 40%,
    rgba(8, 40, 102, 0.18) 52%,
    rgba(8, 40, 102, 0) 62%
  );
}

html[dir="rtl"] .hero::before,
html[dir="rtl"] .hero-swoosh,
html[dir="rtl"] .hero::after {
  transform: scaleX(-1);
}

.hero-swoosh {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
  padding: 36px 0;
}

.hero h1 {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(38px, 4.9vw, 78px);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.hero p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(17px, 1.85vw, 29px);
  line-height: 1.3;
}

.hero-home {
  min-height: clamp(300px, 23.5vw, 376px);
}

.hero-home::after {
  background-image: url("../images/home-banner.jpg");
  background-position: center;
}

.hero-home .hero-content {
  max-width: 640px;
}

.hero-home h1 {
  font-size: clamp(34px, 3.5vw, 56px);
}

.hero-home h1 span {
  display: block;
}

.hero-home p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.45;
  max-width: 480px;
}

.hero-home .hero-actions .btn {
  border-radius: 8px;
  padding: 11px 20px;
}

.expertise {
  text-align: center;
}

.expertise .eyebrow {
  justify-content: center;
  margin-bottom: 8px;
}

.expertise .section-title {
  margin-bottom: 6px;
  font-size: clamp(28px, 2.1vw, 34px);
}

.expertise .lead {
  margin: 0 auto;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.4;
}

.home-grid-wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 36px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
  text-align: start;
}

.home-card {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 8px;
  background: var(--white);
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 35, 75, 0.06);
}

.home-card-media {
  position: relative;
  height: 100%;
  min-height: 176px;
  border-radius: 8px;
  overflow: hidden;
}

.home-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.home-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 4px 6px 2px 0;
}

html[dir="rtl"] .home-card-body {
  align-items: flex-start;
  padding: 4px 0 2px 6px;
}

.home-card .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.home-card .icon-tile img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.home-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 8px 0 4px;
  letter-spacing: -0.2px;
}

.home-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

.home-card-more {
  display: inline-flex;
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink);
}

.home-card-more:hover {
  color: var(--blue-500);
}

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

.btn-outline-light {
  color: var(--white);
  padding: 10px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Sections */
.section {
  padding: clamp(20px, 1.5vw, 24px) 0;
}

.section.expertise {
  padding-top: 14px;
  padding-bottom: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue-500);
  margin: 0 0 10px;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1.5px;
  background: var(--blue-500);
}

.section-title {
  font-weight: 800;
  font-size: clamp(30px, 2.6vw, 42px);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(17px, 1.35vw, 21px);
  color: var(--text);
  line-height: 1.45;
  margin: 0;
  max-width: 600px;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--icon-bg);
  flex-shrink: 0;
}

.icon-tile img {
  width: 26px;
  height: 26px;
}

/* Who We Are */
.who {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.who-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 132;
  min-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.values-head {
  padding-left: clamp(0px, 3.75vw, 60px);
  margin: 6px 0 12px;
}

html[dir="rtl"] .values-head {
  padding-left: 0;
  padding-right: clamp(0px, 3.75vw, 60px);
}

/* Media cards (values and services) */
.card-grid {
  display: grid;
  gap: 16px;
}

.values-grid {
  grid-template-columns: repeat(4, 1fr);
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
}

.media-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(10, 42, 102, 0.12);
}

.media-card-body {
  padding: 6px 0 6px 4px;
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .media-card-body {
  padding: 6px 4px 6px 0;
}

.media-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  margin: 12px 0 6px;
  letter-spacing: -0.2px;
}

.media-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.38;
  color: var(--text);
}

.media-card-img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 6px;
}

.values-grid .media-card {
  grid-template-columns: 1fr 0.95fr;
}

.services-grid .media-card {
  grid-template-columns: 0.82fr 1fr;
  padding: 10px 10px 10px 12px;
}

.services-grid .media-card-body {
  padding-top: 4px;
}

.services-grid .icon-tile {
  width: 58px;
  height: 58px;
}

.services-grid .icon-tile img {
  width: 36px;
  height: 36px;
}

.values-grid .icon-tile {
  width: 50px;
  height: 50px;
}

.values-grid .icon-tile img {
  width: 30px;
  height: 30px;
}

.services-grid .media-card h3 {
  font-size: 21px;
  margin: 22px 0 14px;
}

.services-grid .media-card p {
  font-size: 15px;
}

.services-grid .media-card-img {
  min-height: 190px;
  aspect-ratio: 264 / 190;
}

/* Home */
.intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.intro-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.intro-media img:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy-800);
}

.link-more:hover {
  color: var(--blue-500);
}

.band-soft {
  background: linear-gradient(180deg, #f6f9fe 0%, #fff 100%);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 36px;
  align-items: stretch;
  max-width: 1400px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 30px 22px;
}

.form-card h2 {
  font-weight: 800;
  font-size: clamp(28px, 2.3vw, 38px);
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field label .req {
  color: var(--blue-500);
  margin-left: 4px;
}

html[dir="rtl"] .field label .req {
  margin-left: 0;
  margin-right: 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 14px var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d5dce9;
  border-radius: 5px;
  padding: 10px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #69738a;
}

.field select {
  appearance: none;
  cursor: pointer;
  color: #69738a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f4f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

html[dir="rtl"] .field select {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 40px;
}

.field select.has-value {
  color: var(--ink);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.14);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #d64545;
}

.field-error {
  font-size: 12.5px;
  color: #c43a3a;
}

.field-error:empty {
  display: none;
}

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

.form-actions .btn {
  padding: 14px 34px;
  font-size: 16px;
  border-radius: 5px;
}

.form-status {
  margin: 0;
  font-size: 14px;
  color: #1c7a44;
}

.info-card {
  background: linear-gradient(160deg, #f3f8fe 0%, var(--panel) 100%);
  border-radius: var(--radius);
  padding: 22px 26px 12px;
  box-shadow: var(--shadow);
}

.info-card h2 {
  font-weight: 800;
  font-size: clamp(28px, 2.3vw, 38px);
  margin-bottom: 10px;
}

.info-card > p {
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--text);
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px 0;
  border-top: 1px solid #d9e3f1;
}

.info-list li:first-child {
  border-top: 0;
}

.info-list .icon-tile {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: #dce9f9;
  color: var(--navy-800);
  font-size: 28px;
}

.info-list .icon-tile .icon-svg {
  font-size: 28px;
}

.info-list .info-mail .icon-svg {
  color: var(--blue-500);
}

.info-list strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.info-list a,
.info-list span {
  font-size: 19px;
  color: var(--ink);
}

.info-list a:hover {
  color: var(--blue-500);
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-navy);
  color: var(--white);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 1197 / 400;
  background: url("../images/footer-art.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  pointer-events: none;
}

html[dir="rtl"] .site-footer::before {
  right: auto;
  left: 0;
  -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 18%);
  mask-image: linear-gradient(270deg, transparent 0, #000 18%);
}

.site-footer .footer-inner {
  position: relative;
  z-index: 1;
}

.site-footer-home .footer-inner {
  min-height: 92px;
}

.site-footer-alt .footer-inner {
  min-height: 88px;
  gap: 34px;
}

.site-footer-alt .footer-mark {
  width: 124px;
}

.site-footer-alt .brand-en {
  font-size: 13px;
}

.site-footer-alt .brand-ar {
  font-size: 18px;
}

.site-footer-alt .footer-nav ul {
  gap: clamp(24px, 2.8vw, 46px);
  margin-left: clamp(10px, 2.5vw, 40px);
}

.site-footer-alt .footer-nav a {
  font-size: 16.5px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 80px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 2px 20px 14px;
  text-align: left;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.42);
}

.footer-credit {
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-mark {
  width: 132px;
  flex-shrink: 0;
}

.footer-sep {
  width: 1px;
  align-self: stretch;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.footer-cta-text {
  flex: 1;
}

.footer-cta-text h2 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 30px);
  letter-spacing: -0.3px;
}

.footer-cta-text p {
  margin: 2px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.footer-url {
  font-size: 15px;
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

html[dir="rtl"] .footer-url {
  padding-left: 0;
  border-left: 0;
  padding-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.footer-brand-text .brand-en {
  font-size: 11.5px;
}

.footer-brand-text .brand-ar {
  font-size: 15px;
  text-align: left;
}

html[dir="rtl"] .footer-brand-text .brand-ar {
  text-align: right;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  margin: 0 0 0 clamp(10px, 2vw, 34px);
  padding: 0;
}

html[dir="rtl"] .footer-nav ul {
  margin: 0 clamp(10px, 2vw, 34px) 0 0;
}

.footer-nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0;
  height: 1.5px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 0.25s;
}

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

/* Responsive */
@media (max-width: 1280px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .media-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .brand-mark {
    width: 96px;
  }
}

@media (max-width: 960px) {
  .home-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
  }

  .home-card {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .home-card-media {
    min-height: 156px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(10, 42, 102, 0.12);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-open .main-nav {
    max-height: 320px;
    visibility: visible;
    transition: max-height 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px clamp(20px, 3.5vw, 56px) 16px;
  }

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

  .main-nav a::after {
    display: none;
  }

  .main-nav a.active {
    color: var(--blue-500);
    font-weight: 700;
  }

  .header-actions {
    margin-left: auto;
  }

  html[dir="rtl"] .header-actions {
    margin-left: 0;
    margin-right: auto;
  }

  .who,
  .intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values-head,
  html[dir="rtl"] .values-head {
    padding: 0;
  }

  .footer-inner {
    flex-wrap: wrap;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .footer-cta-text {
    flex-basis: 60%;
  }

  .site-footer::before {
    height: 150px;
    top: auto;
    bottom: 0;
    opacity: 0.55;
  }

  .intro-media {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .intro-media img:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(4, 30, 84, 0.95) 0%,
      rgba(5, 34, 92, 0.8) 55%,
      rgba(8, 40, 102, 0.35) 100%
    );
  }
}

@media (max-width: 720px) {
  .header-cta,
  .header-divider {
    display: none;
  }

  .brand-text {
    display: none;
  }

  .values-grid,
  .services-grid,
  .form-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .media-card,
  .values-grid .media-card,
  .services-grid .media-card,
  .services-grid .media-card:last-child:nth-child(odd) {
    grid-template-columns: 1fr 1fr;
    grid-column: auto;
  }

  .intro-media {
    grid-template-columns: 1fr 1fr;
  }

  .intro-media img:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 7;
  }

  .footer-sep {
    display: none;
  }

  .site-footer::before {
    height: 110px;
    opacity: 0.4;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav ul,
  html[dir="rtl"] .footer-nav ul {
    margin: 0;
    flex-wrap: wrap;
  }

  .footer-url,
  html[dir="rtl"] .footer-url {
    padding: 0;
    border: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .media-card,
  .values-grid .media-card,
  .services-grid .media-card,
  .services-grid .media-card:last-child:nth-child(odd) {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 148px;
  }

  .home-grid-wrap {
    padding: 0 16px;
  }

  .home-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .home-card-media {
    min-height: 112px;
  }

  .media-card-img {
    aspect-ratio: 16 / 9;
    min-height: 0;
    order: -1;
  }

  .form-card,
  .info-card {
    padding: 20px;
  }

  .info-list li {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
