
/* ====== المتخصصون لنسخ المفاتيح - الباحة ======
   Black & Gold Premium Theme
================================================ */
:root{
  --bg:#0a0a0a;
  --bg-2:#111111;
  --bg-3:#161616;
  --surface:#1a1a1a;
  --gold:#d4af37;
  --gold-2:#f5d97a;
  --gold-dark:#9c7a1d;
  --text:#f4f4f4;
  --text-mute:#a8a8a8;
  --border:rgba(212,175,55,.25);
  --border-strong:rgba(212,175,55,.55);
  --shadow-gold:0 10px 40px -10px rgba(212,175,55,.35);
  --grad-gold:linear-gradient(135deg,#f5d97a 0%,#d4af37 50%,#9c7a1d 100%);
  --grad-gold-soft:linear-gradient(135deg,rgba(245,217,122,.15),rgba(156,122,29,.05));
  --radius:14px;
  --radius-lg:22px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Tajawal','Cairo',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  direction:rtl;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
/* ===== SAFE SVG ICON SIZING - prevents huge icons on all pages ===== */
svg{display:block;max-width:100%;max-height:100%;flex-shrink:0}
.ic-svg{width:1.05em;height:1.05em;display:inline-flex;align-items:center;justify-content:center;vertical-align:-.18em;margin-left:5px;line-height:1;color:currentColor;flex:0 0 auto}
.ic-svg svg{width:100%;height:100%}
.topbar .ic-svg{color:var(--gold-2);opacity:.95}
footer .ic-svg{color:var(--gold-2)}

.container{width:100%;max-width:1240px;margin:0 auto;padding:0 22px}

/* ===== TOP BAR ===== */
.topbar{
  background:linear-gradient(90deg,#000,#1a1a1a,#000);
  border-bottom:1px solid var(--border);
  font-size:13px;color:var(--text-mute);
  padding:8px 0;
}
.topbar .row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
.topbar a{color:var(--gold-2);transition:.3s}
.topbar a:hover{color:#fff}
.topbar .ic{width:14px;height:14px;display:inline-block;vertical-align:middle;margin-left:4px}

/* ===== HEADER ===== */
.header{
  position:sticky;top:0;z-index:100;
  background:rgba(10,10,10,.92);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:46px;height:46px;border-radius:12px;
  background:var(--grad-gold);
  display:grid;place-items:center;color:#000;
  box-shadow:var(--shadow-gold);
}
.brand-mark svg{width:26px;height:26px}
.brand-text strong{
  background:var(--grad-gold);-webkit-background-clip:text;
  background-clip:text;color:transparent;
  font-size:18px;font-weight:800;display:block;line-height:1.2;
}
.brand-text span{font-size:12px;color:var(--text-mute)}
.menu{display:flex;gap:6px;align-items:center}
.menu a{
  padding:9px 16px;border-radius:10px;font-weight:600;font-size:14px;
  color:var(--text);transition:.3s;position:relative;
}
.menu a:hover{color:var(--gold-2);background:rgba(212,175,55,.08)}
.menu a.active{color:var(--gold-2)}
.burger{display:none;background:none;border:1px solid var(--border);
  border-radius:10px;color:var(--gold);padding:8px;cursor:pointer}
.burger svg{width:24px;height:24px}

/* ===== BUTTONS - PREMIUM FRAMED ===== */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 28px;font-weight:700;font-size:15px;
  border-radius:12px;cursor:pointer;border:none;
  transition:all .35s cubic-bezier(.2,.7,.3,1);
  position:relative;text-decoration:none;font-family:inherit;
}
.btn svg{width:18px;height:18px}
.btn-gold{
  background:var(--grad-gold);color:#0a0a0a;
  box-shadow:var(--shadow-gold), inset 0 0 0 1px rgba(255,255,255,.25);
}
.btn-gold:hover{transform:translateY(-3px);box-shadow:0 18px 50px -10px rgba(212,175,55,.55)}
.btn-outline{
  background:transparent;color:var(--gold-2);
  border:1.5px solid var(--gold);
  box-shadow:inset 0 0 0 4px rgba(0,0,0,.4);
}
.btn-outline:hover{background:var(--gold);color:#000}
.btn-frame{
  position:relative;padding:4px;border-radius:16px;
  background:var(--grad-gold);display:inline-block;
}
.btn-frame > .btn-inner{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 26px;background:#0a0a0a;color:var(--gold-2);
  border-radius:12px;font-weight:700;font-size:15px;
  transition:.35s;
}
.btn-frame:hover > .btn-inner{background:transparent;color:#000}
.btn-frame > .btn-inner svg{width:18px;height:18px}
.btn-wa{background:linear-gradient(135deg,#25D366,#128C7E);color:#fff}
.btn-wa:hover{transform:translateY(-3px);box-shadow:0 15px 40px -10px rgba(37,211,102,.5)}

/* ===== HERO ===== */
.hero{
  position:relative;min-height:88vh;
  display:flex;align-items:center;
  background:radial-gradient(ellipse at top,rgba(212,175,55,.18),transparent 60%),#0a0a0a;
  overflow:hidden;padding:80px 0;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:url('../images/hero.jpg') center/cover no-repeat;
  opacity:.28;filter:contrast(1.1) saturate(1.1);z-index:0;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(10,10,10,.4) 0%,rgba(10,10,10,.95) 100%);z-index:1;
}
.hero .container{position:relative;z-index:2}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 18px;border:1px solid var(--gold);
  border-radius:999px;color:var(--gold-2);font-size:13px;font-weight:600;
  background:rgba(212,175,55,.08);margin-bottom:22px;
}
.hero-eyebrow svg{width:14px;height:14px}
.hero h1{
  font-size:clamp(34px,6vw,64px);font-weight:900;line-height:1.15;
  margin-bottom:20px;letter-spacing:-.5px;
}
.hero h1 .accent{
  background:var(--grad-gold);-webkit-background-clip:text;
  background-clip:text;color:transparent;
}
.hero p{font-size:18px;color:var(--text-mute);max-width:680px;margin-bottom:34px}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px}
.hero-stats{display:flex;gap:30px;margin-top:50px;flex-wrap:wrap}
.hero-stats .stat{
  padding:18px 24px;background:rgba(255,255,255,.03);
  border:1px solid var(--border);border-radius:14px;backdrop-filter:blur(8px);
}
.hero-stats .stat b{
  display:block;font-size:28px;
  background:var(--grad-gold);-webkit-background-clip:text;color:transparent;
}
.hero-stats .stat span{font-size:13px;color:var(--text-mute)}

/* ===== SECTIONS ===== */
.section{padding:90px 0;position:relative}
.section-head{text-align:center;margin-bottom:60px}
.kicker{
  display:inline-block;padding:6px 16px;border-radius:999px;
  background:rgba(212,175,55,.1);color:var(--gold-2);
  font-size:13px;font-weight:600;margin-bottom:14px;border:1px solid var(--border);
}
.section-head h2{
  font-size:clamp(28px,4vw,44px);font-weight:800;margin-bottom:14px;
}
.section-head h2 .accent{background:var(--grad-gold);-webkit-background-clip:text;color:transparent}
.section-head p{color:var(--text-mute);max-width:680px;margin:0 auto;font-size:16px}

/* ===== CARD WITH GOLD FRAME ===== */
.grid{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}

.frame-card{
  position:relative;padding:1.5px;border-radius:var(--radius-lg);
  background:linear-gradient(140deg,rgba(212,175,55,.5),rgba(212,175,55,.05) 40%,rgba(212,175,55,.4));
  transition:.4s;
}
.frame-card:hover{
  background:var(--grad-gold);
  transform:translateY(-6px);
  box-shadow:0 25px 50px -15px rgba(212,175,55,.4);
}
.frame-card .inner{
  background:linear-gradient(160deg,#141414,#0a0a0a);
  border-radius:calc(var(--radius-lg) - 1.5px);
  padding:30px 26px;height:100%;position:relative;overflow:hidden;
}
.frame-card .inner::before{
  content:"";position:absolute;top:-60px;right:-60px;width:140px;height:140px;
  background:radial-gradient(circle,rgba(212,175,55,.18),transparent 70%);
  border-radius:50%;
}
.icon-frame{
  width:64px;height:64px;border-radius:18px;
  display:grid;place-items:center;margin-bottom:18px;
  background:linear-gradient(140deg,rgba(212,175,55,.18),rgba(212,175,55,.04));
  border:1px solid var(--border-strong);
  color:var(--gold-2);position:relative;
}
.icon-frame svg{width:32px;height:32px}
.icon-frame::after{
  content:"";position:absolute;inset:-1px;border-radius:18px;
  background:var(--grad-gold);opacity:0;transition:.3s;z-index:-1;
}
.frame-card:hover .icon-frame{color:#000;background:var(--grad-gold);border-color:transparent}
.frame-card h3{font-size:19px;font-weight:800;margin-bottom:10px;color:#fff}
.frame-card p{color:var(--text-mute);font-size:14.5px;margin-bottom:18px;line-height:1.7}
.frame-card .more{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--gold-2);font-weight:700;font-size:14px;
}
.frame-card .more svg{width:16px;height:16px;transition:.3s}
.frame-card:hover .more svg{transform:translateX(-4px)}

/* Area card - smaller */
.area-card{
  display:flex;align-items:center;gap:12px;
  padding:1.5px;border-radius:14px;
  background:linear-gradient(135deg,rgba(212,175,55,.4),rgba(212,175,55,.05));
  transition:.3s;
}
.area-card:hover{background:var(--grad-gold);transform:translateY(-3px)}
.area-card .ainner{
  display:flex;align-items:center;gap:12px;width:100%;
  background:#111;padding:14px 18px;border-radius:12.5px;
  transition:.3s;
}
.area-card:hover .ainner{background:#0a0a0a}
.area-card .pin{
  width:38px;height:38px;border-radius:10px;
  background:rgba(212,175,55,.12);color:var(--gold-2);
  display:grid;place-items:center;flex-shrink:0;
  border:1px solid var(--border);
}
.area-card .pin svg{width:18px;height:18px}
.area-card .name{font-weight:700;font-size:14.5px;color:#fff}
.area-card .sub{font-size:12px;color:var(--text-mute)}

/* ===== FEATURES STRIP ===== */
.feat-strip{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
}
.feat{
  text-align:center;padding:26px 18px;
  background:linear-gradient(160deg,rgba(212,175,55,.06),transparent);
  border:1px solid var(--border);border-radius:18px;
  transition:.3s;
}
.feat:hover{border-color:var(--gold);transform:translateY(-4px)}
.feat .ic{
  width:56px;height:56px;border-radius:14px;margin:0 auto 14px;
  background:var(--grad-gold);color:#000;display:grid;place-items:center;
  box-shadow:var(--shadow-gold);
}
.feat .ic svg{width:28px;height:28px}
.feat h4{font-size:16px;font-weight:800;margin-bottom:6px}
.feat p{font-size:13.5px;color:var(--text-mute)}


/* ===== MOBILE-SAFE MEDIA & ICON LOCK ===== */
.service-thumb{
  width:100%;aspect-ratio:4/3;border-radius:16px;overflow:hidden;
  border:1px solid var(--border);margin-bottom:18px;background:#090909;
}
.service-thumb img{width:100%;height:100%;object-fit:cover}
.btn,.btn-inner,.icon-frame,.brand-mark,.feat .ic,.area-card .pin,.split li .chk,.float a{flex-shrink:0}
.btn svg,.btn-inner svg,.brand-mark svg,.icon-frame svg,.feat .ic svg,.area-card .pin svg,.split li .chk svg,.float a svg{display:block;flex:0 0 auto;max-width:100%;max-height:100%}

/* ===== ABOUT / IMG SPLIT ===== */
.split{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
.split .img-wrap{
  position:relative;border-radius:24px;overflow:hidden;
  border:1.5px solid var(--gold);box-shadow:var(--shadow-gold);
}
.split .img-wrap::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 50%,rgba(10,10,10,.6));
}
.split img{width:100%;height:480px;object-fit:cover}
.split ul{list-style:none;margin-top:20px}
.split li{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px;color:var(--text-mute)}
.split li .chk{
  width:26px;height:26px;border-radius:8px;flex-shrink:0;
  background:var(--grad-gold);color:#000;display:grid;place-items:center;
}
.split li .chk svg{width:16px;height:16px}

/* ===== CTA BAND ===== */
.cta-band{
  background:linear-gradient(135deg,#000 0%,#1a1308 50%,#000 100%);
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  padding:70px 0;text-align:center;position:relative;overflow:hidden;
}
.cta-band::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at center,rgba(212,175,55,.2),transparent 60%);
}
.cta-band .container{position:relative}
.cta-band h2{font-size:clamp(26px,4vw,40px);font-weight:900;margin-bottom:14px}
.cta-band p{color:var(--text-mute);margin-bottom:28px;font-size:17px}
.cta-band .actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ===== FAQ ===== */
.faq-item{
  background:linear-gradient(160deg,#141414,#0a0a0a);
  border:1px solid var(--border);border-radius:14px;
  margin-bottom:14px;overflow:hidden;
}
.faq-item summary{
  padding:20px 24px;cursor:pointer;font-weight:700;
  display:flex;justify-content:space-between;align-items:center;
  list-style:none;color:#fff;font-size:16px;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:"+";color:var(--gold);font-size:24px;font-weight:300;
  transition:.3s;
}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item[open]{border-color:var(--gold)}
.faq-item .answer{padding:0 24px 22px;color:var(--text-mute);line-height:1.85}

/* ===== FOOTER ===== */
footer{
  background:#050505;border-top:1px solid var(--border);
  padding:60px 0 20px;color:var(--text-mute);font-size:14px;
}
.f-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
footer h5{
  color:#fff;font-size:15px;font-weight:800;margin-bottom:18px;
  position:relative;padding-bottom:12px;
}
footer h5::after{
  content:"";position:absolute;bottom:0;right:0;width:30px;height:2px;
  background:var(--grad-gold);
}
footer ul{list-style:none}
footer ul li{margin-bottom:10px}
footer ul a{transition:.3s}
footer ul a:hover{color:var(--gold-2);padding-right:6px}
.f-bottom{
  border-top:1px solid var(--border);padding-top:20px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13px;
}

/* ===== FLOATING BUTTONS - PREMIUM ===== */
.float{
  position:fixed;left:22px;z-index:99;
  display:flex;flex-direction:column;gap:14px;
}
.float a{
  width:60px;height:60px;border-radius:50%;
  display:grid;place-items:center;color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  transition:.3s;position:relative;
}
.float a svg{width:30px;height:30px}
.float a.wa{background:linear-gradient(135deg,#25D366,#128C7E)}
.float a.ph{background:var(--grad-gold);color:#000}
.float a:hover{transform:scale(1.12) rotate(5deg)}
.float a::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  border:2px solid currentColor;opacity:.6;
  animation:ping 2s ease-out infinite;
}
@keyframes ping{
  0%{transform:scale(1);opacity:.6}
  100%{transform:scale(1.6);opacity:0}
}

/* ===== BREADCRUMB ===== */
.breadcrumb{
  padding:30px 0 10px;font-size:13.5px;color:var(--text-mute);
}
.breadcrumb a{color:var(--gold-2)}
.breadcrumb span{margin:0 8px;color:#444}

/* ===== PAGE HERO (landing) ===== */
.page-hero{
  position:relative;padding:80px 0 70px;
  background:linear-gradient(180deg,#0a0a0a,#141414),
             radial-gradient(ellipse at top,rgba(212,175,55,.2),transparent);
  border-bottom:1px solid var(--border);
  overflow:hidden;
}
.page-hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 80% 20%,rgba(212,175,55,.18),transparent 50%);
}
.page-hero .container{position:relative}
.page-hero h1{
  font-size:clamp(28px,4.5vw,48px);font-weight:900;line-height:1.2;margin-bottom:16px;
}
.page-hero h1 .accent{background:var(--grad-gold);-webkit-background-clip:text;color:transparent}
.page-hero p.lead{font-size:17px;color:var(--text-mute);max-width:720px;margin-bottom:26px}
.page-hero .actions{display:flex;gap:12px;flex-wrap:wrap}

/* Reveal animation */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s,transform .8s}
.reveal.in{opacity:1;transform:none}


/* Final guard: any SVG inside buttons/links must never use browser default 300x150 size */
.btn svg,.btn-inner svg,.burger svg,.brand-mark svg,.icon-frame svg,.feat .ic svg,.area-card .pin svg,.more svg,.chk svg{
  width:1.15em;height:1.15em;max-width:1.15em;max-height:1.15em;
}
.brand-mark svg{width:24px;height:24px;max-width:24px;max-height:24px}
.icon-frame svg{width:28px;height:28px;max-width:28px;max-height:28px}
.feat .ic svg{width:24px;height:24px;max-width:24px;max-height:24px}
.float a svg{width:24px;height:24px;max-width:24px;max-height:24px}

/* ===== RESPONSIVE ===== */
@media (max-width:980px){
  .menu{
    position:fixed;top:0;right:-100%;width:80%;height:100vh;
    background:#0a0a0a;flex-direction:column;align-items:flex-start;
    padding:80px 24px;transition:right .35s;border-left:1px solid var(--border);
    gap:6px;
  }
  .menu.open{right:0}
  .menu a{width:100%;padding:14px;font-size:16px;border-bottom:1px solid #1a1a1a;border-radius:0}
  .burger{display:inline-flex}
  .split{grid-template-columns:1fr}
  .split img{height:340px}
  .f-grid{grid-template-columns:1fr 1fr}
  .hero{min-height:auto;padding:60px 0}
  .hero-stats{gap:14px}
  .hero-stats .stat{flex:1;min-width:140px;padding:14px}
  .hero-stats .stat b{font-size:22px}
  .float{left:14px}
  .float a{width:54px;height:54px}
  .float a svg{width:26px;height:26px}
}
@media (max-width:560px){
  .container{padding:0 14px}
  .topbar{font-size:11px;padding:6px 0}
  .topbar .row{justify-content:center;text-align:center;gap:5px}
  .nav{padding:10px 0;gap:8px}
  .brand{gap:8px;min-width:0}
  .brand-mark{width:38px;height:38px;border-radius:10px}
  .brand-mark svg{width:20px;height:20px}
  .brand-text strong{font-size:14px;white-space:normal}
  .brand-text span{font-size:10px}
  .burger{width:38px;height:38px;padding:7px;display:inline-grid;place-items:center}
  .burger svg{width:19px;height:19px}
  .menu a{font-size:14px;padding:12px}
  .menu .btn-frame{margin-top:6px}
  .btn{padding:9px 13px;font-size:12.5px;border-radius:10px;gap:7px;min-height:40px;max-width:100%}
  .btn svg{width:15px;height:15px}
  .btn-frame{padding:2px;border-radius:12px;max-width:100%}
  .btn-frame > .btn-inner{padding:8px 12px;font-size:12.5px;border-radius:10px;gap:7px;min-height:38px;max-width:100%}
  .btn-frame > .btn-inner svg{width:15px;height:15px}
  .hero{padding:46px 0 54px}
  .hero h1{font-size:clamp(28px,10vw,38px);letter-spacing:0}
  .hero p{font-size:14.5px;margin-bottom:22px}
  .hero-cta,.page-hero .actions,.cta-band .actions{gap:9px;align-items:center}
  .hero-cta .btn,.hero-cta .btn-frame,.page-hero .actions .btn,.page-hero .actions .btn-frame{flex:0 1 auto}
  .hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:34px}
  .hero-stats .stat{min-width:0;padding:12px 10px;border-radius:12px}
  .hero-stats .stat b{font-size:20px}
  .hero-stats .stat span{font-size:11px}
  .section{padding:58px 0}
  .section-head{margin-bottom:34px}
  .grid{gap:16px}
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr}
  .frame-card .inner{padding:18px 16px}
  .service-thumb{aspect-ratio:16/11;border-radius:12px;margin-bottom:14px}
  .icon-frame{width:44px;height:44px;border-radius:12px;margin-bottom:12px}
  .icon-frame svg{width:21px;height:21px}
  .frame-card h3{font-size:16.5px}
  .frame-card p{font-size:13px}
  .frame-card .more{font-size:13px}
  .frame-card .more svg{width:13px;height:13px}
  .feat-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .feat{padding:18px 10px;border-radius:14px}
  .feat .ic{width:42px;height:42px;border-radius:11px}
  .feat .ic svg{width:20px;height:20px}
  .feat h4{font-size:13.5px}
  .feat p{font-size:11.5px}
  .split{gap:26px}
  .split img{height:auto;aspect-ratio:16/11;object-fit:cover}
  .split li{gap:8px;font-size:13px}
  .split li .chk{width:20px;height:20px;border-radius:6px}
  .split li .chk svg{width:12px;height:12px}
  .page-hero{padding:46px 0 48px}
  .page-hero h1{font-size:clamp(25px,8.5vw,34px);letter-spacing:0}
  .page-hero p.lead{font-size:14.5px}
  .area-card .ainner{padding:11px 12px}
  .area-card .pin{width:31px;height:31px;border-radius:9px}
  .area-card .pin svg{width:15px;height:15px}
  .float{left:10px;bottom:12px!important;gap:9px}
  .float a{width:42px!important;height:42px!important}
  .float a svg{width:20px!important;height:20px!important}
  .float a::before{animation:none;display:none}
  .f-grid{grid-template-columns:1fr}
  footer .btn{padding:8px 11px!important;font-size:12px}
}
