/* Color Palette */
:root {
    --orange: #f69432;
    --white1: #fdfdfd;
    --white2: #fefefe;
    --brown: #634335;
    --blue: #364b84;
}

/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--white1);
    color: var(--brown);
    line-height: 1.6;
    /* Removed padding-bottom as footer is now movable */
}

a {
    text-decoration: none;
    color: var(--blue);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-space {
    display: flex;
    align-items: center;
}

.logo-space img {
    max-width: 250px; /* Increased size for better visibility */
    max-height: 113px; /* Scaled proportionally */
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--brown);
    margin: 0 10px; /* Space between logo and text */
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links img {
    margin-left: 10px;
}

.cta-button {
    background-color: var(--orange);
    color: var(--white2);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap; /* Prevent text wrap */
}

/* Main Content */
.main-content {
    margin-top: 100px; /* Increased for better clearance under fixed header */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

h1, h2, h3 {
    color: var(--blue);
}

.welcome-section {
    text-align: center;
    padding: 50px 0; /* Increased padding for prominence */
    background-color: var(--white2); /* Light background for contrast */
    border-radius: 10px;
    margin-bottom: 20px;
}

.welcome-section h1 {
    font-size: 36px; /* Larger font for visibility */
    margin-bottom: 10px;
    line-height: 1.2; /* Tighter line height for better fit */
}

.description-section {
    text-align: center;
    padding: 40px 0;
}

.full-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* Facilities */
.facilities-section {
    padding: 40px 0;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.facility-box {
    background-color: var(--white2);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--orange);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.facility-box img {
    margin-bottom: 10px;
}

/* Flats Sections */
.flats-section, .rent-section {
    padding: 40px 0;
}

.flats-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.flat-card {
    background-color: var(--white2);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--blue);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
}

.flat-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--orange);
}

/* CTA Box */
.cta-box {
    background-color: var(--orange);
    color: var(--white2);
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

/* Footer - Slimmer and Movable (Normal Flow) */
.footer {
    /* Removed position: fixed; now movable */
    background-color: var(--brown);
    color: var(--white2);
    padding: 10px 0; /* Slimmer padding */
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 50px; /* Small footer logo */
    height: 25px;
    margin-right: 10px;
}

.footer-text {
    font-weight: bold;
}

.quick-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.quick-links li {
    display: inline;
}

.quick-links a {
    color: var(--white2);
}

.quick-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* White on brown */
}

/* Responsive */
@media (max-width: 768px) {
    /* Removed body padding-bottom as footer is movable */
    
    .header {
        padding: 5px 0; /* Reduce padding for more space */
    }
    
    .header-container {
        flex-direction: row; /* Keep horizontal for side-by-side */
        justify-content: space-between;
        align-items: center;
        padding: 0 10px; /* Tighter padding */
        gap: 2px; /* Minimal gap overall */
    }
    
    .logo-space img {
        width: 80px; /* Increased size on mobile */
        height: 36px;
        margin-right: 5px;
    }
    
    .company-name {
        font-size: 16px; /* Slightly smaller for fit */
        flex-shrink: 0;
        margin: 0 5px;
    }
    
    .social-links {
        order: 3; /* Move Instagram after CTA for proximity to right */
        margin-left: 2px; /* Nearer to CTA */
    }
    
    .social-links img {
        width: 18px;
        height: 18px;
        margin-left: 0;
    }
    
    .cta-button {
        order: 2; /* CTA before Instagram in flex order */
        padding: 6px 10px; /* Even smaller button */
        font-size: 12px;
        flex-shrink: 0;
        margin-right: 2px; /* Nearer to Instagram */
    }
    
    .main-content {
        margin-top: 70px; /* Adjusted for smaller header padding on mobile */
        padding: 10px; /* Tighter content padding */
    }
    
    .welcome-section {
        padding: 30px 10px; /* Reduced but sufficient for visibility */
        margin: 0 0 20px 0;
    }
    
    .welcome-section h1 {
        font-size: 28px; /* Scaled down but prominent on mobile */
        word-wrap: break-word; /* Ensure long words wrap if needed */
    }
    
    .welcome-section p {
        font-size: 16px; /* Ensure paragraphs are readable */
        margin: 10px 0;
    }
    
    .flats-grid {
        flex-direction: column; /* Stack flats vertically */
    }
    
    .footer {
        padding: 5px 0; /* Even slimmer on mobile */
    }
    
    .footer-container {
        flex-direction: row; /* Side by side on mobile */
        justify-content: space-around; /* Evenly distribute elements */
        align-items: center;
        gap: 5px; /* Reduced gap for slimmer feel */
        flex-wrap: wrap; /* Wrap if too narrow */
    }
    
    .footer-logo img {
        width: 40px;
        height: 20px;
    }
    
    .footer-text {
        font-size: 14px; /* Smaller text for fit */
        white-space: nowrap;
    }
    
    .quick-links {
        display: flex; /* Ensure inline on mobile */
        gap: 8px; /* Reduced gap */
        justify-content: flex-end; /* Push to right if space allows */
    }
    
    .description-section {
        padding: 20px;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr; /* Single column for facilities */
        gap: 15px;
    }
    
    .facility-box {
        padding: 15px; /* Smaller padding in boxes */
    }
}
