/* ================================================================
   faq.css — صفحة الأسئلة الشائعة | الرواد المتكاملون للمقاولات
   ================================================================ */

:root {
    --primary:       #084259;
    --primary-dark:  #052e3e;
    --primary-light: #0a5a7a;
    --accent:        #1a9dc8;
    --accent-light:  #e8f6fb;
    --gold:          #c9a84c;
    --gold-light:    #fdf6e3;
    --white:         #ffffff;
    --gray-50:       #f8fafc;
    --gray-100:      #f0f4f7;
    --gray-200:      #e2eaef;
    --gray-400:      #94aab8;
    --gray-600:      #546e7a;
    --dark:          #0d1f2d;
    --text:          #1c3040;
    --text-light:    #4a6375;
    --shadow-sm:     0 2px 10px rgba(8,66,89,0.07);
    --shadow-md:     0 8px 30px rgba(8,66,89,0.11);
    --shadow-lg:     0 20px 60px rgba(8,66,89,0.15);
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     22px;
    --radius-xl:     32px;
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font:          'Cairo', 'Tajawal', sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
    background: var(--primary-dark);
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
    padding: 12px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo  { height: 52px; width: auto; object-fit: contain; }
.nav-company-name {
    font-size: 0.9rem; font-weight: 700;
    color: var(--white);
    max-width: 200px; line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links li a {
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem; font-weight: 600;
    padding: 7px 12px; border-radius: 50px;
    transition: all var(--transition);
}
.nav-links li a:hover,
.nav-links li a.nav-active {
    background: var(--white);
    color: var(--primary);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent; border: none; cursor: pointer; padding: 6px; z-index: 1100;
}
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--white); border-radius: 4px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 999;
}
.mobile-overlay.active { display: block; }

/* ================================================================
   HERO
================================================================ */
.faq-hero {
    min-height: 62vh;
    background: linear-gradient(140deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 130px 0 60px;
}

/* Geometric background pattern */
.hero-bg-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201,168,76,0.07) 0%, transparent 50%);
}

.faq-hero::before {
    content:'';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.faq-hero-content {
    position: relative; z-index: 2;
    text-align: center;
}

.hero-icon-wrap {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--gold);
    margin: 0 auto 24px;
    animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
    50%       { box-shadow: 0 0 0 16px rgba(201,168,76,0); }
}

.faq-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900; color: var(--white);
    margin-bottom: 14px;
    animation: fadeUp 0.7s ease both;
}

.faq-hero-content > p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.8); margin-bottom: 36px;
    animation: fadeUp 0.7s 0.1s ease both;
}

@keyframes fadeUp {
    from { opacity:0; transform: translateY(24px); }
    to   { opacity:1; transform: translateY(0); }
}

/* Search */
.faq-search-wrap {
    position: relative;
    max-width: 560px; margin: 0 auto 36px;
    animation: fadeUp 0.7s 0.2s ease both;
}

.faq-search-wrap > i {
    position: absolute;
    right: 18px; top: 50%; transform: translateY(-50%);
    color: var(--gray-400); font-size: 1.05rem;
    pointer-events: none;
}

#faqSearch {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.98rem;
    outline: none;
    transition: all var(--transition);
    direction: rtl;
}

#faqSearch::placeholder { color: rgba(255,255,255,0.55); }
#faqSearch:focus {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.clear-search {
    position: absolute;
    left: 16px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.2); border: none; border-radius: 50%;
    color: var(--white); cursor: pointer;
    transition: background var(--transition);
}
.clear-search:hover { background: rgba(255,255,255,0.35); }

