/* ============================================================
   Speakory — shared site styles (header, footer, mobile menu,
   buttons, WhatsApp button, language/RTL). Page sections keep
   their own styles inside each page.
   ============================================================ */
:root{
  --sp-red:#E8272A; --sp-red-dark:#C41E21; --sp-black:#0A0A0A; --sp-ink:#0A0A0A;
  --sp-muted:#666; --sp-line:#EBEBEB; --sp-soft:#F8F8F6;
  --sp-wrap:1100px; --sp-header-h:72px;
  --sp-font:'Plus Jakarta Sans','Cairo',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--sp-header-h) + 12px);-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--sp-font);background:#fff;color:var(--sp-ink);overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
main{display:block}

/* Arabic: Latin stays in the brand font, Arabic glyphs use Cairo */
html.sp-ar body, html.sp-ar body *:not(svg):not(path){font-family:'Plus Jakarta Sans','Cairo',sans-serif !important}
html.sp-ar body{letter-spacing:0}
html.sp-ar h1, html.sp-ar h2, html.sp-ar h3, html.sp-ar h4{line-height:1.35 !important;letter-spacing:0 !important}
/* While Arabic is being applied, hide for a moment (failsafe reveals after 1.2s) */
html.sp-pending body{visibility:hidden;animation:spReveal 0s 1.2s forwards}
@keyframes spReveal{to{visibility:visible}}

.sp-skip{position:absolute;top:8px;inset-inline-start:8px;background:var(--sp-black);color:#fff;padding:10px 16px;border-radius:8px;z-index:1000;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.sp-skip:focus{clip-path:none;width:auto;height:auto}
:focus-visible{outline:2px solid var(--sp-red);outline-offset:2px}

/* ---------- Buttons ---------- */
.sp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:50px;font-weight:700;font-size:14px;padding:12px 26px;text-decoration:none;cursor:pointer;border:1.5px solid transparent;transition:background .2s,color .2s,border-color .2s,transform .2s,box-shadow .2s;font-family:inherit;line-height:1.2;white-space:nowrap}
.sp-btn-red{background:var(--sp-red);color:#fff}
.sp-btn-red:hover{background:var(--sp-red-dark);box-shadow:0 6px 18px rgba(232,39,42,.28)}
.sp-btn-outline{background:#fff;color:var(--sp-ink);border-color:#DCDCDC}
.sp-btn-outline:hover{border-color:var(--sp-ink)}
.sp-btn-block{width:100%}

/* ---------- Header ---------- */
.sp-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.96);backdrop-filter:saturate(180%) blur(10px);-webkit-backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--sp-line);transition:box-shadow .3s}
.sp-header.scrolled{box-shadow:0 4px 24px rgba(0,0,0,.06)}
.sp-header-in{max-width:calc(var(--sp-wrap) + 40px);margin:0 auto;height:var(--sp-header-h);padding:0 20px;display:flex;align-items:center;gap:32px}
.sp-logo{display:flex;align-items:center;flex-shrink:0;text-decoration:none}
.sp-logo img{height:44px;width:auto;display:block}
.sp-nav{flex:1}
.sp-nav ul{display:flex;gap:30px;list-style:none;margin:0;padding:0}
.sp-nav li{margin:0;padding:0;font-size:inherit;line-height:1}
.sp-nav a{font-size:14px;color:#555;text-decoration:none;font-weight:500;position:relative;padding:6px 0;transition:color .15s}
.sp-nav a::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:2px;border-radius:2px;background:var(--sp-red);transform:scaleX(0);transition:transform .2s}
.sp-nav a:hover,.sp-nav a.on{color:var(--sp-red)}
.sp-nav a.on::after{transform:scaleX(1)}
.sp-header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.sp-lang-btn{background:rgba(232,39,42,.07);border:1.5px solid rgba(232,39,42,.2);color:var(--sp-red);padding:8px 16px;border-radius:50px;font-weight:700;font-size:13px;cursor:pointer;transition:background .2s;font-family:inherit;min-width:84px}
.sp-lang-btn:hover{background:rgba(232,39,42,.14)}
.sp-header-cta{padding:10px 22px;font-size:13px}
.sp-burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:42px;height:42px;padding:10px;background:none;border:1px solid var(--sp-line);border-radius:10px;cursor:pointer}
.sp-burger span{display:block;width:100%;height:2px;background:var(--sp-ink);border-radius:2px}

