/*
   FONTS
   HT Baybars is a licensed display face — point
   these two @font-face blocks at wherever the client's
   font files actually live (e.g. /assets/fonts…). Adjust the
   filenames below to match what's on disk; everything
   else in the page already references the family name.
*/
@font-face {
  font-family: "HT Baybars";
  src: url("../fonts/HT Baybars.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HT Baybars";
  src: url("../fontsHT Baybars.woff2") format("woff2");
  font-weight: 900 !important;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #1e1b19;
  font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/*
   clip, not hidden — hidden turns <body> into a scroll container
   and quietly kills position:sticky/fixed on the header
*/
@supports (overflow-x: clip) {
  body {
    overflow-x: clip;
  }
}

/* LAYOUT SHELL */
:root {
  --pad: 6.25%;
  --gutter: var(--pad);
  --paper: #ffffff;
  --ink: #1e1b19;
  --charcoal: #141210;
  --clay: #d8b4a6;
  --terracotta: #c08b6e;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 1023px) {
  :root {
    --pad: 28px;
  }
}
@media (max-width: 520px) {
  :root {
    --pad: 20px;
  }
}

.shell {
  padding-inline: var(--pad);
}

.split {
  display: grid;
  align-items: center;
  gap: 34px;
}
.split:not(.shell) > .copy {
  padding-inline: var(--pad);
}
.split > figure {
  order: -1;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 6%;
  }
  .split:not(.shell) > .copy {
    padding-inline: 0;
  }
  .split > figure {
    order: 0;
  }
  .bleed-end {
    padding-inline-start: var(--pad);
    padding-inline-end: 0;
  }
  .bleed-start {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    padding-inline-start: 0;
    padding-inline-end: var(--pad);
  }
  .bleed-end .copy {
    transform: translateX(-40px);
    max-width: 520px;
  }
  .bleed-end .prose p {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 300;
  }
}

/*
   2. HEADER / NAV — same as the main landing page:
   fixed, transparent at the very top (white logo +
   white links over the hero), solid white with the
   black logo as soon as the page scrolls or the
   mobile menu opens.
*/
.logo {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  letter-spacing: 0.34em;
}

#nav.is-solid {
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(30, 27, 25, 0.08);
}
#nav.is-solid a,
#nav.is-solid button {
  color: #1e1b19;
}
#nav.is-solid a[href="#contact"] {
  border-color: rgba(30, 27, 25, 0.28);
}
#nav.is-solid a[href="#contact"]:hover {
  background: #1e1b19;
  color: #fff;
}

nav a {
  font-size: 18px;
}

/* burger button */
#menuToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 60;
}
.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.25s ease;
}
#menuToggle.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menuToggle.is-open .burger-line:nth-child(2) {
  opacity: 0;
}
#menuToggle.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 767px) {
  #menuToggle {
    display: flex;
  }
}

/* mobile menu panel */
.mobile-menu {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 45;
  background: #fff;
  padding: 88px var(--pad) 32px;
  transform: translateY(-105%);
  transition: transform 0.5s var(--ease-out);
  box-shadow: 0 24px 48px rgba(30, 27, 25, 0.16);
}
.mobile-menu.is-open {
  transform: translateY(0);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu nav a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  color: #1e1b19;
  border-bottom: 1px solid rgba(30, 27, 25, 0.08);
}
.mobile-menu .mm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.mobile-menu .mm-actions a,
.mobile-menu .mm-actions button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 20px;
  font-size: 15px;
}
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

/*
   hero copy: padding keeps the title clear
   of the fixed header and the screen edge
*/
.hero-content {
  padding-top: 96px;
  padding-bottom: 24px;
}

.hero-content p {
  margin-bottom: 8px;
}

.hero-content h1 {
  margin-top: 0 !important;
}

/* brand mark (footer text fallback / anywhere logo is plain text) */
.logo-mark {
  font-family: "Readex Pro", sans-serif;
  font-weight: 300;
  letter-spacing: 0.34em;
}

/* headline mask reveal */
.line-mask {
  overflow: hidden;
  display: block;
}
.line-mask > span {
  display: block;
  will-change: transform;
}

