 /* 
   Rada Sum Realty - Main Stylesheet
   A modern, responsive design for a real estate website
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --light-text: #fff;
    --gray-color: #95a5a6;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    padding-top: 8rem;
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #1a2530;
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #c0392b;
    color: var(--light-text);
}

.btn-light {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #e6e6e6;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-sm {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.logo h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 8rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

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

.hero-content .btn {
    margin: 0 1rem;
}

/* ===== FEATURED PROPERTIES SECTION ===== */
.featured-properties {
    padding: 8rem 0;
    background-color: #fff;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.property-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: #fff;
}

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

.property-image {
    height: 250px;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 1.2rem;
    font-weight: 600;
}

.property-details {
    padding: 2rem;
}

.property-details h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.property-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.property-address {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.property-features span {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
}

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

.view-all {
    text-align: center;
    margin-top: 4rem;
}

/* ===== AREAS WE SERVE SECTION ===== */
.areas {
    padding: 8rem 0;
    background-color: var(--light-gray);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.area-card {
    position: relative;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.area-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--light-text);
}

.area-info h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.area-info p {
    font-size: 1.4rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 8rem 0;
    background-color: #fff;
}

.testimonial-slider {
    margin-top: 4rem;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 3rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    margin-right: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-content {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 6rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    margin-right: 1.5rem;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.author-info p {
    font-size: 1.4rem;
    color: var(--gray-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary-color);
}

/* ===== CALL TO ACTION SECTION ===== */
.cta {
    padding: 8rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--light-text);
}

.cta h2 {
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.cta p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.footer-column p {
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: var(--light-color);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info li i {
    margin-right: 1rem;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    color: var(--light-color);
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 8rem;
}

.about-hero h1 {
    font-size: 4.2rem;
}

.about-section {
    padding: 8rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.team-section {
    padding: 8rem 0;
    background-color: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-member {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-image {
    height: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-info p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary-color);
    margin: 0 0.5rem;
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* ===== PROPERTIES PAGE ===== */
.properties-hero {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/properties-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 8rem;
}

.properties-hero h1 {
    font-size: 4.2rem;
}

.properties-section {
    padding: 8rem 0;
}

.filter-bar {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: end;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 0.5rem;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* ===== PROPERTY DETAILS PAGE ===== */
.property-details-section {
    padding: 8rem 0;
    margin-top: 8rem;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.property-title h1 {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.property-location {
    display: flex;
    align-items: center;
    color: var(--gray-color);
    font-size: 1.6rem;
}

.property-location i {
    margin-right: 0.8rem;
}

.property-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: right;
}

.property-gallery {
    margin-bottom: 4rem;
}

.main-image {
    height: 500px;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.thumbnail {
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.property-description h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.property-description p {
    margin-bottom: 2rem;
}

.property-features h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin: 3rem 0 2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.features-list li {
    display: flex;
    align-items: center;
}

.features-list li i {
    margin-right: 1rem;
    color: var(--secondary-color);
}

.property-sidebar {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    height: fit-content;
}

.agent-info {
    text-align: center;
    margin-bottom: 3rem;
}

.agent-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.agent-info p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.agent-contact {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.agent-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary-color);
    margin: 0 0.5rem;
    transition: var(--transition);
}

.agent-contact a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.contact-form h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 8rem;
}

.contact-hero h1 {
    font-size: 4.2rem;
}

.contact-section {
    padding: 8rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contact-info p {
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
}

.info-details h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-details p {
    margin-bottom: 0;
    color: var(--gray-color);
}

.contact-form-container h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contact-form .form-group {
    margin-bottom: 2rem;
}

.map-container {
    height: 400px;
    margin-top: 6rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .about-content,
    .contact-container,
    .property-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }

    .areas-we-serve .container > div {
        grid-template-columns: 1fr !important;
    }

    .map-container {
        min-height: 300px !important;
    }

    .cities-list {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    header .container {
        padding: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        padding: 2rem;
        transition: var(--transition);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    nav ul li a {
        color: var(--text-color);
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 3.6rem;
    }
    
    .hero-content p {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .property-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-price {
        text-align: left;
        margin-top: 1rem;
    }
    
    .main-image {
        height: 350px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

    .testimonial-slider {
        padding: 0 2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 54%;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content .btn {
        display: block;
        margin: 1rem 0;
    }
    
    .property-grid,
    .area-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .cities-list > div {
        grid-template-columns: 1fr !important;
    }

    .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo img {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .logo h1 {
        font-size: 2.4rem !important;
    }

    .contact-info, .contact-form-container {
        padding: 2rem;
    }

    .map-container {
        height: 300px;
    }
}

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

    .btn {
        padding: 1rem 2rem;
    }

    .property-features {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        gap: 3rem;
    }
}