@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   المنارة للحلول القانونية المتكاملة — Al-Manara Integrated Legal Solutions
   Design system · RTL-first · Rubik
   ========================================================================== */

/* Brand palette: charcoal + bronze (approved stationery/signage kit).
   The original navy/gold variable names are kept so every rule that already
   references them repaints automatically. */
:root{
  --navy-900:#18140f;
  --navy-800:#221c15;
  --navy-700:#2e261c;
  --navy-600:#3b3122;
  --gold-500:#a97e3b;
  --gold-400:#c29a54;
  --gold-300:#d9bd8a;
  --sand-50:#faf7f2;
  --sand-100:#f2ebdf;
  --sand-200:#e4d8c3;
  --ink-900:#1c1712;
  --ink-700:#3d352b;
  --ink-500:#6b6053;
  --ink-300:#a89b87;
  --white:#ffffff;

  --bg:var(--white);
  --bg-alt:var(--sand-50);
  --text:var(--ink-900);
  --text-muted:var(--ink-500);
  --border:var(--sand-200);

  --radius:14px;
  --radius-sm:8px;
  --radius-lg:24px;
  --shadow-sm:0 1px 2px rgba(8,18,33,.06),0 2px 8px rgba(8,18,33,.04);
  --shadow-md:0 4px 12px rgba(8,18,33,.08),0 12px 32px rgba(8,18,33,.06);
  --shadow-lg:0 12px 32px rgba(8,18,33,.10),0 32px 64px rgba(8,18,33,.08);

  --wrap:1200px;
  --gutter:clamp(1.25rem,4vw,3rem);
  --section-y:clamp(3.5rem,8vw,7rem);

  --font:'Rubik',-apple-system,'Segoe UI',Tahoma,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--font);
  font-weight:400;
  font-size:clamp(1rem,.97rem + .15vw,1.0625rem);
  line-height:1.85;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4,h5{
  font-family:var(--font);
  font-weight:700;
  line-height:1.3;
  color:var(--navy-900);
  margin:0 0 .6em;
  letter-spacing:-.01em;
}
h1{font-size:clamp(1.9rem,1.3rem + 2.6vw,3.4rem);font-weight:800;line-height:1.22}
h2{font-size:clamp(1.5rem,1.15rem + 1.6vw,2.4rem)}
h3{font-size:clamp(1.2rem,1.05rem + .7vw,1.6rem)}
h4{font-size:clamp(1.05rem,1rem + .35vw,1.25rem);font-weight:600}
p{margin:0 0 1.15em}
p:last-child{margin-bottom:0}
a{color:var(--navy-700);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--gold-500)}
img{max-width:100%;height:auto;display:block}
ul,ol{margin:0 0 1.15em;padding-inline-start:1.35em}
li{margin-bottom:.55em}
li:last-child{margin-bottom:0}
strong,b{font-weight:600;color:var(--navy-800)}

:focus-visible{outline:3px solid var(--gold-500);outline-offset:3px;border-radius:4px}

/* Overflow safeguards: long unbroken words (mostly Latin product names inside
   Arabic copy) and form controls with a wide intrinsic size are the two things
   that push narrow phones into horizontal scrolling. */
