/* ============================================
   AL MUNTAQA — Editorial Luxury Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300..700&family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..900,30..100,0..1;1,9..144,300..900,30..100,0..1&family=Noto+Kufi+Arabic:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  /* Palette */
  --cream: #F2EDE4;
  --cream-deep: #EAE3D6;
  --paper: #FAF7F1;
  --ink: #1A1714;
  --ink-soft: #4A413A;
  --ink-muted: #8C7F71;
  --rule: #D9CFC0;
  --oxblood: #7A2E1F;
  --oxblood-deep: #5C2117;
  --gold: #B8935A;

  /* Type scale */
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --arabic-display: 'Noto Naskh Arabic', serif;
  --arabic-body: 'Noto Kufi Arabic', Tahoma, sans-serif;

  /* Rhythm */
  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --max-w: 1320px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.09, 0 0 0 0 0.07, 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

::selection { background: var(--oxblood); color: var(--cream); }

/* ============================================
   Typography
   ============================================ */

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 50, 'WONK' 0, 'opsz' 144;
}

.display-xl {
  font-size: clamp(3rem, 8.5vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.display-l {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.display-m {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
}

em {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  color: var(--oxblood);
}

p { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); max-width: 60ch; }

/* ============================================
   Layout primitives
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
  z-index: 2;
}

section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }

.rule {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

/* The asterism mark — recurring motif */
.mark {
  display: inline-block;
  font-family: var(--display);
  font-style: normal;
  color: var(--oxblood);
  user-select: none;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 237, 228, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.brand .mark { font-size: 1rem; transition: transform 0.6s var(--ease); }
.brand:hover .mark { transform: rotate(60deg); }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.nav-links a { position: relative; padding: 0.25rem 0; color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--cream); }

.language-switcher {
  position: relative;
  z-index: 102;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(250, 247, 241, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.language-toggle:hover,
.language-switcher.open .language-toggle {
  border-color: var(--ink);
  background: var(--paper);
}
.language-caret {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.3s var(--ease);
}
.language-switcher.open .language-caret {
  transform: rotate(225deg) translateY(-1px);
}
.language-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  min-width: 150px;
  padding: 0.35rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(26, 23, 20, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.language-switcher.open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.language-menu a {
  display: block;
  padding: 0.58rem 0.7rem;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.3;
}
.language-menu a:hover,
.language-menu a:focus-visible,
.language-menu a.active {
  background: var(--cream-deep);
  color: var(--oxblood);
}
.language-menu a[dir="ltr"] {
  text-align: left;
}

.menu-toggle { display: none; }

/* ============================================
   Hero
   ============================================ */

.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.45fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 70vh;
}

.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.24s; }
.hero h1 .line:nth-child(4) span { animation-delay: 0.36s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero .eyebrow {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) 0.5s forwards;
}

.hero-sub {
  margin-top: 2rem;
  max-width: 38ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) 0.7s forwards;
}

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

.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.hero-mark .mark-big {
  font-family: var(--display);
  font-size: clamp(8rem, 22vw, 18rem);
  color: var(--oxblood);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  line-height: 1;
  opacity: 0;
  animation: fadeIn 1.4s var(--ease) 0.4s forwards, slowSpin 60s linear 1.4s infinite;
  transform-origin: center;
}
@keyframes slowSpin {
  from { transform: rotate(0deg); opacity: 1; }
  to { transform: rotate(360deg); opacity: 1; }
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) 0.9s forwards;
}
.hero-meta .meta-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
.hero-meta .meta-item .value {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
}

/* ============================================
   Section: Mission
   ============================================ */

.section-mission {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.mission-grid .label-col .eyebrow { margin-bottom: 1rem; }
.mission-grid .label-col .small-mark {
  font-size: 1.5rem;
  color: var(--oxblood);
  margin-top: 2rem;
  display: block;
}

.mission-grid h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.mission-grid h2 em { color: var(--oxblood); }

.mission-grid .body p { margin-bottom: 1.25rem; }
.mission-grid .body p:last-child { margin-bottom: 0; }

/* ============================================
   Section: Services
   ============================================ */

.section-services .section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
}
.section-head .head-meta { text-align: right; }

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: background 0.5s var(--ease);
}
.service-card:hover { background: var(--cream-deep); }

