/* Custom CSS for THIKAH Real Estate */

:root {
    --primary-color: #2A3B55;
    --accent-color: #CFE8F9;
    --neutral-light: #F5F7FA;
    --white: #FFFFFF;
    --text-dark: #2A3B55;
    --text-light: #6B7280;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--neutral-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e2a3a 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 59, 85, 0.8);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0.5rem 0;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    box-shadow: var(--shadow-lg);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e2a3a 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

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

.btn-primary:hover {
    background-color: #1e2a3a;
    border-color: #1e2a3a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-section {
    background-color: var(--white);
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a8d4f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

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

/* Properties Section */
.properties-section {
    background-color: var(--neutral-light);
}

/* Property Category Cards - Mobile App Style */
.property-category-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 200px;
    position: relative;
}

.property-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-category-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.property-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-category-card:hover .property-category-image img {
    transform: scale(1.05);
}

.property-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    padding: 1.5rem;
    color: var(--white);
}

.property-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}

/* Featured Properties Section */
.featured-properties {
    background-color: var(--white);
}

.featured-property-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.featured-property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-property-image {
    height: 200px;
    overflow: hidden;
}

.featured-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-property-card:hover .featured-property-image img {
    transform: scale(1.05);
}

.featured-property-content {
    padding: 1.5rem;
}

.property-order {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.property-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.property-location {
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.property-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a8d4f0 100%);
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
}

.contact-form-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(42, 59, 85, 0.25);
}

.contact-info {
    padding: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-details h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

/* About Page Styles */
.about-content {
    background-color: var(--white);
}

.about-text {
    padding: 2rem 0;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-image img {
    box-shadow: var(--shadow-lg);
}

.mission-vision {
    background-color: var(--neutral-light);
}

.mission-card,
.vision-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-icon,
.vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a8d4f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mission-icon i,
.vision-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.mission-card h3,
.vision-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.values-section {
    background-color: var(--white);
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a8d4f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

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

.team-section {
    background-color: var(--neutral-light);
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.team-info {
    padding: 2rem;
}

.team-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-light);
    margin: 0;
}

/* Terms and Privacy Pages */
.terms-content,
.privacy-content {
    background-color: var(--white);
}

.terms-document,
.privacy-document {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.terms-section,
.privacy-section {
    margin-bottom: 2.5rem;
}

.terms-section h3,
.privacy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-section ul,
.privacy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-section li,
.privacy-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.terms-footer,
.privacy-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .terms-document,
    .privacy-document {
        padding: 2rem 1rem;
    }

    .property-category-card {
        height: 150px;
    }

    .property-category-overlay {
        padding: 1rem;
    }

    .property-category-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .service-card,
    .value-card,
    .mission-card,
    .vision-card {
        margin-bottom: 1rem;
    }

    .property-category-card {
        height: 120px;
    }

    .property-category-title {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-section {
        display: none;
    }

    .page-header {
        background: none;
        color: var(--text-dark);
        padding: 2rem 0;
    }

    .terms-document,
    .privacy-document {
        box-shadow: none;
        padding: 0;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