h1,h2,h3,h4,h5,p,li,td,th,a{overflow-wrap:break-word}
.grid > *,.contact-grid > *,.hero__inner > *{min-width:0}
.field input,.field select,.field textarea{min-width:0;max-width:100%}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:var(--section-y)}
.section--alt{background:var(--bg-alt)}
.section--navy{background:var(--navy-900);color:var(--sand-100)}
.section--navy h2,.section--navy h3,.section--navy h4{color:var(--white)}
.section--navy p{color:#cfc3ad}

/* ---------- Shared bits ---------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:.55rem;
  font-size:.8rem;font-weight:600;letter-spacing:.08em;
  color:var(--gold-500);text-transform:uppercase;
  margin-bottom:1rem;
}
.eyebrow::before{content:"";width:28px;height:2px;background:var(--gold-500);border-radius:2px}
.section--navy .eyebrow{color:var(--gold-400)}

.section-head{max-width:56ch;margin-bottom:clamp(2rem,4vw,3.25rem)}
.section-head.is-center{max-width:60ch;margin-inline:auto;text-align:center}
.section-head.is-center .eyebrow{justify-content:center}
.section-head p{color:var(--text-muted);font-size:1.05em}
.section--navy .section-head p{color:#c4b8a1}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  padding:.85rem 1.75rem;border-radius:100px;border:1.5px solid transparent;
  font-family:var(--font);font-size:.95rem;font-weight:600;line-height:1.4;
  cursor:pointer;transition:all .22s ease;text-align:center;
}
.btn--gold{background:var(--gold-500);color:var(--navy-900);border-color:var(--gold-500)}
.btn--gold:hover{background:var(--gold-400);border-color:var(--gold-400);color:var(--navy-900);transform:translateY(-2px);box-shadow:0 8px 22px rgba(169,126,59,.32)}
.btn--navy{background:var(--navy-800);color:var(--white);border-color:var(--navy-800)}
.btn--navy:hover{background:var(--navy-600);border-color:var(--navy-600);color:var(--white);transform:translateY(-2px)}
.btn--ghost{background:transparent;color:var(--navy-800);border-color:var(--sand-200)}
.btn--ghost:hover{border-color:var(--navy-800);color:var(--navy-900)}
/* Ghost buttons sitting on any dark ground */
.section--navy .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.cta-band .btn--ghost{color:var(--sand-100);border-color:rgba(255,255,255,.28)}
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.cta-band .btn--ghost:hover{border-color:var(--gold-400);color:var(--gold-300);background:rgba(255,255,255,.04)}
.btn__ico{width:1.05em;height:1.05em;flex:none}
[dir="rtl"] .btn__ico{transform:scaleX(-1)}

/* ---------- Header ---------- */
.site-header{
  /* sticky also makes this the positioning context for the mobile nav panel */
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
.header-bar{display:flex;align-items:center;gap:1.25rem;min-height:78px}
/* The header row needs more room than the 1200px reading column: nine Arabic
   (or, in English, nine longer-worded) menu items plus the brand, language
   switcher and CTA. Letting only the header run wider keeps the nav on one
   line without loosening the body text measure. */
.site-header .wrap{max-width:1540px}

/* flex:0 0 auto keeps the lockup at its natural width. It must not shrink:
   margin-inline-end:auto absorbs the row's slack, and a shrinkable brand would
   be squeezed by it even when there is spare room, truncating the name. */
.brand{display:flex;align-items:center;gap:.75rem;flex:0 0 auto;margin-inline-end:auto}
.brand__mark{
  width:44px;height:44px;flex:none;border-radius:11px;
  background:linear-gradient(145deg,var(--navy-800),var(--navy-600));
  display:grid;place-items:center;box-shadow:var(--shadow-sm);
}
.brand__mark svg{width:24px;height:24px}
.brand__text{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.brand__name{font-size:1.02rem;font-weight:700;color:var(--navy-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand__tag{font-size:.72rem;font-weight:400;color:var(--text-muted);letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nav{display:flex;align-items:center;gap:.15rem;min-width:0}
/* WordPress renders the menu as ul > li > a; strip list chrome so it lays out
   as a flat row of links. */
.nav ul,.nav__list{display:flex;align-items:center;gap:.15rem;list-style:none;margin:0;padding:0;flex-wrap:nowrap}
.nav li{margin:0;list-style:none}
.nav a{
  padding:.55rem .9rem;border-radius:8px;font-size:.94rem;font-weight:500;
  color:var(--ink-700);white-space:nowrap;transition:all .18s ease;
}
.nav a:hover{background:var(--sand-100);color:var(--navy-900)}
.nav a.is-active,
.nav li.current-menu-item > a,
.nav li.current_page_item > a{color:var(--navy-900);font-weight:600}
.nav a.is-active::after,
.nav li.current-menu-item > a::after,
.nav li.current_page_item > a::after{content:"";display:block;height:2px;margin-top:3px;background:var(--gold-500);border-radius:2px}
/* Booking CTA that only appears inside the mobile menu */
.nav__cta{display:none}

.header-actions{display:flex;align-items:center;gap:.6rem;flex:none}

.lang{position:relative}
.lang__btn{
  display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .8rem;
  border:1.5px solid var(--border);border-radius:100px;background:transparent;
  font-family:var(--font);font-size:.85rem;font-weight:500;color:var(--ink-700);cursor:pointer;
  transition:border-color .2s ease;
}
.lang__btn:hover{border-color:var(--navy-800);color:var(--navy-900)}
.lang__menu{
  position:absolute;inset-block-start:calc(100% + .5rem);inset-inline-end:0;
  min-width:150px;padding:.4rem;background:var(--white);
  border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);
  display:none;
}
.lang.is-open .lang__menu{display:block}
.lang__menu a{display:block;padding:.5rem .7rem;border-radius:6px;font-size:.9rem;color:var(--ink-700)}
.lang__menu a:hover{background:var(--sand-100);color:var(--navy-900)}

.burger{
  display:none;width:44px;height:44px;padding:0;flex:none;
  border:1.5px solid var(--border);border-radius:10px;background:transparent;cursor:pointer;
}
.burger span{display:block;width:18px;height:2px;margin:4px auto;background:var(--navy-800);border-radius:2px;transition:.25s ease}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;background:var(--navy-900);color:var(--white)}
.hero::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(1000px 520px at 82% -10%,rgba(169,126,59,.20),transparent 62%),
    radial-gradient(760px 420px at 8% 108%,rgba(27,52,84,.85),transparent 60%);
  pointer-events:none;
}
.hero__inner{
  position:relative;display:grid;gap:clamp(2.25rem,5vw,4rem);
  grid-template-columns:1.05fr .95fr;align-items:center;
  padding-block:clamp(3.5rem,8vw,6.5rem);
}
.hero__badge{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.42rem 1rem;border-radius:100px;
  background:rgba(169,126,59,.14);border:1px solid rgba(169,126,59,.32);
  color:var(--gold-300);font-size:.82rem;font-weight:500;margin-bottom:1.5rem;
}
.hero h1{color:var(--white);margin-bottom:.6rem}
.hero__lead{
  font-size:clamp(1.05rem,1rem + .45vw,1.28rem);font-weight:300;
  color:var(--gold-300);margin-bottom:1.4rem;line-height:1.6;
}
.hero__text{color:#cfc3ad;max-width:56ch;margin-bottom:2rem;font-size:1.02em}
.hero__cta{display:flex;flex-wrap:wrap;gap:.85rem;margin-bottom:2.5rem}

.hero__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;max-width:520px}
.hero__stat{border-inline-start:2px solid rgba(169,126,59,.5);padding-inline-start:1rem}
.hero__stat b{display:block;font-size:clamp(1.5rem,1.2rem + 1.1vw,2.1rem);font-weight:700;color:var(--white);line-height:1.15}
.hero__stat span{font-size:.85rem;color:#b3a68c;line-height:1.45;display:block;margin-top:.2rem}

.hero__panel{
  position:relative;padding:clamp(1.6rem,3vw,2.25rem);
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius-lg);backdrop-filter:blur(8px);
}
.hero__panel h3{color:var(--white);font-size:1.2rem;margin-bottom:1.25rem;display:flex;align-items:center;gap:.6rem}
.hero__panel h3 svg{width:22px;height:22px;color:var(--gold-400);flex:none}
.panel-list{list-style:none;margin:0;padding:0}
.panel-list li{
  display:flex;gap:.7rem;padding-block:.7rem;color:#cfc3ad;font-size:.95rem;line-height:1.6;
  border-bottom:1px solid rgba(255,255,255,.08);margin:0;
}
.panel-list li:last-child{border-bottom:0}
.panel-list svg{width:19px;height:19px;color:var(--gold-400);flex:none;margin-top:.28em}

/* ---------- Quick contact strip ---------- */
.quickbar{background:var(--navy-800);border-top:1px solid rgba(255,255,255,.08)}
.quickbar__inner{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:rgba(255,255,255,.08);
}
.quickbar__item{
  display:flex;align-items:center;gap:.85rem;padding:1.25rem var(--gutter);
  background:var(--navy-800);color:var(--sand-100);transition:background .2s ease;
}
.quickbar__item:hover{background:var(--navy-700);color:var(--white)}
.quickbar__item svg{width:22px;height:22px;color:var(--gold-400);flex:none}
.quickbar__item span{display:block;font-size:.74rem;color:#9c8f79;line-height:1.3}
.quickbar__item b{display:block;font-size:.92rem;font-weight:500;line-height:1.4}

/* ---------- Cards ---------- */
.grid{display:grid;gap:clamp(1.1rem,2.2vw,1.75rem)}
.grid--2{grid-template-columns:repeat(2,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}

.card{
  padding:clamp(1.5rem,2.6vw,2.1rem);background:var(--white);
  border:1px solid var(--border);border-radius:var(--radius);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--gold-300)}
.card__ico{
  width:52px;height:52px;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--sand-100),var(--sand-200));
  color:var(--navy-800);margin-bottom:1.2rem;
}
.card__ico svg{width:26px;height:26px}
.card h3{font-size:1.15rem;margin-bottom:.55rem}
.card p{color:var(--text-muted);font-size:.96em;margin-bottom:0}
.card__num{
  font-size:.78rem;font-weight:700;letter-spacing:.1em;color:var(--gold-500);
  display:block;margin-bottom:.6rem;
}
.section--navy .card{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12)}
.section--navy .card:hover{border-color:rgba(169,126,59,.5);box-shadow:none}
.section--navy .card p{color:#c4b8a1}
.section--navy .card__ico{background:rgba(169,126,59,.14);color:var(--gold-400)}

.card--flat{border:0;background:var(--sand-50);box-shadow:none}
.card--flat:hover{transform:none;box-shadow:var(--shadow-sm)}

/* Feature list (why us) */
.feature{display:flex;gap:1.1rem;align-items:flex-start}
.feature__ico{
  width:46px;height:46px;flex:none;border-radius:12px;display:grid;place-items:center;
  background:var(--navy-800);color:var(--gold-400);
}
.feature__ico svg{width:23px;height:23px}
.feature h4{margin-bottom:.4rem;color:var(--navy-900)}
.feature p{color:var(--text-muted);font-size:.95em;margin:0}
.section--navy .feature h4{color:var(--white)}
.section--navy .feature__ico{background:rgba(169,126,59,.15)}

/* Quote / strategic message */
.quote{
  position:relative;padding:clamp(1.75rem,3.5vw,3rem);
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);
}
.quote::before{
  content:"";position:absolute;inset-block-start:0;inset-inline-start:clamp(1.75rem,3.5vw,3rem);
  width:56px;height:4px;background:var(--gold-500);border-radius:0 0 4px 4px;
}
.quote p{font-size:clamp(1rem,.98rem + .3vw,1.15rem);line-height:1.9;color:var(--ink-700)}
.quote p:first-of-type{margin-top:.5rem}
.quote__by{
  display:flex;align-items:center;gap:.85rem;margin-top:1.75rem;
  padding-top:1.5rem;border-top:1px solid var(--border);
}
.quote__avatar{
  width:46px;height:46px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--navy-800),var(--navy-600));
  color:var(--gold-400);font-weight:700;font-size:1rem;
}
.quote__by b{display:block;font-size:.96rem;color:var(--navy-900)}
.quote__by span{display:block;font-size:.85rem;color:var(--text-muted)}

