/*
Theme Name: Alfoudari Law Firm Theme
Theme URI: https://example.com/alfoudari-theme
Author: Antigravity
Description: A professional WordPress theme for Alfoudari Law Firm, built with Bootstrap 5.
Version: 1.0
Text Domain: alfoudari
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: #FFF9F2;
    color: #4A4A4A;
    line-height: 1.6;
    padding-top: 80px;
}

.section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8C4C35;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #8C4C35;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8C4C35;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin-bottom: 0;
}

.mobile-menu-header,
.mobile-menu-divider,
.mobile-menu-contact {
    display: none;
}

.nav-menu a {
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #8C4C35;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #8C4C35;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: #8C4C35;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8C4C35;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.mobile-menu-toggle:hover {
    background: #8C4C35;
    color: #FFFFFF;
    transform: scale(1.05);
}

.mobile-menu-toggle i {
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    color: #8C4C35;
    background: none;
}

.mobile-menu-toggle.active:hover {
    background: #8C4C35;
    color: #FFFFFF;
}

.mobile-menu-toggle.active i.fa-bars {
    opacity: 0;
    transform: rotate(90deg);
}

.mobile-menu-toggle.active i.fa-times {
    opacity: 1;
    transform: rotate(0deg);
}

.mobile-menu-toggle i.fa-times {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    opacity: 0;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
    }
    
    .mobile-menu-header,
    .mobile-menu-divider,
    .mobile-menu-contact {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 320px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        pointer-events: none;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .mobile-menu-header {
        padding: 30px 25px 25px;
        text-align: center;
        background: linear-gradient(135deg, rgba(140, 76, 53, 0.05) 0%, rgba(245, 230, 211, 0.1) 100%);
        border-bottom: 2px solid rgba(140, 76, 53, 0.1);
    }
    
    .mobile-menu-logo {
        height: 30px;
        width: auto;
        margin-bottom: 10px;
    }
    
    .mobile-menu-title {
        font-size: 0.95rem;
        color: #8C4C35;
        font-weight: 700;
        margin: 0;
    }
    
    .mobile-menu-divider {
        height: 8px;
        background: rgba(140, 76, 53, 0.05);
        margin: 10px 0;
    }
    
    .mobile-menu-contact {
        padding: 20px 25px 30px;
        background: rgba(140, 76, 53, 0.02);
    }
    
    .mobile-contact-title {
        font-size: 0.95rem;
        color: #8C4C35;
        font-weight: 600;
        margin-bottom: 15px;
        text-align: right;
    }
    
    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        text-decoration: none;
        color: #4A4A4A;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        border: 1px solid rgba(140, 76, 53, 0.1);
    }
    
    .mobile-contact-item:hover {
        background: rgba(140, 76, 53, 0.08);
        transform: translateX(-5px);
        color: #4A4A4A;
    }
    
    .mobile-contact-item.location {
        cursor: default;
    }
    
    .mobile-contact-item.location:hover {
        transform: none;
    }
    
    .mobile-contact-item i {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }
    
    .mobile-contact-item.whatsapp i {
        color: #25D366;
    }
    
    .mobile-contact-item.instagram i {
        color: #E4405F;
    }
    
    .mobile-contact-item i.fa-phone {
        color: #8C4C35;
    }
    
    .mobile-contact-item i.fa-map-marker-alt {
        color: #8C4C35;
    }
    
    .nav-menu li:not(.mobile-menu-header):not(.mobile-menu-divider):not(.mobile-menu-contact) {
        width: 100%;
        border-bottom: 1px solid rgba(140, 76, 53, 0.08);
    }
    
    .nav-menu a.nav-link {
        font-size: 1.05rem;
        width: 100%;
        text-align: right;
        padding: 16px 25px;
        display: block;
        transition: all 0.3s ease;
    }
    
    .nav-menu a.nav-link:hover,
    .nav-menu a.nav-link.active {
        background: rgba(140, 76, 53, 0.08);
        color: #8C4C35;
        padding-right: 35px;
    }
    
    .nav-menu a.nav-link::after {
        display: none;
    }
    
    .nav-menu a.nav-link::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: #8C4C35;
        transition: height 0.3s ease;
    }
    
    .nav-menu a.nav-link:hover::before,
    .nav-menu a.nav-link.active::before {
        height: 60%;
    }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        #FFF9F2 0%, 
        #F5E6D3 50%, 
        rgba(140, 76, 53, 0.1) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(140, 76, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(245, 230, 211, 0.6) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-content {
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    color: #2C2C2C;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.hero h1 .highlight {
    color: #8C4C35;
    display: block;
    font-size: 3rem;
}

.hero p {
    font-size: 1.3rem;
    color: #4A4A4A;
    margin-bottom: 35px;
    line-height: 1.8;
    text-align: justify;
}

.hero-image-container {
    position: relative;
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8C4C35 0%, #F5E6D3 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.lawyer-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    transition: all 0.5s ease;
}

.btn-custom {
    display: inline-block;
    padding: 16px 40px;
    background: #8C4C35;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(140, 76, 53, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-custom:hover {
    background: #FFF9F2;
    color: #2C2C2C;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(140, 76, 53, 0.4);
}

.btn-custom:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(140, 76, 53, 0.3);
}

.btn-custom i {
    margin-left: 8px;
}

/* Features Section */
.features {
    background: #FFFFFF;
}

