/* Shared navigation: existing geometry, lightweight colour/transform transitions. */
.site-header{border-bottom-color:rgba(229,193,105,.28);box-shadow:0 5px 24px #001d161a}
.desktop-nav .nav-link{transition:color .35s ease,background-color .35s ease; border-radius:7px}
.desktop-nav .nav-link:hover{background:rgba(229,193,105,.08)}
.service-menu-panel{border:1px solid rgba(209,175,98,.32);box-shadow:0 16px 40px #001b2030}
.service-menu-item{transition:background-color .3s ease,color .3s ease,transform .3s ease}
@media(hover:hover){.service-menu-item:hover{transform:translateX(3px)}.hg-home .hg-country,.hg-home .hg-principles article{transition:transform .45s ease,border-color .45s ease}.hg-home .hg-country:hover,.hg-home .hg-principles article:hover{transform:translateY(-4px);border-color:var(--hg-gold)}}
.hg-home .hg-heading h2{text-wrap:balance}.hg-home .hg-country,.hg-home .hg-principles article{box-shadow:0 5px 20px #09291e05}
.hc-services-browse{display:flex;justify-content:center;margin-top:28px}.hc-services-browse .btn{color:var(--hg-ink);border-color:var(--hg-gold)}
@media(min-width:1051px){#services .svc-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Always-dark Home hero, independent from the page theme switch. */
html body[data-page="home"] .hero{--hg-ink:#fff8e8;--hg-gold:#efd080;background:linear-gradient(115deg,#06251c,#103c2e);color:#fff8e8}
html body[data-page="home"] .hero::before{opacity:.04}
html body[data-page="home"] .hero .hero-copy{isolation:isolate}
html body[data-page="home"] .hero .hero-copy::before{display:none}
html body[data-page="home"] .hero h1{color:#fff8e8;text-shadow:none}
html body[data-page="home"] .hero h1 em{color:#efd080}
html body[data-page="home"] .hero .hero-description{color:#d9e8df}
html body[data-page="home"] .hero .hero-eyebrow{color:#efd080}
html body[data-page="home"] .hero .hero-signature{color:#c3d8ca}
html body[data-page="home"] .hero .btn-outline{color:#fff8e8;border-color:#b79552}
html body[data-page="home"] .hero .hc-typing{display:block;position:relative;z-index:5;color:#f5e4b4;background:transparent;border-color:#d9b45f;opacity:1;max-width:100%;width:100%;box-sizing:border-box}
html body[data-page="home"] .hero .hc-typing-output{color:#f5e4b4}
html body[data-page="home"] .hero .hc-typing-stage>span{font-size:17px;line-height:1.75}
html body[data-page="home"] .hero .hc-typing-toggle{color:#e3d3a7}
html body[data-page="home"] .hero .hero-quote{background:#0a3024;color:#fff1ce;border-color:#a78a48}
html body[data-page="home"] .hero .verse-arabic,html body[data-page="home"] .hero .verse-translation{color:#fff1ce}
/* Phone copy sits on a solid panel; the portrait is a separate, uncropped row. */
@media(max-width:640px){
 html body[data-page="home"] .hero .hero-grid{display:flex;flex-direction:column;min-height:0;padding:22px 0 25px;gap:22px}
 html body[data-page="home"] .hero .hero-copy{order:0;min-height:0;width:100%;padding:0 48px 0 0;display:block;box-sizing:border-box}
 html body[data-page="home"] .hero .hero-description{display:block;font-size:13px;line-height:1.8;max-width:100%;margin:0 0 17px}
 html body[data-page="home"] .hero .hc-mobile-intro{display:none}
 html body[data-page="home"] .hero .hc-typing{margin:18px 0 22px;padding:13px 12px}
 html body[data-page="home"] .hero .hc-typing-stage>span{font-size:15px;line-height:1.8}
 html body[data-page="home"] .hero .hero-visual{position:relative;order:1;inset:auto;width:calc(100% - 48px);height:auto;min-height:0;aspect-ratio:1377 / 768;overflow:hidden;border-radius:18px;align-self:flex-start}
 html body[data-page="home"] .hero .hero-visual img{position:static;inset:auto;width:100%;max-width:100%;height:auto;aspect-ratio:1377 / 768;object-fit:contain;opacity:1;mask-image:none;-webkit-mask-image:none;border-radius:18px}
 html body[data-page="home"] .hero .hero-visual::after{display:none}
 html[dir="rtl"] body[data-page="home"] .hero .hero-copy{padding:0 0 0 48px}
 html body[data-page="home"] .hero .hero-buttons{width:100%;display:flex;flex-wrap:wrap;gap:10px}
 html body[data-page="home"] .hero .hero-buttons>a:nth-child(2){display:inline-flex}
 html body[data-page="home"] .hero .hero-buttons .btn{white-space:normal;max-width:100%}
}
@media(prefers-reduced-motion:reduce){.desktop-nav .nav-link,.service-menu-item,.hg-home .hg-country,.hg-home .hg-principles article{transition:none!important;transform:none!important}}

/* Readability fix: decorative layers cannot cover the Home copy. */
html body[data-page="home"] .hero .hero-copy{position:relative;z-index:3}
html body[data-page="home"] .hero .hero-copy::before,html body[data-page="home"] .hero .hero-copy::after{display:none}
html body[data-page="home"] .hero .hc-typing{isolation:isolate}
@media(max-width:850px){
 html body[data-page="home"] .hero .hero-quote{display:block;position:relative;inset:auto;order:2;width:calc(100vw - 8px);max-width:none;box-sizing:border-box;justify-self:center;align-self:center;margin:16px 0 4px;z-index:4}
}
/* Identical shared Services card geometry on phones and tablets. */
@media(max-width:1023px){#services .svc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:stretch}#services .svc-card{min-width:0;background:var(--surface);border:1px solid rgba(181,150,85,.25);border-radius:21px;box-shadow:0 13px 34px rgba(47,55,41,.07);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .4s ease,border-color .4s ease,translate .4s ease}#services .svc-card:hover{translate:0 -5px;box-shadow:0 25px 50px rgba(37,61,42,.13);border-color:rgba(192,150,60,.58)}#services .svc-card-media{position:relative;height:195px;overflow:hidden;background:var(--surface-2)}#services .svc-card-media img{height:100%;width:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.8,.2,1)}#services .svc-card:hover img{transform:scale(1.07)}#services .svc-card-index{position:absolute;top:13px;left:13px;color:#fff9e5;background:rgba(4,45,33,.77);border:1px solid rgba(245,224,158,.35);font-size:10px;padding:8px 10px;border-radius:999px;backdrop-filter:blur(8px)}#services .svc-card-content{padding:23px 21px 20px;display:flex;flex:1;flex-direction:column}#services .svc-card-kicker{font-size:10px;letter-spacing:.135em;font-weight:750;color:var(--gold);margin:0 0 10px}#services .svc-card h3{font-size:clamp(20px,1.7vw,26px);line-height:1.24;margin:0 0 10px;min-height:2.48em}#services .svc-card .card-description{color:var(--muted);font-size:13px;line-height:1.63;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;min-height:calc(1.63em * 3)}#services .svc-card-foot{display:flex;flex-direction:column;align-items:stretch;gap:11px;margin-top:auto;padding-top:20px}#services .svc-details{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;width:100%;border:1px solid rgba(173,135,53,.6);background:var(--surface-2);color:var(--ink);padding:12px 9px;border-radius:12px;font-size:12px;font-weight:700;cursor:pointer;overflow:hidden;transition:background .35s,color .35s,border-color .35s}#services .svc-details::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at var(--glow-x,50%) var(--glow-y,50%),rgba(242,205,106,.35),rgba(148,210,164,.16) 35%,transparent 70%);opacity:0;transition:opacity .35s}#services .svc-details:hover::before{opacity:1}#services .svc-details .icon{width:16px;height:16px}#services .svc-contact{color:var(--forest);font-size:12px;font-weight:650;text-align:center;text-decoration:none;padding:3px}#services .svc-contact:hover{text-decoration:underline;color:var(--gold)}html[data-theme="dark"] #services .svc-contact{color:#eed6a2}html[data-theme="dark"] #services .svc-card{background:#113329;border-color:rgba(238,195,111,.24)}html[data-theme="dark"] #services .svc-card .card-description{color:#ccdbd1}html[data-theme="dark"] #services .svc-details{color:#faf0d8;background:#163e2f}@media (max-width:1150px){#services .svc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}#services .svc-card-media{height:210px}#services .svc-card h3{min-height:0}}@media (max-width:600px){#services .svc-grid{gap:11px}#services .svc-card{border-radius:14px}#services .svc-card-media{height:112px}#services .svc-card-index{top:7px;left:7px;font-size:9px;padding:5px 6px}#services .svc-card-content{padding:13px 11px 12px}#services .svc-card-kicker{font-size:8px;letter-spacing:.07em;margin-bottom:7px}#services .svc-card h3{font-size:clamp(15px,3.65vw,18px);line-height:1.26;min-height:2.52em;margin-bottom:8px}#services .svc-card .card-description{font-size:10.5px;line-height:1.5;-webkit-line-clamp:2;line-clamp:2;min-height:3em}#services .svc-card-foot{margin-top:auto;gap:6px;padding-top:12px}#services .svc-details{font-size:10px;padding:10px 5px;min-height:39px;border-radius:9px}#services .svc-details .icon{width:13px;height:13px}#services .svc-contact{font-size:10px}}@media (max-width:359px){#services .svc-grid{gap:8px}#services .svc-card-content{padding:10px 8px}#services .svc-card h3{font-size:14px}#services .svc-card .card-description{font-size:10px}#services .svc-contact{font-size:9px}}html[dir="rtl"] #services .svc-card-index{left:auto;right:13px}html[dir="rtl"] #services .svc-card h3{line-height:1.9}html[dir="rtl"] #services .svc-card .card-description{line-height:2.25;min-height:4.5em}html[dir="rtl"] #services .svc-card-kicker{line-height:2.2}@media (max-width:600px){html[dir="rtl"] #services .svc-card h3{font-size:14px}html[dir="rtl"] #services .svc-card-content{padding:12px 9px}}@media (prefers-reduced-motion:reduce){#services .svc-card,#services .svc-card-media img,#services .svc-details{transition:none!important}}@media (min-width:1151px){#services .svc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}#services .svc-card-media{height:215px}#services .svc-card h3{min-height:0}}@media (min-width:601px) and (max-width:1150px){#services .svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}#services .svc-grid .svc-card{height:100%}@media (max-width:600px){#services .svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#services .svc-card-media{height:clamp(103px,28vw,155px)}#services .svc-card h3{min-height:2.48em}#services .svc-card .card-description{-webkit-line-clamp:2;line-clamp:2}}@media (max-width:600px){html[dir="rtl"] #services .svc-card h3{min-height:3.7em;line-height:1.85;font-size:clamp(12px,3vw,15px)}html[dir="rtl"] #services .svc-card .card-description{min-height:3.7em;line-height:1.85}}@media (max-width:350px){#services .svc-card-content{padding-inline:9px}#services .svc-grid{gap:9px}#services .svc-details{font-size:9px}}}

/* Home-only requested background portrait and compact expandable introduction. */
html body[data-page="home"] .hero{isolation:isolate}
html body[data-page="home"] .hero>.hero-visual{position:absolute;inset:var(--nav-h) 0 0;z-index:0;display:block;width:100%;max-width:none;height:calc(100% - var(--nav-h));min-height:0;align-self:stretch;justify-self:stretch;margin:0;aspect-ratio:auto;border:0;border-radius:0;overflow:hidden;isolation:isolate;pointer-events:none}
html body[data-page="home"] .hero>.hero-visual img{position:absolute;inset:0;display:block;width:100%;max-width:none;height:100%;aspect-ratio:auto;object-fit:cover;object-position:65% center;border:0;border-radius:0;box-shadow:none;opacity:1;mask-image:none;-webkit-mask-image:none}
html body[data-page="home"] .hero>.hero-visual::after{content:"";display:block;position:absolute;inset:0;z-index:2;border:0;border-radius:0;background:linear-gradient(90deg,rgba(4,27,20,.95) 0%,rgba(4,27,20,.85) 36%,rgba(4,27,20,.28) 72%,rgba(4,27,20,.38)),linear-gradient(0deg,rgba(4,27,20,.8),transparent 55%)}
html body[data-page="home"] .hero>.hero-visual .hero-arch,html body[data-page="home"] .hero>.hero-visual .hero-glow{display:none}
html body[data-page="home"] .hero .hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"hero-copy hero-message";align-items:end;gap:32px;padding-block:42px;min-height:540px}
html body[data-page="home"] .hero .hero-copy{grid-area:hero-copy;align-self:center;min-height:0;animation:none}
html body[data-page="home"] .hero .hero-quote{grid-area:hero-message;position:relative;inset:auto;align-self:end;justify-self:end;max-width:100%;width:100%;margin:0}
html body[data-page="home"] .hero .hero-description.is-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
html body[data-page="home"] .hero .hero-description-toggle{align-self:flex-start;display:inline-block;width:auto;background:transparent;border:0;border-bottom:1px solid #d9b45f;color:#f3d68b;padding:4px 0;margin:0 0 14px;font:inherit;font-size:13px;font-weight:650;cursor:pointer;min-height:32px}
html body[data-page="home"] .hero .hero-description-toggle[hidden]{display:none}
html body[data-page="home"] .hero .hero-description-toggle:focus-visible{outline:2px solid #f3d68b;outline-offset:5px}
@media(max-width:850px){
 html body[data-page="home"] .hero .hero-grid{display:flex;flex-direction:column;align-items:stretch;gap:22px;padding-block:28px;min-height:0}
 html body[data-page="home"] .hero .hero-copy{width:100%;max-width:none;min-height:0;padding:0 48px 0 0;box-sizing:border-box}
 html[dir="rtl"] body[data-page="home"] .hero .hero-copy{padding:0 0 0 48px}
 html body[data-page="home"] .hero>.hero-visual img{object-position:61% center}
 html body[data-page="home"] .hero>.hero-visual::after{background:linear-gradient(90deg,rgba(4,27,20,.88),rgba(4,27,20,.68) 48%,rgba(4,27,20,.42)),linear-gradient(0deg,rgba(4,27,20,.86),transparent 70%)}
 html body[data-page="home"] .hero .hero-quote{width:calc(100vw - 8px);max-width:none;align-self:center;margin:8px 0 4px}
}

/* Phone-only framing: keep the founder near centre, slightly to the right. */
@media(max-width:640px){
 html body[data-page="home"] .hero>.hero-visual img{object-position:50% center}
}
/* Home typer card: transparent background */
html body[data-page="home"] .hero .hc-typing {
  background: transparent !important;
}

/* Current-page feedback for desktop, mobile drawer and submenu links. */
.desktop-nav a.nav-link.active{color:var(--gold-light,#efd080)}
.desktop-nav a.nav-link.active::after{left:0;right:0;transform:scaleX(1);opacity:1}
.drawer-links a.active,.service-menu-panel a.service-menu-item.active{color:#ffdf92!important;background:#173e30;box-shadow:inset 3px 0 0 #d9b45f}

/* Non-heading footer and dialog labels keep their original presentation. */
.site-footer .footer-label{font:700 15px var(--font-serif);margin:0 0 8px}
.detail-modal .detail-title{font:700 27px/1.3 var(--font-serif);margin:0 0 14px}
html[dir="rtl"] .detail-modal .detail-title{font-family:'Noto Nastaliq Urdu',serif;letter-spacing:0;line-height:1.9}
@media(max-width:640px){
 .site-footer .footer-label{font-size:13px}
 .detail-modal .detail-title{font-size:23px}
}