/* ---------- Tables ---------- */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius);border:1px solid var(--border)}
table{width:100%;border-collapse:collapse;min-width:640px;background:var(--white);font-size:.95rem}
thead th{
  background:var(--navy-800);color:var(--white);font-weight:600;font-size:.9rem;
  padding:1rem 1.1rem;text-align:start;white-space:nowrap;
}
tbody td{padding:1rem 1.1rem;border-top:1px solid var(--border);color:var(--ink-700);vertical-align:top;line-height:1.7}
tbody tr:nth-child(even){background:var(--sand-50)}
tbody tr:hover{background:var(--sand-100)}
td b,td strong{color:var(--navy-900)}
.tag-price{
  display:inline-block;padding:.28rem .75rem;border-radius:100px;
  background:rgba(169,126,59,.14);color:#6f4f1f;font-weight:600;font-size:.88rem;white-space:nowrap;
}

/* Price cards */
.price{
  padding:clamp(1.5rem,2.6vw,2rem);background:var(--white);
  border:1px solid var(--border);border-radius:var(--radius);text-align:center;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.price:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--gold-300)}
.price h4{font-size:1rem;color:var(--text-muted);font-weight:500;margin-bottom:.75rem;min-height:3em}
.price__val{font-size:clamp(1.6rem,1.3rem + 1.2vw,2.1rem);font-weight:700;color:var(--navy-900);line-height:1.2}
.price__val small{display:block;font-size:.82rem;font-weight:400;color:var(--text-muted);margin-top:.3rem}

