/* Colours come from the hero photo, plus Egyptian microbus yellow. */
:root {
  --sky: #c9d5da;
  --stucco: #f4f4ec;
  --shutter: #1a5e5a;
  --palm: #173b3a;
  --bus: #f2b92c;
  --white: #fff;
  --gutter: clamp(18px, 5vw, 76px);
  --space: clamp(64px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stucco);
  color: var(--palm);
  font: 350 1rem/1.65 Alexandria, "Segoe UI", sans-serif;
  overflow-x: clip;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.3rem); line-height: 1.15; font-weight: 650; }
h3 { font-size: 1.3rem; line-height: 1.4; font-weight: 600; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.inner { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; z-index: 5; padding: 10px 16px; background: var(--white); }
.skip:focus { top: 8px; }
.preview { padding: 6px var(--gutter); background: var(--palm); color: var(--white); font-size: 0.75rem; text-align: center; }
.button {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  background: var(--bus);
  color: var(--palm);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: #ffd05a; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--bus);
  color: var(--palm);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
}
figure { position: relative; }
figure > .tag { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; }

/* Header and footer */
.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px 30px;
  padding: 18px var(--gutter);
  background: var(--sky);
}
.brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.brand-name { font-size: 1.5rem; font-weight: 800; }
.brand-tag { font-size: 0.72rem; }
.menu { display: flex; gap: 26px; margin-inline-start: auto; }
.menu a, .language { text-decoration: none; font-size: 0.9rem; padding-block: 8px; white-space: nowrap; }
.menu a:hover, .language:hover { text-decoration: underline; }
.language { font-weight: 600; }

.footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 20px 48px;
  align-items: center;
  padding: 44px var(--gutter);
  background: var(--palm);
  color: var(--white);
}
.footer-about { max-width: 58ch; font-size: 0.85rem; }
.footer-contact { display: flex; flex-direction: column; }

/* Hero: the headline sits in the photo's empty sky */
.hero { background: var(--sky); overflow: hidden; }
.hero-words {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 2.6vw, 48px) var(--gutter) 0;
  text-align: center;
}
.hero h1 {
  max-width: 17ch;
  margin: 0 auto 20px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
}
.hero-words p { max-width: 62ch; margin-inline: auto; }
.hero-note { font-weight: 600; }
.hero-photo { display: grid; margin-top: 0; overflow: hidden; }
/* Photos take turns: each fades in over the last while all drift slowly closer */
.hero-slide { grid-area: 1 / 1; opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero-slide.now { opacity: 1; }
.hero-slide { position: relative; }
.hero-slide > .tag { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; }
.hero-slide.whole img { position: relative; object-fit: contain; }
.hero-slide.whole .hero-backdrop { position: absolute; inset: 0; object-fit: cover; filter: blur(22px) brightness(0.92); animation: none; transform: scale(1.15); }
.hero-caption {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: var(--gutter);
  padding: 5px 12px;
  background: var(--palm);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}
.hero-slide img { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.08); } }
.hero-photo img {
  width: 100%;
  height: clamp(320px, 44vw, 760px);
  object-fit: cover;
  object-position: var(--focus);
}
.hero-photo > .tag { inset-block: auto 12px; }

/* Desktop: the headline sits on one smaller line and the photo fills the rest of the first screen */
@media (min-width: 821px) {
  .hero { display: flex; flex-direction: column; height: calc(100svh - var(--above, 128px)); min-height: 460px; }
  .hero-words { padding-top: clamp(14px, 1.6vw, 26px); }
  .hero h1 { max-width: none; margin-bottom: 10px; font-size: clamp(2rem, 3.4vw, 3.4rem); }
  .hero-words p { font-size: 0.95rem; }
  .hero-photo { flex: 1 1 0; min-height: 0; margin-top: 18px; grid-template-rows: minmax(0, 1fr); }
  .hero-slide, .hero-photo img { height: 100%; }
}

