/* ════════════════════════════════════════════════════════════════════════
   مصرف أمين العراق - الستايل الرئيسي
   Ameen Al-Iraq Bank - Main Stylesheet
   ════════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand palette */
  --gold-50:#fdf8e8;
  --gold-100:#f5ebd0;
  --gold-200:#e8d6a0;
  --gold-300:#d4b765;
  --gold-400:#c9a961;
  --gold-500:#b8923c;
  --gold-600:#9b7a2e;

  /* Semantic colors */
  --emerald:#10b981;
  --emerald-soft:rgba(16,185,129,.14);
  --red:#ef4444;
  --red-soft:rgba(239,68,68,.14);
  --blue:#3b82f6;
  --blue-soft:rgba(59,130,246,.14);

  /* Radii */
  --r:14px;
  --r-md:20px;
  --r-lg:28px;
  --r-xl:36px;

  /* Motion */
  --ease:cubic-bezier(.2,.8,.2,1);
}

/* ─── DARK THEME (DEFAULT) ─── */
html[data-theme="dark"]{
  --bg:#06101d;
  --bg-2:#0a1729;
  --surface:#102036;
  --surface-2:#152944;
  --line:rgba(212,183,101,.14);
  --line-2:rgba(212,183,101,.28);
  --text:#f5ebd0;
  --text-2:rgba(245,235,208,.7);
  --text-3:rgba(245,235,208,.45);
  --shadow:0 24px 64px -24px rgba(0,0,0,.7);
  --gold-grad:linear-gradient(135deg,#e8d6a0 0%,#d4b765 40%,#9b7a2e 100%);
}

/* ─── LIGHT THEME ─── */
html[data-theme="light"]{
  --bg:#fbfaf5;
  --bg-2:#f3eeda;
  --surface:#ffffff;
  --surface-2:#fbf6e8;
  --line:rgba(155,122,46,.18);
  --line-2:rgba(155,122,46,.4);
  --text:#06101d;
  --text-2:#475569;
  --text-3:#94a3b8;
  --shadow:0 24px 48px -24px rgba(6,16,29,.16);
  --gold:#b8923c;
  --gold-light:#9b7a2e;
  --gold-dark:#7a5e1f;
  --gold-grad:linear-gradient(135deg,#c9a961 0%,#9b7a2e 50%,#7a5e1f 100%);
}

/* ─── RESET & BASE ─── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  font-family:'Tajawal','Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.75;
  font-size:16px;
  overflow-x:hidden;
  transition:background .4s var(--ease), color .4s var(--ease);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:var(--gold-400);color:#06101d;}
img{max-width:100%;height:auto;display:block;}
button,input,textarea,select{font-family:inherit;color:inherit;}
button{cursor:pointer;border:none;background:none;}
a{color:inherit;text-decoration:none;}
ul,ol{list-style:none;}

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5,h6{
  font-family:'Cairo','Tajawal',sans-serif;
  font-weight:800;
  line-height:1.25;
  letter-spacing:-.01em;
  color:var(--text);
}

.h-display{font-size:clamp(2.25rem,7vw,4rem);font-weight:900;line-height:1.18;letter-spacing:-.015em;}
.h-page{font-size:clamp(2rem,5vw,3rem);font-weight:900;line-height:1.2;}
.h-section{font-size:clamp(1.75rem,4vw,2.25rem);font-weight:800;line-height:1.3;}
.h-sub{font-size:clamp(1.25rem,2.5vw,1.5rem);font-weight:700;line-height:1.4;}

p{color:var(--text-2);}

/* Semantic color highlights */
.c-emerald{color:var(--emerald);font-weight:800;}
.c-gold{
  background:var(--gold-grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:900;
}
.c-red{color:var(--red);font-weight:800;}
.c-blue{color:var(--blue);font-weight:800;}

/* ─── LAYOUT ─── */
.wrap{max-width:1280px;margin:0 auto;padding:0 20px;}
.section{padding:72px 0;}
.section-sm{padding:48px 0;}

/* ─── BUTTONS ─── */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 24px;
  border-radius:999px;
  font-family:'Cairo',sans-serif;
  font-weight:700;
  font-size:.95rem;
  white-space:nowrap;
  transition:all .3s var(--ease);
  border:1.5px solid transparent;
  cursor:pointer;
}
.btn svg{width:16px;height:16px;}
.btn-primary{
  background:var(--gold-grad);
  color:#06101d;
  box-shadow:0 10px 30px -10px rgba(212,183,101,.6);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 40px -10px rgba(212,183,101,.8);
}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--line-2);
}
.btn-ghost:hover{
  background:rgba(212,183,101,.08);
  border-color:var(--gold-400);
}
.btn-sm{padding:9px 18px;font-size:.85rem;}
.btn-lg{padding:15px 30px;font-size:1rem;}

