/* Alghadeer — static site. Logical CSS only (inline-start/end). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/playfair-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/playfair-latin-600-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-latin-700-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0d1b2e;
  --navy-soft: #0d1b2e;
  --card: #223556;
  --accent: #0466c8;
  --accent-hover: #0353a4;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --white: #ffffff;
  --ink: #0d1b2e;
  --muted: #5c677d;
  --muted-2: #7d8597;
  --on-dark: #ffffff;
  --on-dark-muted: #a8b4c4;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(13, 27, 46, 0.12);
  --radius-card: 1rem;
  --radius-btn: 0.25rem;
  --wrap: 90rem;
  --header-h: 7.5rem;
  --phone-pad: 12px;
  --font-sans: Inter, "Segoe UI", Tahoma, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ar: Cairo, Tahoma, sans-serif;
  --grid-line: rgba(255, 255, 255, 0.03);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input {
  font-family: var(--font-ar);
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .brand-name,
html[lang="ar"] .hero-title,
html[lang="ar"] .section-title,
html[lang="ar"] em,
html[lang="ar"] i {
  font-family: var(--font-ar);
  font-style: normal;
}

html[lang="ar"] em,
html[lang="ar"] i,
.hero-title em,
.hero-title i,
.hero-title span,
.close-cta em,
.close-cta i,
.section-title em {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  background-image: none !important;
  -webkit-text-stroke: 0 !important;
  text-emphasis: none !important;
  -webkit-text-emphasis: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap-bleed {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(0.75rem, 1vw, 1.25rem);
}

@media (max-width: 40rem) {
  .wrap {
    width: min(100% - 2rem, var(--wrap));
  }
}

/* Fading grid lives only on hero/page-hero — never on the navbar */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 18%, black 48%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 18%, black 48%, transparent 100%);
}

.grid-bg {
  position: relative;
  background-color: var(--navy);
}

/* Header: transparent over the hero; frosted after 40px scroll */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  padding-top: env(safe-area-inset-top);
  padding-inline-start: env(safe-area-inset-inline-start, env(safe-area-inset-left));
  padding-inline-end: env(safe-area-inset-inline-end, env(safe-area-inset-right));
  max-width: 100%;
}

.site-header.scrolled {
  background: rgba(13, 27, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.site-header > .wrap.header-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 1 auto;
  min-width: 0;
  z-index: 2;
}

.brand img,
.logo img {
  width: 6.7rem;
  height: 6.7rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--on-dark);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

html[lang="ar"] .brand-name {
  font-family: var(--font-ar);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.45rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--on-dark);
  padding: 0;
  z-index: 3;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  margin-inline: auto;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle.open span {
  background: transparent;
}

.nav-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  z-index: 1;
}

.site-nav a {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-block: 0.5rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--on-dark);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  z-index: 2;
  margin-inline-start: auto;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-btn);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-contact:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* Desktop: true-center About, edge padding for tools */
@media (min-width: 769px) {
  .header-inner {
    padding-inline: 3.5rem;
  }

  .nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex: none;
    margin: 0;
  }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 0.15rem 0.35rem;
  min-height: 2.5rem;
}

.lang-toggle button {
  background: none;
  border: 0;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  min-width: 2.25rem;
  min-height: 2.15rem;
  padding: 0 0.35rem;
}

.lang-toggle button[aria-pressed="true"] {
  color: var(--on-dark);
}

