/* A left-aligned photographic opening; the original image remains CMS editable. */
.hero.hero-immersive{--hero-gutter:max(42px,calc((100vw - 1428px)/2 + 42px));margin:-104px 0 0;min-height:max(790px,100svh);background:transparent}
.hero-immersive .hero-visual{background:#a4b8af}.hero-immersive .hero-photo{object-position:center bottom}
.hero-immersive .hero-visual:after{background:linear-gradient(180deg,rgba(250,243,229,.52) 0%,rgba(250,243,229,.25) 15%,transparent 37%),linear-gradient(0deg,#002e2bbd 0%,#002e2b66 19%,transparent 48%)}
.hero-immersive .hero-copy{min-height:730px;align-self:stretch;padding:166px var(--hero-gutter) 270px;text-align:left;display:flex;flex-direction:column;align-items:flex-start}
.hero-immersive .hero-copy>h1{max-width:750px;margin:0;font-size:clamp(50px,5.4vw,76px);line-height:1.08;letter-spacing:-.065em;color:#132e2a;text-wrap:pretty}
.hero-immersive h1 span{color:inherit}.hero-immersive .hero-copy h1>.heading-followup{display:block;color:#20554d;margin-top:3px;font-weight:400}
.hero-immersive .hero-actions{position:absolute;left:var(--hero-gutter);bottom:41px;margin:0;display:flex;align-items:center;justify-content:flex-start;gap:24px;max-width:none;text-align:left}
body main .hero-immersive .hero-actions .button{min-height:44px;padding:11px 20px;font-size:11px;gap:18px;border-radius:30px;color:#003934;background:#f8faf5;border:1px solid #ffffffb3;box-shadow:0 3px 18px #00393414}.hero-immersive .hero-actions .button:hover{background:#e8f0e0;transform:translateY(-1px)}
.hero-immersive .hero-actions .text-link{color:#fff;font-size:11px;gap:13px}.hero-immersive .hero-actions .text-link:hover{color:#dcebcf}
.hero-immersive .hero-note{position:absolute;bottom:123px;left:var(--hero-gutter);text-align:left;max-width:330px;margin:0;color:#f2f7ed;font-size:11px;line-height:1.85;text-shadow:0 1px 8px #00393450}
.hero-immersive .hero-bottom{font-size:9px;padding:18px 0;color:#eaf2e4}.hero-immersive .hero-bottom>a{width:29px;height:29px}
.hero-immersive a:focus-visible,.hero-immersive button:focus-visible{outline:2px solid #d9edca;outline-offset:6px}
@media(min-width:1550px){.hero-immersive .hero-copy{min-height:790px;padding-top:182px}.hero-immersive .hero-photo{object-position:center 55%}}
@media(max-width:1120px){.hero.hero-immersive{--hero-gutter:32px}.hero-immersive .hero-copy{padding-top:166px;min-height:720px}.hero-immersive .hero-copy>h1{font-size:59px;max-width:67vw}}
@media(max-width:940px){.hero.hero-immersive{margin-top:-82px;min-height:790px}.hero-immersive .hero-copy{padding-top:155px;min-height:720px}.hero-immersive .hero-copy>h1{font-size:clamp(44px,6.7vw,59px);max-width:70vw}.hero-immersive .hero-photo{object-position:65% bottom}}
@media(prefers-reduced-motion:reduce){.hero-immersive .hero-actions .button{transition:none}.hero-immersive .hero-actions .button:hover{transform:none}}

/* Keep the headline in the open sky, clear of the tower silhouette. */
@media(min-width:941px){
 .hero-immersive .hero-copy>h1{font-size:clamp(46px,4.7vw,66px);max-width:min(790px,65vw)}
}

.home-whatsapp{position:fixed;inset:auto max(20px,calc(env(safe-area-inset-right) + 12px)) max(18px,calc(env(safe-area-inset-bottom) + 12px)) auto;z-index:35;display:grid;place-items:center;width:48px;height:48px;border:1px solid #d1e5d96b;border-radius:50%;background:linear-gradient(150deg,#0d6453,#003c33 80%);color:#fff;box-shadow:0 6px 18px #002c2c36,inset 0 1px 0 #ffffff2e;transition:transform .18s ease,box-shadow .18s ease}
.home-whatsapp:focus-visible{outline:2px solid #008268;outline-offset:4px}
.home-whatsapp-mark{display:block;width:22px;height:22px}
@media (hover:hover){.home-whatsapp:hover{transform:translateY(-2px);box-shadow:0 8px 21px #002c2c55,inset 0 1px 0 #ffffff2e}}
.home-whatsapp[hidden],.home-consult-invite[hidden],body:has(dialog[open]) :is(.home-whatsapp,.home-consult-invite){display:none}
.home-consult-invite{position:fixed;inset:auto max(20px,calc(env(safe-area-inset-right) + 12px)) max(80px,calc(env(safe-area-inset-bottom) + 74px)) auto;width:min(348px,calc(100% - 48px));z-index:36;background:#fafbf7;color:var(--forest);border:1px solid #d9e3d6;border-radius:22px;padding:22px 23px 20px;box-shadow:0 14px 42px #00352c2b}
.home-consult-invite>img{display:block;width:26px;height:26px;margin-bottom:12px;object-fit:contain}
.home-consult-invite>h2{font-size:20px;line-height:1.3;letter-spacing:-.035em;margin:0 0 8px;font-weight:600}
.home-consult-invite>p{color:#4b6055;font-size:12px;line-height:1.7;margin:0 0 15px}
.home-consult-invite>.button{min-height:42px;max-width:100%;font-size:11px;white-space:normal;text-align:start}
.home-consult-invite>.invite-close{position:absolute;top:9px;right:10px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--forest);cursor:pointer}
.home-consult-invite>.invite-close:hover{background:#eaf0e7}
.home-consult-invite>.invite-close .icon{width:16px;height:16px}
@media(max-width:600px){.home-consult-invite{inset-inline-end:16px;width:min(348px,calc(100% - 32px));bottom:max(76px,calc(env(safe-area-inset-bottom) + 68px));padding:18px 18px 16px}.home-consult-invite>h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.home-whatsapp{transition:none}.home-whatsapp:hover{transform:none}}

/* Run the photograph behind the header and the entire opening on narrow screens. */
@media(max-width:700px){
 .hero.hero-immersive{
  --hero-gutter:clamp(18px,5.5vw,30px);
  --hero-header-height:82px;
  --hero-photo-start:calc(var(--hero-header-height) + clamp(62px,120px - 10vw,94px));
  margin-top:calc(-1 * var(--hero-header-height));
  min-height:0;
  grid-template-rows:auto auto;
  background:#f7f8f3;
 }
 .hero-immersive .hero-copy{
  grid-area:1/1;
  align-self:stretch;
  align-items:center;
  min-height:calc(var(--hero-header-height) + max(clamp(470px,100svh - 92px,590px),105vw));
  padding:calc(var(--hero-header-height) + clamp(24px,4.5vw,34px)) var(--hero-gutter) 32px;
  text-align:center;
 }
 .hero-immersive .hero-copy>h1{font-size:clamp(30px,7.8vw,44px);line-height:1.09;max-width:600px}
 .hero-immersive h1>.heading-followup{margin-top:4px}
 .hero-immersive .hero-note{
  position:static;
  order:1;
  margin:auto 0 0;
  max-width:340px;
  color:#fff;
  font-size:10px;
  line-height:1.6;
  text-align:center;
 }
 .hero-immersive .hero-actions{
  position:static;
  order:2;
  flex-flow:row wrap;
  justify-content:center;
  gap:2px clamp(8px,3vw,16px);
  margin:9px 0 0;
 }
 body main .hero-immersive .hero-actions .button{padding:8px 13px;gap:8px;font-size:11px}
 .hero-immersive .hero-actions .text-link{min-height:44px;font-size:11px;gap:6px}
 .hero-immersive .hero-visual{
  grid-area:1/1;
  position:relative;
  inset:auto;
  z-index:0;
  height:100%;
  background:#a9c5da;
 }
 .hero-immersive .hero-visual picture{position:absolute;inset:0;display:block;overflow:hidden}
 .hero-immersive .hero-photo{display:block;object-position:center top}
 /* Continue the open sky under the header while keeping the tower below the headline. */
 .hero-immersive .hero-visual:has(source[data-responsive-photo])::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:calc(var(--hero-photo-start) + 84px);
  background:url('/assets/riyadh-kingdom-centre-mobile.webp?v=full-resolution') 18% top / max(215%,900px) auto no-repeat;
 }
 /* The landmark is 76.5% across the source. Frame the crop around that point. */
 .hero-immersive picture:has(source[data-responsive-photo]){
  inset-block-start:var(--hero-photo-start);
  mask-image:linear-gradient(transparent,#000 84px);
 }
 .hero-immersive picture:has(source[data-responsive-photo]) .hero-photo{
  position:absolute;
  left:50%;
  width:auto;
  height:100%;
  min-width:215%;
  max-width:none;
  transform:translateX(-76.5%);
 }
 .hero-immersive .hero-visual:after{
  background:linear-gradient(#e8f1f4a6,transparent 35%),linear-gradient(0deg,#002e2beb 0%,#002e2bba 13%,transparent 49%);
 }
  .hero-immersive .hero-bottom{grid-row:2;padding:12px 0;margin-top:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;color:#31553d;font-size:10px}
 .hero-immersive .hero-bottom>a{color:#003934;border-color:#c0d1c1}
}
@media(max-width:420px){
 .hero.hero-immersive{--hero-header-height:76px}
}
@media(max-width:355px){
 .hero-immersive .hero-actions{gap:2px 8px}
 body main .hero-immersive .hero-actions .button{padding-inline:9px}
 .hero-immersive .hero-actions .text-link,body main .hero-immersive .hero-actions .button{font-size:10px}
}
.home-consult-invite:not([hidden]){animation:consult-invite-enter 180ms ease-out both;max-height:calc(100dvh - 106px);overflow:auto}
@keyframes consult-invite-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:650px),(prefers-reduced-motion:reduce){.home-consult-invite:not([hidden]){animation:none}}

.hero-immersive .hero-bottom span>a{color:inherit;text-underline-offset:4px}
.hero-immersive .hero-bottom span>a:hover{text-decoration:underline}
