/* ==========================================================================
   QQ Tiles — Landing Page
   ========================================================================== */

:root{
  --orange:#F47B20;
  --orange-dark:#D9660F;
  --green:#25D366;
  --green-dark:#1EAE52;
  --ink:#111315;
  --ink-2:#2C3033;
  --muted:#6B7276;
  --line:#E6E6E6;
  --bg:#FFFFFF;
  --bg-soft:#F7F6F4;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 4px 24px rgba(17,19,21,.08);
  --shadow-lg:0 12px 40px rgba(17,19,21,.14);
  --container:1200px;
  --header-h:76px;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:"IBM Plex Sans Arabic","Cairo",system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
picture{display:contents}
a{color:inherit;text-decoration:none}

h1,h2,h3{margin:0;line-height:1.3;font-weight:700;letter-spacing:-.01em}
p{margin:0}

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:20px;
}

.section{padding:84px 0}
.section--soft{background:var(--bg-soft)}

.section__head{max-width:640px;margin:0 auto 44px;text-align:center}
.section__title{font-size:clamp(26px,4vw,38px)}
.section__sub{margin-top:12px;color:var(--muted);font-size:17px}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:14px 26px;
  border-radius:999px;
  font-size:16px;
  font-weight:700;
  font-family:inherit;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease,color .2s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}