/* Hero Stats */
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 0;
    animation: fadeUp 0.7s 0.3s ease both;
}
.h-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 28px;
}
.h-stat span { font-size: 1.8rem; font-weight: 900; color: var(--gold); line-height: 1; }
.h-stat small { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.h-stat-div { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ================================================================
   TABS
================================================================ */
.faq-tabs {
    display: flex; align-items: center;
    gap: 10px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 6px;
    margin-bottom: 40px;
    width: fit-content;
    margin-left: auto; margin-right: auto;
}

.tab-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    border: none; border-radius: 50px;
    background: transparent;
    color: var(--gray-600);
    font-family: var(--font);
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn i { font-size: 0.9rem; }

.tab-btn:hover { color: var(--primary); background: var(--white); }

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(8,66,89,0.25);
}

/* ================================================================
   FAQ MAIN
================================================================ */
.faq-main { padding: 60px 0 80px; }

/* Section Label */
.section-label {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.section-label i {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1rem;
    box-shadow: 0 4px 12px rgba(8,66,89,0.2);
}

.section-label span {
    font-size: 1.2rem; font-weight: 800; color: var(--primary);
}

/* FAQ Section visibility */
.faq-section { display: none; }
.faq-section.active { display: block; animation: sectionIn 0.4s ease both; }

@keyframes sectionIn {
    from { opacity:0; transform: translateY(16px); }
    to   { opacity:1; transform: translateY(0); }
}

/* ================================================================
   ACCORDION
================================================================ */
.accordion-list { display: flex; flex-direction: column; gap: 12px; }

.accordion-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.accordion-item:hover { border-color: var(--primary); }

.accordion-item.open {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(8,66,89,0.1);
}

.accordion-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px;
    background: transparent; border: none; cursor: pointer;
    font-family: var(--font);
    text-align: right;
    transition: background var(--transition);
}

.accordion-trigger:hover { background: var(--gray-50); }
.accordion-item.open .accordion-trigger { background: var(--accent-light); }

.accordion-trigger > span:first-child {
    font-size: 1rem; font-weight: 700; color: var(--primary);
    flex: 1; text-align: right; line-height: 1.5;
}

.accordion-item.open .accordion-trigger > span:first-child { color: var(--primary-dark); }

.acc-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--primary);
    font-size: 0.85rem;
    transition: all var(--transition);
    border: 1.5px solid var(--gray-200);
}

.accordion-item.open .acc-icon {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: rotate(0deg);
}

/* Body */
.accordion-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body > * {
    padding: 0 24px 22px;
}

.accordion-body p {
    font-size: 0.95rem; color: var(--text-light); line-height: 1.8;
}

.accordion-body p + p { padding-top: 0; margin-top: 10px; }

.accordion-body ul {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 12px;
}

.accordion-body ul li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.92rem; color: var(--text-light); line-height: 1.6;
}

.accordion-body ul li i {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.accordion-body ul li i.fa-whatsapp { color: #25d366; }
.accordion-body ul li i.fa-phone    { color: var(--primary); }
.accordion-body ul li i.fa-envelope { color: var(--primary); }
.accordion-body ul li i.fa-globe    { color: var(--accent); }

.accordion-body a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    transition: color var(--transition);
}
.accordion-body a:hover { color: var(--primary); }

/* Search highlight */
mark {
    background: rgba(201,168,76,0.3);
    color: var(--primary-dark);
    border-radius: 3px;
    padding: 0 2px;
}

/* ================================================================
   NO RESULTS
================================================================ */
.no-results {
    text-align: center;
    padding: 60px 20px;
}
.no-results-icon {
    font-size: 3rem; color: var(--gray-400);
    margin-bottom: 16px;
}
.no-results h3 { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.no-results p  { font-size: 0.95rem; color: var(--text-light); margin-bottom: 24px; }
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: var(--white);
    font-family: var(--font); font-size: 0.95rem; font-weight: 700;
    padding: 12px 24px; border-radius: 50px;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-3px); color: var(--white); }

/* ================================================================
   CTA SECTION
================================================================ */
.faq-cta {
    padding: 0 20px 80px;
}

.cta-card-wrap {
    max-width: 1100px; margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-deco {
    position: absolute; border-radius: 50%;
    opacity: 0.06;
    animation: floatDeco 6s ease-in-out infinite alternate;
}
.cta-deco-1 { width: 300px; height: 300px; background: var(--white); top: -80px; left: -80px; }
.cta-deco-2 { width: 200px; height: 200px; background: var(--gold);  bottom: -60px; right: -40px; animation-delay: 2s; }

@keyframes floatDeco {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(20px,15px) scale(1.05); }
}

.cta-inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 30px;
    flex-wrap: wrap;
}