/* section heading + composed intro block */
.sec-title {
  font-family: "HT Baybars", sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1.2;
  color: #1e1b19;
}

/*
   the "title above, paragraph pushed inward" composition:
   a hairline + gap carries the eye from title to copy instead
   of the paragraph sitting flush underneath it
*/
.section-head {
  margin-bottom: 34px;
}
.prose-indent {
  border: none;
}
@media (min-width: 640px) {
  .prose-indent {
    padding-right: 5vw;
    /* padding-inline-start: 46px; */
  }
}

.prose p {
  font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  font-size: 20px;
  line-height: 2.15;
  color: #000;
}
.prose p + p {
  margin-top: 24px;
}
.prose strong {
  color: #1e1b19;
  font-weight: 700;
}
.copy.prose p {
  color: #000 !important;
}
.copy.prose strong {
  color: #141210 !important;
  font-weight: 700;
}

/* quick-contact rail, pinned to the screen edge */
.rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 24px rgba(30, 27, 25, 0.14);
  overflow: hidden;
}
.rail a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 50px;
  color: #6b6a68;
  transition:
    color 0.35s ease,
    background-color 0.35s ease;
}
.rail a + a {
  border-top: 1px solid rgba(30, 27, 25, 0.1);
}
.rail a:hover {
  color: #1e1b19;
  background: #f5f3f1;
}
@media (max-width: 640px) {
  .rail {
    /* display: none; */
  }
}

/* marquee (same structure as the landing page) */
.marquee {
  display: flex;
  width: max-content;
  gap: 148px;
  will-change: transform;
}

.marquee-set {
  display: flex;
  flex: none;
  gap: 148px;
}