/* The road: the one animated element */
.day { padding-bottom: var(--space); }
.road { position: relative; padding-top: 70px; background: var(--palm); color: var(--white); --at: 0; }
.road::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 64px;
  border-top: 3px dashed var(--bus);
}
.bus {
  position: absolute;
  z-index: 1;
  top: 13px;
  inset-inline-start: calc((var(--at) + 0.5) * 25%);
  width: 100px;
  margin-inline-start: -50px;
  transition: inset-inline-start 1.1s cubic-bezier(.45, .05, .25, 1);
  animation: arrive 1.8s cubic-bezier(.2, .6, .25, 1);
}
[dir="rtl"] .bus svg { transform: scaleX(-1); }
@keyframes arrive { from { inset-inline-start: -140px; } }
.stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 14px 4px 20px;
  border: 0;
  background: none;
  color: var(--sky);
  line-height: 1.4;
}
.stop:focus-visible { outline-offset: -5px; }
.stop-time { font-size: clamp(1.1rem, 2.2vw, 1.8rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.stop[aria-pressed="true"] { color: var(--bus); }
.day-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 32px;
  padding-block: var(--space) 34px;
}
.scene { display: grid; grid-template-columns: 4fr 6fr; background: var(--sky); }
.scene-words { align-self: center; padding: clamp(24px, 4vw, 64px); }
.scene-words h3 { margin-bottom: 14px; font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.scene-words p { max-width: 42ch; }
.scene-photo img { width: 100%; height: clamp(250px, 36vw, 510px); object-fit: cover; }

/* Company */
.company { padding-block: var(--space); background: var(--shutter); color: var(--white); }
.company-layout, .quote-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 7vw, 120px); }
.company-layout p { max-width: 62ch; }
.company-layout h3 { margin-block: 28px 4px; color: #ffd875; }
.lead { font-size: 1.16rem; }

/* Buildings */
.buildings { padding-block: var(--space); }
.section-head { margin-bottom: 36px; }
.section-head p { max-width: 64ch; margin-top: 12px; }
/* Locations tour: a sideways row of photos. Swipe or scroll sideways; the arrow moves one location. */
.tour { position: relative; --photo-h: min(64vh, 50vw); }
.tour-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}
.tour-track::-webkit-scrollbar { display: none; }
.tour-track:focus-visible { outline: 3px solid var(--bus); outline-offset: 4px; }
.slide { flex: 0 0 min(86%, 1180px); scroll-snap-align: start; position: relative; }
.slide-photo { position: relative; height: var(--photo-h); margin: 0; }
.slide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.tour-arrow {
  position: absolute;
  top: calc(var(--photo-h) / 2);
  inset-inline-end: calc(var(--gutter) / 2 + 4px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  border: 0;
  border-radius: 50%;
  background: var(--bus);
  color: var(--palm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.tour-arrow[hidden] { display: none; }
.tour-prev { inset-inline: calc(var(--gutter) / 2 + 4px) auto; }
[dir="rtl"] .tour-prev { inset-inline: auto calc(var(--gutter) / 2 + 4px); }
[dir="rtl"] .tour-next { inset-inline: calc(var(--gutter) / 2 + 4px) auto; }
.tour-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .tour-arrow svg { transform: scaleX(-1); }
.tour-arrow:hover { background: #ffd875; }
.tour-arrow:focus-visible { outline: 3px solid var(--palm); outline-offset: 3px; }
.slide-photo > .status { inset-block: 16px auto; }
.slide-photo { overflow: hidden; }
.slide-photo.whole img { position: relative; object-fit: contain; }
.slide-photo.whole .slide-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(0.92); transform: scale(1.15); }
.slide-words { padding: 24px 28px 28px; background: var(--palm); color: var(--white); }
.slide-count { color: var(--sky); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.slide-words h3 { margin-top: 4px; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.2; }
.slide-type { color: var(--sky); }
.slide-capacity { margin-top: 14px; color: #ffd875; font-size: 1.15rem; font-weight: 600; }
.slide-words .button { margin-top: 20px; }
.soon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 36px;
  margin-top: 56px;
  padding: 28px;
  border: 2px dashed var(--shutter);
}

/* Apartments */
.apartments { padding-block: var(--space); background: var(--white); }
.apartment { display: grid; grid-template-columns: 1fr 3.4fr; gap: 24px; }
.apartment + .apartment { margin-top: 44px; }
.apartment-info { align-self: end; }
.apartment-info h3 { margin-bottom: 6px; }
.apartment-info .text-button { margin-top: 8px; }
.text-button { padding: 6px 0; border: 0; background: none; text-align: start; text-decoration: underline; text-underline-offset: 0.25em; }
.shots { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 6px; }
.shot { padding: 0; border: 0; background: var(--sky); overflow: hidden; }
.shot img { width: 100%; height: clamp(160px, 22vw, 320px); object-fit: cover; }

/* Services */
.services { padding-block: var(--space); background: var(--sky); }
.service-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 5vw, 72px); margin-top: 40px; }
.service-group h3 { margin-bottom: 18px; color: var(--shutter); }
.service-group dl > div { margin-bottom: 16px; }
.service-group dt { font-weight: 600; }
.service-group .icon { margin-inline-end: 8px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }

/* Quote */
.quote { padding-block: var(--space); background: var(--palm); color: var(--white); }
.quote-layout { grid-template-columns: 2fr 3fr; }
.quote-layout > div p { max-width: 40ch; margin-top: 16px; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 0.85rem; }
.field input, .field select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 3px;
  background: var(--stucco);
  color: var(--palm);
  font-size: 1rem;
}
.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--bus); }
.quote-submit { grid-column: 1 / -1; padding-block: 16px; }
.quote-submit:disabled { opacity: 0.6; cursor: default; }
.quote-ready { grid-column: 1 / -1; }