/* ─── PRELOADER ─── */
.preloader{
  position:fixed;inset:0;z-index:9999;
  background:var(--bg);
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:28px;
  transition:opacity .6s var(--ease), visibility .6s;
}
.preloader.gone{opacity:0;visibility:hidden;}
.preloader-logo{
  width:96px;height:96px;border-radius:50%;
  background-image:var(--logo-url);
  background-size:cover;background-position:center;
  box-shadow:0 0 60px rgba(212,183,101,.5);
  animation:pulseLogo 1.5s ease-in-out infinite;
}
@keyframes pulseLogo{0%,100%{transform:scale(1);}50%{transform:scale(1.08);}}
.preloader-bar{
  width:180px;height:3px;
  background:rgba(212,183,101,.15);
  border-radius:3px;overflow:hidden;
}
.preloader-bar::after{
  content:'';display:block;height:100%;width:40%;
  background:var(--gold-grad);
  animation:bar 1.2s ease-in-out infinite;
}
@keyframes bar{0%{transform:translateX(150%);}100%{transform:translateX(-250%);}}

/* ─── HEADER ─── */
.hdr{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:rgba(6,16,29,.75);
  backdrop-filter:blur(28px) saturate(180%);
  -webkit-backdrop-filter:blur(28px) saturate(180%);
  border-bottom:1px solid var(--line);
  padding:12px 0;
  transition:background .4s var(--ease), border-color .4s var(--ease);
}
html[data-theme="light"] .hdr{background:rgba(251,250,245,.85);}
.hdr-row{display:flex;align-items:center;justify-content:space-between;gap:14px;}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0;}
.brand-logo{
  width:44px;height:44px;border-radius:50%;
  background-image:var(--logo-url);
  background-size:cover;background-position:center;
  flex-shrink:0;
  box-shadow:0 4px 16px rgba(212,183,101,.4);
}
.brand-text{display:flex;flex-direction:column;line-height:1.2;min-width:0;}
.brand-text .ar{
  font-family:'Cairo',sans-serif;font-weight:800;font-size:.95rem;
  color:var(--gold-200);white-space:nowrap;
}
.brand-text .en{
  font-family:'Manrope',sans-serif;font-weight:600;font-size:.65rem;
  color:var(--text-3);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;
}

/* Desktop nav */
.nav-d{display:flex;align-items:center;gap:4px;}
.nav-d a{
  padding:8px 14px;border-radius:999px;
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.92rem;
  color:var(--text-2);transition:all .3s var(--ease);
}
.nav-d a:hover{color:var(--text);}
.nav-d a.is-active{background:rgba(212,183,101,.14);color:var(--gold-200);}

.hdr-actions{display:flex;align-items:center;gap:6px;}
.icon-btn{
  width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;border:1px solid var(--line);color:var(--text-2);
  transition:all .3s var(--ease);
  font-family:'Manrope',sans-serif;font-weight:700;font-size:.75rem;letter-spacing:.04em;
}
.icon-btn svg{width:18px;height:18px;}
.icon-btn:hover{
  background:rgba(212,183,101,.1);color:var(--gold-200);border-color:var(--line-2);
}
.menu-toggle{display:none;}

