/*
Theme Name: Weblinkus
Description: قالب Weblinkus - تصميم الصفحة الرئيسية المطابق للتصميم المرجعي.
Version: 0.2.1
Author: Weblinkus
Text Domain: weblinkus
*/

:root {
    --navy: #03132d;
    --navy2: #061e43;
    --blue: #0868e8;
    --cyan: #00a7ff;
    --text: #111827;
    --muted: #64748b;
    --bg: #f5f7fb;
    --border: #e7ebf2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }


/* =========================================
   TAJAWAL FONT
========================================= */

body {
    font-family: "Tajawal", sans-serif;
    font-weight: 400;
     margin: 0;
    background: var(--bg);
    color: var(--text);
     line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Tajawal", sans-serif;
    font-weight: 800;
}

button,
.btn,
.main-nav,
input,
textarea,
select {
    font-family: "Tajawal", sans-serif;
}

/* Hero */
.slide-text h1 {
    font-family: "Tajawal", sans-serif;
    font-weight: 800;
}

.slide-text p {
    font-family: "Tajawal", sans-serif;
    font-weight: 400;
}

/* الأزرار */
.hero-buttons .btn {
    font-family: "Tajawal", sans-serif;
    font-weight: 700;
}

 
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; }
.container { width: min(1180px, calc(100% - 34px)); margin: auto; }

