/*
Theme Name: Kingslee (Elementor)
Template: hello-elementor
Description: Kingslee software house child theme on Hello Elementor. Custom coded header/footer matching the Kingslee Software House design system; page content built in Elementor.
Version: 1.0.0
Author: Kingslee
*/

:root{
  --bg:#FFFFFF;
  --surface:#F5F7FB;
  --ink:#0B1E4D;
  --accent:#1E6FE0;
  --grey:#4B5563;
  --border:#E4E8F1;
  --font-heading:'Poppins', sans-serif;
  --font-body:'Open Sans', sans-serif;
  --radius-pill:100px;
  --radius-md:16px;
}

body{ font-family: var(--font-body); color:#333; }
h1,h2,h3,h4,h5,h6{ font-family: var(--font-heading); color: var(--ink); font-weight:600; line-height:1.15; }
a{ color: var(--accent); }

/* ---- Top utility bar ---- */
.kl-topbar{ background: var(--ink); color:#fff; font-size:13px; }
.kl-topbar__inner{ max-width:1200px; margin:0 auto; padding:8px 24px; display:flex; align-items:center; justify-content:space-between; }
.kl-topbar a{ color:#fff; text-decoration:none; opacity:.9; }
.kl-topbar a:hover{ opacity:1; }
.kl-topbar__right{ display:flex; align-items:center; gap:20px; }
.kl-topbar__hire{ background:var(--accent); padding:6px 18px; border-radius:var(--radius-pill); font-weight:600; }

/* ---- Header ---- */
.kl-header{ background:#fff; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:999; }
.kl-header__inner{ max-width:1200px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.kl-logo img{ height:38px; width:auto; display:block; }
.kl-nav{ display:flex; align-items:center; gap:4px; flex:1; justify-content:center; }
.kl-nav ul{ list-style:none; display:flex; align-items:center; gap:2px; margin:0; padding:0; position:relative; }
.kl-nav li{ position:relative; }
.kl-nav > ul > li > a{ display:block; padding:10px 14px; color:var(--ink); text-decoration:none; font-weight:600; font-size:15px; border-radius:8px; }
.kl-nav > ul > li > a:hover{ background:var(--surface); color:var(--accent); }
.kl-nav .sub-menu{ display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--border); border-radius:12px; padding:8px; min-width:240px; box-shadow:0 12px 32px rgba(11,30,77,.12); }
.kl-nav li:hover > .sub-menu{ display:block; }
.kl-nav .sub-menu a{ display:block; padding:9px 14px; color:var(--grey); text-decoration:none; font-size:14px; border-radius:8px; white-space:nowrap; }
.kl-nav .sub-menu a:hover{ background:var(--surface); color:var(--accent); }
.kl-header__cta{ display:flex; align-items:center; gap:14px; }
.kl-cart{ position:relative; color:var(--ink); text-decoration:none; font-size:20px; }
.kl-cart__count{ position:absolute; top:-6px; right:-10px; background:var(--accent); color:#fff; font-size:10px; font-weight:700; border-radius:50%; width:16px; height:16px; display:flex; align-items:center; justify-content:center; }
.kl-btn{ display:inline-block; background:var(--accent); color:#fff !important; padding:10px 24px; border-radius:var(--radius-pill); font-weight:600; font-size:14px; text-decoration:none; }
.kl-btn:hover{ opacity:.9; }
.kl-menu-toggle{ display:none; background:none; border:0; font-size:26px; color:var(--ink); cursor:pointer; }

@media (max-width:900px){
  .kl-nav{ display:none; position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--border); flex-direction:column; padding:8px; }
  .kl-nav.is-open{ display:flex; }
  .kl-nav ul{ flex-direction:column; width:100%; }
  .kl-nav .sub-menu{ position:static; box-shadow:none; border:0; padding-left:16px; display:block; }
  .kl-menu-toggle{ display:block; }
  .kl-topbar__inner{ flex-direction:column; gap:6px; align-items:flex-start; }
}

/* ---- Language switcher ---- */
.kl-lang-switch ul{ list-style:none; display:flex; gap:10px; margin:0; padding:0; }
.kl-lang-switch a{ color:#fff; text-decoration:none; opacity:.75; font-weight:600; }
.kl-lang-switch li.lang-item-current a,
.kl-lang-switch a:hover{ opacity:1; text-decoration:underline; }

/* ---- RTL (Arabic) ---- */
html[dir="rtl"] body{ text-align:right; }
html[dir="rtl"] .kl-nav .sub-menu{ left:auto; right:0; }
html[dir="rtl"] .kl-footer__col{ border-left:0; }
html[dir="rtl"] .kl-code-wrap,
html[dir="rtl"] .kl-code-wrap *{ direction:ltr; }
html[dir="rtl"] .kl-cap-item,
html[dir="rtl"] [style*="border-left"]{ }

/* ---- Interaction: hover-lift for clickable cards ---- */
.kl-hover-lift{ transition: transform .25s ease, box-shadow .25s ease; }
.kl-hover-lift:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px rgba(11,30,77,.14); }
@media (prefers-reduced-motion: reduce){
  .kl-hover-lift, .kl-hover-lift:hover{ transition:none; transform:none; }
}

/* ---- Footer ---- */
.kl-footer{ background: var(--ink); color:#c9d3ea; padding:64px 24px 32px; margin-top:96px; }
.kl-footer__inner{ max-width:1200px; margin:0 auto; }
.kl-footer__top{ display:flex; flex-wrap:wrap; gap:48px; justify-content:space-between; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.12); }
.kl-footer__brand{ max-width:340px; }
.kl-footer__brand img{ height:32px; margin-bottom:16px; filter:brightness(0) invert(1); }
.kl-footer__brand p{ font-size:14px; line-height:1.6; color:#a9b6d6; }
.kl-footer__col h4{ color:#fff; font-size:14px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.kl-footer__col ul{ list-style:none; margin:0; padding:0; }
.kl-footer__col li{ margin-bottom:10px; }
.kl-footer__col a{ color:#c9d3ea; text-decoration:none; font-size:14px; }
.kl-footer__col a:hover{ color:#fff; }
.kl-footer__subscribe input[type=email]{ width:100%; padding:11px 16px; border-radius:var(--radius-pill); border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.06); color:#fff; margin-bottom:10px; font-size:14px; }
.kl-footer__subscribe input::placeholder{ color:#8fa0c9; }
.kl-footer__bottom{ display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center; padding-top:24px; font-size:13px; color:#8fa0c9; }
.kl-footer__bottom a{ color:#8fa0c9; text-decoration:none; margin-right:16px; }
.kl-footer__bottom a:hover{ color:#fff; }