.service-card .index {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-muted);
  padding: 1.5rem 0 0 0;
  letter-spacing: 0.05em;
}
.service-card .body { padding: 2.5rem 0 3rem; }
.service-card h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.service-card p { max-width: 52ch; margin-bottom: 1.5rem; }
.service-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--oxblood);
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 0.2rem;
  transition: gap 0.4s var(--ease);
}
.service-card .arrow-link:hover { gap: 1rem; }

.service-placeholder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0;
  color: var(--ink-muted);
}
.service-placeholder .index { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.05em; }
.service-placeholder .body em { color: var(--ink-muted); font-style: italic; }

/* ============================================
   Section: News
   ============================================ */

.section-news { background: var(--paper); border-top: 1px solid var(--rule); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 5vw, 4rem);
}

.news-item {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.5s var(--ease);
}
.news-item:hover { transform: translateY(-4px); }
.news-item .date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.news-item h3 {
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.news-item p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.news-item .read-more {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--oxblood);
  align-self: flex-start;
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 0.15rem;
}

/* ============================================
   Section: CTA / Investment
   ============================================ */

.section-cta {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '❋';
  position: absolute;
  font-family: var(--display);
  font-size: 50vw;
  color: rgba(184, 147, 90, 0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}
.section-cta .container { position: relative; }
.section-cta .eyebrow { color: var(--gold); margin-bottom: 1.5rem; }
.section-cta h2 {
  color: var(--cream);
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1;
}
.section-cta h2 em { color: var(--gold); }
.section-cta p {
  color: var(--cream);
  opacity: 0.75;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
}
.btn-primary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-primary:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* ============================================
   Footer
   ============================================ */

footer {
  background: var(--cream);
  padding: clamp(4rem, 6vw, 6rem) 0 2.5rem;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}
.footer-grid h4 {
  font-family: var(--body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.footer-brand .brand-large {
  font-family: var(--display);
  font-size: 2.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand .brand-large .mark { font-size: 1.75rem; }
.footer-brand p { font-size: 0.95rem; max-width: 32ch; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-grid ul li a:hover { color: var(--oxblood); }
.footer-grid address { font-style: normal; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

/* ============================================
   Reveal animations on scroll
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Inner-page hero (sub pages)
   ============================================ */

.page-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.page-hero .lead { margin-top: 2rem; }

/* Article body for service pages */
.prose {
  max-width: 65ch;
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}
.prose h3 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.prose p { margin-bottom: 1.4rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.prose ul li { margin-bottom: 0.5rem; }
.prose ul li::marker { color: var(--oxblood); }

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  margin: 2rem 0;
}
.feature-list li {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-size: 0.98rem;
}
.feature-list li strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

/* News listing page */
.news-list {
  max-width: 880px;
  margin: 0 auto;
}
.news-list-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.news-list-item:last-child { border-bottom: 1px solid var(--rule); }
.news-list-item .date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  padding-top: 0.4rem;
}
.news-list-item h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.news-list-item p { margin-bottom: 1rem; max-width: 60ch; }

/* ============================================
   Arabic / RTL
   ============================================ */

[dir="rtl"] {
  --display: var(--arabic-display);
  --body: var(--arabic-body);
  text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .brand,
[dir="rtl"] .brand-name,
[dir="rtl"] .eyebrow,
[dir="rtl"] .nav-links,
[dir="rtl"] .nav-cta,
[dir="rtl"] .language-toggle,
[dir="rtl"] .btn-primary,
[dir="rtl"] .footer-grid h4,
[dir="rtl"] .hero-meta .meta-item .label,
[dir="rtl"] .news-item .date,
[dir="rtl"] .news-list-item .date {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] p,
[dir="rtl"] .lead,
[dir="rtl"] address,
[dir="rtl"] li {
  line-height: 1.85;
}

[dir="rtl"] .nav-links a::after {
  transform-origin: right;
}

[dir="rtl"] .hero h1 {
  line-height: 1.1;
}

[dir="rtl"] .hero-photo-card {
  justify-self: start;
}

[dir="rtl"] .section-head .head-meta {
  text-align: left;
}

[dir="rtl"] .service-media {
  padding: 1.6rem 0 1.8rem 2rem;
}

[dir="rtl"] .prose ul {
  padding-left: 0;
  padding-right: 1.5rem;
}

[dir="rtl"] .image-triptych figcaption,
[dir="rtl"] .split-photo-row figcaption {
  left: auto;
  right: 1rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1060px) {
  .nav-links {
    gap: 1.2rem;
  }
  .nav-cta {
    display: none;
  }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .language-switcher { margin-inline-start: auto; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .menu-toggle span {
    width: 26px; height: 1.5px; background: var(--ink);
    transition: transform 0.4s var(--ease);
  }
  .nav-mobile {
    position: fixed;
    inset: 0;
    background: var(--cream);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 99;
    font-family: var(--display);
    font-size: 2rem;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { color: var(--ink); }
  .nav-mobile .mobile-language {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    font-family: var(--body);
    font-size: 0.95rem;
  }
  .nav-mobile .mobile-language a {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .nav-mobile .mobile-language a.active {
    border-color: var(--oxblood);
    color: var(--oxblood);
  }

  .hero-grid { grid-template-columns: 1fr; gap: 3rem; min-height: auto; }
  .hero-mark { display: none; }
  [dir="rtl"] .hero-photo-card { justify-self: stretch; }
  [dir="rtl"] .service-media { padding: 1.2rem 0 0; }

  .mission-grid { grid-template-columns: 1fr; }
  .section-services .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .head-meta { text-align: left; }

  .service-card { grid-template-columns: 1fr; }
  .service-card .index { padding-bottom: 0.5rem; }
  .service-card .body { padding-top: 0; }

  .news-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 0.75rem; text-align: center; }

  .feature-list { grid-template-columns: 1fr; }

  .news-list-item { grid-template-columns: 1fr; gap: 0.6rem; }

  .hero-meta { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero h1 .line span { transform: none; }
  .hero-mark .mark-big { animation: none; }
}

/* ============================================
   User-supplied logos + photo integration
   Keeps the Claude/editorial format but adds imagery safely.
   ============================================ */

.brand-logo-link {
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}
.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.footer-logo {
  width: 118px;
  height: auto;
  object-fit: contain;
  display: block;
}
.footer-brand .brand-large {
  align-items: center;
  margin-bottom: 1.2rem;
}
.section-logo-mark {
  width: 92px;
  height: auto;
  margin-top: 2rem;
  opacity: 0.92;
}
.hero-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(26, 23, 20, 0.12);
  aspect-ratio: 4 / 5;
  margin: 0;
}
.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(26, 23, 20, 0.54));
}
.hero-photo-card figcaption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  color: var(--cream);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  line-height: 1.45;
}
.image-triptych {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.image-triptych figure,
.split-photo-row figure,
.wide-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.image-triptych img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.image-triptych figure:hover img { transform: scale(1.035); }
.image-triptych figcaption,
.split-photo-row figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(250, 247, 241, 0.88);
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-media {
  padding: 1.6rem 2rem 1.8rem 0;
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.service-media span {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.service-logo {
  max-width: 190px;
  max-height: 92px;
  object-fit: contain;
  background: var(--paper);
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--rule);
}
.service-photo {
  width: 100%;
  max-width: 380px;
  height: 190px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--rule);
}
.media-placeholder {
  align-items: start;
}
.news-thumb {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--rule);
  margin-bottom: 0.4rem;
}
.page-logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin: 0 0 1.8rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 0.75rem;
}
.visual-intro {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: 0;
}
.wide-photo {
  height: clamp(260px, 38vw, 460px);
}
.wide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.split-photo-row img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.news-list-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--rule);
  margin-bottom: 1.2rem;
}
.section-cta {
  background-image:
    linear-gradient(rgba(26, 23, 20, 0.88), rgba(26, 23, 20, 0.9)),
    url('assets/photos/office.webp');
  background-size: cover;
  background-position: center;
}

@media (max-width: 880px) {
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 1.08rem; }
  .image-triptych,
  .split-photo-row { grid-template-columns: 1fr; }
  .image-triptych img,
  .split-photo-row img { height: 240px; }
  .hero-photo-card { aspect-ratio: 16 / 10; }
  .service-media { padding: 1.2rem 0 0; }
  .service-photo { max-width: none; }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .brand-logo { width: 50px; height: 50px; }
  .nav-inner { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .language-toggle {
    padding: 0.5rem 0.72rem;
    font-size: 0.78rem;
  }
  .footer-logo { width: 102px; }
  .hero-photo-card figcaption { font-size: 0.78rem; }
  .news-thumb { height: 190px; }
}

/* Hide mobile menu by default on desktop; mobile breakpoint controls the open state. */
.nav-mobile { display: none; }

/* ============================================
   Size and layout corrections (v2)
   - smaller brand/logo scale
   - better image proportions
   - force mobile menu hidden unless opened
   ============================================ */

.nav-inner {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand-logo-link {
  flex: 0 0 auto;
  gap: 0.65rem;
}
.brand-logo {
  width: 42px !important;
  height: 42px !important;
}
.brand-name {
  font-size: 1.05rem;
  line-height: 1;
}
.footer-logo {
  width: 88px !important;
}
.page-logo,
.alyaqeen-page-logo {
  width: min(180px, 42vw) !important;
  padding: 0.45rem !important;
  margin: 0 0 1.2rem !important;
  border-radius: 14px !important;
}
.hero-photo-card {
  max-width: 410px;
  justify-self: end;
  aspect-ratio: 4 / 4.8;
}
.hero-photo-card img {
  object-position: center;
}
.image-triptych {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.image-triptych img {
  height: 220px;
}
.wide-photo {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  height: clamp(220px, 28vw, 360px);
}
.wide-photo img {
  object-position: center;
}
.split-photo-row {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.split-photo-row img {
  height: 180px;
}
.service-photo {
  max-width: 320px;
  height: 160px;
}
.news-thumb,
.news-list-thumb {
  height: 180px;
}
.nav-mobile,
.nav-mobile:not(.open) {
  display: none !important;
}
.nav-mobile.open {
  display: flex !important;
}

@media (max-width: 880px) {
  .brand-logo {
    width: 40px !important;
    height: 40px !important;
  }
  .brand-name {
    font-size: 1rem;
  }
  .hero-photo-card {
    max-width: none;
    justify-self: stretch;
    aspect-ratio: 16 / 10;
  }
  .wide-photo {
    height: 260px;
  }
  .split-photo-row img,
  .image-triptych img,
  .news-thumb,
  .news-list-thumb {
    height: 220px;
  }
  .page-logo,
  .alyaqeen-page-logo {
    width: min(170px, 58vw) !important;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 38px !important;
    height: 38px !important;
  }
  .brand-name {
    display: inline;
    font-size: 0.95rem;
  }
  [dir="rtl"] .brand-name {
    display: inline;
  }
  .wide-photo,
  .split-photo-row img,
  .image-triptych img,
  .news-thumb,
  .news-list-thumb {
    height: 190px;
  }
  .page-logo,
  .alyaqeen-page-logo {
    width: min(150px, 62vw) !important;
  }
}
