/*
Theme Name: Almowarid Al Sareeyaa
Theme URI: https://almowaridsareeyaa.com
Author: Antigravity
Author URI: https://google.com
Description: Premium redesign based on Thawabet.sa style benchmarks.
Version: 2.2.0
Text Domain: almowarid
*/

:root {
    /* Brand Colors - Modernized */
    --color-primary: #172983;
    /* Deep Navy */
    --color-primary-light: #2a4cc7;
    --color-secondary: #0270B6;
    /* Bright Blue */
    --color-accent: #0993D5;
    /* Cyan */
    --color-surface: #F9FAFB;
    /* Very light grey for background */
    --color-white: #ffffff;
    --color-text-main: #1F2937;
    --color-text-muted: #6B7280;
    --color-whatsapp: #25D366;

    /* Shadows & Elevation */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-family: 'Tajawal', sans-serif;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --container-width: 1200px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-surface);
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-weight: 800;
    color: var(--color-primary);
}

p {
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Modern & Sticky */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding img {
    max-height: 70px;
}

.main-navigation ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 1rem;
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(23, 41, 131, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(23, 41, 131, 0.3);
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
    padding: 60px 0 140px;
    /* Extra padding bottom for floating box */
    overflow: hidden;
}

/* Abstract decoration */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(9, 147, 213, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0270B6;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Badge Top 30 */
.badge-top30 {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FFD700;
    color: #1f2937;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

/* Floating Search Bar */
.search-overlay {
    margin-top: -60px;
    /* Pull up into Hero */
    margin-bottom: 80px;
    z-index: 10;
    position: relative;
}

.cv-search-box {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 20px;
    align-items: end;
}

.search-group {
    flex: 1;
}

.search-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-primary);
}

.search-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #F9FAFB;
    transition: border-color 0.2s;
}

.search-group select:focus {
    border-color: var(--color-secondary);
    outline: none;
}

.search-btn-wrapper {
    flex: 0 0 180px;
}

.btn-search {
    width: 100%;
    height: 52px;
}

/* Services Cards */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(2, 112, 182, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #E0F2FE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-secondary);
}

/* Trust Bar */
.trust-bar {
    background: var(--color-white);
    padding: 60px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 80px;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-item {
    text-align: center;
}

.trust-item .num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-secondary);
    display: block;
}

.trust-item .label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #0F172A;
    color: #F3F4F6;
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-block h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-block p {
    color: #9CA3AF;
    line-height: 1.8;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu a {
    color: #9CA3AF;
}

.footer-menu a:hover {
    color: white;
    padding-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cv-search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .badge-top30 {
        position: relative;
        top: auto;
        right: auto;
        display: inline-flex;
        margin-bottom: 20px;
    }
}