@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Work+Sans:wght@400;600;700&display=swap');

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Work Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #243665;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

header {
    background-color: #243665;
    color: #FFFFFF;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

span {
    color: #8BD8BD;
    font-weight: 400;
}

h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}

.tagline {
    font-style: italic;
    font-size: 1rem;
    opacity: 0.9;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

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

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #8BD8BD;
    color: #243665;
}

.breadcrumb {
    background-color: #f1f1f4;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.breadcrumb ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb ul li {
    display: inline;
    font-size: 0.9rem;
}

.breadcrumb ul li:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: #8BD8BD;
}

.breadcrumb ul li a {
    color: #243665;
    text-decoration: none;
}

.breadcrumb ul li a:hover {
    text-decoration: underline;
}

.breadcrumb ul li:last-child {
    color: #243665;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: #243665;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #8BD8BD;
}

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

.property-images {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.main-image {
    flex: 2;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    border-radius: 8px;
}

.thumbnail-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thumbnail-images .placeholder {
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    border-radius: 8px;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail {
    background-color: #f9f9fb;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.detail-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.description {
    margin-bottom: 2rem;
}

.description h3, .booking h3 {
    margin-bottom: 1rem;
}

/* Mobile menu styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #243665;
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
}

.mobile-menu ul {
    list-style-type: none;
    padding: 0;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
}

.mobile-menu ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.2rem;
}

.close-menu {
    color: #FFFFFF;
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

main {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
    padding: 2rem;
    flex: 1 0 auto;
}

h2, h3 {
    color: #243665;
    border-bottom: 2px solid #8BD8BD;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.hero {
    background-color: #8BD8BD;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: none;
    color: #243665;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #243665;
}

.services-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.our-services {
    flex: 1;
}

.rebuild-equity {
    flex: 3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0;
    align-items: flex-start;
}

.service-item {
    background-color: #f9f9fb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: #243665;
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.btn {
    display: inline-block;
    background-color: #243665;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background-color: #8BD8BD;
    color: #243665;
    transform: translateY(-2px);
}

footer {
    flex-shrink: 0;
    text-align: left;
    background-color: #243665;
    color: #FFFFFF;
    padding: 1rem 0;
}


@media screen and (max-width: 768px) {
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

    header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
    }

    .header-content > div {
        display: flex;
        flex-direction: column;
    }

    .hamburger-menu {
        flex: 0 0 auto;
        margin-left: 15px;
    }

    nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-wrapper {
        flex-direction: column;
    }

    .our-services,
    .rebuild-equity {
        width: 100%;
    }

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

    .service-item {
        margin-bottom: 2rem;
    }

    .property-images {
        flex-direction: column;
    }

    .thumbnail-images {
        flex-direction: row;
        overflow-x: auto;
    }

    .thumbnail-images .placeholder {
        min-width: 150px;
        aspect-ratio: 3 / 2;
    }

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

@media screen and (min-width: 375px) and (max-width: 390px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .service-item {
        padding: 1rem;
    }

    .service-item h3 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}