/* =========================================
   TOP BAR
========================================= */
.topbar {
    height: 34px;
    background: #020c1d;
    color: #fff;
    font-size: 12px;
}
.topbar .container {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.socials {
    display: flex;
    gap: 9px;
    direction: ltr;
}
.socials a {
    width: 21px;
    height: 21px;
    border-radius: 6px;
    background: #12365f;
    display: grid;
    place-items: center;
    font-size: 11px;
}

/* =========================================
   HEADER
========================================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8edf4;
    position: relative;
    z-index: 100;
}
.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 27px;
}
.logo {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 27px;
    font-weight: 900;
    color: #081a38;
}
.logo-mark {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0868e8;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 27px;
}
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    order: 2;
}
.main-nav a {
    font-size: 14px;
    font-weight: 700;
    color: #152033;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); }
.search-toggle {
    order: 3;
    width: 43px;
    height: 43px;
    background: #0868e8;
    color: #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 25px;
}
.mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    color: #10213b;
    cursor: pointer;
}




/* =========================================
   HERO SLIDER
========================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    direction: rtl;
    background: #03142d;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;

    /*
     * الصورة واضحة في اليسار
     * والجهة اليمنى أغمق للكتابة
     */
    background: linear-gradient(
        90deg,
        rgba(3, 20, 45, 0.05) 0%,
        rgba(3, 20, 45, 0.08) 30%,
        rgba(3, 20, 45, 0.35) 55%,
        rgba(3, 20, 45, 0.82) 82%,
        rgba(3, 20, 45, 0.94) 100%
    );

    z-index: 1;
    pointer-events: none;
}
.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1180px;
    margin: auto;
    padding: 0 30px;
}
.slide-text {
    width: 560px;
    color: #fff;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.hero-slide.active .slide-text {
    opacity: 1;
    transform: translateX(0);
}
.slide-label {
    display: inline-block;
    padding: 5px 16px;
    margin-bottom: 12px;
    border-radius: 30px;
    background: rgba(0, 153, 255, 0.13);
    border: 1px solid rgba(0, 166, 255, 0.45);
    color: #19a8ff;
    font-size: 13px;
    font-weight: 700;
}
.slide-text h1 {
    margin: 0 0 14px;
    font-size: 46px;
    line-height: 1.25;
    font-weight: 900;
    color: #fff;
}
.slide-text h1 strong {
    color: #069cff;
    font-weight: 900;
}
.slide-text p {
    max-width: 540px;
    margin: 0 0 22px;
    color: #e7eef8;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 400;
}
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-buttons .btn {
    min-width: 155px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn { border: 0; border-radius: 6px; padding: 11px 23px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary,
.hero-buttons .btn-primary { background: #0868e8; color: #fff; }
.hero-buttons .btn-primary { box-shadow: 0 7px 20px rgba(8, 104, 232, 0.25); }
.hero-buttons .btn-primary:hover { background: #0878ff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(8, 104, 232, 0.35); }
.btn-white,
.hero-buttons .btn-white { background: #fff; color: #15233c; }
.hero-buttons .btn-white { box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12); }
.hero-buttons .btn-white:hover { background: #f1f7ff; transform: translateY(-2px); }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.20);
    color: #fff;
    font-size: 31px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.slider-arrow:hover { background: #0868e8; border-color: #0868e8; transform: translateY(-50%) scale(1.05); }
.slider-prev { right: 22px; }
.slider-next { left: 22px; }
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
}
.slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}
.slider-dot.active { width: 27px; background: #079cff; }

/* =========================================
   LEGACY / OPTIONAL HERO SUPPORT
========================================= */
.hero {
    background: radial-gradient(circle at 78% 50%, #103d72 0, #061b3c 35%, #020e25 100%);
    color: #fff;
    overflow: hidden;
}
.hero-inner { min-height: 390px; display: grid; grid-template-columns: 45% 55%; align-items: center; gap: 15px; }
.hero-copy { padding: 35px 0; }
.hero h1 { font-size: 43px; line-height: 1.25; margin: 0 0 13px; font-weight: 900; }
.hero h1 span { color: #0699ff; }
.hero p { font-size: 17px; max-width: 570px; color: #eef5ff; margin: 0 0 18px; }
.trust { display: flex; gap: 35px; margin-top: 25px; }
.trust div { font-size: 12px; text-align: center; }
.trust b { display: block; color: #fff; font-size: 15px; }
.trust span { color: #0ba5ff; font-size: 24px; }
.hero-visual { height: 100%; min-height: 390px; display: flex; align-items: end; justify-content: center; position: relative; }
.laptop, .pos-machine, .scanner, .printer { position: absolute; border-radius: 12px; background: linear-gradient(145deg, #f8fafc, #aeb9c8); box-shadow: 0 22px 40px #0008; }
.laptop { width: 390px; height: 245px; right: 155px; bottom: 25px; transform: skew(-5deg); border: 8px solid #24384e; }
.laptop:after { content: "Weblinkus"; position: absolute; inset: 26px; background: #06224a; color: #fff; display: grid; place-items: center; font-size: 28px; }
.pos-machine { width: 205px; height: 145px; right: 50px; bottom: 55px; border: 7px solid #25384e; }
.pos-machine:after { content: "POS"; position: absolute; inset: 18px; background: #1d3659; color: #fff; display: grid; place-items: center; font-size: 24px; }
.scanner { width: 72px; height: 160px; right: 0; bottom: 48px; background: #18202b; }
.printer { width: 160px; height: 90px; right: 245px; bottom: 15px; background: #202936; }

/* =========================================
   SERVICES
========================================= */
.round-section { background: #fff; border-radius: 32px 32px 0 0; margin-top: -1px; padding: 23px 0 10px; }
.section-title { text-align: center; margin: 0 0 18px; }
.section-title h2 { font-size: 24px; margin: 0 0 2px; }
.section-title p { margin: 0; color: #6b7280; font-size: 14px; }
.underline { width: 50px; height: 3px; background: #0868e8; margin: 7px auto 0; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service { background: #fff; border: 1px solid #e9edf3; border-radius: 11px; box-shadow: 0 5px 18px #16213a0b; text-align: center; padding: 16px 14px; }
.service .ico { font-size: 43px; line-height: 1; margin-bottom: 9px; }
.service:nth-child(1) .ico, .service:nth-child(1) h3 { color: #ef8500; }
.service:nth-child(2) .ico, .service:nth-child(2) h3 { color: #5a20c9; }
.service:nth-child(3) .ico, .service:nth-child(3) h3 { color: #1269e8; }
.service:nth-child(4) .ico, .service:nth-child(4) h3 { color: #078c34; }
.service h3 { margin: 0 0 7px; font-size: 17px; }
.service p { font-size: 12px; color: #596579; min-height: 48px; margin: 0 0 10px; }
.service .btn { font-size: 12px; padding: 7px 16px; }

/* =========================================
   POS
========================================= */
.pos-section { padding: 18px 0; }
.pos-box { background: #fff; border: 1px solid #e9edf3; border-radius: 13px; box-shadow: 0 4px 18px #102a4a08; padding: 13px; display: grid; grid-template-columns: 1fr 1.35fr 1fr; align-items: center; gap: 14px; }
.pos-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pos-product { border: 1px solid #e9edf3; border-radius: 10px; background: #fff; padding: 8px; text-align: center; }
.prod-img { height: 100px; border-radius: 7px; background: linear-gradient(145deg, #f5f7fa, #fff); display: grid; place-items: center; font-weight: 900; color: #243d61; }
.pos-product h4 { font-size: 12px; margin: 6px 0 1px; }
.price { color: #0669e8; font-size: 16px; font-weight: 900; }
.pos-copy { text-align: center; }
.pos-copy h2 { font-size: 22px; margin: 0; }
.pos-copy p { font-size: 13px; color: #657083; }
.pos-features { display: flex; justify-content: center; gap: 12px; font-size: 11px; color: #34445b; margin: 8px; }
.pos-right { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* =========================================
   YOUTUBE
========================================= */
.youtube { padding: 10px 0 20px; }
.youtube-box { background: #fff; border: 1px solid #e9edf3; border-radius: 13px; padding: 13px; }
.youtube-grid { display: grid; grid-template-columns: 235px repeat(3, 1fr); gap: 14px; }
.subscribe-card { background: linear-gradient(145deg, #020b20, #081d42); color: #fff; border-radius: 10px; padding: 18px; text-align: center; }
.youtube-logo { font-size: 28px; font-weight: 900; color: #1c8cff; }
.subscribe-card .yt { font-size: 55px; color: #f00; line-height: 1; }
.subscribe-card p { font-size: 12px; }
.subscribe-card .btn { background: #f20d1d; color: #fff; font-size: 12px; }
.video-card { background: #fff; }
.video-thumb { height: 105px; background: linear-gradient(145deg, #071d42, #123d6b); border-radius: 8px; color: #fff; display: grid; place-items: center; font-size: 30px; }
.video-card h4 { font-size: 12px; margin: 7px 0; }
.video-card p { font-size: 10px; color: #7b8492; margin: 0; }

/* =========================================
   CONTENT LISTS
========================================= */
.content-section { padding: 0 0 20px; }
.three-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.list-box { background: #fff; border: 1px solid #e7ebf2; border-radius: 11px; padding: 10px; }
.list-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eef1f5; padding: 3px 7px 9px; }
.list-head h3 { margin: 0; font-size: 16px; }
.list-head a { font-size: 11px; color: #0868e8; }
.list-item { display: flex; align-items: center; gap: 9px; padding: 8px 5px; border-bottom: 1px solid #f0f2f6; }
.list-item:last-child { border: 0; }
.list-icon { width: 34px; height: 34px; border-radius: 7px; background: #edf4ff; display: grid; place-items: center; font-weight: 900; color: #1269e8; flex: none; }
.list-text { flex: 1; font-size: 12px; font-weight: 700; }
.list-text small { display: block; color: #7b8492; font-weight: 400; }
.rank { width: 23px; height: 23px; border-radius: 50%; background: #0868e8; color: #fff; display: grid; place-items: center; font-size: 11px; }

/* =========================================
   FOOTER
========================================= */
.footer { background: #020d20; color: #fff; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 35px; padding: 30px 0; }
.footer h3 { font-size: 16px; margin: 0 0 10px; }
.footer p, .footer a { font-size: 12px; color: #d7dfeb; }
.newsletter input { width: 100%; border: 0; border-radius: 6px; padding: 10px; margin: 5px 0; }
.newsletter .btn { width: 100%; padding: 8px; }
.footer-bottom { text-align: center; border-top: 1px solid #ffffff18; padding: 10px; font-size: 11px; color: #aeb9c8; }

/* =========================================
   RESPONSIVE
========================================= */
@media (min-width: 1400px) {
    .hero-slider { height: 450px; }
    .slide-text h1 { font-size: 50px; }
}

@media (max-width: 1000px) {
    .hero-slider { height: 400px; }
    .slide-content { padding: 0 55px; }
    .slide-text { width: 520px; }
    .slide-text h1 { font-size: 39px; }
    .slide-text p { font-size: 15px; }
    .services { grid-template-columns: 1fr 1fr; }
    .pos-box { grid-template-columns: 1fr; }
    .youtube-grid { grid-template-columns: 1fr 1fr; }
    .three-cols { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu { display: block; }
}

@media (max-width: 700px) {
    .hero-slider { height: 500px; }
    .hero-slide { background-position: 65% center; }
    .hero-slide::before {
        background: linear-gradient(90deg, rgba(2, 13, 35, 0.96), rgba(3, 22, 48, 0.82));
    }
    .slide-content {
        justify-content: center;
        text-align: center;
        padding: 30px 25px;
    }
    .slide-text { width: 100%; transform: translateY(25px); }
    .hero-slide.active .slide-text { transform: translateY(0); }
    .slide-label { font-size: 12px; }
    .slide-text h1 { font-size: 32px; line-height: 1.35; }
    .slide-text p { font-size: 14px; line-height: 1.8; }
    .hero-buttons { justify-content: center; }
    .hero-buttons .btn { min-width: 140px; font-size: 13px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 27px; line-height: 33px; }
    .slider-prev { right: 10px; }
    .slider-next { left: 10px; }
    .slider-dots { bottom: 15px; }
    .youtube-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .services { grid-template-columns: 1fr; }
    .pos-products, .pos-right { grid-template-columns: 1fr 1fr; }
    .topbar .container { justify-content: center; }
    .header-inner { height: 65px; }
}

@media (max-width: 400px) {
    .hero-slider { height: 470px; }
    .slide-text h1 { font-size: 28px; }
    .slide-text p { font-size: 13px; }
    .hero-buttons .btn { width: 100%; }
}