/* Building page */
.building-hero { display: grid; grid-template-columns: 2fr 3fr; background: var(--sky); }
.building-intro { align-self: center; padding: 40px var(--gutter); }
.building-intro h1 { margin-top: 20px; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.15; }
.building-intro .button { margin-top: 28px; }
.building-photos img { width: 100%; height: clamp(260px, 44vw, 640px); object-fit: cover; object-position: center 45%; }

.around { padding-block: var(--space); }
.around-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.no-photo { display: grid; place-items: center; aspect-ratio: 16 / 10; border-bottom: 3px dashed var(--bus); background: var(--palm); color: var(--white); }
.building-photos .no-photo { height: clamp(260px, 32vw, 440px); width: 100%; aspect-ratio: auto; }

.status { display: inline-block; padding: 5px 12px; background: var(--palm); color: var(--white); font-size: 0.85rem; font-weight: 600; }
figure > .status { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; }
.building-intro p.status { display: block; width: fit-content; margin-top: 12px; }

/* Company profile */
.profile { padding-block: var(--space); background: var(--palm); color: var(--white); }
.profile-head { max-width: 64rem; }
.profile-head .lead { margin-top: 18px; color: var(--sky); }
.types { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.types strong { margin-inline-end: 6px; color: #ffd875; }
.types span { padding: 6px 16px; border: 2px solid var(--bus); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 24px; margin: 48px 0 0; border-block: 2px solid rgba(255, 255, 255, 0.25); }
.stats div { padding-block: 22px; }
.stats dd { margin: 0; color: var(--bus); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.1; }
.stats dt { font-size: 0.95rem; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); margin: 48px 0 0; padding: 0; list-style: none; }
.pillars h3 { margin-bottom: 4px; color: #ffd875; }
.scale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 12px 40px; margin-top: 56px; padding: 30px; background: var(--bus); color: var(--palm); }
.scale .button { background: var(--palm); color: var(--white); }

/* Locations map */
.locations { background: #e6e3d3; }
.locations .stage { position: relative; overflow: hidden; }
.map-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.map-narrow { display: none; }
.map-words { position: absolute; left: var(--gutter); bottom: 5%; width: 44%; }
.map-words h2 { margin-bottom: 10px; font-size: clamp(1.5rem, 3vw, 3rem); }
.map-note { margin-top: 10px; font-size: 0.75rem; }
.anywhere { margin-top: 16px; font-size: clamp(1.1rem, 1.8vw, 1.6rem); font-weight: 650; line-height: 1.45; }
.anywhere-old {
  background: linear-gradient(var(--shutter), var(--shutter)) no-repeat left 55% / 100% 0.14em;
  transition: background-size 0.7s cubic-bezier(.6, 0, .3, 1);
}
[dir="rtl"] .anywhere-old { background-position-x: right; }
.anywhere-new { color: var(--shutter); font-weight: 800; transition: opacity 0.5s 0.5s; }

/* Hospitality track record */
.track { margin-top: 44px; }
.track-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.track-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.track figcaption { margin-top: 12px; font-size: 0.85rem; }
/* Serviced apartments in Cairo, for private guests */
.rents { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: 24px; padding: 22px 26px; border: 2px dashed rgba(255, 255, 255, 0.4); }
.rents p { max-width: 62ch; font-size: 1.1rem; }
.rents strong { color: #ffd875; }
.track-rating { margin-top: 18px; color: #ffd875; font-size: 1.5rem; font-weight: 650; }
.reviews-title { margin-top: 48px; color: #ffd875; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-top: 18px; }
.reviews blockquote { margin: 0; padding: 20px 22px; background: #24504d; border-inline-start: 4px solid var(--bus); }
.reviews cite { display: block; margin-top: 10px; color: var(--sky); font-size: 0.85rem; font-style: normal; }

/* Gallery */
.gallery {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 12px;
  border: 0;
  background: var(--palm);
  color: var(--white);
}
.gallery[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.gallery-bar { display: flex; align-items: center; gap: 20px; }
.gallery-count { margin-inline-start: auto; }
.gallery button { min-height: 44px; padding: 8px 18px; border: 0; background: var(--bus); color: var(--palm); }
.gallery-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-controls { display: flex; justify-content: center; gap: 12px; }

@media (max-width: 1080px) {
  .masthead { flex-wrap: wrap; }
  .service-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 10px; }
  .language { margin-inline-start: auto; }
}

@media (max-width: 820px) {
  .masthead { gap: 6px 12px; padding-block: 12px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { max-width: 17ch; font-size: 0.6rem; }
  .menu a { font-size: 0.76rem; }
  .language { font-size: 0.8rem; }
  .masthead-cta { padding: 9px 11px; font-size: 0.72rem; }

  .hero-photo { margin-top: 18px; }
  .hero-photo img { height: max(300px, 70vw); object-position: var(--focus-narrow); }
  .bus { width: 74px; margin-inline-start: -37px; top: 25px; }
  .stop { font-size: 0.72rem; }

  .scene, .company-layout, .quote-layout, .building-hero { grid-template-columns: minmax(0, 1fr); }
  .scene-photo { order: -1; }
  .map-wide { display: none; }
  .map-narrow { display: block; }
  .map-words { position: static; width: auto; padding: 20px var(--gutter) 40px; }
  .slide-words { padding: 18px 20px 22px; }
  .slide-capacity { font-size: 1rem; }
  .tour { --photo-h: max(240px, 62vw); }
  .slide { flex-basis: 88%; }
  .tour-arrow { width: 46px; height: 46px; margin-top: -23px; }
  .track-photos { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .scale { grid-template-columns: minmax(0, 1fr); }
  .around-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-groups { grid-template-columns: minmax(0, 1fr); }
  .soon { grid-template-columns: minmax(0, 1fr); }
  .apartment { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot:first-child { grid-column: 1 / -1; }
  .shot:first-child img { height: 220px; }
  .footer { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .quote-form { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html, .tour-track { scroll-behavior: auto; }
  .bus { animation: none; transition: none; }
  .hero-slide img { animation: none; }
}