/* ─── MAIN ─── */
main{padding-top:70px;min-height:100vh;}

/* ─── HERO ─── */
.hero{position:relative;padding:56px 0 64px;overflow:hidden;}
.hero-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 800px 500px at 80% 0%, rgba(212,183,101,.16), transparent 60%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(16,185,129,.10), transparent 60%);
}
.hero-bg::before{
  content:'';position:absolute;inset:0;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='%23d4b765' stroke-width='.6'%3E%3Cpath d='M50 5 L95 50 L50 95 L5 50 Z'/%3E%3Cpath d='M50 15 L85 50 L50 85 L15 50 Z'/%3E%3Ccircle cx='50' cy='50' r='12'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1fr;gap:48px;align-items:center;
}
@media(min-width:1000px){.hero-grid{grid-template-columns:1.15fr .85fr;gap:64px;}}

.hero-badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:7px 14px;border-radius:999px;
  background:var(--emerald-soft);
  border:1px solid rgba(16,185,129,.32);
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.78rem;
  color:var(--emerald);margin-bottom:20px;
}
.hero-badge .pulse{
  width:8px;height:8px;border-radius:50%;
  background:var(--emerald);box-shadow:0 0 12px var(--emerald);
  animation:pulse 2s ease-in-out infinite;
}
@keyframes pulse{50%{opacity:.4;}}

.hero-title{margin-bottom:18px;}
.hero-lead{
  font-size:clamp(1rem,2.2vw,1.15rem);
  color:var(--text-2);max-width:560px;
  margin-bottom:32px;line-height:1.85;font-weight:500;
}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:40px;}
.hero-trust{
  display:flex;flex-wrap:wrap;gap:18px 28px;
  padding-top:28px;border-top:1px solid var(--line);
}
.trust-item{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.85rem;color:var(--text-2);font-weight:600;
}
.trust-item svg{width:18px;height:18px;color:var(--emerald);}

/* Hero visual */
.hero-art{
  position:relative;aspect-ratio:1/1;max-width:440px;
  margin:0 auto;display:flex;align-items:center;justify-content:center;
}
.art-ring{
  position:absolute;inset:0;border-radius:50%;
  border:1px solid rgba(212,183,101,.22);
  animation:slowSpin 50s linear infinite;
}
.art-ring::before{
  content:'';position:absolute;top:-5px;left:50%;
  width:10px;height:10px;border-radius:50%;
  background:var(--gold-400);box-shadow:0 0 18px var(--gold-400);
  transform:translateX(-50%);
}
.art-ring-2{
  position:absolute;inset:-22px;border-radius:50%;
  border:1px dashed rgba(212,183,101,.16);
  animation:slowSpin 80s linear infinite reverse;
}
@keyframes slowSpin{to{transform:rotate(360deg);}}
.art-glow{
  position:absolute;inset:38px;border-radius:50%;
  background:radial-gradient(circle, rgba(212,183,101,.32), transparent 70%);
  filter:blur(40px);
}
.art-logo{
  width:70%;aspect-ratio:1/1;border-radius:50%;
  background-image:var(--logo-url);
  background-size:cover;background-position:center;
  box-shadow:
    0 0 0 6px rgba(212,183,101,.18),
    0 0 0 12px rgba(212,183,101,.08),
    0 30px 80px -15px rgba(212,183,101,.5);
  position:relative;z-index:2;
}
.art-chip{
  position:absolute;z-index:3;
  background:var(--surface);
  border:1px solid var(--line-2);
  border-radius:14px;padding:9px 13px;
  display:flex;align-items:center;gap:9px;
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.78rem;
  color:var(--text);box-shadow:var(--shadow);
  animation:floatUp 6s ease-in-out infinite;
}
.art-chip .ico{
  width:26px;height:26px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:var(--gold-grad);color:#06101d;flex-shrink:0;
}
.art-chip .ico svg{width:14px;height:14px;}
.art-chip-1{top:5%;right:-8px;animation-delay:0s;}
.art-chip-2{bottom:22%;left:-14px;animation-delay:1.8s;}
.art-chip-3{bottom:0;right:18%;animation-delay:3.5s;}
@keyframes floatUp{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}

