/* ============================================================
   rama.adwaaksa.com — Brand Rebrand v2 (الهوية البصرية الجديدة)
   Based on: فحص وإصلاح الكابلات الكهربائية identity sheet
   Palette: Primary Blue #1B66F2 · Navy #0B1B33 · Light #F4F8FE
            Sky #3B82F6 · Copper #C77B3A (كابل أكسينت)
   Design language: Flat + subtle gradients, dashed-outline cards,
   rounded-2xl, glass shield accents — per UIUX-Pro-Max
   "Home Services" spec (Conversion + Trust).
   Restore: swap this file for static/css/style.css.bak-v1
   ============================================================ */

:root {
  /* Brand — من الهوية المرفقة */
  --brand-blue: #1B66F2;
  --brand-blue-dark: #0F4FD8;
  --brand-navy: #0B1B33;
  --brand-navy-soft: #16294D;
  --brand-sky: #3B82F6;
  --brand-sky-light: #DBEAFE;
  --brand-bg: #F4F8FE;
  --brand-card: #EDF3FD;
  --brand-copper: #C77B3A;
  --brand-copper-dark: #A55F28;

  /* Legacy aliases (keep old var names working) */
  --green-primary: var(--brand-blue);
  --green-secondary: var(--brand-sky);
  --green-dark: var(--brand-blue-dark);
  --green-light: var(--brand-sky-light);
  --gold: var(--brand-copper);
  --gold-light: #F7E7D8;

  --white: #FFFFFF;
  --gray-50: #F7FAFF;
  --gray-100: #EEF3FB;
  --gray-200: #DCE6F5;
  --gray-300: #C3D2EC;
  --gray-400: #8FA3C4;
  --gray-500: #5F7397;
  --gray-600: #46587B;
  --gray-700: #2F4160;
  --gray-800: #1C2C4A;
  --gray-900: #0B1B33;

  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06);
  --shadow: 0 4px 14px rgba(27, 102, 242, 0.10);
  --shadow-lg: 0 12px 32px rgba(27, 102, 242, 0.16);
}

body {
  background: var(--brand-bg);
  color: var(--gray-900);
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

h1, h2, h3, h4 { font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-brand { color: var(--brand-navy); font-weight: 800; }
.nav-link { color: var(--gray-700); font-weight: 600; }
.nav-link:hover { color: var(--brand-blue); }
.btn-primary,
.nav-cta-desktop .btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(27, 102, 242, 0.10), transparent 55%),
    linear-gradient(180deg, #F7FAFF 0%, var(--brand-bg) 100%);
}
.hero-badge {
  background: var(--brand-sky-light);
  color: var(--brand-blue-dark);
  border: 1px dashed var(--brand-sky);
  border-radius: 999px;
  font-weight: 700;
}
.hero h1 { color: var(--brand-navy); }
.hero h1 span, .hero .accent { color: var(--brand-blue); }
.hero p { color: var(--gray-600); }

.btn-emergency {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(27, 102, 242, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-emergency:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(27, 102, 242, 0.34); }
.btn-outline {
  border: 2px dashed var(--brand-sky);
  color: var(--brand-blue-dark);
  background: #fff;
  border-radius: 999px;
}
/* btn-outline hover: scale-only, see glass-nav.css */

/* ---------- Trust banner ---------- */
.trust-banner {
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius-xl);
}
.trust-item i { color: var(--brand-sky); }
.trust-item strong { color: #fff; }

/* ---------- Sections ---------- */
.section:nth-of-type(even) { background: #fff; }
.section-header h2 { color: var(--brand-navy); }
.section-header h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  border-radius: 4px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky));
}
.section-header p { color: var(--gray-500); }

/* ---------- Service cards (dashed identity cards) ---------- */
.service-card {
  background: #fff;
  border: 2px dashed var(--brand-sky-light);
  border-radius: var(--radius-xl);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--brand-sky);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card-icon {
  background: linear-gradient(135deg, var(--brand-sky-light), #fff);
  color: var(--brand-blue);
  border: 1px solid var(--brand-sky-light);
  border-radius: 14px;
}
.service-card h3 { color: var(--brand-navy); }
.service-card-link { color: var(--brand-blue); font-weight: 700; }

/* ---------- Blog cards ---------- */
.blog-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 18px 20px 22px; }
.blog-card-title { color: var(--brand-navy); }

