/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #1e3a5f;
    --secondary-blue: #4a7ba7;
    --light-blue: #e8f1f8;
    --white: #ffffff;
    --off-white: #fafafa;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --border-light: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    background-color: var(--primary-navy);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 45px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--white);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 12px var(--shadow);
    border-radius: 4px;
    padding: 0.5rem 0;
    list-style: none;
    margin-top: 0.25rem;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--primary-navy);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(74, 123, 167, 0.88) 100%),
                url('/images/hero/hero-alma.jpg') center center/cover no-repeat;
    color: var(--white);
    padding: 10rem 2rem;
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section.bg-light {
    background-color: var(--off-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-title.center {
    text-align: center;
}

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

.section-subtitle.center {
    text-align: center;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shadow);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.property-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow);
}

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

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

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

.property-content {
    padding: 2rem;
}

.property-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.property-units {
    color: var(--secondary-blue);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Gallery */
.gallery-main {
    margin-bottom: 2rem;
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-thumb {
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumb:hover {
    border-color: var(--secondary-blue);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Details */
.property-hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 5rem 2rem 3rem;
}

.property-hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.property-hero .location {
    font-size: 1.25rem;
    opacity: 0.9;
}

.property-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background-color: var(--off-white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-blue);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Amenities Grid */
.amenities-section {
    margin: 4rem 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--off-white);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.amenity-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    fill: var(--secondary-blue);
}

.amenity-item h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin: 0;
}

/* Contact Form */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background-color: var(--off-white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.contact-card p,
.contact-card a {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--secondary-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-navy);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-blue);
    color: var(--white);
}

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

.btn-download {
    background-color: var(--primary-navy);
    color: var(--white);
    margin-top: 2rem;
}

.btn-download:hover {
    background-color: var(--secondary-blue);
}

/* Footer */
.footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

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

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-navy);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    .dropdown-menu a {
        padding-left: 3rem;
        color: var(--white) !important;
        opacity: 0.9;
    }

    .dropdown-menu a:hover {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .section {
        padding: 4rem 0;
    }

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

    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .gallery-main img {
        height: 300px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 1rem;
        background-attachment: scroll;
    }

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

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}
