/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: #333f6a; /* UPDATED New Blue */
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.6rem; }

section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #cf2f3f; /* UPDATED New Red */
    color: #fff; /* UPDATED Text color for contrast */
}
.btn-primary:hover {
    background-color: #b22234; /* UPDATED New Red Hover */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #333f6a; /* UPDATED New Blue */
    /* color: #fff; Will be handled by more specific rule below */
}
.btn-secondary:hover {
    background-color: #2a3357; /* UPDATED New Blue Hover */
    transform: translateY(-2px);
    /* color: #fff; Will be handled by more specific rule below */
}

/* Ensure white text on secondary buttons that are links or button elements */
a.btn.btn-secondary,
button.btn.btn-secondary {
    color: #fff;
}

a.btn.btn-secondary:hover,
button.btn-secondary:hover {
    color: #fff; /* Ensure text remains white on hover */
}


/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    max-height: 50px;
}

.main-nav {
    margin-right: auto; /* Pushes .header-right-items to the far right */
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px; /* REDUCED from 25px */
}

.main-nav a {
    font-family: 'Oswald', sans-serif;
    color: #333f6a; 
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.92rem; /* REDUCED from 0.95rem */
}
.main-nav a.active,
.main-nav a:hover {
    color: #cf2f3f; 
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #cf2f3f; 
    transition: width 0.3s ease;
}
.main-nav a.active::after,
.main-nav a:hover::after {
    width: 100%;
}

.header-right-items {
    display: flex;
    align-items: center;
    margin-left: 10px; /* REDUCED from 15px, creates space between main-nav and this group */
}

/* --- START: Header Social Icons --- */
.header-social-icons {
    display: flex; 
    align-items: center;
    margin-right: 10px; /* REDUCED from 15px, Space before the phone info */
}

.header-social-icons a {
    color: #333f6a; 
    font-size: 1.1rem; /* ADJUSTED from 1.2rem, can be tweaked */
    margin-left: 10px; /* REDUCED from 12px, Space between icons */
    transition: color 0.3s ease;
}

.header-social-icons a:first-child {
    margin-left: 0; 
}

.header-social-icons a:hover {
    color: #cf2f3f; 
}
/* --- END: Header Social Icons --- */


/* START: Styles for Header Phone Info */
.header-phone-info {
    display: flex;
    align-items: center;
    margin-right: 10px; /* REDUCED from 15px, Space before CTA */
    font-family: 'Oswald', sans-serif;
    color: #333f6a; 
    font-weight: 500;
    font-size: 0.9rem; /* REDUCED from 0.95rem */
    white-space: nowrap; /* ADDED: Prevents the phone number itself from wrapping */
}
.header-phone-info .phone-icon {
    margin-right: 6px; /* REDUCED from 8px */
    font-size: 1.1rem; /* Optional: Was 1.2rem, can be tweaked */
    line-height: 1; 
}
.header-phone-info a {
    color: #333f6a; 
    text-decoration: none;
    font-weight: 500; 
    /* Font size will be inherited from .header-phone-info */
}
.header-phone-info a:hover {
    color: #cf2f3f; 
}
/* END: Styles for Header Phone Info */

.header-cta {
    background-color: #cf2f3f; 
    color: #fff; 
    padding: 10px 18px; /* REDUCED from 10px 20px */
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    white-space: nowrap; 
    font-size: 0.92rem; /* Optional: to match nav link size, was implicitly larger due to Oswald */
}
.header-cta:hover {
    background-color: #b22234; 
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 10px; /* REDUCED from 15px, Space if it ever becomes visible next to header-right-items */
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333f6a; 
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: url('IMAGES/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
    padding-top: 80px;
    overflow: hidden; /* To contain elements like trail dots */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 63, 106, 0.6); /* UPDATED: New Blue with opacity */
    z-index: 0; /* Base layer for overlay */
}