.section-title {
    font-size: 2.5rem;
    color: #2C2C2C;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #8C4C35, transparent);
    border-radius: 2px;
}

.feature-card {
    background: #FFF9F2;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(140, 76, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(140, 76, 53, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #8C4C35;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    color: #2C2C2C;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-description {
    color: #4A4A4A;
    line-height: 1.6;
}

/* Services Section */
.services {
    background: #FFF9F2;
}

.service-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    height: 100%;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #8C4C35, #F5E6D3);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(140, 76, 53, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: #8C4C35;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: #6F3A2A;
}

.service-title {
    font-size: 1.5rem;
    color: #2C2C2C;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-description {
    color: #4A4A4A;
    line-height: 1.6;
}

/* About Section */
.about {
    background: #FFFFFF;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: #4A4A4A;
    line-height: 1.8;
    margin-bottom: 30px;
}

.value-card {
    text-align: center;
}

.value-icon {
    font-size: 2.5rem;
    color: #8C4C35;
    margin-bottom: 15px;
}

.value-title {
    font-size: 1.25rem;
    color: #2C2C2C;
    margin-bottom: 10px;
    font-weight: 600;
}

.value-description {
    color: #4A4A4A;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: #FFF9F2;
}

.contact-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
}

.contact-icon {
    font-size: 2.5rem;
    color: #8C4C35;
    margin-bottom: 15px;
}

.contact-title {
    font-size: 1.25rem;
    color: #2C2C2C;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-info {
    color: #4A4A4A;
}

.contact-info a {
    color: #8C4C35;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Floating Buttons */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.whatsapp-button:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    animation: none;
    color: #fff;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #25D366;
    animation: ripple 2s infinite;
}

.whatsapp-button i {
    z-index: 1;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.call-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #8C4C35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(140, 76, 53, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: bounce 2s infinite;
}

.call-button:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(140, 76, 53, 0.5);
    animation: none;
    color: #fff;
}

.call-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #8C4C35;
    animation: ripple 2s infinite;
}

.call-button i {
    z-index: 1;
}

/* Footer */
.footer {
    background: #2C2C2C;
    color: #FFFFFF;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #F5E6D3;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WP Nav Menu & Mobile Menu Fixes */
.mobile-nav-menu li a {
    color: #4A4A4A;
    text-decoration: none;
    font-weight: 500;
}
.mobile-nav-menu li a:hover {
    color: #8C4C35;
    background-color: rgba(140, 76, 53, 0.05);
}

/* Inner Page Banner */
.inner-banner {
    border-bottom: 2px solid rgba(140, 76, 53, 0.1);
}
.inner-banner .breadcrumb-item a:hover {
    color: #8C4C35 !important;
}
.inner-banner .breadcrumb-item.active {
    color: #8C4C35;
}

/* Responsive Overrides */
@media (max-width: 968px) {
    .hero-content {
        order: 2;
        text-align: center;
    }
    
    .hero-image-container {
        order: 1;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h1 .highlight {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.15rem;
        text-align: center;
    }
    
    .hero-image-wrapper {
        max-width: 350px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero h1 .highlight {
        font-size: 2rem;
    }
    
    .btn-custom {
        padding: 16px 35px;
        font-size: 1.05rem;
        width: 100%;
        max-width: 320px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .hero-image-wrapper {
        max-width: 280px;
        padding: 20px;
    }
    
    .hero-image-wrapper::before {
        display: none;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
    
    .nav-container {
        height: 65px;
        padding: 0 15px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-menu {
        width: 290px;
    }
    
    .nav-menu::before {
        right: 290px;
    }
    
    .mobile-menu-header {
        padding: 25px 20px 20px;
    }
    
    .mobile-menu-logo {
        height: 25px;
    }
    
    .mobile-contact-item {
        padding: 11px 12px;
        font-size: 0.9rem;
    }
    
    .nav-menu a.nav-link {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero h1 {
        font-size: 1.85rem;
    }
    
    .btn-custom {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
    
    .call-button {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 15px;
        left: 15px;
    }
}
