/* Ayamen R115 — typography, footer, media crop, RTL controls, brand orange. */
:root{
  --ayamen-brand-orange:#f6921e;
  --ayamen-orange:#f6921e!important;
  --ayr-orange:#f6921e!important;
  --ayp-orange:#f6921e!important;
  --ayc-orange:#f6921e!important;
  --ayn-orange:#f6921e!important;
  --ana-orange:#f6921e!important;
  --arf-orange:#f6921e!important;
  --ay-carousel-orange:#f6921e!important;
  --ay-v5-orange:#f6921e!important;
  --ay-v9-orange:#f6921e!important;
  --ayamen-loader-orange:#f6921e!important;
  --ayamen-orange-soft:#f6921e!important;
  --ayamen-r62-orange:#f6921e!important;
  --ayamen-r67-orange:#f6921e!important;
  --footer-orange:#f6921e!important;
  --privacy-orange:#f6921e!important;
  --projects-orange:#f6921e!important;
}

/* Use the supplied Ayamen logo orange for explicit legacy accent colors too. */
.ayamen-brand-svg [data-ayamen-symbol="true"]{fill:var(--ayamen-brand-orange)!important;stroke:var(--ayamen-brand-orange)!important}
.text-color-primary,.ayamen-orange-italic{color:var(--ayamen-brand-orange)!important}

/* Consistent readable text rhythm without changing font families. */
body :is(p,li,dd,dt){line-height:1.58}
body :is(label,.ayr-label,.ayp-eyebrow,.text-tiny,.text-c1,.text-c3){line-height:1.4}
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4){line-height:1.08}
body :is(.btn__text,button,a){line-height:1.3}

html[lang="ar"] body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4){
  line-height:1.24!important;
  letter-spacing:0!important;
}
html[lang="ar"] body :is(p,li,dd,dt){line-height:1.78!important}
html[lang="ar"] body :is(label,.ayr-label,.ayp-eyebrow,.text-tiny,.text-c1,.text-c3){line-height:1.58!important}
html[lang="ar"] body :is(.btn__text,button,a){line-height:1.48}
html[lang="ar"] .leading-trim{overflow:visible!important}


/* Photographic media: bias crop upward so bottom-left watermarks stay outside visible frames.
   Floor plans, logos, icons and footer artwork are intentionally excluded. */
:is(.background--cover,.ayr-hero,.ayr-story__image,.ayr-gallery,.ayr-project-card__media,.ayr-project-cta,.ayp-card-media,.ayp-hero-media,.l-content__image,.l-services-card__image,.l-exquisite-mob-card__image,.ab-focus-card__image,.ab-info__background,.ayn-hero,.ayc-contact-hero-clean) img:not([src*="floor_plan"]):not([src*="logo"]):not([src*="footer"]):not([src*="mockup"]){
  object-fit:cover!important;
  object-position:center top!important;
}


/* Arabic slider controls: keep mechanical arrows in a stable physical LTR coordinate system. */
html[lang="ar"] :is(.js-exquisite-carousel-prev,.js-exquisite-carousel-next,.js-gallery-carousel-prev,.js-gallery-carousel-next,.js-services-carousel-prev,.js-services-carousel-next,.js-carousel-prev,.js-carousel-next,.js-content-animation-prev,.js-content-animation-next,.ayr-gallery__prev,.ayr-gallery__next,.ayr-plan-prev,.ayr-plan-next){
  direction:ltr!important;
  unicode-bidi:isolate!important;
}
html[lang="ar"] :is(.icon-arrow-left-angle,.icon-arrow-right-angle,.icon-arrow-down){direction:ltr!important;transform-box:fill-box;transform-origin:center}
html[lang="ar"] .ayr-project-card__cta::after{content:"→"!important}
html[lang="ar"] .ayr-about__detail-tab::after{content:"↗"!important}

/* Landing top state: remove the stray partial blue header strip after back-to-top. */
body.ayamen-landing-r3.ayamen-r115-at-top .header .header__background,
body.ayamen-landing-r3.ayamen-r115-at-top .header.ayamen-nav--dark .header__background{
  background:transparent!important;
  box-shadow:none!important;
}

/* R117: slider arrow artwork is no longer mirrored in RTL. */

/* 20% bottom-safe photographic crop: zoom from the top without replacing existing transform animations. */
:is(.ayr-hero,.ayr-story__image,.ayr-project-card__media,.ayr-project-cta,.ayp-card-media,.l-content__image,.l-services-card__image,.l-exquisite-mob-card__image,.ab-focus-card__image,.ayn-hero) img:not([src*="floor_plan"]):not([src*="logo"]):not([src*="footer"]):not([src*="mockup"]){
  scale:1.25;
  transform-origin:50% 0!important;
}
