/*
Theme Name: مكتب حمدان
Theme URI: https://hamdan-office.com
Author: Hamdan Office
Author URI: https://hamdan-office.com
Description: قالب احترافي عربي لمكتب حمدان للاستشارات والخدمات المهنية - يدعم RTL بالكامل
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamdan
Tags: one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* === Base Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', sans-serif;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, ol { list-style: none; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f1a; }
::-webkit-scrollbar-thumb { background: #2d7d5f; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1f644b; }

/* === Gold Gradient Text === */
.gold-text {
    background: linear-gradient(135deg, #e5a83c, #f4dda8, #d4922a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Hero Overlay === */
.hero-overlay {
    background: linear-gradient(135deg, rgba(15,45,36,0.92) 0%, rgba(26,26,46,0.88) 50%, rgba(15,45,36,0.85) 100%);
}

/* === Section Divider === */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2d7d5f, #e5a83c);
    border-radius: 2px;
    margin: 1.5rem auto 0;
}

/* === Top Bar === */
.top-bar {
    background: #071a14;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

/* === Navigation === */
.main-nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #f3f4f6;
    transition: box-shadow 0.3s ease;
}
.main-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.main-nav .nav-link {
    position: relative;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: #1f644b; }
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: #e5a83c;
    transition: width 0.3s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { width: 100%; }

/* === CTA Button === */
.btn-primary {
    background: #1f644b;
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(31,100,75,0.25);
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
}
.btn-primary:hover { background: #1a503e; box-shadow: 0 10px 25px -5px rgba(31,100,75,0.35); }

.btn-gold {
    background: #e5a83c;
    color: #0f0f1a;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(229,168,60,0.25);
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.125rem;
}
.btn-gold:hover { background: #d4922a; }

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.125rem;
}
.btn-outline:hover { border-color: #e5a83c; background: rgba(255,255,255,0.05); }

/* === Service Card === */
.service-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #f3f4f6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px -12px rgba(45, 125, 95, 0.15);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #e5a83c, #2d7d5f);
    transition: height 0.5s ease;
}
.service-card:hover::before { height: 100%; }
.service-card .service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    background: #f0f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, #2d7d5f, #1a503e);
    transform: scale(1.1);
}
.service-card:hover .service-icon svg,
.service-card:hover .service-icon i { color: #fff !important; }

/* === Team Card === */
.team-card .team-img-wrap {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.team-card .team-img-wrap img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrap img { transform: scale(1.05); }
.team-card .team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,45,36,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}
.team-card:hover .team-overlay { opacity: 1; }

/* === Testimonial Card === */
.testimonial-card {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.testimonial-card:hover { border-color: #b5d9c9; }

/* === Steps Connection Line === */
.steps-line {
    position: absolute;
    top: 2rem;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    background: linear-gradient(to left, #b5d9c9, #edc572, #b5d9c9);
}

/* === Form Styles === */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    color: #1f2937;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.875rem;
}
.form-input:focus {
    border-color: #2d7d5f;
    box-shadow: 0 0 0 3px rgba(45,125,95,0.15);
}

/* === WhatsApp Button === */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37,211,102,0.3);
    transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; fill: #fff; }

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    background: #1f644b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: #1a503e; }

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, #0f2d24 0%, #1a1a2e 100%);
}

/* === Floating Shapes === */
.float-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: floatShape 20s ease-in-out infinite;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* === Pulse === */
.pulse-dot { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* === Mobile Menu === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 20rem;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 55;
    display: none;
}
.mobile-overlay.show { display: block; }

/* === Footer === */
.site-footer { background: #0f0f1a; color: #fff; }
.site-footer a:hover { color: #e5a83c; }

/* === Reveal Animation === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Spinner === */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 1024px) {
    .steps-line { display: none; }
}
@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}