/* ---------- Mobile menu ---------- */
.sp-mobile{position:fixed;inset:0;z-index:200;background:#fff;display:flex;flex-direction:column;padding:16px 20px calc(24px + env(safe-area-inset-bottom));transform:translateY(-8px);opacity:0;visibility:hidden;transition:opacity .25s,transform .25s,visibility .25s}
.sp-mobile.open{opacity:1;visibility:visible;transform:none}
.sp-mobile-top{display:flex;align-items:center;justify-content:space-between;height:48px}
.sp-mobile-top img{height:40px;width:auto}
.sp-mobile-close{width:42px;height:42px;border-radius:10px;border:1px solid var(--sp-line);background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.sp-mobile-close svg{width:20px;height:20px;stroke:var(--sp-ink);stroke-width:2;fill:none;stroke-linecap:round}
.sp-mobile-links{flex:1;display:flex;flex-direction:column;justify-content:center;gap:6px}
.sp-mobile-links a{font-size:26px;font-weight:800;color:var(--sp-ink);text-decoration:none;padding:12px 4px;border-bottom:1px solid #F2F2F2}
.sp-mobile-links a.on{color:var(--sp-red)}
.sp-mobile-bottom{display:flex;flex-direction:column;gap:10px}

/* ---------- Footer ---------- */
.sp-footer{background:var(--sp-black);color:#9A9A9A;padding:64px 20px 0;margin-top:0;overflow:hidden}
.sp-footer p,.sp-footer ul,.sp-footer li,.sp-footer h3{margin:0;padding:0;border:0;font-size:inherit;color:inherit;line-height:1.6;list-style:none}
.sp-footer a{color:inherit}
.sp-footer .sp-footer-main{max-width:var(--sp-wrap);margin:0 auto;display:grid;grid-template-columns:1.6fr 1fr 1fr 1.4fr;gap:48px;padding-bottom:48px}
.sp-footer .sp-footer-logo img{height:42px;width:auto;display:block}
.sp-footer .sp-footer-tagline{font-size:14px;line-height:1.75;color:#8A8A8A;margin:18px 0 22px;max-width:320px}
.sp-footer .sp-social{display:flex;flex-wrap:wrap;gap:10px}
.sp-footer .sp-social-btn{width:38px;height:38px;border-radius:10px;border:1px solid #262626;display:flex;align-items:center;justify-content:center;color:#9A9A9A;transition:border-color .2s,color .2s,background .2s}
.sp-footer .sp-social-btn:hover{border-color:var(--sp-red);color:#fff;background:var(--sp-red)}
.sp-footer .sp-social-btn svg{width:16px;height:16px}
.sp-footer .sp-social-btn svg.stroke{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sp-footer .sp-social-btn svg.fill{fill:currentColor;stroke:none}
.sp-footer .sp-footer-col h3{font-size:12px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.12em;margin:6px 0 18px}
html.sp-ar .sp-footer .sp-footer-col h3{letter-spacing:0;font-size:14px}
.sp-footer .sp-footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.sp-footer .sp-footer-col a{color:#9A9A9A;text-decoration:none;font-size:14px;transition:color .15s}
.sp-footer .sp-footer-col a:hover{color:#fff}
.sp-footer .sp-contact-line{display:inline-flex;align-items:center;gap:10px;font-size:14px;color:#9A9A9A}
.sp-footer .sp-contact-line svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:var(--sp-red);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sp-footer .sp-footer-bottom{max-width:var(--sp-wrap);margin:0 auto;border-top:1px solid rgba(255,255,255,.08);padding:20px 0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px;color:#6E6E6E}
.sp-footer .sp-footer-bottom p{margin:0}
.sp-footer .sp-credit a{color:var(--sp-red);font-weight:700;text-decoration:none}
.sp-footer .sp-footer-lang{display:inline-flex;align-items:center;gap:8px;background:none;border:1px solid #262626;color:#BDBDBD;border-radius:50px;padding:7px 14px;font-size:13px;cursor:pointer;font-family:inherit;transition:border-color .2s,color .2s}
.sp-footer .sp-footer-lang:hover{border-color:#555;color:#fff}
.sp-footer .sp-footer-lang svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}

/* ---------- WhatsApp floating button ---------- */
.sp-wa-float{position:fixed;bottom:24px;right:24px;z-index:150;width:56px;height:56px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(37,211,102,.4);transition:transform .2s}
.sp-wa-float:hover{transform:scale(1.08)}
html[dir="rtl"] .sp-wa-float{right:auto;left:24px}

/* ---------- Shared form helpers ---------- */
.sp-hp{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap;opacity:0;pointer-events:none}
.sp-form-error{display:none;background:#FFF1F1;border:1px solid #FFD0D0;color:#C41E21;border-radius:10px;padding:10px 14px;font-size:13px;margin-top:12px;text-align:center}
.sp-form-error.show{display:block}

/* Bilingual blocks: content rendered for both languages, shown by mode */
html:not(.sp-ar) .only-ar{display:none!important}
html.sp-ar .only-en{display:none!important}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .sp-header-in{gap:20px}
  .sp-nav ul{gap:20px}
  .sp-footer .sp-footer-main{grid-template-columns:1fr 1fr;gap:40px}
}
@media (max-width:860px){
  .sp-nav,.sp-header-cta{display:none}
  .sp-burger{display:flex}
  .sp-header-actions{margin-inline-start:auto}
}
@media (max-width:640px){
  :root{--sp-header-h:64px}
  .sp-logo img{height:38px}
  .sp-lang-btn{padding:7px 12px;min-width:0}
  .sp-footer{padding-top:48px}
  .sp-footer .sp-footer-main{grid-template-columns:1fr 1fr;gap:32px 24px}
  .sp-footer .sp-footer-brand{grid-column:1/-1}
  .sp-footer .sp-footer-contact{grid-column:1/-1}
  .sp-footer .sp-footer-bottom{flex-direction:column;text-align:center;gap:12px}
  .sp-wa-float{bottom:18px;right:18px;width:52px;height:52px}
  html[dir="rtl"] .sp-wa-float{left:18px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- RTL refinements for page sections ---------- */
html[dir="rtl"] .step-n{right:auto;left:18px}
html[dir="rtl"] .btn-see-packages svg{transform:rotate(90deg)}
html[dir="rtl"] .fq{text-align:right}
html[dir="rtl"] .lrow:hover{padding-left:28px;padding-right:36px}
html[dir="rtl"] .lmeta,html[dir="rtl"] .lprice{text-align:left}
html[dir="rtl"] .nb:first-child{padding-left:28px;padding-right:0}
html[dir="rtl"] .hero-p,html[dir="rtl"] .sec-head p{letter-spacing:0}
.fa.open{max-height:none}
