/*
Theme Name: Sorouh Theme
Theme URI: https://sorouh.sa
Author: Sorouh Development Team
Author URI: https://sorouh.sa
Description: A custom WordPress theme for Al Sorouh Advanced Real Estate Development Company - شركة الصروح المتقدمة للتطوير العقاري
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sorouh
Tags: custom-theme, real-estate, business, right-to-left, accessibility-ready
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #26525d;
    --secondary-color: #af8839;
    --text-color: #495057;
    --light-color: #f8f9fa;
    --dark-color: #1a3840;
    --white: #ffffff;
    --primary-gold: #af8839;
    --primary-gold-light: #d4a94d;
    --primary-gold-dark: #8b6a2c;
    --dark-blue: #26525d;
    --dark-blue-light: #356a78;
    --dark-blue-dark: #1a3840;
    --gray-100: #f1f3f4;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: var(--font-en);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

body[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 5px;
    padding: 10px 20px;
    background: var(--light-color);
    border: 1px solid var(--gray-300);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-blue);
    transition: var(--transition-base);
    font-family: var(--font-ar);
}

.lang-toggle:hover {
    background: var(--gray-200);
    border-color: var(--primary-gold);
}

.lang-toggle .active {
    opacity: 1;
}

.lang-toggle span:not(.active) {
    opacity: 0.5;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-blue);
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-dark) 100%);
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover;
    opacity: 0.15;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(175, 136, 57, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(175, 136, 57, 0.08) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 30px;
    color: var(--white);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
}

.btn-primary:hover {
    background: var(--primary-gold-dark);
    border-color: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--dark-blue);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.9;
}

.stat-divider {
    width: 2px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(175, 136, 57, 0.1);
    color: var(--primary-gold);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    max-width: 800px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 20px auto 0;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(38, 82, 93, 0.3), transparent);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

body[dir="ltr"] .experience-badge {
    right: auto;
    left: 30px;
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.about-text {
    padding: 20px 0;
}

.about-intro p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray-600);
}

.about-points {
    display: grid;
    gap: 25px;
}

.point-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.point-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    flex-shrink: 0;
}

.point-text h4 {
    font-size: 1.125rem;
    margin-bottom: 5px;
}

.point-text p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Vision Section */
.vision {
    position: relative;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
}

.vision-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?w=1920') center/cover;
    opacity: 0.03;
}

.vision-content {
    position: relative;
    z-index: 1;
}

.vision-text {
    text-align: center;
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto 60px;
    color: var(--gray-600);
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.vision-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 25px;
}

.vision-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.vision-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Services Section */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
    transform: scaleX(0);
    transition: var(--transition-base);
}

.service-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(175, 136, 57, 0.15);
    line-height: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-blue-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 25px;
}

.service-list {
    display: grid;
    gap: 12px;
}

.service-list li {
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-gold);
    font-weight: 700;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="150" height="150" viewBox="0 0 150 150" xmlns="http://www.w3.org/2000/svg"><polygon points="75,0 150,75 75,150 0,75" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-text p {
    font-size: 15px;
    color: var(--gray-600);
    margin: 0;
}

.phone-number {
    font-family: 'Cairo', sans-serif;
    direction: ltr;
    text-align: right;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--white);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: var(--secondary-color);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center;
}

.form-success {
    margin-top: 18px;
    color: #16a34a;
    font-weight: 600;
    display: none;
}

.form-success.is-visible {
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    max-height: 50px;
}

.footer-tagline {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-services a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-right: 10px;
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright p {
    opacity: 0.7;
    font-size: 14px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 24px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vision-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        background: var(--white);
        flex-direction: column;
        width: 100%;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}