/* ─── SECTION HEADER ─── */
.s-head{margin-bottom:40px;}
.s-head.center{text-align:center;max-width:720px;margin-inline:auto;margin-bottom:48px;}
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.78rem;
  color:var(--gold-400);margin-bottom:14px;letter-spacing:.02em;
}
.eyebrow::before{content:'';width:24px;height:1.5px;background:var(--gold-400);}
.s-head h1,.s-head h2{margin-bottom:12px;}
.s-head p{font-size:1.02rem;color:var(--text-2);max-width:640px;line-height:1.85;}
.s-head.center p{margin-inline:auto;}

/* ─── CARDS ─── */
.grid{display:grid;gap:16px;}
.grid-3{grid-template-columns:1fr;}
.grid-4{grid-template-columns:1fr;}
@media(min-width:640px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .grid-4{grid-template-columns:repeat(2,1fr);}
}
@media(min-width:1000px){
  .grid-3{grid-template-columns:repeat(3,1fr);}
  .grid-4{grid-template-columns:repeat(4,1fr);}
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:28px 24px;
  transition:all .35s var(--ease);
  position:relative;overflow:hidden;
}
.card:hover{
  transform:translateY(-3px);
  border-color:var(--line-2);box-shadow:var(--shadow);
}
.card-ico{
  width:52px;height:52px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg, rgba(212,183,101,.14), rgba(212,183,101,.04));
  color:var(--gold-400);margin-bottom:18px;
  border:1px solid var(--line);
}
.card-ico svg{width:24px;height:24px;}
.card h4{font-family:'Cairo',sans-serif;font-size:1.1rem;font-weight:800;margin-bottom:8px;}
.card p{font-size:.92rem;line-height:1.75;margin-bottom:16px;}
.card-link{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--gold-400);font-family:'Cairo',sans-serif;
  font-weight:700;font-size:.85rem;transition:gap .3s var(--ease);
}
.card-link svg{width:14px;height:14px;}
.card:hover .card-link{gap:10px;}

.card-emerald .card-ico{
  background:var(--emerald-soft);color:var(--emerald);
  border-color:rgba(16,185,129,.32);
}
.card-blue .card-ico{
  background:var(--blue-soft);color:var(--blue);
  border-color:rgba(59,130,246,.32);
}

/* ─── ABOUT PAGE ─── */
.about-grid{display:grid;gap:40px;grid-template-columns:1fr;align-items:center;}
@media(min-width:1000px){.about-grid{grid-template-columns:1fr 1.15fr;}}
.about-art{
  aspect-ratio:1/1;border-radius:var(--r-xl);
  background:linear-gradient(135deg, var(--bg-2), var(--surface));
  border:1px solid var(--line);position:relative;overflow:hidden;
  max-width:440px;margin:0 auto;
}
.about-art::before{
  content:'';position:absolute;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23d4b765' stroke-width='.6' opacity='.4'%3E%3Cpath d='M40 4 L76 40 L40 76 L4 40 Z'/%3E%3Cpath d='M40 16 L64 40 L40 64 L16 40 Z'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
.about-art .calligraphy{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-family:'Cairo',sans-serif;font-size:7.5rem;font-weight:900;
  color:var(--gold-400);text-shadow:0 6px 30px rgba(212,183,101,.4);
}
.about-art .year-badge{
  position:absolute;bottom:22px;right:22px;
  padding:14px 20px;background:var(--gold-grad);color:#06101d;
  border-radius:18px;font-family:'Cairo',sans-serif;font-weight:900;
  text-align:center;box-shadow:0 12px 30px -10px rgba(212,183,101,.5);
}
.about-art .year-badge .y{font-size:1.4rem;line-height:1;}
.about-art .year-badge .l{font-size:.68rem;opacity:.75;margin-top:3px;}

.tabs{
  display:flex;gap:6px;margin-bottom:22px;
  border-bottom:1px solid var(--line);flex-wrap:wrap;
}
.tab{
  padding:10px 18px;
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.92rem;
  color:var(--text-2);border-bottom:2px solid transparent;
  margin-bottom:-1px;transition:all .3s var(--ease);
}
.tab.is-active{color:var(--gold-400);border-bottom-color:var(--gold-400);}
.tab-content{display:none;}
.tab-content.is-active{display:block;animation:fadeIn .4s var(--ease);}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}
.tab-content p{margin-bottom:12px;font-size:.98rem;line-height:1.9;}

