/*
 Rami Igual Studio refinements — 2026-11-23
 Reference-aligned information hierarchy: five-link compact masthead,
 readable inner article headings, refined legal services directory.
 Keeps original design palette (#151924, #be9475, #f8f5f1).
*/
.rami-header-refined{position:relative;z-index:100;background:#171c29;color:#fff}
.rami-header-refined .rami-header-inner{min-height:88px;display:grid;grid-template-columns:minmax(205px,1fr) auto minmax(160px,1fr);gap:26px;align-items:center;justify-content:initial}
.rami-header-refined .rami-brand{min-width:0;gap:12px;justify-self:start}
.rami-header-refined .rami-brand img{width:52px;height:52px;flex:none}
.rami-header-refined .rami-brand-name{font-size:19px;line-height:1.35}
.rami-header-refined .rami-brand-sub{font-size:11px;white-space:nowrap}
.rami-topbar{background:#101521;color:#c6bec0;font-size:12px}
.rami-topbar .rami-topbar-inner{min-height:34px;gap:20px;display:flex;align-items:center;justify-content:space-between}
.rami-header-refined .rami-desktop-main{display:block;min-width:0}
.rami-ref-nav{display:flex;align-items:center;justify-content:center;list-style:none!important;gap:5px;margin:0!important;padding:0!important}
.rami-ref-nav>li{list-style:none!important;margin:0!important;flex:none}
.rami-ref-nav>li>a{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:17px 13px;line-height:1.5;color:#f5f1ec;text-decoration:none;font-weight:700;font-size:15px;position:relative;transition:color .2s}
.rami-ref-nav>li>a:hover,.rami-ref-nav>li>a:focus-visible,.rami-ref-nav>li>a[aria-current="page"]{color:#e4b897}
.rami-ref-nav>li>a::after{content:'';position:absolute;bottom:6px;right:13px;left:13px;height:2px;background:#be9475;transform:scaleX(0);transform-origin:right;transition:transform .2s}
.rami-ref-nav>li:hover>a::after,.rami-ref-nav>li>a:focus-visible::after,.rami-ref-nav>li>a[aria-current="page"]::after{transform:scaleX(1)}
.rami-drop-arrow{font-size:17px;margin-right:2px;color:#d4a888;transform:translateY(-2px)}
.rami-nav-has-sub{position:relative}
.rami-mega-services{position:absolute;top:100%;right:-115px;width:550px;background:#fff;border-top:3px solid #be9475;box-shadow:0 22px 65px rgba(16,21,34,.22);padding:22px 25px 21px;border-radius:0 0 7px 7px;visibility:hidden;opacity:0;transform:translateY(7px);pointer-events:none;transition:opacity .18s,transform .18s,visibility .18s;z-index:120;direction:rtl}
.rami-nav-has-sub:hover .rami-mega-services,.rami-nav-has-sub:focus-within .rami-mega-services{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto}
.rami-mega-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:16px;border-bottom:1px solid #ece6df}
.rami-mega-head strong{font-size:18px;color:#171c29}
.rami-mega-head>span{font-size:12px;color:#777}
.rami-mega-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px;padding-top:15px}
.rami-mega-grid>a{color:#273040;text-decoration:none;font-size:14px;font-weight:700;border-radius:4px;padding:11px 13px;background:#fbf9f6;transition:background .2s,color .2s}
.rami-mega-grid>a::before{content:'◈';display:inline-block;color:#be9475;font-size:11px;margin-left:9px}
.rami-mega-grid>a:hover,.rami-mega-grid>a:focus-visible{background:#f0e5dc;color:#101624}
.rami-mega-all{display:block;color:#9b6948!important;text-decoration:none!important;font-size:14px;font-weight:800;margin-top:15px;padding-top:15px;border-top:1px solid #eee}
.rami-header-phone{justify-self:end;display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#fff;white-space:nowrap;direction:rtl}
.rami-header-phone:hover{color:#fff}
.rami-phone-circle{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(190,148,117,.55);border-radius:50%;color:#dcb38e;font-size:21px}
.rami-phone-copy{display:flex;flex-direction:column;gap:3px;align-items:flex-end}
.rami-phone-copy small{font-size:11px;color:#c0b9b8}
.rami-phone-copy b{font-size:16px;letter-spacing:.03em;color:#f5f1ed;line-height:1.2;font-weight:800}
.rami-header-refined .rami-mobile-menu{display:none}
@media(max-width:1190px){.rami-header-refined .rami-header-inner{grid-template-columns:minmax(168px,1fr) auto minmax(134px,1fr);gap:12px}.rami-ref-nav>li>a{font-size:14px;padding:15px 9px}.rami-header-refined .rami-brand-name{font-size:16px}.rami-header-refined .rami-brand-sub{font-size:10px}.rami-header-phone b{font-size:14px}.rami-phone-circle{width:35px;height:35px}}
@media(max-width:1020px){.rami-header-refined .rami-header-inner{min-height:76px;display:flex;justify-content:space-between}.rami-header-refined .rami-desktop-main{display:none}.rami-header-refined .rami-mobile-menu{display:block;margin-right:auto;position:relative}.rami-header-refined .rami-header-phone{margin-right:0;margin-left:auto}.rami-mobile-refined>summary{list-style:none;border:1px solid rgba(190,148,117,.5);color:#fff;font-weight:800;display:flex;gap:12px;align-items:center;padding:11px 16px;border-radius:4px;cursor:pointer;background:#232936;font-size:14px}.rami-mobile-refined>summary::before{display:none!important}.rami-mobile-refined>summary span{color:#be9475}.rami-mobile-refined .rami-mobile-panel{position:absolute;right:auto;left:0;top:calc(100% + 12px);background:#fff;width:min(88vw,350px);box-shadow:0 20px 70px rgba(0,0,0,.2);padding:14px 18px;max-height:min(74vh,620px);overflow-y:auto;border-top:3px solid #be9475;z-index:120}.rami-mobile-refined .rami-mobile-panel>a,.rami-mobile-refined .rami-mobile-services>summary{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:#1d2837;font-weight:800;padding:12px 6px;border-bottom:1px solid #eee;cursor:pointer;font-size:14px}.rami-mobile-refined .rami-mobile-services>summary{list-style:none}.rami-mobile-refined .rami-mobile-service-links{background:#fbf8f5;padding:4px 13px}.rami-mobile-refined .rami-mobile-service-links>a{display:block;color:#33404f;text-decoration:none;padding:8px 9px;font-weight:600;font-size:13px;border-bottom:1px solid #f1ebe6}.rami-mobile-refined .rami-mobile-panel .rami-mobile-call{color:#986e52;border:0}}
@media(max-width:610px){.rami-topbar .rami-topbar-inner{justify-content:center;font-size:11px}.rami-topbar-address{display:none!important}.rami-header-refined .rami-header-inner{gap:10px}.rami-header-refined .rami-brand-name{font-size:15px}.rami-header-refined .rami-brand-sub{font-size:9px}.rami-header-refined .rami-brand img{width:43px;height:43px}.rami-header-phone{display:none}.rami-header-refined .rami-mobile-menu{margin-right:auto}.rami-mobile-refined>summary{font-size:13px;padding:9px 11px}}
/* Shared non-home inner pages and posts: clean article title presentation. */
.rami-inner-masthead{background:#f8f5f1;border-bottom:1px solid #e7ded6;position:relative}
.rami-inner-masthead:before{content:'';position:absolute;right:0;top:0;bottom:0;width:4px;background:#be9475}
.rami-inner-masthead .rami-wrap{padding-top:48px;padding-bottom:50px}
.rami-inner-masthead h1{font-family:'Tajawal','Segoe UI',sans-serif;font-size:clamp(29px,3vw,43px);font-weight:800;line-height:1.55;letter-spacing:-.025em;color:#182130;max-width:1040px;margin:13px 0 0}
.rami-inner-eyebrow{display:inline-block;font-size:13px;font-weight:800;color:#a17a5b;letter-spacing:.015em}
.rami-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#7d7772;font-size:12px;margin-bottom:23px}
.rami-crumbs a{color:#7a7470;text-decoration:none;font-size:12px}
.rami-crumbs a:hover{color:#a57e60}
.rami-crumbs span[aria-hidden="true"]{color:#bfa78f}
.rami-post-masthead .rami-post-masthead-wrap{max-width:1230px}
.rami-post-masthead h1{max-width:900px;font-size:clamp(29px,2.9vw,39px);line-height:1.58}
.rami-post-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#686b71;font-size:13px;margin-top:18px}
.rami-post-meta .rami-meta-dot{color:#be9475;font-weight:900}
.rami-article-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:50px;padding-top:56px;padding-bottom:80px}
.rami-article-layout .rami-reading-article{min-width:0;max-width:100%}
.rami-article-featured{margin:0 0 33px}
.rami-article-featured img{width:100%;height:auto;max-height:500px;object-fit:cover;border-radius:5px;display:block}
.rami-reading-content{font-family:'Tajawal',Arial,sans-serif;font-size:17px;line-height:2.04;color:#303846;overflow-wrap:anywhere}
.rami-reading-content>article{max-width:100%}
.rami-reading-content h2,.rami-inner-page-content h2,.rami-hub-editorial h2{font-family:'Tajawal',Arial,sans-serif!important;font-weight:800!important;font-size:clamp(23px,2vw,29px)!important;line-height:1.6!important;color:#1b2534!important;border-bottom:1px solid #e9e1d9;padding-bottom:13px;margin:39px 0 18px!important;position:relative}
.rami-reading-content h2:after,.rami-inner-page-content h2:after,.rami-hub-editorial h2:after{content:'';position:absolute;right:0;bottom:-2px;width:50px;height:3px;background:#be9475}
.rami-reading-content h3,.rami-inner-page-content h3,.rami-hub-editorial h3{font-family:'Tajawal',Arial,sans-serif!important;color:#252f3d!important;font-size:clamp(19px,1.65vw,23px)!important;line-height:1.6!important;margin:28px 0 12px!important;font-weight:800!important}
.rami-reading-content p,.rami-inner-page-content p,.rami-hub-editorial p{line-height:2!important;font-size:16px;color:#39414e}
.rami-reading-content ul,.rami-reading-content ol,.rami-inner-page-content ul,.rami-inner-page-content ol,.rami-hub-editorial ul,.rami-hub-editorial ol{padding-inline-start:25px;line-height:2}
.rami-reading-content li,.rami-inner-page-content li,.rami-hub-editorial li{margin-bottom:6px}
.rami-reading-content a,.rami-inner-page-content a,.rami-hub-editorial a{color:#95694b;text-decoration:underline;text-underline-offset:3px}
.rami-reading-content a:hover,.rami-inner-page-content a:hover,.rami-hub-editorial a:hover{color:#6c432f}
.rami-reading-content table,.rami-inner-page-content table,.rami-hub-editorial table{width:100%!important;border-collapse:collapse;display:table;overflow-wrap:anywhere;margin:25px 0 30px;background:#fff;box-shadow:0 4px 25px rgba(17,21,32,.03)}
.rami-reading-content th,.rami-inner-page-content th,.rami-hub-editorial th{background:#19202f!important;color:#fff!important;text-align:right;font-weight:700}
.rami-reading-content td,.rami-reading-content th,.rami-inner-page-content td,.rami-inner-page-content th,.rami-hub-editorial td,.rami-hub-editorial th{padding:14px 12px;border:1px solid #e7e1d9;vertical-align:top}
.rami-reading-content blockquote{border-right:3px solid #be9475;background:#fbf8f4;padding:24px}
.rami-reading-content img,.rami-inner-page-content img,.rami-hub-editorial img{max-width:100%;height:auto}
.rami-reading-sidebar{position:sticky;top:24px;display:flex;flex-direction:column;gap:22px}
.rami-article-bottom-link{border-top:1px solid #e7e1d9;margin-top:35px;padding-top:28px}
.rami-article-bottom-link a{color:#9c7054;font-weight:800;text-decoration:none}
.rami-page-content-wrap{padding-top:48px;padding-bottom:90px}
.rami-inner-page-article{max-width:1040px;margin:0 auto}
.rami-inner-page-content{font-size:17px;line-height:2;color:#303846}
.rami-inner-page-content>article,.rami-inner-page-content>.rami-service-page,.rami-inner-page-content>.rami-blog-page{max-width:100%!important;padding:0!important;margin:0!important;line-height:2!important;color:#303846!important}
.rami-inner-page-content [style*="color:#081f3a"]{color:#1c2635!important}
.rami-inner-page-content [style*="color:#b88a2a"]{color:#ae866b!important}
.rami-inner-page-content>article>header{margin:0 0 32px!important}
/* Premium service hub: one purpose per card, airy spacing, accessible 8-card directory. */
.rami-hub-masthead .rami-wrap{padding-top:50px;padding-bottom:54px}
.rami-masthead-description{font-size:17px;color:#646771;line-height:1.95;max-width:830px;margin:16px 0 0}
.rami-hub-hero-intro{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:45px;align-items:center;padding:55px 0 48px}
.rami-hub-intro-copy h2{font-size:clamp(26px,2.4vw,34px);font-weight:800;color:#192333;margin:11px 0 16px;line-height:1.5}
.rami-hub-intro-copy p{line-height:2;color:#5f6470;font-size:16px;max-width:850px;margin:0}
.rami-hub-intro-cta{display:flex;flex-direction:column;gap:10px;padding:24px 27px;background:#171e2d;color:#fff!important;border-right:4px solid #be9475;text-decoration:none!important;min-height:148px;justify-content:center;transition:transform .2s}
.rami-hub-intro-cta:hover{transform:translateY(-4px);color:#fff!important}
.rami-hub-intro-cta strong{font-size:17px;font-weight:800;color:#fff}
.rami-hub-intro-cta>span{color:#d2c6be;font-size:13px}
.rami-hub-intro-cta b{color:#e1b38d;font-size:14px}
.rami-hub-card-section{background:#fff;border-top:1px solid #ebe5de;border-bottom:1px solid #ebe5de;padding:58px 0 72px}
.rami-hub-section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;padding-bottom:20px}
.rami-hub-section-heading h2{font-size:clamp(29px,2.6vw,38px);color:#1a2230;font-weight:800;line-height:1.4;margin:10px 0 0}
.rami-hub-section-heading>p{color:#777;max-width:360px;text-align:left;line-height:1.8;font-size:14px;margin:0}
.rami-hub-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:20px}
.rami-hub-service-card{display:flex;flex-direction:column;min-width:0;min-height:280px;text-decoration:none!important;color:#1c2533!important;background:#fbfaf8;border:1px solid #e8e2da;padding:24px 21px 23px;position:relative;overflow:hidden;transition:transform .23s,border-color .23s,box-shadow .23s}
.rami-hub-service-card:before{content:'';position:absolute;top:0;right:0;left:0;height:3px;background:#be9475;transform:scaleX(0);transform-origin:right;transition:transform .22s}
.rami-hub-service-card:hover,.rami-hub-service-card:focus-visible{transform:translateY(-5px);border-color:#cbb19d;box-shadow:0 18px 42px rgba(20,25,34,.09);color:#1c2533!important}
.rami-hub-service-card:hover:before,.rami-hub-service-card:focus-visible:before{transform:scaleX(1)}
.rami-hub-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.rami-hub-number{font-family:'Amiri',serif;font-size:38px;color:#b38a6c;line-height:1}
.rami-hub-card-arrow{font-size:18px;color:#9d7a61;transform:rotate(-90deg)}
.rami-hub-card-kicker{font-size:12px;color:#9d7a61;font-weight:800;display:block;min-height:17px}
.rami-hub-service-card h3{font-size:19px;color:#1c2633;font-weight:800;margin:9px 0 12px;line-height:1.45}
.rami-hub-service-card>p{color:#6c6e76;font-size:13px;line-height:1.92;margin:0 0 18px}
.rami-hub-card-link{font-size:12px;color:#96694c;font-weight:800;margin-top:auto;display:inline-flex;gap:7px;align-items:center}
.rami-hub-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:55px;align-items:start;padding-top:80px;padding-bottom:85px}
.rami-hub-reading{min-width:0}
.rami-hub-reading-heading{padding-bottom:19px;border-bottom:1px solid #e9e2db;margin-bottom:26px}
.rami-hub-reading-heading h2{color:#1c2533;font-size:clamp(27px,2.4vw,34px);font-weight:800;margin:9px 0 0}
.rami-hub-editorial{font-size:16px;line-height:2;color:#333e4a}
.rami-hub-editorial .rami-services-hub{padding:0!important;margin:0!important;max-width:none!important;line-height:2!important;color:#333e4a!important}
.rami-hub-editorial .rami-services-hub>header{margin:0 0 30px!important}
.rami-hub-editorial .rami-services-hub>header p:first-child{color:#ae8364!important}
.rami-hub-editorial .rami-services-hub section{margin:20px 0!important}
.rami-hub-editorial .rami-services-hub section[style*="background"]{background:#f7f3ed!important;border-right:3px solid #be9475!important;border-radius:3px!important;padding:22px!important}
.rami-hub-editorial .rami-services-hub section[style*="border:1px"]{background:#fff!important;border:1px solid #e8ddd2!important;border-radius:4px!important;padding:24px!important}
.rami-hub-editorial .rami-services-hub div[style*="display:grid"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important}
.rami-hub-editorial .rami-services-hub div[style*="border:1px"]{border:1px solid #e6ded5!important;border-radius:4px!important;background:#fff!important;padding:20px!important}
.rami-hub-editorial .rami-services-hub [style*="background:#081f3a"]{background:#1a2230!important;color:#fff!important;border-radius:4px!important}
.rami-hub-editorial .rami-services-hub h2[style],.rami-hub-editorial .rami-services-hub h3[style]{color:#202b3a!important}
.rami-hub-editorial .rami-services-hub a[style*="background:#081f3a"]{color:#fff!important}
.rami-hub-side-column{display:flex;flex-direction:column;gap:21px;position:sticky;top:25px}
.rami-hub-side-card{background:#fff;border:1px solid #e7e1da;padding:25px 23px;box-shadow:0 6px 25px rgba(16,24,36,.035)}
.rami-hub-side-card>h3{font-size:18px;color:#1b2533;font-weight:800;margin:0 0 16px}
.rami-hub-side-card p{font-size:14px;line-height:1.93;color:#69717b;margin:0 0 15px}
.rami-hub-side-card ul{list-style:none;padding:0;margin:0}
.rami-hub-side-card li{padding:9px 0;border-bottom:1px solid #ede7df}
.rami-hub-side-card li:last-child{border:0}
.rami-hub-side-card li a{color:#344152;text-decoration:none;font-size:14px;font-weight:700}
.rami-hub-side-card li a:before{content:'←';color:#b48e73;margin-left:8px}
.rami-hub-side-card-dark{background:#171d2c;color:#fff;border-color:#171d2c}
.rami-hub-side-card-dark>span{display:block;color:#d5aa85;font-weight:700;font-size:13px;margin-bottom:11px}
.rami-hub-side-card-dark>h3{color:#fff;font-family:'Tajawal',sans-serif;line-height:1.5;font-size:22px}
.rami-hub-side-card-dark>p{color:#d3d1d0}
.rami-hub-side-card-dark>a:not(.rami-hub-side-phone){display:inline-flex;background:#be9475;color:#171c28!important;font-weight:800;text-decoration:none;padding:12px 16px;border-radius:3px;margin-top:9px}
.rami-hub-side-phone{display:block;margin-top:18px;color:#fff!important;font-size:19px;font-weight:800;text-decoration:none}
.rami-hub-reassurance{background:#faf7f2;border-right:3px solid #be9475}
.rami-hub-reassurance p{margin-top:10px}
@media(max-width:1150px){.rami-hub-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.rami-hub-content-layout,.rami-article-layout{gap:27px;grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:950px){.rami-hub-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.rami-hub-intro-cta{max-width:420px}.rami-hub-hero-intro{grid-template-columns:1fr;gap:25px}.rami-hub-content-layout,.rami-article-layout{grid-template-columns:1fr}.rami-hub-side-column,.rami-reading-sidebar{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.rami-hub-side-column .rami-hub-reassurance{grid-column:1/-1}.rami-inner-masthead .rami-wrap{padding-top:38px;padding-bottom:42px}}
@media(max-width:650px){.rami-hub-cards{grid-template-columns:1fr;gap:13px}.rami-hub-card-section{padding:40px 0 50px}.rami-hub-service-card{min-height:215px;padding:21px}.rami-hub-card-top{margin-bottom:6px}.rami-hub-number{font-size:30px}.rami-hub-section-heading{display:block}.rami-hub-section-heading>p{text-align:right;margin-top:13px}.rami-hub-content-layout{padding-top:50px}.rami-hub-side-column,.rami-reading-sidebar{display:block}.rami-hub-side-card{margin-bottom:17px}.rami-hub-editorial .rami-services-hub div[style*="display:grid"]{grid-template-columns:1fr!important}.rami-inner-masthead h1,.rami-post-masthead h1{font-size:clamp(27px,7vw,35px)}.rami-inner-masthead .rami-wrap{padding-top:30px;padding-bottom:36px}.rami-crumbs{gap:7px;white-space:normal}.rami-article-layout{padding-top:35px}.rami-reading-content,.rami-inner-page-content{font-size:16px}.rami-reading-content table,.rami-inner-page-content table,.rami-hub-editorial table{font-size:12px}.rami-reading-content td,.rami-reading-content th,.rami-inner-page-content td,.rami-inner-page-content th,.rami-hub-editorial td,.rami-hub-editorial th{padding:9px 7px}}
@media(prefers-reduced-motion:reduce){.rami-hub-service-card,.rami-hub-intro-cta,.rami-mega-services{transition:none}}