/* ---------- Footer ---------- */
footer, .site-footer {
  background: var(--brand-navy);
  color: #CBD9F0;
}
.footer-heading { color: #fff; }
.footer-links a { color: #A9BDDF; }
.footer-links a:hover { color: #fff; }

/* ---------- Floating contact buttons ---------- */
#callnowbutton { filter: hue-rotate(0deg); }
a[href^="tel:"].floating-btn,
.whatsapp-float { box-shadow: 0 8px 20px rgba(11, 27, 51, 0.25); }

/* ghost-fibers lift */
main, .navbar, #floatingNavbar { position: relative; z-index: 1; }
#floatingNavbar { position: fixed !important; z-index: 5000 !important; }


/* ghost-fibers visibility: translucent section shells */
.section-light, .section-gray { background: rgba(255, 255, 255, 0.55) !important; }
.hero { background: transparent !important; }
/* glass-nav handles navbar bg */

/* ghost-fibers stacking fix: content ABOVE fixed canvas (canvas appended last) */
body > main { position: relative !important; z-index: 1 !important; }
body > main .section, body > main .trust-banner, body > main .cta-section,
body > main .hero { position: relative !important; z-index: 1; }
#ghost-fibers { z-index: 0 !important; }

/* stroke hero */
.stroke-hero{display:block;line-height:0}
.stroke-hero svg{width:100%;max-width:760px;height:clamp(64px,10vw,130px)!important;overflow:visible}

/* ===== Scroll Stack (services) — sticky cover w/ peek ===== */
.ss-stack{display:flex;flex-direction:column;padding-bottom:120px}
.ss-card{position:sticky;height:420px;border-radius:32px;
  border:1px solid rgba(27,102,242,.16);
  box-shadow:0 -8px 30px rgba(11,27,51,.10), 0 10px 34px rgba(11,27,51,.08);
  overflow:hidden;margin-bottom:120px}
.ss-card:nth-child(1){top:96px;background:#FFFFFF}
.ss-card:nth-child(2){top:166px;background:#F0F6FF}
.ss-card:nth-child(3){top:236px;background:#FFFFFF}
.ss-card:nth-child(4){top:306px;background:#F0F6FF}
.ss-card:nth-child(5){top:376px;background:#FFFFFF}
.ss-card-inner{display:flex;align-items:center;gap:34px;height:100%;padding:2.6rem 3rem}
.ss-icon{flex-shrink:0;width:92px;height:92px;border-radius:24px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#EFF6FF,#fff);border:1px solid #DBEAFE;color:#1B66F2;font-size:2rem}
.ss-num{font-family:"Inter",sans-serif;font-size:12px;letter-spacing:.18em;color:#1B66F2;font-weight:600}
.ss-copy h3{font-family:"Noto Kufi Arabic",sans-serif;font-size:1.5rem;color:#0B1B33;margin:6px 0 12px}
.ss-copy p{color:#46587B;line-height:1.9;font-size:.98rem;max-width:52ch}
.ss-link{display:inline-block;margin-top:14px;color:#1B66F2;font-weight:600;text-decoration:none;transition:gap .25s}
.ss-link:hover{gap:6px}
.ss-link i{margin-right:6px;transition:transform .25s}
.ss-link:hover i{transform:translateX(-4px)}
.ss-end{width:100%;height:320px}
@media(max-width:768px){
  .ss-card{height:auto;min-height:340px;margin-bottom:80px;border-radius:28px}
  .ss-card:nth-child(1){top:76px}.ss-card:nth-child(2){top:132px}.ss-card:nth-child(3){top:188px}
  .ss-card:nth-child(4){top:244px}.ss-card:nth-child(5){top:300px}
  .ss-card-inner{flex-direction:column;align-items:flex-start;gap:18px;padding:1.8rem 1.5rem}
  .ss-icon{width:64px;height:64px;font-size:1.4rem}
  .ss-copy h3{font-size:1.2rem}
}


/* ===== word-fill paragraphs (lenis-style) ===== */
.b-copy p .wf{color:rgba(11,27,51,.16);transition:color .18s linear}
.b-copy p .wf.lit{color:#0B1B33}
/* ===== Why (lenis-style pin) ===== */
.why{padding:110px 0 90px}
.why-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:80px;align-items:start}
.why-q{position:sticky;top:26vh;align-self:start}
.why-q .why-eyebrow{font-family:'Inter',sans-serif;font-size:12px;letter-spacing:.2em;color:#1B66F2;font-weight:600}
.why-q h2{font-family:'Noto Kufi Arabic',sans-serif;font-size:clamp(2rem,4.2vw,3.1rem);font-weight:700;color:#0B1B33;line-height:1.55;margin-top:14px}
.why-rule{width:64px;height:4px;border-radius:4px;background:linear-gradient(90deg,#1B66F2,#3B82F6);margin-top:22px}
.why-a{display:flex;flex-direction:column;gap:30vh;padding:44vh 0 8vh}
.why-item{opacity:.22;transform:translateY(28px);transition:opacity .65s ease,transform .65s ease}
.why-item.on{opacity:1;transform:translateY(0)}
.why-num{font-family:'Inter',sans-serif;font-size:12px;letter-spacing:.18em;color:#1B66F2;font-weight:600}
.why-item h3{font-family:'Noto Kufi Arabic',sans-serif;font-size:clamp(1.35rem,2.4vw,1.8rem);font-weight:700;color:#0B1B33;margin:10px 0 12px}
.why-item p{color:#46587B;line-height:2;max-width:48ch;font-size:1.03rem}
@media(max-width:860px){
  .why{padding:70px 0 60px}
  .why-grid{grid-template-columns:1fr;gap:26px}
  .why-q{position:static;top:auto}
  .why-q h2{font-size:clamp(1.6rem,6vw,2.2rem)}
  .why-a{gap:64px;padding:10px 0 20px}
  .why-item{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){.why-item{opacity:1!important;transform:none!important}}
/* footer-lift: above ghost fibers canvas */
footer.footer, .footer { position: relative !important; z-index: 1 !important; }


/* why proximity answer-stop: active answer rests parallel to the pinned question */
.why-item{transition:opacity .5s ease,transform .6s ease !important}
.why-grid{align-items:stretch}
.why-q{top:22vh}
/* 2026-11-24: show article images in full (no crop) */
.blog-card-image { aspect-ratio: 1 / 1; background: #fff; }
.blog-card-image img { width: 100%; height: 100%; object-fit: contain; }
