/* =========================================================
   Afdal Mohami — Bold National Network design system
   Works for both AR (dir=rtl) and EN (dir=ltr) via logical props
========================================================= */
:root{
  --teal:#0E7C7B;
  --teal-dark:#0A5958;
  --teal-darker:#083E3E;
  --sand:#E8B94A;
  --sand-dark:#C99A2E;
  --ink:#132523;
  --sub:#4C625F;
  --bg:#F5FAF9;
  --panel:#FFFFFF;
  --line:#D7E7E3;
  --danger:#B23A3A;
  --maxw:1200px;
  --radius:14px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; font-family:'Almarai','Inter',sans-serif; background:var(--bg); color:var(--ink); line-height:1.8; font-size:16px;}
[lang="en"] body, html[lang="en"] body{font-family:'Inter','Almarai',sans-serif;}
h1,h2,h3,.disp{font-family:'Lalezar','Fredoka',cursive; font-weight:400; color:var(--teal-dark); line-height:1.35;}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .disp{font-family:'Fredoka','Lalezar',sans-serif; font-weight:600;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
section{padding:70px 0;}
.section-tight{padding:40px 0;}

/* image placeholder block — replace when real photos arrive */
.imgph{
  border:2px dashed rgba(14,124,123,.4);
  background:repeating-linear-gradient(45deg,#EAF5F3,#EAF5F3 12px,#DFF0ED 12px,#DFF0ED 24px);
  display:flex; align-items:center; justify-content:center;
  color:var(--teal-dark); font-size:13px; text-align:center; padding:14px; border-radius:10px;
  min-height:180px;
}
.imgph-img{width:100%; height:100%; min-height:180px; object-fit:cover; border-radius:10px; display:block;}

/* real image assets */
.hero-icon{width:52px; height:52px; margin-bottom:14px; display:block;}
.hero-banner{width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:var(--radius); margin-top:22px; display:block;}
.page-image{width:100%; height:auto; border-radius:var(--radius); display:block;}

/* header / nav */
header.site{padding:18px 0; background:var(--bg); position:sticky; top:0; z-index:80; border-bottom:1px solid transparent;}
header.site.scrolled{background:rgba(245,250,249,.92); backdrop-filter:blur(8px); border-bottom-color:var(--line);}
header.site .wrap{display:flex; justify-content:space-between; align-items:center; gap:20px;}
.brand{display:flex; align-items:center; gap:9px; text-decoration:none;}
.brand-icon{height:38px; width:auto; display:block; flex-shrink:0;}
.brand-text{font-family:'Lalezar','Fredoka',cursive; font-size:26px; color:var(--teal-dark); white-space:nowrap;}
html[lang="en"] .brand-text{font-family:'Fredoka',sans-serif; font-weight:700;}
.brand-text span{color:var(--sand-dark);}
nav.primary{display:flex; gap:6px; font-size:14.5px; font-weight:700; align-items:center;}
nav.primary > a, nav.primary > .has-dd > button{
  padding:10px 14px; border-radius:8px; background:transparent; border:none; font:inherit; color:inherit; cursor:pointer;
}
nav.primary > a:hover, nav.primary > .has-dd:hover > button{background:var(--line);}
.has-dd{position:relative;}
.dd-panel{
  position:absolute; inset-inline-start:0; top:100%; margin-top:8px; background:#fff; border:1px solid var(--line);
  border-radius:12px; padding:14px; width:640px; box-shadow:0 24px 48px -24px rgba(10,89,88,.3);
  display:grid; grid-template-columns:repeat(2,1fr); gap:4px 18px;
  opacity:0; visibility:hidden; transform:translateY(6px); transition:.2s ease;
}
.has-dd:hover .dd-panel{opacity:1; visibility:visible; transform:none;}
.dd-panel a{display:block; padding:9px 10px; border-radius:8px; font-size:14px; font-weight:400;}
.dd-panel a:hover{background:var(--bg); color:var(--teal-dark);}
.header-ctas{display:flex; gap:10px; align-items:center;}
.lang-switch{border:1px solid var(--line); border-radius:20px; padding:8px 14px; font-size:13px; font-weight:700;}
.btn{display:inline-block; padding:13px 24px; border-radius:8px; font-weight:800; font-size:14px; border:2px solid transparent; cursor:pointer;}
.btn-sand{background:var(--sand); color:var(--teal-dark);}
.btn-sand:hover{background:var(--sand-dark);}
.btn-teal{background:var(--teal); color:#fff;}
.btn-teal:hover{background:var(--teal-dark);}
.btn-outline{background:transparent; border-color:var(--teal); color:var(--teal-dark);}
.btn-outline:hover{background:var(--teal); color:#fff;}
.btn-lg{padding:16px 30px; font-size:15px; border-radius:10px;}
.mobile-toggle{display:none;}

/* breadcrumbs */
.breadcrumbs{font-size:13px; color:var(--sub); padding:16px 0 0;}
.breadcrumbs a{color:var(--teal-dark);}
.breadcrumbs span{opacity:.5; margin:0 6px;}

/* hero (inner pages) */
.page-hero{position:relative; overflow:hidden; padding:44px 0 90px;}
.page-hero::after{content:""; position:absolute; inset-inline-start:0; bottom:0; width:100%; height:90px; background:var(--teal); clip-path:polygon(0 55%, 100% 0, 100% 100%, 0% 100%); z-index:0;}
.page-hero .inner{position:relative; z-index:1;}
.page-hero .eyebrow{background:var(--sand); color:var(--teal-dark); display:inline-block; padding:7px 16px; border-radius:30px; font-weight:800; font-size:12.5px; margin-bottom:16px;}
.page-hero h1{font-size:36px; margin-bottom:14px; max-width:780px;}
.page-hero p.lead{color:var(--sub); font-size:16.5px; max-width:640px; margin-bottom:0;}

/* homepage hero */
.home-hero{position:relative; overflow:hidden; padding:50px 0 120px;}
.home-hero::after{content:""; position:absolute; inset-inline-start:0; bottom:0; width:100%; height:140px; background:var(--teal); clip-path:polygon(0 60%, 100% 0, 100% 100%, 0% 100%); z-index:0;}
.home-hero .grid{position:relative; z-index:1; display:grid; grid-template-columns:1.1fr 1fr; gap:50px; align-items:center;}
.home-hero .eyebrow{background:var(--sand); color:var(--teal-dark); display:inline-block; padding:8px 18px; border-radius:30px; font-weight:800; font-size:13px; margin-bottom:20px;}
.home-hero h1{font-size:42px; line-height:1.4; margin-bottom:20px;}
.home-hero p.lead{color:var(--sub); font-size:17px; max-width:480px; margin-bottom:30px;}
.home-hero .ctas{display:flex; gap:14px; flex-wrap:wrap;}
.home-hero .imgph{aspect-ratio:1/1; border-radius:16px; transform:rotate(3deg);}

/* map / network band */
.map-band{background:var(--teal); color:#fff; padding:44px 0 54px; margin-top:-70px; position:relative; z-index:2;}
.map-band .grid{display:grid; grid-template-columns:1fr 1.4fr; gap:40px; align-items:center;}
.map-band h2{font-size:24px; color:var(--sand); margin-bottom:12px;}
.map-band p{color:#DCF0EE; font-size:15px;}
.city-net{display:grid; grid-template-columns:repeat(4,1fr); gap:10px;}
.city-node{background:rgba(255,255,255,.1); border:1px solid rgba(232,185,74,.4); border-radius:10px; padding:12px 6px; text-align:center; font-size:13px; transition:.2s;}
.city-node:hover{background:var(--sand); color:var(--teal-dark); font-weight:800;}

/* section heads */
.section-head{text-align:center; max-width:660px; margin:0 auto 46px;}
.section-head .eyebrow{background:#DFF0ED; color:var(--teal-dark); display:inline-block; padding:6px 16px; border-radius:20px; font-weight:800; font-size:12.5px; margin-bottom:12px;}
.section-head h2{font-size:29px;}
.section-head p{color:var(--sub); margin-top:12px; font-size:15.5px;}
.section-head.left{text-align:start; margin:0 0 40px;}

/* card grids */
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:20px;}
.card{background:#fff; border:2px solid var(--line); border-radius:var(--radius); padding:26px 22px; transition:transform .3s, border-color .3s;}
.card:hover{transform:translateY(-5px); border-color:var(--sand);}
.card .tag{display:inline-block; background:var(--bg); color:var(--teal-dark); font-size:11.5px; font-weight:800; padding:4px 10px; border-radius:20px; margin-bottom:10px;}
.card h3{font-family:'Almarai','Inter',sans-serif; font-weight:800; font-size:16.5px; margin:0 0 8px; color:var(--teal-dark);}
html[lang="en"] .card h3{font-family:'Inter',sans-serif;}
.card p{font-size:13.8px; color:var(--sub); margin:0;}
.card .more{display:inline-block; margin-top:12px; font-size:13px; font-weight:800; color:var(--teal-dark);}

/* body content block (service/industry/location/article pages) */
.content-block{max-width:820px;}
.content-block p{color:var(--sub); font-size:16px; margin:0 0 18px;}
.content-block h2{font-size:24px; margin:38px 0 14px;}
.content-block h3{font-size:19px; margin:26px 0 10px; color:var(--ink); font-family:'Almarai','Inter',sans-serif; font-weight:800;}
html[lang="en"] .content-block h3{font-family:'Inter',sans-serif;}
.content-block ul.check, ul.check{list-style:none; margin:0 0 20px;}
.content-block ul.check li, ul.check li{position:relative; padding-inline-start:30px; margin-bottom:12px; color:var(--sub);}
.content-block ul.check li::before, ul.check li::before{content:"●"; position:absolute; inset-inline-start:0; color:var(--sand-dark); font-size:11px; top:8px;}
.answer-box{background:#fff; border-inline-start:4px solid var(--teal); border-radius:8px; padding:22px 24px; margin-bottom:30px; box-shadow:0 10px 30px -20px rgba(10,89,88,.3);}
.answer-box p{margin:0; color:var(--ink); font-size:16px;}

/* sidebar (service/industry detail pages) */
.detail-layout{display:grid; grid-template-columns:1.7fr 1fr; gap:50px; align-items:start;}
.sidebar{position:sticky; top:100px; display:flex; flex-direction:column; gap:16px;}
.side-card{background:#fff; border:2px solid var(--line); border-radius:var(--radius); padding:22px;}
.side-card h4{font-size:15.5px; margin:0 0 12px; color:var(--teal-dark); font-family:'Almarai','Inter',sans-serif; font-weight:800;}
.side-card ul{list-style:none;}
.side-card li{padding:8px 0; border-top:1px solid var(--line); font-size:14px;}
.side-card li:first-child{border-top:none;}
.side-card li a:hover{color:var(--teal-dark);}
.side-cta{background:var(--teal); color:#fff; border-radius:var(--radius); padding:24px; text-align:center;}
.side-cta h4{color:var(--sand); font-size:16px;}
.side-cta p{color:#DCF0EE; font-size:13.5px; margin:8px 0 16px;}

/* FAQ accordion */
.faq{border:2px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff;}
.faq-item{border-top:1px solid var(--line);}
.faq-item:first-child{border-top:none;}
.faq-q{width:100%; text-align:start; background:none; border:none; font:inherit; font-weight:800; font-size:15px; padding:18px 22px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; color:var(--ink);}
.faq-q .ic{color:var(--sand-dark); font-size:18px; transition:transform .25s;}
.faq-item.open .faq-q .ic{transform:rotate(45deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .3s ease;}
.faq-a p{padding:0 22px 20px; color:var(--sub); font-size:14.5px; margin:0;}

/* city / location pages */
.city-hero-stats{display:flex; gap:30px; flex-wrap:wrap; margin-top:20px;}
.city-hero-stats div b{display:block; font-family:'Lalezar','Fredoka',cursive; color:var(--teal-dark); font-size:24px;}
html[lang="en"] .city-hero-stats div b{font-family:'Fredoka',sans-serif;}
.city-hero-stats div span{font-size:12.5px; color:var(--sub);}
.city-grid-index{display:grid; grid-template-columns:repeat(6,1fr); gap:10px;}
.city-cell{background:#fff; border:2px solid var(--line); border-radius:10px; padding:14px 8px; text-align:center; font-size:13.5px; transition:.2s;}
.city-cell:hover{border-color:var(--sand); transform:translateY(-3px);}
.city-cell b{display:block; font-family:'Lalezar','Fredoka',cursive; color:var(--teal-dark); font-size:15.5px;}
html[lang="en"] .city-cell b{font-family:'Fredoka',sans-serif;}

/* tools / calculators */
.tool-box{background:#fff; border:2px solid var(--line); border-radius:var(--radius); padding:32px;}
.tool-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
.tool-row label{display:block; font-size:13.5px; font-weight:800; margin-bottom:6px; color:var(--ink);}
.tool-row input, .tool-row select{width:100%; padding:12px 14px; border:2px solid var(--line); border-radius:8px; font:inherit; background:var(--bg);}
.tool-result{margin-top:20px; background:var(--bg); border:2px dashed var(--sand); border-radius:10px; padding:20px; font-size:15px;}
.tool-disclaimer{font-size:12.5px; color:var(--sub); margin-top:14px; padding-top:14px; border-top:1px solid var(--line);}

/* CTA band */
.cta-band{background:linear-gradient(120deg,var(--teal),var(--teal-dark)); color:#fff; text-align:center; padding:64px 0; border-radius:24px; margin:0 24px;}
.cta-band h2{font-size:28px; color:var(--sand); margin-bottom:14px;}
.cta-band p{color:#DCF0EE; margin-bottom:24px;}
.cta-band .btn-sand{color:var(--teal-dark);}

/* trust strip */
.trust-strip{background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:20px 0;}
.trust-strip .wrap{display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; font-size:13.5px; text-align:center;}
.trust-strip strong{display:block; color:var(--teal-dark); font-family:'Lalezar','Fredoka',cursive; font-size:15px;}
html[lang="en"] .trust-strip strong{font-family:'Fredoka',sans-serif;}

/* article */
.article-meta{color:var(--sub); font-size:13.5px; margin-bottom:20px;}
.article-body{max-width:760px;}
.article-body p{font-size:16.5px; color:var(--ink); margin:0 0 20px;}
.article-body h2{font-size:23px; margin:34px 0 12px;}

/* footer */
footer.site{background:var(--ink); color:#9FC0BC; padding:56px 0 24px; font-size:13.8px; margin-top:70px;}
.foot-grid{display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:34px; margin-bottom:32px;}
footer.site h4{color:var(--sand); font-family:'Lalezar','Fredoka',cursive; margin-bottom:12px; font-size:17px; font-weight:400;}
html[lang="en"] footer.site h4{font-family:'Fredoka',sans-serif; font-weight:700;}
footer.site li{list-style:none; margin-bottom:7px;}
footer.site li a:hover{color:#fff;}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1); padding-top:16px; text-align:center; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

/* whatsapp floating button */
.wa-float{position:fixed; inset-inline-end:20px; bottom:20px; background:#1FA37E; color:#fff; width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:24px; box-shadow:0 10px 24px -8px rgba(0,0,0,.4); z-index:90;}

/* reveal animation */
.reveal{opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1; transform:none;}

/* responsive */
@media(max-width:980px){
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .detail-layout{grid-template-columns:1fr;}
  .sidebar{position:static;}
  .city-grid-index{grid-template-columns:repeat(3,1fr);}
  .foot-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:760px){
  nav.primary, .lang-switch{display:none;}
  .mobile-toggle{display:block; background:none; border:none; font-size:22px;}
  .home-hero .grid, .map-band .grid{grid-template-columns:1fr;}
  .city-net{grid-template-columns:repeat(2,1fr);}
  .grid-4, .grid-3, .grid-2{grid-template-columns:1fr;}
  .city-grid-index{grid-template-columns:repeat(2,1fr);}
  .home-hero h1, .page-hero h1{font-size:28px;}
  .cta-band{margin:0 12px; padding:44px 20px;}
}

/* social icons */
.social-icons{display:flex; gap:10px; margin-top:12px;}
.social-icons a{color:rgba(255,255,255,.8); display:flex; width:32px; height:32px; align-items:center; justify-content:center; border-radius:50%; background:rgba(255,255,255,.08); transition:background .2s ease, color .2s ease;}
.social-icons a:hover{background:var(--sand); color:var(--teal-darker);}
.social-icons svg{width:16px; height:16px; display:block;}

/* contextual in-content links (blog/service/hub/industry/city prose) */
.content-block p a, .content-block li a, .answer-box a{
  color:var(--teal-dark);
  text-decoration:underline;
  text-decoration-color:rgba(14,124,123,.35);
  text-underline-offset:3px;
  font-weight:600;
  transition:color .15s ease, text-decoration-color .15s ease;
}
.content-block p a:hover, .content-block li a:hover, .answer-box a:hover{
  color:var(--sand-dark);
  text-decoration-color:currentColor;
}