/* ---------- Accordion ---------- */
.acc{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--white)}
.acc + .acc{margin-top:.85rem}
.acc__btn{
  width:100%;display:flex;align-items:center;gap:1rem;padding:1.15rem 1.4rem;
  background:transparent;border:0;cursor:pointer;text-align:start;
  font-family:var(--font);font-size:1.02rem;font-weight:600;color:var(--navy-900);line-height:1.5;
}
.acc__btn:hover{background:var(--sand-50)}
.acc__btn .chev{width:20px;height:20px;flex:none;margin-inline-start:auto;color:var(--gold-500);transition:transform .25s ease}
.acc[open] .chev,.acc.is-open .chev{transform:rotate(180deg)}
.acc__body{padding:0 1.4rem 1.4rem;color:var(--text-muted);font-size:.97em;display:none}
.acc.is-open .acc__body{display:block}
.acc__body ul{padding-inline-start:1.2em}
.acc__body li{color:var(--text-muted)}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
.field{margin-bottom:1.1rem}
.field label{display:block;font-size:.9rem;font-weight:500;color:var(--navy-900);margin-bottom:.45rem}
.field input,.field select,.field textarea{
  width:100%;padding:.8rem 1rem;font-family:var(--font);font-size:.97rem;color:var(--text);
  background:var(--white);border:1.5px solid var(--border);border-radius:var(--radius-sm);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.field textarea{min-height:130px;resize:vertical;line-height:1.7}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:0;border-color:var(--gold-500);box-shadow:0 0 0 3px rgba(169,126,59,.15);
}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}

