/**
 * New City - Real Estate Website
 * Custom CSS Styles
 */

:root {
    /* Color variables */
    --primary: #0b1d36; /* Deep navy */
    --primary-light: #1e3a5e;
    --primary-dark: #051024;
    --secondary: #d4af37; /* Champagne gold */
    --secondary-light: #e6ca6c;
    --secondary-dark: #b89625;
    --light: #f5f5f5; /* Ivory */
    --dark: #333333;
    --text-color: #444444;
    --gray-color: #666666; /* Gray text */
    --light-gray: #e9e9e9;
    --border-color: #dee2e6; /* Border color */
    --shadow: rgba(0, 0, 0, 0.1);
}

/* General Typography */
body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    color: var(--text-color);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Arabic font */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #c29e26;
    border-color: #c29e26;
    color: var(--primary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-outline-light {
    color: white;
    border-color: white;
    background-color: transparent;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover, .btn-outline-light:focus {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

/* Header Styles */
.top-bar {
    font-size: 0.9rem;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--secondary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after, 
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* RTL specific adjustments */
html[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .me-2, html[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

html[dir="rtl"] .ms-2, html[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

/* Main content area */
#main-content {
    min-height: 70vh;
}

/* Banner/Hero Section */
.hero-slider {
    position: relative;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 29, 54, 0.6), rgba(11, 29, 54, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Section Styling */
.section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

html[lang="ar"] .section-title::after {
    left: auto;
    right: 0;
}

.text-start .section-title::after {
    left: 0;
    right: auto;
}

html[lang="ar"] .text-start .section-title::after {
    left: auto;
    right: 0;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Card styling */
.card {
    border: none;
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Contact form */
.contact-form .form-control {
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .hero-content, .section-content {
        padding: 1rem;
    }
}

/* Utility classes */
.shadow-custom {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gold-text {
    color: var(--secondary);
}

.navy-text {
    color: var(--primary);
}

/* Rich content styling */
.rich-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.rich-content h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.rich-content ul, .rich-content ol {
    margin-bottom: 1rem;
}

/* Custom checkboxes and radios */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Page Header */
.page-header {
    background-color: var(--primary);
    padding: 3rem 0;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.05;
}

.page-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.8);
}

/* Project Card */
.project-card {
    overflow: hidden;
}

.project-card img {
    transition: all 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Testimonial Styles */
.testimonial-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.2;
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary);
}

.testimonial-rating {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Footer Styles */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 0;
}

footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

html[lang="ar"] footer h4::after {
    left: auto;
    right: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary);
    text-decoration: none;
    padding-left: 5px;
}

html[lang="ar"] footer a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact i {
    color: var(--secondary);
    margin-right: 10px;
    width: 20px;
}

html[lang="ar"] .footer-contact i {
    margin-right: 0;
    margin-left: 10px;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

html[lang="ar"] .social-links a {
    margin-right: 0;
    margin-left: 10px;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    background-color: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Contact Form */
.contact-form label {
    font-weight: 500;
    color: var(--primary);
}

.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.8rem 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Portfolio */
.portfolio-filter {
    margin-bottom: 2rem;
}

.portfolio-filter .btn {
    margin: 0 5px 10px;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-item {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-item img {
    transition: all 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 29, 54, 0.1), rgba(11, 29, 54, 0.9));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.portfolio-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.3s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Blog/News Styles */
.blog-card {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.blog-card img {
    transition: all 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-date {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.blog-meta i {
    color: var(--secondary);
    margin-right: 5px;
}

html[lang="ar"] .blog-meta i {
    margin-right: 0;
    margin-left: 5px;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
}

/* Animation for elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Rich Content - For CKEditor content */
.rich-content {
    line-height: 1.8;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.rich-content h2, 
.rich-content h3, 
.rich-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-content ul, 
.rich-content ol {
    margin-bottom: 1.5rem;
}

.rich-content blockquote {
    border-left: 3px solid var(--secondary);
    padding-left: 1rem;
    font-style: italic;
    color: #555;
    margin: 1.5rem 0;
}

html[lang="ar"] .rich-content blockquote {
    border-left: none;
    border-right: 3px solid var(--secondary);
    padding-left: 0;
    padding-right: 1rem;
}

/* Language Switcher */
.language-switcher .dropdown-menu {
    min-width: auto;
    padding: 0.5rem;
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.language-switcher .dropdown-item.active {
    background-color: var(--primary);
}

/* Custom list styles */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Custom checkboxes and radios */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
} 