/* Asterise UAE – custom styles (colours, dark mode, RTL, motion). Utility classes come from tailwind.css. */
:root{--bg:#FFFFFF;--card:#fff;--ink:#0E0E0C;--mute:#66635C;--line:#E7E4DD;--soft:#F6F4EF;--forest:#8F6F2F;--sand:#FBF3EA;--gold:#B8955A}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0B0B0A;--card:#141412;--ink:#F5F3EE;--mute:#A3A09A;--line:#2A2824;--soft:#1A1917;--forest:#D9BC7E;--sand:#1B1712;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#0B0B0A;--card:#141412;--ink:#F5F3EE;--mute:#A3A09A;--line:#2A2824;--soft:#1A1917;--forest:#D9BC7E;--sand:#1B1712;color-scheme:dark}
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 4.5rem);scroll-behavior:smooth}
body{margin:0;background:radial-gradient(900px 340px at 50% 0,rgba(184,149,90,.09),transparent 70%) no-repeat,var(--bg);padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
::selection{background:#D9BC7E;color:#0B0B0A}
:focus-visible{outline:3px solid #B8955A;outline-offset:2px}

/* Arabic / RTL */
html[lang^=ar] body{font-family:'Noto Sans Arabic','Inter',sans-serif}
html[lang^=ar] .font-serif,html[lang^=ar] .entry-content h2,html[lang^=ar] .entry-content h3{font-family:'Amiri','Noto Naskh Arabic','Playfair Display',serif}
html[lang^=ar] *{letter-spacing:0!important}html[lang^=ar] .uppercase{text-transform:none}
html[lang^=ar] h1,html[lang^=ar] h2,html[lang^=ar] h3{line-height:1.5}

/* Header */
.ast-nav{top:env(safe-area-inset-top,0px);background:color-mix(in srgb,var(--bg) 94%,transparent)}
@media(min-width:601px){.admin-bar .ast-nav{top:46px}}
@media(min-width:783px){.admin-bar .ast-nav{top:32px}}
.ast-logo .ast-accent{background:linear-gradient(90deg,#8F6F2F,#B8955A);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.ast-logo-bar{background:linear-gradient(90deg,#B8955A,#F0DCA8,#B8955A)}
.ast-gold{background:linear-gradient(135deg,#C9A45F,#F0DCA8);color:#0B0B0A}
.ast-hairline{background:linear-gradient(90deg,#D9BC7E,transparent)}
html[dir=rtl] .ast-hairline{background:linear-gradient(270deg,#D9BC7E,transparent)}
#nav{letter-spacing:.01em;scrollbar-width:none}#nav::-webkit-scrollbar{display:none}
#nav a{position:relative}
#nav a::after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:2px;border-radius:2px;background:linear-gradient(90deg,#B8955A,#F0DCA8);transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
#nav a:hover::after,#nav a[aria-current]::after{transform:scaleX(1)}
.tickwrap{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
#tick:hover,#tick:focus-within{animation-play-state:paused}
@keyframes marquee-rtl{to{transform:translateX(50%)}}
html[dir=rtl] #tick{animation-name:marquee-rtl}

/* Page width (Customizer) */
body.ast-wide .max-w-6xl{max-width:1440px}
body.ast-full .max-w-6xl{max-width:none;padding-left:clamp(1.25rem,4vw,4rem);padding-right:clamp(1.25rem,4vw,4rem)}
@media(min-width:1280px){body.ast-full #homegrid,body.ast-wide #homegrid{grid-template-columns:minmax(0,1fr) 420px}}
body.ast-full #hero .featp img,body.ast-wide #hero .featp img{max-height:520px}
body.ast-full #catsl a.group>span:first-child,body.ast-wide #catsl a.group>span:first-child{width:min(44%,200px)}
body.ast-full #catsl article img,body.ast-wide #catsl article img{max-height:300px}
body.ast-full #ad .mny.flex-1>a.group>div:first-child,body.ast-wide #ad .mny.flex-1>a.group>div:first-child{flex:none;aspect-ratio:4/3;max-height:none}
body.ast-full #ad .mny.flex-1>a.group,body.ast-wide #ad .mny.flex-1>a.group{flex:none}
body.ast-full .grid>article img.aspect-\[16\/10\]{max-height:340px}

/* Home boxes */
.featp{background:var(--card);box-shadow:inset 0 0 0 1px var(--line),0 30px 60px -40px rgba(11,11,10,.25)}
#hero .featp>div:first-child{box-shadow:0 30px 60px -28px rgba(11,11,10,.55)}
.asr{background:linear-gradient(165deg,var(--soft),var(--card));box-shadow:inset 0 0 0 1px rgba(184,149,90,.4),0 24px 48px -30px rgba(11,11,10,.35)}
.mny{position:relative;overflow:hidden;background:var(--card);box-shadow:inset 0 0 0 1px var(--line),0 24px 48px -32px rgba(11,11,10,.35)}
.mny::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#B8955A,#F0DCA8,#B8955A)}
.sec-prop>h2,.sec-ind>h2{border-bottom:1px solid var(--line);padding-bottom:12px}
.sec-biz>h2{border-bottom:2px solid #B8955A;padding-bottom:12px}
#catsl h2::after{content:"";display:block;height:3px;width:64px;margin-top:10px;background:linear-gradient(90deg,#B8955A,#F0DCA8);border-radius:2px;transform-origin:left}
html[dir=rtl] #catsl h2::after{transform-origin:right}
#catsl article{box-shadow:0 1px 2px rgba(0,0,0,.04),0 12px 30px -20px rgba(0,0,0,.2);transition:box-shadow .35s ease,translate .35s ease}
#catsl article:hover{translate:0 -4px;box-shadow:0 22px 44px -22px rgba(0,0,0,.3);background-image:radial-gradient(240px circle at var(--mx,50%) var(--my,50%),rgba(217,188,126,.16),transparent 65%)}

/* Founder's Corner */
.fcorner{position:relative;overflow:hidden;background:linear-gradient(180deg,#FFFDF8,#F6EFE0);box-shadow:inset 0 0 0 1px rgba(184,149,90,.6),0 30px 60px -40px rgba(11,11,10,.35)}
.fcorner::before{content:"";position:absolute;inset:10px;border:1px solid rgba(184,149,90,.4);border-radius:1.25rem;pointer-events:none}
.fcorner>*{position:relative;z-index:1}
.fcorner .face:not(.back){background:#fff;box-shadow:inset 0 0 0 1px rgba(184,149,90,.45),0 18px 36px -24px rgba(11,11,10,.45)}
.fcorner .face:not(.back)>div:first-child{background:linear-gradient(160deg,#F6EFE0,#EADFC6)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .fcorner{background:linear-gradient(180deg,#17130B,#221C0F)}:root:not([data-theme="light"]) .fcorner .face:not(.back){background:var(--card)}:root:not([data-theme="light"]) .fcorner .face:not(.back)>div:first-child{background:#1B170E}}
:root[data-theme="dark"] .fcorner{background:linear-gradient(180deg,#17130B,#221C0F)}
:root[data-theme="dark"] .fcorner .face:not(.back){background:var(--card)}
:root[data-theme="dark"] .fcorner .face:not(.back)>div:first-child{background:#1B170E}
.flip{perspective:1000px;cursor:pointer}.fi3d{transform-style:preserve-3d;transition:transform .6s}.flipped .fi3d{transform:rotateY(180deg)}
.face{backface-visibility:hidden;-webkit-backface-visibility:hidden}.back{transform:rotateY(180deg)}
.flip .back{box-shadow:inset 0 0 0 1px rgba(217,188,126,.5)}
#fscroll{scrollbar-width:none}#fscroll::-webkit-scrollbar{display:none}
.orn span{height:1px;width:64px;background:linear-gradient(90deg,transparent,#B8955A)}
.orn span:last-child{background:linear-gradient(270deg,transparent,#B8955A)}
.orn b{color:#B8955A;font-size:18px;line-height:1}

/* Newsletter */
.ast-nl{background:radial-gradient(600px 260px at 80% 0,rgba(217,188,126,.3),transparent 70%),linear-gradient(135deg,#14130F,#8F6F2F);box-shadow:inset 0 0 0 1px rgba(217,188,126,.4);color:#F6F1E4}
.ast-nl button{background:linear-gradient(135deg,#C9A45F,#F0DCA8);color:#0B0B0A}
.ast-nl input{background:#fff}

/* Footer, toast, progress, back to top */
.ast-footer{background:linear-gradient(180deg,var(--soft),var(--bg))}
#toast{bottom:calc(5rem + env(safe-area-inset-bottom,0px));box-shadow:0 12px 30px -10px rgba(0,0,0,.5)}
#top{bottom:calc(1rem + env(safe-area-inset-bottom,0px))}
#prog{position:fixed;top:0;left:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#B8955A,#F0DCA8,#B8955A);z-index:99999;pointer-events:none}
html[dir=rtl] #prog{transform-origin:100% 50%}

/* Motion */
.js .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}.js .reveal.in{opacity:1;transform:none}
@keyframes pgIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
#page{animation:pgIn .5s ease both}
@keyframes drawL{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes riseIn{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@supports (animation-timeline:view()){
 #catsl h2::after{animation:drawL linear both;animation-timeline:view();animation-range:entry 10% entry 60%}
 #catsl article,#ad a.group,#asr a.group{animation:riseIn linear both;animation-timeline:view();animation-range:entry 0% entry 40%}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 .animate-marquee,.animate-pop,#page,#prog{animation:none!important}#prog{display:none}
 .fi3d,.js .reveal{transition:none}.js .reveal{opacity:1;transform:none}
 #catsl h2::after,#catsl article,#ad a.group,#asr a.group{animation:none!important}#catsl article:hover{translate:none}
}

/* ---------- Content written in the WordPress editor ---------- */
.entry-content{font-size:1.125rem;line-height:1.75}
.entry-content>*+*{margin-top:1.25rem}
.entry-content p{color:var(--mute)}
.entry-content a{color:var(--forest);text-decoration:underline;text-underline-offset:3px}
.entry-content h2{font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:1.6rem;line-height:1.3;color:var(--ink);margin-top:2.5rem}
.entry-content h3{font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:1.2rem;line-height:1.35;color:var(--ink);margin-top:1.75rem}
.entry-content h4{font-weight:700;color:var(--ink);margin-top:1.5rem}
.entry-content ul{list-style:disc;padding-inline-start:1.5rem;color:var(--mute)}
.entry-content ol{list-style:decimal;padding-inline-start:1.5rem;color:var(--mute)}
.entry-content li+li{margin-top:.35rem}
.entry-content blockquote,.entry-content .wp-block-quote{border-inline-start:3px solid var(--gold);padding-inline-start:1.25rem;font-family:'Playfair Display',Georgia,serif;font-size:1.35rem;color:var(--ink)}
.entry-content .wp-block-pullquote{border-top:2px solid var(--gold);border-bottom:2px solid var(--gold);padding:1.5rem 0;text-align:center}
.entry-content img{border-radius:1rem;height:auto;max-width:100%}
.entry-content figcaption{font-size:.8rem;color:var(--mute);margin-top:.5rem}
.entry-content hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}
.entry-content table{width:100%;border-collapse:collapse;font-size:1rem}
.entry-content th,.entry-content td{border-bottom:1px solid var(--line);padding:.6rem;text-align:start}
.entry-content .wp-block-button__link,.entry-content .ast-gold-btn a{display:inline-block;border-radius:999px;padding:.6rem 1.4rem;font-size:.9rem;font-weight:700;text-decoration:none}
.entry-content .wp-block-button__link{background:var(--ink);color:var(--bg)}
.entry-content .ast-gold-btn .wp-block-button__link{background:linear-gradient(135deg,#C9A45F,#F0DCA8);color:#0B0B0A}
.entry-content .wp-block-columns{display:grid;gap:1.25rem;grid-template-columns:1fr;margin-top:1.5rem}
@media(min-width:640px){.entry-content .wp-block-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5rem 2rem}.entry-content .ast-grid-3,.entry-content .ast-grid-4{gap:1.25rem}}
@media(min-width:640px){.entry-content .ast-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.entry-content .ast-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:640px) and (max-width:1023px){.entry-content .ast-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
.entry-content .wp-block-column>*+*{margin-top:.75rem}
.entry-content .wp-block-column>h2:first-child,.entry-content .wp-block-column>h3:first-child{margin-top:0}
.entry-content .ast-tagline{font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:1.75rem;line-height:1.3;color:#8F6F2F}
:root[data-theme="dark"] .entry-content .ast-tagline{color:#D9BC7E}
.entry-content .ast-lead{font-size:1.25rem;line-height:1.7;color:var(--ink)}
.entry-content .ast-box{height:100%;border:1px solid var(--line);background:var(--card);border-radius:1rem;padding:1.25rem 1.5rem}
.entry-content .ast-box>*,.entry-content .ast-box>.wp-block-group__inner-container>*{margin-top:.5rem}.entry-content .ast-box>*:first-child,.entry-content .ast-box>.wp-block-group__inner-container>*:first-child{margin-top:0}
.entry-content .ast-box p{font-size:.9rem;line-height:1.55}
.entry-content .ast-box h3{margin-top:.5rem}
.entry-content .ast-num{font-family:'Playfair Display',Georgia,serif;font-weight:800;font-size:1.75rem!important;color:#B8955A!important;line-height:1.2}
.entry-content .ast-cover{border-top:1px solid var(--line);padding-top:.75rem}
.entry-content .ast-cover+.ast-cover{margin-top:1rem}
.entry-content .ast-cover>.wp-block-group__inner-container>*{margin:0}.entry-content .ast-cover>.wp-block-group__inner-container>p{margin-top:.15rem}
.entry-content .ast-cover h3{font-family:inherit;font-size:1rem;font-weight:600;margin:0}
.entry-content .ast-cover p{font-size:.9rem;margin-top:.15rem}
.entry-content .ast-person{text-align:center}
.entry-content .ast-person::before{content:"";display:block;width:6rem;height:6rem;margin:0 auto .75rem;border-radius:999px;background:var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2366635C' opacity='.35'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8z'/%3E%3C/svg%3E") center/3.5rem no-repeat}
.entry-content .ast-contact{margin-top:3rem;padding:1.5rem}
.entry-content .ast-contact,.entry-content .ast-contact>.wp-block-group__inner-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem}
.entry-content .ast-contact>.wp-block-group__inner-container{width:100%}
.entry-content .ast-contact>*,.entry-content .ast-contact>.wp-block-group__inner-container>*{margin:0}
.entry-content .ast-contact p{max-width:36rem}
.entry-legal h2{font-size:1.5rem}
.entry-content .alignwide{max-width:none}
.tag-cloud-link,a[rel=tag]{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:.25rem .75rem}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
