/* =============================================
   Modern Lawyer Website - Main CSS File
   Created for: شركة يزيد بن عبيد الله للمحاماة
   ============================================= */

/* =============================================
   1. CSS Variables & Reset
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a2332;
    --secondary-color: #c9a961;
    --accent-color: #8b7355;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* =============================================
   2. Top Bar Styles
   ============================================= */
.topHeader {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
}

.top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-contact:hover {
    color: var(--secondary-color);
}

.topHeader .socialIcons {
    display: flex;
    gap: 12px;
}

.topHeader .socialIcons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.topHeader .socialIcons a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.defaultBtn2 {
    background: rgba(201,169,97,0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* =============================================
   3. Main Header Styles
   ============================================= */
.mainHeader {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.mainHeader .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 24px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav a:hover {
    color: var(--secondary-color);
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--secondary-color);
}

/* Navbar specific styles */
.mainNav .navbar-nav .nav-link {
    color: #000000 !important;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.mainNav .navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.mainNav .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Mobile navbar styles */
.navbar-toggler {
    border: 3px solid #000000 !important;
    padding: 10px 15px;
    background-color: var(--secondary-color) !important;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.5) !important;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 30px !important;
    height: 30px !important;
}

/* Mobile menu background */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .mainNav .navbar-nav .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mainNav .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

/* =============================================
   4. Hero Section Styles
   ============================================= */
.hero {
    background: linear-gradient(135deg, rgba(26,35,50,0.95), rgba(139,115,85,0.85)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f0f0" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(201,169,97,0.1));
    pointer-events: none;
}

.hero .container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,169,97,0.2);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   5. Button Styles
   ============================================= */
.btn {
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(201,169,97,0.3);
}

.btn-primary:hover {
    background: #d4b36a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,169,97,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* =============================================
   6. Stats Section Styles
   ============================================= */
.stats {
    background: var(--white);
    padding: 60px 20px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.stats .container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 50px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
}

/* =============================================
   7. About Us Section Styles
   ============================================= */
.about-us {
    padding: 100px 20px;
    background: var(--white);
}

.about-us .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26,35,50,0.9), transparent);
    padding: 30px;
}

.overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201,169,97,0.9);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text .lead {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.6;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-features {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(201,169,97,0.05);
    transform: translateX(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

.about-cta {
    margin-top: 30px;
}

/* =============================================
   8. Services Section Styles
   ============================================= */
.services {
    padding: 100px 20px;
    background: var(--bg-light);
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    display: inline-block;
    background: rgba(201,169,97,0.1);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card > * {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover a {
    color: var(--white) !important;
}

.service-card:hover .service-icon {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.service-card a:hover {
    gap: 12px;
}

/* =============================================
   9. Contact Section Styles
   ============================================= */
.contact {
    padding: 100px 20px;
    background: var(--white);
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item-content p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

.contact-item-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item-content a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201,169,97,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* =============================================
   10. Map Section Styles
   ============================================= */
.map-section {
    background: var(--white);
}

.map-header {
    text-align: center;
    padding: 80px 20px 40px;
    background: var(--bg-light);
}

.map-header .container {
    max-width: 800px;
    margin: 0 auto;
}

.map-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map-header p {
    font-size: 18px;
    color: var(--text-light);
}

.map-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =============================================
   11. Footer Styles
   ============================================= */
.footer {
    background: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 80px 20px 30px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer .socialIcons {
    display: flex;
    gap: 12px;
}

.footer .socialIcons a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.footer .socialIcons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-section h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* =============================================
   12. Floating Buttons
   ============================================= */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.phone {
    background: var(--secondary-color);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* =============================================
   13. Responsive Design
   ============================================= */
@media (max-width: 968px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 38px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }

    .contact .container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats .container {
        grid-template-columns: 1fr 1fr;
    }

    .floating-buttons {
        bottom: 20px;
        left: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .stats .container {
        grid-template-columns: 1fr;
        padding: 30px 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-right {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .topHeader .socialIcons {
        justify-content: flex-start;
    }
}

/* =============================================
   14. Utility Classes
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}