.cta-icon-wrap {
    width: 80px; height: 80px; flex-shrink: 0;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: var(--white);
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
    animation: pulse-wa 2.5s ease-in-out infinite;
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
    50%       { box-shadow: 0 8px 50px rgba(37,211,102,0.7); }
}

.cta-text { flex: 1; min-width: 200px; }
.cta-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--white); margin-bottom: 10px; }
.cta-text p  { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.7; }

.cta-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

.btn-wa-main {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25d366; color: var(--white);
    font-family: var(--font); font-size: 1rem; font-weight: 800;
    padding: 14px 28px; border-radius: 50px;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    white-space: nowrap;
}
.btn-wa-main:hover { background: #1ebe5d; transform: translateY(-3px); color: var(--white); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }

.btn-wa-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: var(--white);
    font-family: var(--font); font-size: 0.92rem; font-weight: 700;
    padding: 12px 24px; border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap; text-align: center;
}
.btn-wa-secondary:hover { background: rgba(255,255,255,0.22); color: var(--white); }

/* ================================================================
   FOOTER
================================================================ */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 50px; }
.footer-logo-img { height: 70px; width: auto; object-fit: contain; margin-bottom: 16px; filter: brightness(10); opacity: 0.9; }
.footer-desc { font-size: 0.88rem; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); font-size: 0.9rem;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-3px); }
.footer-col h4 { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,0.1); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--white); padding-right: 6px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-contact-item i { color: var(--accent); font-size: 0.9rem; width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ================================================================
   FLOATING ELEMENTS
================================================================ */
.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px;
    width: 56px; height: 56px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.6rem; z-index: 900;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all var(--transition);
    animation: pulse-wp 2.5s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.12); color: var(--white); }
@keyframes pulse-wp { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.4)}50%{box-shadow:0 4px 40px rgba(37,211,102,0.7)} }

.back-to-top {
    position: fixed; bottom: 98px; left: 30px;
    width: 44px; height: 44px;
    background: var(--primary); color: var(--white);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 900;
    opacity: 0; transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-4px); }

/* ================================================================
   RESPONSIVE — Tablet
================================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-icon-wrap { margin: 0 auto; }
    .cta-actions { width: 100%; flex-direction: row; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    /* Navbar */
    .hamburger { display: flex; }
    .nav-company-name { display: none; }
    .nav-links {
        position: fixed; top: 0; left: 0;
        width: 280px; height: 100vh;
        background: var(--primary-dark);
        flex-direction: column; align-items: flex-start;
        padding: 80px 24px 24px; gap: 4px;
        transform: translateX(-100%);
        transition: transform var(--transition);
        z-index: 1050;
        box-shadow: 4px 0 30px rgba(0,0,0,0.3);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links li { width: 100%; }
    .nav-links li a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); }

    /* Hero */
    .faq-hero { padding: 110px 0 70px; min-height: auto; }
    .h-stat { padding: 0 12px; }
    .h-stat span { font-size: 1.4rem; }

    /* Tabs */
    .faq-tabs { width: 100%; border-radius: var(--radius-md); padding: 6px; flex-wrap: wrap; justify-content: center; }
    .tab-btn { flex: 1; min-width: 120px; justify-content: center; font-size: 0.82rem; padding: 9px 12px; }

    /* Accordion */
    .accordion-trigger { padding: 16px 18px; }
    .accordion-trigger > span:first-child { font-size: 0.92rem; }
    .accordion-body > * { padding: 0 18px 18px; }

    /* CTA */
    .cta-card-wrap { padding: 40px 24px; border-radius: var(--radius-lg); }
    .cta-actions { flex-direction: column; }
    .btn-wa-main, .btn-wa-secondary { width: 100%; justify-content: center; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .whatsapp-float { bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 1.4rem; }
    .back-to-top    { bottom: 80px; left: 20px; }
}

@media (max-width: 480px) {
    .faq-hero-content h1 { font-size: 1.8rem; }
    .hero-stats { flex-wrap: wrap; gap: 10px; justify-content: center; }
    .h-stat-div { display: none; }
    .faq-cta { padding: 0 12px 60px; }
}
