/*
Theme Name: Wteen Real Estate
Theme URI: https://al-akaria.com
Description: A luxury real estate theme rebranded for Wteen, matching al-akaria.com design.
Author: Manus
Version: 14.0
Text Domain: wteen
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-dark: #142238;
    --accent-bronze: #ae917c;
    --bg-light: #f8f5ef;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: rgba(255, 255, 255, 0.8);
    --border-light: #e5e5e5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'TheSansArabic-Light', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========== HEADER ========== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    height: 92px;
    background: transparent;
}

.site-header.sticky {
    position: fixed;
    background: var(--primary-dark);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: auto;
}

.logo a {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a:hover {
    color: var(--accent-bronze);
}

/* ========== NAVIGATION ========== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    padding: 30px 20px;
    display: block;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.main-nav a:hover {
    color: var(--accent-bronze);
    border-bottom-color: var(--accent-bronze);
}

.main-nav a.active {
    color: var(--accent-bronze);
    border-bottom-color: var(--accent-bronze);
}

/* ========== HEADER ACTIONS ========== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-contact {
    background: var(--white);
    color: var(--primary-dark);
    padding: 17px 40px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-contact:hover {
    background: var(--accent-bronze);
    color: var(--white);
    border-color: var(--accent-bronze);
}

.search-icon,
.lang-switcher {
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover,
.lang-switcher:hover {
    color: var(--accent-bronze);
    border-color: var(--accent-bronze);
}

/* ========== HERO SECTION ========== */
.hero-section {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding-top: 92px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 34, 56, 0.7) 0%, rgba(20, 34, 56, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 38px;
    color: var(--primary-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 800;
    border-right: 6px solid var(--accent-bronze);
    padding-right: 25px;
}

.section-title span {
    color: var(--accent-bronze);
}

.about-text {
    font-size: 18px;
    color: #555;
    line-height: 1.9;
    text-align: justify;
}

.goals-list {
    list-style: none;
}

.goals-list li {
    margin-bottom: 20px;
    padding-right: 30px;
    position: relative;
    font-size: 18px;
    line-height: 1.8;
}

.goals-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--accent-bronze);
    font-size: 28px;
    font-weight: bold;
}

/* ========== STATISTICS SECTION ========== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    padding: 60px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #888;
    font-weight: 500;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e5e5e5;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(20, 34, 56, 0.95), rgba(20, 34, 56, 0.7), transparent);
    color: var(--white);
    text-align: right;
}

.service-overlay h3 {
    color: var(--accent-bronze);
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 800;
}

.service-overlay p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
}

.btn-more {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-bronze);
    padding-bottom: 5px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.btn-more:hover {
    color: var(--accent-bronze);
}

/* ========== PROJECTS SECTION ========== */
.projects-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.project-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e5e5e5;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0;
    z-index: 10;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    text-align: right;
}

.project-location {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.project-info h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.project-meta {
    font-size: 14px;
    opacity: 0.8;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--accent-bronze);
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 800;
}

.footer-col p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-bronze);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-bronze);
    border-color: var(--accent-bronze);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ========== POPUP ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 50px 40px;
    border-radius: 0;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-popup {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close-popup:hover {
    color: var(--primary-dark);
}

.popup-content h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 800;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    margin-bottom: 15px;
    background: #fafafa;
    transition: var(--transition);
}

.contact-item:hover {
    background: #f5f5f5;
}

.contact-number {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-dark);
    direction: ltr;
}

.contact-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.btn-call {
    background: var(--primary-dark);
}

.btn-call:hover {
    background: var(--accent-bronze);
}

.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #20ba5a;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
        height: auto;
    }

    .hero-section {
        height: 60vh;
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 28px;
    }

    .about-section,
    .services-section,
    .projects-section {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card,
    .project-card {
        height: 350px;
    }

    .popup-content {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 24px;
    }

    .main-nav a {
        padding: 20px 15px;
    }

    .btn-contact {
        padding: 12px 25px;
        font-size: 12px;
    }
}