.btn--wa{background:var(--green);color:#fff;box-shadow:0 6px 18px rgba(37,211,102,.32)}
.btn--wa:hover{background:var(--green-dark)}

.btn--call{background:var(--ink);color:#fff}
.btn--call:hover{background:var(--ink-2)}

.btn--orange{background:var(--orange);color:#fff;box-shadow:0 6px 18px rgba(244,123,32,.3)}
.btn--orange:hover{background:var(--orange-dark)}

.btn--ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn--ghost:hover{border-color:var(--ink);background:var(--ink);color:#fff}

.btn--light{background:#fff;color:var(--ink)}
.btn--light:hover{background:#f2f2f2}

.btn--sm{padding:10px 18px;font-size:14.5px}
.btn--block{width:100%}

.btn .ico{width:19px;height:19px;flex:none;fill:currentColor}

/* ---------- 01 Header ---------- */
.header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.header__inner{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.logo img{height:46px;width:auto}
.header__actions{display:flex;align-items:center;gap:10px}
.header__actions .btn--call{display:inline-flex}

/* ---------- 02 Hero ---------- */
.hero{
  position:relative;
  min-height:min(88vh,720px);
  display:flex;
  align-items:center;
  color:#fff;
  overflow:hidden;
}
.hero__bg{position:absolute;inset:0}
.hero__bg img{width:100%;height:100%;object-fit:cover}
.hero__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(10,12,14,.86) 0%,rgba(10,12,14,.62) 45%,rgba(10,12,14,.25) 100%);
}
.hero__inner{position:relative;z-index:2;padding:80px 0;max-width:680px}
.hero__eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(244,123,32,.16);
  border:1px solid rgba(244,123,32,.55);
  color:#FFC48F;
  padding:7px 16px;border-radius:999px;
  font-size:14px;font-weight:600;margin-bottom:20px;
}
.hero__title{font-size:clamp(32px,5.6vw,56px);line-height:1.22}
.hero__text{margin-top:18px;font-size:clamp(17px,2.2vw,20px);color:#E4E6E8;max-width:560px}
.hero__cta{margin-top:34px;display:flex;flex-wrap:wrap;gap:14px}

/* ---------- 03 Quick actions ---------- */
.quick{background:var(--ink);color:#fff;padding:0}
.quick__grid{display:grid;grid-template-columns:repeat(3,1fr)}
.quick__item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:30px 24px;
  border-inline-start:1px solid rgba(255,255,255,.1);
  transition:background .2s ease;
}
.quick__item:first-child{border-inline-start:0}
.quick__item:hover{background:rgba(255,255,255,.06)}
.quick__icon{
  width:50px;height:50px;flex:none;
  display:grid;place-items:center;
  border-radius:14px;
  background:rgba(244,123,32,.16);
  color:var(--orange);
}
.quick__icon .ico{width:24px;height:24px;fill:currentColor}
.quick__label{display:block;font-weight:700;font-size:17px;line-height:1.4}
.quick__note{display:block;font-size:14.5px;color:#A9AFB4;margin-top:2px;line-height:1.5}

/* ---------- بطاقة التواصل — صف لكل رقم مع زرّي أيقونة ---------- */
.contact{
  max-width:600px;
  margin:34px auto 0;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  text-align:start;
}
.contact__row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px 22px;
  border-top:1px solid var(--line);
}
.contact__row:first-child{border-top:0}
.contact__icon{
  width:46px;height:46px;flex:none;
  display:grid;place-items:center;
  border-radius:14px;
  background:rgba(244,123,32,.12);
  color:var(--orange);
}
.contact__icon .ico{width:22px;height:22px;fill:currentColor}
.contact__icon--wa{background:rgba(37,211,102,.14);color:var(--green)}
.contact__text{flex:1;min-width:0}
.contact__name{display:block;font-weight:700;font-size:16.5px;color:var(--ink);line-height:1.4}
.contact__num{
  display:block;direction:ltr;text-align:start;
  font-size:14.5px;color:var(--muted);
  font-variant-numeric:tabular-nums;letter-spacing:.02em;margin-top:2px;
}
.contact__actions{display:flex;gap:10px;flex:none}

.iconbtn{
  width:46px;height:46px;flex:none;
  border-radius:50%;
  display:grid;place-items:center;
  transition:transform .15s ease,background .2s ease;
}
.iconbtn:hover{transform:translateY(-2px)}
.iconbtn .ico{width:21px;height:21px;fill:#fff}
.iconbtn--wa{background:var(--green)}
.iconbtn--wa:hover{background:var(--green-dark)}
.iconbtn--call{background:var(--ink)}
.iconbtn--call:hover{background:var(--ink-2)}
.iconbtn--sm{width:38px;height:38px}
.iconbtn--sm .ico{width:18px;height:18px}

/* نسخة داكنة للفوتر */
.contact--dark{background:transparent;box-shadow:none;border-radius:0;margin:0;max-width:none}
.contact--dark .contact__row{padding:14px 0;border-top-color:rgba(255,255,255,.1)}
.contact--dark .contact__icon{width:38px;height:38px;border-radius:11px;background:rgba(244,123,32,.16)}
.contact--dark .contact__icon .ico{width:18px;height:18px}
.contact--dark .contact__name{color:#fff;font-size:15.5px}
.contact--dark .contact__num{color:#9BA2A7;font-size:13.5px}

/* ---------- روابط الهيرو الثانوية ---------- */
.hero__alt{margin-top:16px;font-size:15.5px;color:#C7CCD0}
.hero__alt a{color:#fff;font-weight:700;border-bottom:1px solid rgba(255,255,255,.45);padding-bottom:1px}
.hero__alt a:hover{border-bottom-color:#fff}

/* ---------- 04 Products ---------- */
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.product{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .2s ease,box-shadow .25s ease;
}
.product:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.product__media{aspect-ratio:4/3;overflow:hidden}
.product__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.product:hover .product__media img{transform:scale(1.06)}
.product__body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.product__title{font-size:21px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.product__badge{background:var(--orange);color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;letter-spacing:0}
.product__text{color:var(--muted);font-size:15.5px;flex:1}
.product__body .btn{margin-top:6px}

/* ---------- 05 Help / choose ---------- */
.help{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:0;
  background:var(--ink);
  color:#fff;
  border-radius:24px;
  overflow:hidden;
}
.help__body{padding:56px 48px}
.help__title{font-size:clamp(26px,4vw,36px)}
.help__lead{margin-top:14px;color:var(--orange);font-weight:700;font-size:18px}
.help__text{margin-top:12px;color:#C7CCD0;font-size:17px}
.help__body .btn{margin-top:28px}
.help__media{height:100%;min-height:340px}
.help__media img{width:100%;height:100%;object-fit:cover}

/* ---------- 06 Branches ---------- */
.branches{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.branch{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  min-height:320px;
  display:flex;
  align-items:flex-end;
  color:#fff;
}
.branch img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.branch:hover img{transform:scale(1.05)}
.branch::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(10,12,14,.9) 0%,rgba(10,12,14,.35) 55%,rgba(10,12,14,.1) 100%);
}
.branch__body{position:relative;z-index:2;padding:28px;width:100%}
.branch__name{font-size:23px;display:flex;align-items:center;gap:10px}
.branch__name .ico{width:22px;height:22px;fill:var(--orange)}
.branch__body .btn{margin-top:16px}

/* ---------- 07 CTA ---------- */
.cta{position:relative;color:#fff;text-align:center;overflow:hidden}
.cta__bg{position:absolute;inset:0}
.cta__bg img{width:100%;height:100%;object-fit:cover}
.cta__bg::after{content:"";position:absolute;inset:0;background:rgba(10,12,14,.78)}
.cta__inner{position:relative;z-index:2;padding:90px 0;max-width:680px;margin:0 auto}
.cta__title{font-size:clamp(28px,4.4vw,42px)}
.cta__text{margin-top:14px;color:#D8DCDF;font-size:18px}
.cta__actions{margin-top:32px;display:flex;flex-wrap:wrap;gap:14px;justify-content:center}

/* ---------- 08 Footer ---------- */
.footer{background:var(--ink);color:#fff;padding:64px 0 0}
.footer__grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:40px}
.footer__logo img{height:48px;width:auto}
.footer__about{margin-top:16px;color:#9BA2A7;font-size:15.5px;max-width:320px}
.footer__title{font-size:18px;margin-bottom:18px}
.footer__list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.footer__list a{display:inline-flex;align-items:center;gap:10px;color:#C7CCD0;font-size:15.5px;transition:color .2s}
.footer__list a:hover{color:var(--orange)}
.footer__list .ico{width:18px;height:18px;flex:none;fill:var(--orange)}

/* روابط السوشال بالفوتر */
.footer__social{list-style:none;margin:20px 0 0;padding:0;display:flex;gap:10px}
.footer__social a{
  width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.08);
  transition:background .2s ease,transform .15s ease;
}
.footer__social a:hover{background:var(--orange);transform:translateY(-2px)}
.footer__social .ico{width:19px;height:19px;fill:#fff}
.footer__bar{
  margin-top:52px;padding:22px 0;
  border-top:1px solid rgba(255,255,255,.1);
  text-align:center;color:#7E868C;font-size:14px;
}

/* ---------- 09 Sticky mobile bar ---------- */
.stickybar{
  position:fixed;
  inset-inline:0;
  bottom:0;
  z-index:70;
  display:none;
  background:#fff;
  border-top:1px solid var(--line);
  box-shadow:0 -6px 22px rgba(0,0,0,.1);
  padding:8px 8px calc(8px + env(safe-area-inset-bottom));
  gap:8px;
}
.stickybar a{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:9px 4px;
  border-radius:12px;
  font-size:12.5px;
  font-weight:700;
  color:#fff;
}
.stickybar .ico{width:20px;height:20px;fill:currentColor}
.sb--wa{background:var(--green)}
.sb--call{background:var(--ink)}
.sb--map{background:var(--orange)}

/* ---------- Reveal on scroll ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1024px){
  .products{grid-template-columns:repeat(2,1fr)}
  .help{grid-template-columns:1fr}
  .help__body{padding:44px 32px}
  .help__media{min-height:260px;order:-1}
  .footer__grid{grid-template-columns:1fr 1fr;gap:32px}
}

@media (max-width:820px){
  .quick__grid{grid-template-columns:1fr}
  .quick__item{border-inline-start:0;border-top:1px solid rgba(255,255,255,.1)}
  .quick__item:first-child{border-top:0}
  .branches{grid-template-columns:1fr}
}

@media (max-width:640px){
  :root{--header-h:64px}
  .section{padding:56px 0}
  .header__actions .btn--call{display:none}
  .logo img{height:34px}
  .hero{min-height:auto}
  .hero__inner{padding:64px 0 72px}
  .hero__cta{flex-direction:column;align-items:stretch}
  .hero__cta .btn{width:100%}
  .cta__actions{flex-direction:column;align-items:stretch}
  .footer{padding-top:48px}
  .footer__grid{grid-template-columns:1fr}
  .contact{margin-top:26px;border-radius:16px}
  .contact__row{padding:16px 16px;gap:12px}
  .contact__icon{display:none}
  .iconbtn{width:44px;height:44px}
  .stickybar{display:flex}
  body{padding-bottom:76px}
}