.lang-toggle .sep {
  color: var(--muted-2);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  :root {
    --header-h: 5rem;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--wrap));
  }

  .header-inner {
    gap: 0.5rem;
    padding-inline: max(0.85rem, env(safe-area-inset-inline-start, env(safe-area-inset-left)), env(safe-area-inset-inline-end, env(safe-area-inset-right)));
  }

  .brand {
    gap: 0.45rem;
  }

  .brand img,
  .logo img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .brand-name {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  html[lang="ar"] .brand-name {
    font-size: 0.82rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    order: 3;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
  }

  .header-tools {
    margin-inline-start: auto;
    order: 2;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .lang-toggle {
    gap: 0.15rem;
    padding: 0.1rem 0.2rem;
    min-height: 2.25rem;
  }

  .lang-toggle button {
    min-width: 1.85rem;
    min-height: 1.95rem;
    padding: 0 0.2rem;
    font-size: 0.7rem;
  }

  .nav-contact {
    min-height: 2.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }

  .site-nav,
  .nav-center {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    inset-inline: 0;
    top: 100%;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 27, 46, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem max(var(--phone-pad), 1rem) 1rem;
    z-index: 50;
  }

  .site-nav.open,
  .site-nav.is-open,
  .nav-center.open,
  .nav-center.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 2.75rem;
    padding-inline: 0.25rem;
  }

  .footer-brand img {
    width: 3rem;
    height: 3rem;
  }

  .hero-title,
  .section-title,
  .close-cta h2,
  .page-hero h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 430px) {
  :root {
    --header-h: 4.75rem;
    --phone-pad: 12px;
  }

  .wrap,
  .wrap-bleed {
    width: 100%;
    max-width: 100%;
    padding-inline: max(var(--phone-pad), env(safe-area-inset-inline-start, env(safe-area-inset-left)), env(safe-area-inset-inline-end, env(safe-area-inset-right)));
    box-sizing: border-box;
  }

  .wrap {
    width: 100%;
  }

  .brand-name {
    display: none;
  }

  .brand img,
  .logo img {
    width: 4.25rem;
    height: 4.25rem;
  }

  .nav-contact {
    padding-inline: 0.55rem;
  }

  .card-grid,
  .partners-grid,
  .faq-shell,
  .location-card,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .btn-row {
    width: 100%;
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-solid {
  background: var(--white);
  color: var(--navy);
}

.btn-solid:hover {
  background: #e8eef5;
}

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-blue {
  background: var(--accent);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--accent-hover);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-block: 8.75rem 5.5rem;
  color: var(--on-dark);
  overflow: hidden;
  background-color: var(--navy);
  position: relative;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 46rem;
  background: radial-gradient(ellipse 90% 80% at 50% 38%, #0d1b2e 42%, transparent 74%);
}

.hero-inner h1,
.hero-inner p {
  position: relative;
  z-index: 1;
}

html[lang="ar"] .hero-title,
html[lang="ar"] .hero-sub,
html[lang="ar"] .hero-title em {
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: none;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.hero-title em {
  font-style: italic;
  color: #9eb0c4;
  font-weight: 400;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

html[lang="ar"] .hero-title em {
  font-style: normal;
  color: #9eb0c4;
}

.hero-sub {
  margin: 2rem 0 0;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero .btn-row {
  margin-top: 2.75rem;
}

/* Trust */
.trust {
  background: var(--navy-soft);
  border-block: 1px solid var(--line);
  padding-block: 1.75rem;
  color: var(--on-dark);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-item span {
  color: var(--on-dark-muted);
  font-size: 0.8rem;
}

.todo-note {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8eb8ef;
}

@media (max-width: 40rem) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Paper sections */
.section {
  padding-block: 5rem;
}

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

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

.section-navy {
  background: var(--navy);
  color: var(--on-dark);
}

.section-navy > .wrap,
.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 1px;
  background: currentColor;
}

html[dir="rtl"] .eyebrow::before {
  /* logical: stays before in reading direction via inline-flex */
}

.section-title {
  margin: 0 0 2.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: start;
}

#services .section-title {
  max-width: none;
}

.section-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: #6b7394;
}

.section-navy .section-title em,
.section-navy .eyebrow {
  color: #9bb0c9;
}

/* Work cards — navy on paper, numbered */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.card-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.work-card {
  background: var(--card);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  min-height: 21.25rem;
  display: flex;
  flex-direction: column;
}

.work-card .idx {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.work-card .icon {
  width: 5rem;
  height: 5rem;
  margin-block: 1.75rem 1.6rem;
  color: rgba(255, 255, 255, 0.6);
}

.work-card .icon svg {
  width: 100%;
  height: 100%;
}

.work-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f7f8fa;
}

html[lang="ar"] .work-card h3 {
  font-family: var(--font-ar);
}

.work-card p,
.work-card .card-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.work-card .card-body ul {
  margin: 0;
  padding-inline-start: 1.15rem;
}

.work-card .card-body li + li {
  margin-top: 0.45rem;
}

.prose .about-how ul {
  margin-block: 0.75rem 0;
}

@media (max-width: 52rem) {
  .card-grid,
  .card-grid--two {
    grid-template-columns: 1fr;
  }
}

/* Project / insight cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.media-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  height: 100%;
}

.media-card:hover .ph-block {
  filter: brightness(1.08);
}

.ph-block {
  height: 10.5rem;
  background: var(--navy);
  color: var(--on-dark);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.media-body {
  padding: 1.25rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.media-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-serif);
}

.media-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.media-body p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.more-link {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.section-follow {
  margin-top: 1.75rem;
}

/* FAQ accordion */
.faq-section {
  background: var(--white);
  color: var(--ink);
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-shell .section-title {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0.875rem;
}

.faq-list details {
  border: 1px solid var(--line-dark);
  border-radius: 0.625rem;
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

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

.faq-list summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: #3f476a;
  line-height: 1.7;
}

@media (max-width: 52rem) {
  .faq-shell {
    grid-template-columns: 1fr;
  }
}

.location-band {
  background: var(--white);
  width: 100%;
  padding-block: 0 5rem;
  padding-inline: clamp(0.75rem, 1vw, 1.25rem);
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  width: 100%;
  min-height: 24rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.location-card.contact-card {
  grid-template-columns: 1fr;
  min-height: auto;
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: clamp(1.75rem, 4vw, 3.25rem);
}

.location-copy .eyebrow {
  color: var(--muted);
}

.location-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

html[lang="ar"] .location-copy h2 {
  font-family: var(--font-ar);
}

.location-copy p,
.location-copy a {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.location-copy a:hover {
  color: var(--accent);
}

.location-copy .phone-ltr {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.location-copy strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.2rem;
}

.location-map {
  min-height: 22rem;
  background: #e8eef5;
  border-inline-start: 1px solid var(--line-dark);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(0.95);
}

@media (max-width: 52rem) {
  .location-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 52rem) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 40rem) and (max-width: 52rem) {
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* About teaser */
.teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.teaser-copy p {
  color: var(--muted);
  max-width: 40rem;
}

.teaser-copy .btn {
  margin-top: 0.5rem;
}

.section-navy .teaser-copy p {
  color: var(--on-dark-muted);
}

@media (max-width: 52rem) {
  .teaser {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Page hero (inner pages) */
.page-hero {
  padding-block: 8.5rem 2.75rem;
  color: var(--on-dark);
  background-color: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.not-found::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.page-hero .eyebrow {
  color: #9bb0c9;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 18ch;
}

.page-hero p {
  margin: 0.85rem 0 0;
  color: var(--on-dark-muted);
  max-width: 38rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-block: 2rem 0.6rem;
}

html[lang="ar"] .prose h2,
html[lang="ar"] .page-hero h1 {
  font-family: var(--font-ar);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-inline-start: 1.2rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-block: 1rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.contact-list a,
.contact-list .contact-item,
.contact-list address {
  display: block;
  font-style: normal;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 0.75rem;
}

.contact-list .contact-item a {
  display: block;
  padding: 0;
  margin-top: 0.35rem;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  text-decoration: none;
}

.contact-list .contact-item a:hover {
  color: var(--accent);
}

.contact-list .contact-item a + a {
  margin-top: 0.2rem;
}

.phone-ltr {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.contact-list strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.partner-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 10rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line-dark);
  border-radius: 0.75rem;
  background: var(--white);
  text-align: center;
  pointer-events: none;
  user-select: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .partner-slot {
    pointer-events: auto;
  }

  .partner-slot:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 27, 46, 0.08);
    border-color: rgba(13, 27, 46, 0.18);
  }

  .partner-slot:hover .partner-logo {
    transform: scale(1.04);
  }
}

.partner-logo {
  display: block;
  width: min(100%, 11rem);
  height: 4.25rem;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.partner-slot span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

@media (max-width: 52rem) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .partner-slot {
    min-height: 8.5rem;
    padding: 1.25rem 1rem;
    flex-direction: row;
    justify-content: flex-start;
    text-align: start;
    gap: 1rem;
  }

  .partner-logo {
    width: 5.5rem;
    height: 3.25rem;
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-slot,
  .partner-logo {
    transition: none;
  }

  .partner-slot:hover {
    transform: none;
  }

  .partner-slot:hover .partner-logo {
    transform: none;
  }
}

.close-cta {
  position: relative;
  text-align: center;
  padding-block: 7.5rem;
  padding-inline: 1.5rem;
  color: var(--on-dark);
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 255, 255, 0.04), transparent 70%), #0d1b2e;
}

.close-cta h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 2.25rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 5.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-inline: auto;
}

.close-cta h2 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

html[lang="ar"] .close-cta h2 em {
  font-style: normal;
}

.close-cta .btn {
  position: relative;
  z-index: 1;
}

/* Footer — spacious, same navy as hero */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  border-top: 1px solid var(--line);
  padding-block: 2.75rem;
  color: var(--on-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.footer-brand img {
  width: 6.7rem;
  height: 6.7rem;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

html[lang="ar"] .footer-brand span {
  font-family: var(--font-ar);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.1rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  text-align: center;
  flex: 1 1 12rem;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--on-dark-muted);
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--on-dark);
}

.footer-cta {
  background: var(--accent);
  color: var(--white) !important;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.footer-cta:hover {
  background: var(--accent-hover);
  color: var(--white) !important;
}

.social-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
}

.social-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

@media (max-width: 48rem) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding-block: 0.5rem;
  }

  .footer-links {
    justify-content: center;
  }
}

/* 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--on-dark);
  padding-block: 8.5rem 4rem;
  background-color: var(--navy);
  position: relative;
  overflow: hidden;
}

.not-found .wrap {
  position: relative;
  z-index: 1;
}

.ph-block-lg {
  border-radius: var(--radius-card);
  margin-bottom: 1.5rem;
}

.placeholder-label {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb8ef;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Facebook Messenger FAB */
.fb-fab {
  position: fixed;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #0084ff 0%, #0062e0 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 98, 224, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fb-fab svg {
  width: 1.65rem;
  height: 1.65rem;
  margin: auto;
  fill: currentColor;
}

.fb-fab__tooltip {
  position: absolute;
  inset-inline-start: calc(100% + 0.75rem);
  white-space: nowrap;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(13, 27, 46, 0.22);
}

html[lang="ar"] .fb-fab__tooltip {
  font-family: var(--font-ar);
}

@media (hover: hover) and (pointer: fine) {
  .fb-fab:hover,
  .fb-fab:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 98, 224, 0.48);
  }

  .fb-fab:hover .fb-fab__tooltip,
  .fb-fab:focus-visible .fb-fab__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 40rem) {
  .fb-fab {
    inset-inline-start: 16px;
    bottom: 16px;
    width: 3rem;
    height: 3rem;
  }

  .fb-fab svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .fb-fab__tooltip {
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
    inset-inline-start: calc(100% + 0.5rem);
  }
}