.hero-content {
    position: relative;
    z-index: 2; /* Above overlay and trail dots */
    /* Prevent text selection for all content within hero-content */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    /* Subtle text shadow for better readability and depth */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    /* Subtle text shadow for better readability and depth */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features-section {
    background-color: #f9f9f9;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.feature-emoji-icon {
    display: block;
    font-size: 3rem;
    line-height: 1;
    margin: 0 auto 20px auto;
    text-align: center;
    color: #333f6a; /* Site's blue color for emojis */
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* Unit Sizes Section */
.unit-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.tab-link {
    background-color: #e9ecef;
    color: #333f6a; /* UPDATED New Blue */
    border: none;
    padding: 12px 25px;
    margin: 5px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.tab-link.active,
.tab-link:hover {
    background-color: #333f6a; /* UPDATED New Blue */
    color: #cf2f3f; /* UPDATED New Red for text */
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.unit-card {
    display: flex;
    background-color: #f8f9f8;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
    align-items: center;
}
.unit-card img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}
.unit-details {
    padding: 25px;
    flex-grow: 1;
}
.unit-details h3 {
    margin-top: 0;
}
.unit-dimensions {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}
.unit-description {
    margin-bottom: 15px;
}
.unit-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333f6a; /* UPDATED New Blue */
    margin-bottom: 20px;
}

/* About Us Section */
.about-us-section {
    background-color: #f0f4f8;
}
.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-us-image img {
    border-radius: 0px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
.about-us-content {
    text-align: center;
}
.about-us-content p {
    margin-bottom: 15px;
}
.about-us-content .btn {
    margin-top: 15px;
}

/* Location Section */
.location-section {
    background-color: #fff;
}
.location-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.address-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.address-container p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.address-container a:not(.btn) {
    color: #333f6a; /* UPDATED New Blue */
    font-weight: 500;
}
.address-container a:not(.btn):hover {
    color: #cf2f3f; /* UPDATED New Red */
}
.address-container .btn {
    margin-top: 20px;
}

/* Contact Section */
.contact-section {
    background-color: #333f6a; /* UPDATED New Blue background */
    color: #fff;
    text-align: center;
}
.contact-section h2 {
    color: #fff;
}
.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.contact-info-item h4 {
    font-family: 'Oswald', sans-serif;
    color: #cf2f3f; /* UPDATED New Red for headings */
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.contact-info-item p {
    font-size: 1.1rem;
}
.contact-info-item a {
    color: #fff;
    text-decoration: underline;
}
.contact-info-item a:hover {
    color: #cf2f3f; /* UPDATED New Red */
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}
.testimonials-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.testimonial-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.testimonial-item blockquote {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 30px;
}
.testimonial-item blockquote::before {
    content: '“';
    font-size: 3rem;
    color: #cf2f3f; /* UPDATED New Red */
    position: absolute;
    left: 0;
    top: -10px;
    font-family: Georgia, serif;
}
.testimonial-author {
    font-weight: bold;
    color: #333f6a; /* UPDATED New Blue */
    text-align: right;
}


/* Footer */
footer {
    background-color: #333;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-legal-link { 
    margin-top: 5px;
    font-size: 0.9rem;
}
.footer-legal-link a { 
    color: #bbb;
    text-decoration: none;
}
.footer-legal-link a:hover { 
    color: #fff;
    text-decoration: underline;
}
.social-links { 
    margin-top: 10px;
}
.social-links a {
    color: #bbb; 
    margin: 0 10px;
    font-size: 1.5rem; 
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #fff; 
}

/* --- START: Mouse Trail Dots Effect --- */
.hero-section .trail-dot-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; 
    overflow: hidden;
}

.hero-section .trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    opacity: 1; 
    transform: scale(1); 
}
/* --- END: Mouse Trail Dots Effect --- */


/* Responsive Design - Media Queries */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    .main-nav {
        margin-right: 0; /* Reset for tablet/mobile nav positioning */
    }
    .header-right-items {
        display: none; /* Hide the entire right group on tablets and smaller */
    }

    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; max-width: 90%;} 

    .about-us-grid { grid-template-columns: 1fr; text-align: center;}
    .about-us-image { margin-bottom: 30px; max-width: 400px; margin-left: auto; margin-right: auto;}

    .location-grid { grid-template-columns: 1fr; }
    .map-container { margin-bottom: 30px; }
    .address-container { text-align: center; }

    .unit-card img { width: 250px; height: 180px; }
    .feature-emoji-icon { font-size: 2.5rem; } 
}

/* Mobile phones */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 30px;}
    h3 { font-size: 1.4rem; }

    .header-container { position: relative; } 
    
    .main-nav { 
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
        margin-right: 0; 
    }
    .main-nav.nav-active { 
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav li {
        margin: 10px 0;
        margin-left: 0; 
    }
    .main-nav a { font-size: 1.1rem; }

    .mobile-menu-toggle {
        display: block; 
    }
    
    .hero-section { height: auto; min-height: 400px; padding: 100px 20px 40px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; max-width: 100%;} 

    .features-grid { grid-template-columns: 1fr; }
    .feature-emoji-icon { font-size: 2.2rem; margin-bottom: 15px;} 

    .unit-card {
        flex-direction: column;
        align-items: stretch;
    }
    .unit-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    .unit-details { padding: 20px; }

    .footer-content {
        flex-direction: column;
    }
}

/* Smaller mobile phones */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.9rem; }
    .btn { padding: 10px 18px; font-size: 0.9rem;}
    .tab-link { padding: 10px 15px; font-size: 0.9rem; }
    .feature-emoji-icon { font-size: 2rem; } 
}