.logo-item {
  width: 180px;
  /* height: 90px; */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.logo-item img {
  width: 100%;
  /* max-height: 70px; */
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .marquee,
  .marquee-set {
    gap: 36px;
  }
  .logo-item {
    width: 130px;
    height: 70px;
  }
  .logo-item img {
    max-height: 52px;
  }
}

.bg-sand .split {
  align-items: start;
}
.bg-sand .copy {
  padding-top: 30px;
}

.mission-section {
  /* pad: 30px; */
  /* padding-left: ; */
}
.mission-section .copy {
  transform: translateY(-90px);
  padding-top: 40px;
}

/* misc */
.link-underline {
  position: relative;
}
.link-underline::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

.reveal {
  opacity: 0;
}

:focus-visible {
  outline: 2px solid #1e1b19;
  outline-offset: 3px;
}

/* 10. FOOTER (same structure/design as the main landing page) */
.site-footer {
  background: #7d7a76;
  padding: 70px var(--pad) 24px;
  color: #111;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.footer-logo {
  text-align: right;
  justify-self: end;
}

.footer-logo img {
  width: 160px;
  height: auto;
  display: block;
  margin-right: 0;
  margin-left: auto;
  transform: translateX(150px);
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}
.footer-menu a {
  font-family: "Readex Pro", sans-serif;
  color: #111;
  font-size: 14px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;

  justify-self: start;
}
.footer-contact a {
  font-family: "Readex Pro", sans-serif;
  color: #111;
  font-size: 14px;
}
.footer-newsletter {
  text-align: right;
}
.newsletter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.newsletter-row input {
  font-family: "Readex Pro", sans-serif;
  background: none;
  border: none;
  width: 100%;
  outline: none;
  color: #111;
}
.newsletter-row input::placeholder {
  color: rgba(17, 17, 17, 0.6);
}
.newsletter-row button {
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
  font-size: 18px;
  line-height: 1;
}
.footer-newsletter p {
  font-family: "Readex Pro", sans-serif;
  font-size: 13px;
  line-height: 1.9;
  color: #222;
}
.footer-bottom {
  margin-top: 50px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social {
  display: flex;
  gap: 24px;
}
.footer-social a {
  font-family: "Readex Pro", sans-serif;
  color: #111;
  font-size: 13px;
}
.footer-copy {
  font-family: "Readex Pro", sans-serif;
  font-size: 12px;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-logo {
    grid-column: 1 / -1;
    text-align: center;
    justify-self: stretch;
  }
  .footer-logo img {
    margin-inline: auto;
    transform: none; /* the desktop 150px nudge pushed it off-screen */
  }
  .footer-contact {
    text-align: right;
  }
}
@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-contact {
    text-align: right;
  }
  .site-footer {
    padding-top: 48px;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (min-width: 1024px) {
  .bg-sand figure img {
    clip-path: inset(0 0 100% 0);
    will-change: clip-path;
  }
  /* MISSION PREMIUM REVEAL */

  .mission-section figure {
    overflow: hidden;
  }
  /* Mission animation states */

  .mission-section figure img {
    opacity: 0;
    transform: translateY(-80px) scale(1.05);
    will-change: transform, opacity;
  }

  .mission-section .section-head,
  .mission-section .prose p {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
  }
  .mission-section .prose {
    transform: translateX(-40px);
  }

  .mission-section .copy {
    max-width: 600px;
  }

  .mission-section .prose p {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 300;
  }
  .bg-sand .copy {
    max-width: 550px;
  }

  .bg-sand .prose p {
    font-size: 20px; /* was "20 px" — invalid, so the rule was ignored */
    line-height: 1.8;
    font-weight: 300;
  }
}

/*
   RESPONSIVE FIXES — tablets & phones
   The section titles were pinned at 80px all the way
   down to phones; they now scale with the viewport.
*/
@media (max-width: 1080px) {
  .sec-title {
    font-size: 56px;
  }
}

@media (max-width: 768px) {
  /* SECTION : رؤيتنا */
  .bg-sand {
    padding-bottom: 40px;
  }

  .bg-sand .copy {
    padding-top: 0;
  }

  .bg-sand .split {
    padding-top: 64px;
  }

  .hero-content {
    padding-top: 84px;
  }

  /* SECTION : رسالتنا */
  .mission-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .mission-section .copy {
    transform: translateY(-30px); /* moins haut que -90px */
  }

  .mission-section .prose {
    transform: translateX(0);
  }

  .mission-section figure {
    margin-top: 20px;
    align-self: end; /* pousse la photo vers le bas */
  }

  .mission-section img {
    height: 260px !important;
    object-fit: cover;
  }

  /* titres et paragraphes mobile — 80px ne tient pas sur un phone */
  .sec-title {
    font-size: 40px;
    line-height: 1.25;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .prose p {
    font-size: 15px;
    line-height: 2;
  }

  .prose p + p {
    margin-top: 16px;
  }
}

@media (max-width: 420px) {
  .sec-title {
    font-size: 34px;
  }
}

/* parners */
.partners-header {
  padding-bottom: 48px;
}

@media (min-width: 1920px) {
  .partners-header {
    padding-bottom: 64px !important;
  }
  .bg-partners {
    /* padding-top: 240px !important; */
    padding-bottom: 240px !important;
  }
}
/*
   SMALL DESKTOP SCREENS (laptops ~1081–1729px)
   Same intermediate scale as the landing page, so
   both pages step down together.
*/
@media (max-width: 1729px) and (min-width: 1081px) {
  p {
    font-size: 18px;
  }

  .sec-title,
  h2 {
    font-size: 64px !important;
  }

  .prose p,
  .bleed-end .prose p,
  .mission-section .prose p,
  .bg-sand .prose p {
    font-size: 17px !important;
    line-height: 1.9;
  }

  .statement-text {
    font-size: clamp(18px, 1.8vw, 28px) !important;
    max-width: 980px;
  }

  .bleed-end .copy {
    max-width: 460px;
  }
  .mission-section .copy {
    max-width: 540px;
  }
  .bg-sand .copy {
    max-width: 500px;
  }
  .bm-title {
    font-size: 32px !important;
  }
}
@media (min-width: 768px) {
  .only-phone {
    display: none;
  }
}

/*
   BOOKING MODAL — "مرحبًا بك في إنمار"
   Same component as the landing page, namespaced
   .bm-* so it can never collide with the page.
*/
.bm-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(30, 27, 25, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.bm-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.bm-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  padding: 48px 44px 36px;
  box-shadow: 0 32px 80px rgba(30, 27, 25, 0.35);
  transform: translateY(26px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
  font-family: "Readex Pro", sans-serif;
}
.bm-overlay.is-open .bm-modal {
  transform: translateY(0) scale(1);
}
.bm-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: #1e1b19;
  border-radius: 50%;
  transition: background-color 0.25s ease;
}
.bm-close:hover {
  background: #f5f3f1;
}
.bm-title {
  text-align: center;
  color: #a47865;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 34px;
}
.bm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bm-field {
  margin-bottom: 22px;
}
.bm-field label {
  display: block;
  font-size: 14px;
  color: #1e1b19;
  margin-bottom: 8px;
}
.bm-field label .bm-req {
  color: #a47865;
}
.bm-input {
  width: 100%;
  border: 1px solid #d9d5d2;
  border-radius: 8px;
  background: #fff;
  padding: 13px 16px;
  font-family: "Readex Pro", sans-serif;
  font-size: 15px;
  color: #1e1b19;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.bm-input::placeholder {
  color: #b3aeaa;
}
.bm-input:focus {
  border-color: #a47865;
  box-shadow: 0 0 0 3px rgba(164, 120, 101, 0.12);
}

/* phone: country selector + number */
.bm-phone-row {
  display: flex;
  gap: 12px;
}
.bm-cc {
  position: relative;
  flex: none;
}
.bm-cc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d9d5d2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: "Readex Pro", sans-serif;
  font-size: 14px;
  color: #1e1b19;
  transition: border-color 0.25s ease;
}
.bm-cc-btn:hover,
.bm-cc.is-open .bm-cc-btn {
  border-color: #a47865;
}
.bm-cc-btn img {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(30, 27, 25, 0.08);
}
.bm-cc-chev {
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}
.bm-cc.is-open .bm-cc-chev {
  transform: rotate(180deg);
}
.bm-cc-list {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 230px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e0dd;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(30, 27, 25, 0.18);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}
.bm-cc.is-open .bm-cc-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bm-cc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
}
.bm-cc-list li:hover {
  background: #f5f0ee;
}
.bm-cc-list li img {
  width: 24px;
  height: 17px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(30, 27, 25, 0.08);
}
.bm-cc-list li .bm-dial {
  margin-inline-start: auto;
  color: #6b6a68;
  direction: ltr;
}
.bm-phone-row .bm-input {
  flex: 1;
  min-width: 0;
}

/* radios */
.bm-radios {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.bm-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #1e1b19;
  cursor: pointer;
  width: fit-content;
}
.bm-radio input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #b3aeaa;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.25s ease;
}
.bm-radio input::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e1b19;
  transform: scale(0);
  transition: transform 0.2s var(--ease-out);
}
.bm-radio input:checked {
  border-color: #1e1b19;
}
.bm-radio input:checked::after {
  transform: scale(1);
}

.bm-terms {
  margin: 26px 0 22px;
  font-size: 14px;
  color: #1e1b19;
  line-height: 1.9;
}
.bm-terms a {
  font-weight: 700;
  color: #1e1b19;
}
.bm-terms a:hover {
  color: #a47865;
}

.bm-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 8px;
  font-family: "Readex Pro", sans-serif;
  font-size: 16px;
  cursor: pointer;
  background: #1e1b19;
  color: #fff;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.bm-submit:hover {
  background: #a47865;
}
.bm-submit:disabled {
  background: #e7e4e2;
  color: #b3aeaa;
  cursor: not-allowed;
}

.bm-login {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #1e1b19;
}
.bm-login a {
  font-weight: 700;
  color: #1e1b19;
}
.bm-login a:hover {
  color: #a47865;
}

.bm-msg {
  display: none;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #a47865;
}
.bm-msg.is-visible {
  display: block;
}

body.bm-locked {
  overflow: hidden;
}

@media (max-width: 560px) {
  .bm-modal {
    padding: 44px 22px 28px;
    border-radius: 12px;
  }
  .bm-title {
    font-size: 24px;
    margin-bottom: 26px;
  }
  .bm-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