.info-item{display:flex;gap:1rem;padding-block:1.15rem;border-bottom:1px solid var(--border)}
.info-item:last-child{border-bottom:0}
.info-item__ico{
  width:44px;height:44px;flex:none;border-radius:11px;display:grid;place-items:center;
  background:var(--sand-100);color:var(--navy-800);
}
.info-item__ico svg{width:21px;height:21px}
.info-item b{display:block;font-size:.95rem;color:var(--navy-900);margin-bottom:.15rem}
.info-item a,.info-item span{color:var(--text-muted);font-size:.94rem;line-height:1.6}
.info-item a:hover{color:var(--gold-500)}

/* ---------- CTA band ---------- */
.cta-band{
  position:relative;overflow:hidden;border-radius:var(--radius-lg);
  padding:clamp(2.25rem,5vw,3.75rem);background:var(--navy-900);color:var(--white);text-align:center;
}
.cta-band::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(680px 340px at 50% -30%,rgba(169,126,59,.25),transparent 65%);
}
.cta-band > *{position:relative}
.cta-band h2{color:var(--white);margin-bottom:.6rem}
.cta-band p{color:#cfc3ad;max-width:60ch;margin-inline:auto;margin-bottom:1.9rem}
.cta-band__btns{display:flex;flex-wrap:wrap;gap:.85rem;justify-content:center}

/* ---------- Page hero ---------- */
.page-hero{position:relative;background:var(--navy-900);color:var(--white);overflow:hidden}
.page-hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(880px 400px at 78% -20%,rgba(169,126,59,.18),transparent 62%);
}
.page-hero__inner{position:relative;padding-block:clamp(2.75rem,6vw,4.75rem);max-width:70ch}
.page-hero h1{color:var(--white);margin-bottom:.5rem}
.page-hero p{color:#cfc3ad;font-size:1.06em;margin:0}
.crumb{display:flex;flex-wrap:wrap;gap:.4rem;font-size:.86rem;color:#9c8f79;margin-bottom:1.1rem}
.crumb a{color:#9c8f79}
.crumb a:hover{color:var(--gold-400)}

/* ---------- Prose ---------- */
.prose{max-width:75ch}
.prose h2{margin-top:2.5rem}
.prose h2:first-child{margin-top:0}
.prose h3{margin-top:2rem;font-size:1.28rem}
.prose ul{padding-inline-start:1.3em}
.prose li{color:var(--ink-700)}
.prose li strong{color:var(--navy-900)}

.callout{
  padding:1.4rem 1.6rem;border-radius:var(--radius);
  background:var(--sand-50);border-inline-start:3px solid var(--gold-500);
  margin-block:1.75rem;
}
.callout p{margin:0;color:var(--ink-700);font-size:.98em}
.callout--warn{background:#fdf6ec;border-inline-start-color:#d08700}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy-900);color:#cfc3ad;padding-block:clamp(2.75rem,6vw,4.5rem) 0;font-size:.95rem}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:clamp(1.75rem,4vw,3rem);padding-bottom:2.75rem}
.site-footer h4{color:var(--white);font-size:1rem;margin-bottom:1.1rem;font-weight:600}
.site-footer p{color:#cfc3ad;font-size:.94rem;line-height:1.8}
.site-footer a{color:#cfc3ad}
.site-footer a:hover{color:var(--gold-400)}
.footer-list{list-style:none;margin:0;padding:0}
.footer-list li{margin-bottom:.65rem;font-size:.94rem}
.footer-brand{display:flex;align-items:center;gap:.75rem;margin-bottom:1.15rem}
.footer-brand .brand__name{color:var(--white)}
.footer-brand .brand__tag{color:#9c8f79}
.socials{display:flex;gap:.6rem;margin-top:1.25rem}
.socials a{
  width:40px;height:40px;border-radius:10px;display:grid;place-items:center;
  background:rgba(255,255,255,.07);color:#cfc3ad;transition:all .2s ease;
}
.socials a:hover{background:var(--gold-500);color:var(--navy-900);transform:translateY(-2px)}
.socials svg{width:19px;height:19px}
.footer-bottom{
  display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;
  padding-block:1.6rem;border-top:1px solid rgba(255,255,255,.1);font-size:.88rem;color:#9c8f79;
}
.footer-bottom nav{display:flex;flex-wrap:wrap;gap:1.35rem}

/* ---------- Floating actions ---------- */
.fab{
  position:fixed;inset-block-end:1.5rem;inset-inline-end:1.5rem;z-index:90;
  display:flex;flex-direction:column;gap:.7rem;
}
.fab a{
  width:52px;height:52px;border-radius:50%;display:grid;place-items:center;
  background:#25d366;color:#fff;box-shadow:var(--shadow-md);transition:transform .2s ease;
}
.fab a.fab--call{background:var(--navy-800)}
.fab a:hover{transform:scale(1.08)}
.fab svg{width:25px;height:25px}

/* ---------- Reveal ----------
   Scoped to .js so content stays visible when JavaScript is unavailable or
   fails to run. Never hide content by default. */
.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.js .reveal.is-in{opacity:1;transform:none}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1080px){
  .grid--4{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2.25rem}
  .hero__inner{grid-template-columns:1fr;gap:2.5rem}
  .hero__panel{max-width:640px}
}

/* Nine nav items (Arabic or English) plus the brand, language switcher and
   CTA need a tighter link size to sit on one line at all. This stays applied
   at every width above the burger breakpoint — including very wide desktop
   screens — rather than reverting to the roomier default, which used to
   overflow again once a ninth item ("الشروط العامة" / "General Terms") was
   added. English wording is measurably wider than Arabic at the same item
   count, so the breakpoint below is sized for English's worst case. */
@media (min-width:1601px){
  .nav a{padding:.45rem .55rem;font-size:.88rem}
  /* The tagline is the first thing to go, so the brand name never truncates. */
  .brand__tag{display:none}
}

/* The burger breakpoint moved from 1300 to 1600: with nine English nav items
   (longer words than the Arabic originals this was tuned for) the inline nav
   started overlapping the language switcher as low as ~1480px. 1600px keeps
   a safety margin on both languages. Kept in sync with NAV_BREAKPOINT in
   main.js. */
@media (max-width:1600px){
  /* Anchored to the header itself (not a magic pixel offset) so the panel
     stays flush regardless of header height. The +1px covers the header's
     bottom border, which 100% alone excludes since it sits in the padding box. */
  .nav{
    position:absolute;inset-block-start:calc(100% + 1px);inset-inline:0;
    flex-direction:column;align-items:stretch;gap:0;
    padding:.75rem var(--gutter) 1.5rem;
    background:var(--white);border-bottom:1px solid var(--border);
    box-shadow:var(--shadow-md);
    max-height:calc(100dvh - 5rem);overflow-y:auto;
    transform:translateY(-8px);opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .22s ease,transform .22s ease,visibility .22s;
  }
  .nav.is-open{transform:none;opacity:1;visibility:visible;pointer-events:auto}
  .nav ul,.nav__list{flex-direction:column;align-items:stretch;gap:0;width:100%}
  .nav li{width:100%}
  .nav a{display:block;padding:.85rem .5rem;border-radius:0;border-bottom:1px solid var(--sand-100);font-size:1rem}
  .nav a.is-active::after,
  .nav li.current-menu-item > a::after,
  .nav li.current_page_item > a::after{display:none}
  .burger{display:block}
  /* The header CTA is too wide for a phone header, so it moves into the menu
     instead of disappearing. */
  .header-actions .btn{display:none}
  .nav__cta{display:inline-flex;margin-top:1.1rem;border-bottom:0}
  .nav a.nav__cta{padding:.85rem 1.75rem;border-radius:100px;font-size:.95rem}
}

/* Content-grid breakpoints stay independent of the navigation breakpoint. */
@media (max-width:960px){
  .grid--3{grid-template-columns:repeat(2,1fr)}
  .quickbar__inner{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:1fr}
}

@media (max-width:680px){
  .grid--2,.grid--3,.grid--4{grid-template-columns:1fr}
  .hero__stats{grid-template-columns:1fr;gap:1rem;max-width:none}
  .hero__stat{border-inline-start:0;border-inline-start:2px solid rgba(169,126,59,.5)}
  .hero__cta .btn{width:100%}
  .quickbar__inner{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:2rem}
  .field-row{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
  .cta-band__btns .btn{width:100%}
  .brand__tag{display:none}
  .fab{inset-block-end:1rem;inset-inline-end:1rem}
  .fab a{width:48px;height:48px}
}

@media (max-width:400px){
  .brand__name{font-size:.92rem}
  .brand__mark{width:38px;height:38px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .js .reveal{opacity:1;transform:none}
}

@media print{
  .site-header,.fab,.quickbar,.cta-band,.site-footer{display:none}
  body{color:#000}
}