/* ─── PRODUCTS (Murabaha) ─── */
.product{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-xl);overflow:hidden;
  transition:all .4s var(--ease);
  display:flex;flex-direction:column;
}
.product:hover{transform:translateY(-4px);box-shadow:var(--shadow);}
.product-top{
  height:160px;position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.product-top.t-car{background:linear-gradient(135deg, #1a3a5f, #06101d);}
.product-top.t-edu{background:linear-gradient(135deg, #1e5f3a, #06281a);}
.product-top.t-env{background:linear-gradient(135deg, #5f4a1e, #9b7a2e);}
.product-top svg{width:72px;height:72px;color:rgba(245,235,208,.92);}
.product-top .deco{
  position:absolute;width:240px;height:240px;
  border:1px solid rgba(212,183,101,.16);border-radius:50%;
}
.product-top .deco-1{top:-100px;right:-60px;}
.product-top .deco-2{bottom:-130px;left:-80px;border-style:dashed;}
.product-tag{
  position:absolute;top:12px;right:12px;
  padding:5px 11px;border-radius:999px;
  background:var(--gold-grad);color:#06101d;
  font-family:'Cairo',sans-serif;font-weight:800;font-size:.7rem;
}

.product-body{padding:24px;flex:1;display:flex;flex-direction:column;}
.product-body h3{font-family:'Cairo',sans-serif;font-size:1.2rem;font-weight:800;margin-bottom:8px;}
.product-body > p{font-size:.91rem;line-height:1.8;margin-bottom:16px;}
.product-feats{margin-bottom:18px;padding:14px;background:var(--bg-2);border-radius:14px;}
.product-feats li{
  display:flex;align-items:center;gap:8px;padding:5px 0;
  font-size:.83rem;color:var(--text-2);
}
.product-feats li svg{width:15px;height:15px;color:var(--emerald);flex-shrink:0;}
.product-cta{display:flex;gap:8px;margin-top:auto;}
.product-cta .btn{flex:1;padding:10px 14px;font-size:.85rem;}

/* ─── CALCULATOR ─── */
.calc{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow);
  display:grid;grid-template-columns:1fr;
}
@media(min-width:900px){.calc{grid-template-columns:1fr 1.2fr;}}
.calc-info{
  padding:32px 24px;
  background:linear-gradient(135deg, var(--bg-2), var(--surface-2));
  position:relative;
}
.calc-info h3{font-family:'Cairo',sans-serif;font-size:1.4rem;font-weight:800;margin-bottom:12px;line-height:1.35;}
.calc-info > p{margin-bottom:20px;font-size:.94rem;line-height:1.8;}
.calc-info ul li{
  display:flex;align-items:center;gap:10px;margin-bottom:10px;
  font-size:.88rem;color:var(--text-2);
}
.calc-info ul li svg{width:17px;height:17px;color:var(--gold-400);flex-shrink:0;}
.calc-form{padding:32px 24px;}
.calc-form h4{font-family:'Cairo',sans-serif;font-size:1.05rem;font-weight:800;margin-bottom:22px;}

.fld{margin-bottom:18px;}
.fld-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.fld-row .lbl{font-family:'Cairo',sans-serif;font-weight:700;font-size:.85rem;color:var(--text-2);}
.fld-row .val{font-family:'Cairo',sans-serif;font-weight:800;font-size:1rem;color:var(--gold-400);}
.range{
  width:100%;height:6px;background:var(--line);
  border-radius:99px;outline:none;
  -webkit-appearance:none;appearance:none;cursor:pointer;
}
.range::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:22px;height:22px;border-radius:50%;
  background:var(--gold-grad);border:3px solid var(--surface);
  cursor:pointer;box-shadow:0 4px 12px rgba(212,183,101,.4);
}
.range::-moz-range-thumb{
  width:22px;height:22px;border-radius:50%;
  background:var(--gold-grad);border:3px solid var(--surface);cursor:pointer;
}

.calc-result{
  margin-top:22px;padding:18px;
  background:var(--bg-2);border:1px solid var(--line);border-radius:14px;
}
.calc-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:9px 0;border-bottom:1px dashed var(--line);font-size:.88rem;
}
.calc-row:last-child{
  border:0;padding-top:14px;margin-top:6px;border-top:1px solid var(--line);
}
.calc-row .lbl{color:var(--text-2);}
.calc-row .val{font-family:'Cairo',sans-serif;font-weight:800;font-size:1rem;color:var(--text);}
.calc-row.is-total .val{color:var(--gold-400);font-size:1.3rem;}
.note{font-size:.74rem;color:var(--text-3);margin-top:12px;text-align:center;}

/* ─── BRANCHES ─── */
.branches-grid{display:grid;gap:22px;grid-template-columns:1fr;}
@media(min-width:980px){.branches-grid{grid-template-columns:1fr 1fr;}}
.branch-list{display:flex;flex-direction:column;gap:12px;}
.branch{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:18px;
  display:flex;gap:14px;align-items:flex-start;
  transition:all .3s var(--ease);cursor:pointer;
}
.branch:hover{border-color:var(--line-2);transform:translateX(-4px);}
.branch.is-active{
  border-color:var(--gold-400);
  background:linear-gradient(135deg,var(--surface),var(--surface-2));
}
.branch-ico{
  width:42px;height:42px;border-radius:12px;
  background:var(--gold-grad);color:#06101d;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.branch-ico svg{width:18px;height:18px;}
.branch-info h5{font-family:'Cairo',sans-serif;font-size:1rem;font-weight:800;margin-bottom:4px;}
.branch-info p{font-size:.83rem;margin-bottom:6px;}
.branch-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:.72rem;color:var(--gold-400);}
.branch-meta span{display:inline-flex;align-items:center;gap:4px;}
.branch-meta svg{width:11px;height:11px;}

.map-box{
  height:480px;border-radius:var(--r-md);
  overflow:hidden;border:1px solid var(--line);
  position:sticky;top:90px;
}
.map-box iframe{width:100%;height:100%;border:0;}
html[data-theme="dark"] .map-box iframe{filter:invert(.88) hue-rotate(180deg);}

/* ─── CONTACT ─── */
.contact-grid{display:grid;gap:28px;grid-template-columns:1fr;}
@media(min-width:980px){.contact-grid{grid-template-columns:1fr 1.4fr;}}
.contact-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:18px;
  display:flex;gap:14px;align-items:flex-start;margin-bottom:12px;
}
.contact-card-ico{
  width:42px;height:42px;border-radius:12px;
  background:var(--gold-grad);color:#06101d;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.contact-card-ico svg{width:18px;height:18px;}
.contact-card h6{
  font-family:'Cairo',sans-serif;font-size:.82rem;
  color:var(--text-3);margin-bottom:4px;font-weight:700;
}
.contact-card .v{display:block;font-size:.94rem;color:var(--text);font-weight:600;}
.contact-card a.v{direction:ltr;text-align:right;}

.form{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-xl);padding:28px 22px;
}
.form h3{font-family:'Cairo',sans-serif;font-size:1.25rem;font-weight:800;margin-bottom:20px;}
.form-grid{display:grid;gap:12px;}
.form-grid.cols-2{grid-template-columns:1fr;}
@media(min-width:640px){.form-grid.cols-2{grid-template-columns:1fr 1fr;}}
.input{
  width:100%;padding:12px 14px;border-radius:10px;
  border:1px solid var(--line);background:var(--bg-2);
  color:var(--text);font-size:.93rem;
  font-family:'Tajawal',sans-serif;
  transition:all .25s var(--ease);
}
.input:focus{
  outline:none;border-color:var(--gold-400);
  box-shadow:0 0 0 3px rgba(212,183,101,.14);
  background:var(--surface);
}
.input::placeholder{color:var(--text-3);}
textarea.input{min-height:110px;resize:vertical;}
.fld label{
  display:block;font-family:'Cairo',sans-serif;
  font-size:.82rem;font-weight:700;color:var(--text-2);margin-bottom:6px;
}

/* Honeypot field - hidden from users but visible to bots */
.honey{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* ─── FOOTER ─── */
.footer{
  background:var(--bg-2);border-top:1px solid var(--line);
  padding:52px 0 22px;margin-top:48px;
}
.footer-grid{
  display:grid;gap:28px;grid-template-columns:1fr;margin-bottom:32px;
}
@media(min-width:640px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media(min-width:980px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;}}
.footer h6{
  font-family:'Cairo',sans-serif;font-size:.92rem;font-weight:800;
  color:var(--gold-200);margin-bottom:16px;
}
.footer ul li{margin-bottom:9px;}
.footer ul li a{font-size:.86rem;color:var(--text-2);transition:color .25s var(--ease);}
.footer ul li a:hover{color:var(--gold-400);}

.footer-about p{font-size:.88rem;margin-bottom:18px;line-height:1.85;}
.socials{display:flex;gap:8px;}
.socials a{
  width:38px;height:38px;border-radius:50%;
  background:rgba(212,183,101,.1);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--gold-400);transition:all .3s var(--ease);
}
.socials a:hover{background:var(--gold-400);color:#06101d;transform:translateY(-2px);}
.socials svg{width:15px;height:15px;}

.footer-bot{
  padding-top:18px;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:.78rem;color:var(--text-3);
}
.footer-bot a{color:var(--text-3);}
.footer-bot a:hover{color:var(--gold-400);}

/* ─── MOBILE BOTTOM NAV ─── */
.mnav{
  display:none;
  position:fixed;bottom:0;left:0;right:0;z-index:90;
  background:rgba(6,16,29,.95);
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  border-top:1px solid var(--line);
  padding:6px 4px calc(6px + env(safe-area-inset-bottom));
}
html[data-theme="light"] .mnav{background:rgba(255,255,255,.97);}
.mnav-row{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;}
.mnav-item{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:7px 4px;border-radius:10px;color:var(--text-3);
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.62rem;
  text-align:center;transition:all .3s var(--ease);position:relative;
}
.mnav-item svg{width:18px;height:18px;margin-bottom:3px;}
.mnav-item.is-active{color:var(--gold-400);}
.mnav-item.is-active::before{
  content:'';position:absolute;top:-1px;left:25%;right:25%;height:2px;
  background:var(--gold-grad);border-radius:2px;
}

/* ─── SIDE MENU ─── */
.side-bg{
  position:fixed;inset:0;z-index:200;
  background:rgba(0,0,0,.7);opacity:0;visibility:hidden;
  transition:all .35s var(--ease);
}
.side-bg.open{opacity:1;visibility:visible;}
.side{
  position:fixed;top:0;right:0;bottom:0;z-index:201;
  width:min(85vw,340px);background:var(--bg-2);
  border-left:1px solid var(--line);padding:22px 18px;
  transform:translateX(100%);transition:transform .4s var(--ease);
  overflow-y:auto;display:flex;flex-direction:column;
}
.side.open{transform:translateX(0);}
.side-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;}
.side-close{
  width:36px;height:36px;border-radius:50%;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--text-2);
}
.side-close svg{width:16px;height:16px;}
.side-nav{display:flex;flex-direction:column;gap:4px;flex:1;}
.side-nav a{
  padding:13px 14px;border-radius:10px;color:var(--text);
  font-family:'Cairo',sans-serif;font-weight:700;font-size:1rem;
  display:flex;align-items:center;gap:12px;
  transition:all .25s var(--ease);
}
.side-nav a svg{width:18px;height:18px;color:var(--gold-400);}
.side-nav a.is-active{background:rgba(212,183,101,.14);color:var(--gold-200);}
.side-nav a:hover{background:rgba(212,183,101,.08);}
.side-foot{margin-top:auto;padding-top:18px;border-top:1px solid var(--line);}
.side-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;}

/* ─── TOAST ─── */
.toaster{
  position:fixed;top:84px;left:50%;transform:translateX(-50%);
  z-index:300;display:flex;flex-direction:column;gap:8px;
  pointer-events:none;width:max-content;max-width:90vw;
}
.toast{
  background:var(--surface);border:1px solid var(--line-2);
  border-radius:12px;padding:12px 18px;
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.87rem;
  display:flex;align-items:center;gap:10px;
  box-shadow:var(--shadow);animation:toastIn .35s var(--ease);
  pointer-events:auto;
}
.toast.success{border-color:rgba(16,185,129,.5);}
.toast.success svg{color:var(--emerald);}
.toast.error{border-color:rgba(239,68,68,.5);}
.toast.error svg{color:var(--red);}
.toast svg{width:18px;height:18px;}
@keyframes toastIn{from{opacity:0;transform:translateY(-10px);}to{opacity:1;transform:translateY(0);}}

/* ─── REVEAL ANIMATIONS ─── */
.reveal{
  opacity:0;transform:translateY(20px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in{opacity:1;transform:translateY(0);}
.d-1{transition-delay:.1s;}
.d-2{transition-delay:.2s;}
.d-3{transition-delay:.3s;}

/* ─── 404 PAGE ─── */
.err-page{
  min-height:80vh;
  display:flex;align-items:center;justify-content:center;
  text-align:center;padding:60px 20px;
}
.err-num{
  font-family:'Cairo',sans-serif;font-size:clamp(6rem,18vw,12rem);
  font-weight:900;line-height:1;margin-bottom:20px;
  background:var(--gold-grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px){
  .nav-d{display:none;}
  .menu-toggle{display:inline-flex;}
  .hdr-actions .btn-primary{display:none;}
  .mnav{display:block;}
  main{padding-bottom:84px;}
  .chat-fab{bottom:90px;}
  .chat-win{bottom:90px;}
}

@media(max-width:640px){
  .section{padding:48px 0;}
  .hero{padding:30px 0 48px;}
  .wrap{padding:0 14px;}
  .brand-text .en{display:none;}
  .brand-text .ar{font-size:.88rem;}
  .brand-logo{width:38px;height:38px;}
  .icon-btn{width:38px;height:38px;}
  .hdr-actions{gap:5px;}
  .h-display{font-size:clamp(2rem,9vw,2.75rem);}
  .art-chip-2,.art-chip-3{display:none;}
  .art-chip-1{top:0;right:-4px;}
  .card{padding:20px 18px;}
  .product-top{height:130px;}
  .product-body{padding:20px;}
  .calc-info,.calc-form{padding:24px 18px;}
  .form{padding:22px 16px;}
  .map-box{height:340px;position:static;}
  .toast{font-size:.82rem;padding:10px 14px;}
  .hero-trust{gap:14px 22px;}
  .trust-item{font-size:.8rem;}
}
