:root {
    --sea-blue: #005f83;
    --sea-blue-dark: #003f59;
    --soft-blue: #e3f6fc;
    --page-bg: #f6f9fc;
    --text: #18232b;
    --muted: #5a6a73;
    --border: #d4e0e7;
    --white: #ffffff;
    --overlay: rgba(6, 32, 44, 0.64);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.5;
}

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

/* Mobile-first navigation. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.nav-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--sea-blue);
    font-size: 0;
    font-weight: 800;
}

.brand-name {
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.brand .app-logo-image {
    display: block;
    width: auto;
    height: 64px;
}

.menu-toggle {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

.menu-toggle:hover {
    background: #f3f8fb;
}

.menu-toggle:focus-visible {
    outline: 3px solid var(--soft-blue);
    outline-offset: 2px;
}

.menu-icon {
    width: 21px;
    display: grid;
    gap: 4px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--sea-blue-dark);
}

.site-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    z-index: 30;
    display: none;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 16px 32px rgba(25, 45, 57, 0.12);
}

.site-menu.is-open {
    display: grid;
}

.site-menu a {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
}

.site-menu a:hover {
    background: var(--soft-blue);
    color: var(--sea-blue-dark);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.button-primary {
    background: var(--sea-blue);
    color: var(--white);
}

.button-primary:hover {
    background: var(--sea-blue-dark);
}

.button-outline {
    border-color: var(--sea-blue);
    color: var(--sea-blue);
    background: var(--white);
}

.button-outline:hover {
    background: var(--soft-blue);
}

/* Hero starts as a stacked mobile layout. */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 63, 89, 0.86), rgba(0, 95, 131, 0.22)),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 16px;
}

.hero-message {
    max-width: none;
    margin-left: 0;
    padding: 24px;
    border-radius: 18px;
    background: rgba(6, 32, 44, 0.68);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.hero-message h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 8vw, 48px);
    line-height: 1.08;
}

.hero-message p {
    margin: 0 0 24px;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
}

.hero-actions {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .button {
    min-width: 190px;
    min-height: 54px;
    padding: 0 24px;
    font-size: 16px;
}

.mobile-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px;
}

.image-cta {
    min-height: 260px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 34px rgba(25, 45, 57, 0.1);
}

.renter-cta {
    background-image:
        linear-gradient(90deg, rgba(0, 63, 89, 0.78), rgba(0, 95, 131, 0.2)),
        url("https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1600&q=80");
}

.landlord-cta {
    background-image:
        linear-gradient(90deg, rgba(0, 63, 89, 0.78), rgba(0, 95, 131, 0.2)),
        url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80");
}

.cta-panel {
    max-width: 540px;
    padding: 24px;
    color: var(--white);
}

.cta-panel h2 {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.2;
}

.site-footer {
    background: #082733;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 16px 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    font-size: 14px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 0;
    font-weight: 800;
}

.footer-logo .app-logo-image {
    display: block;
    width: auto;
    height: 58px;
}

.footer-brand p {
    max-width: 350px;
    margin: 0;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 15px;
    line-height: 1.2;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-policy-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-policy-links a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-style: normal;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.footer-policy-links {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

@media (min-width: 640px) {
    .nav {
        padding: 14px 20px;
    }

    .nav-topbar {
        justify-content: space-between;
    }

    .site-menu {
        left: 20px;
        right: 20px;
        padding: 14px;
    }

    .hero-inner {
        padding: 64px 20px;
    }

    .hero-message {
        padding: 30px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .hero-actions {
        display: flex;
    }

    .mobile-cta-grid {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero-inner {
        padding: 84px 20px;
    }

    .hero-message {
        max-width: 620px;
        margin: 0 auto;
        padding: 36px;
    }

    .hero-message h1 {
        font-size: clamp(36px, 6vw, 58px);
    }

    .hero-message p {
        font-size: 18px;
    }

}

@media (min-width: 1024px) {
    .hero {
        min-height: max(760px, 100vh);
    }

    .hero-inner {
        padding: 84px 20px;
    }

}

@media (min-width: 1024px) {
    .nav {
        padding: 16px 20px;
    }

    .hero-message {
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
        gap: 34px;
    }

    .footer-bottom {
        grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
        column-gap: 34px;
    }

    .footer-policy-links {
        grid-column: 4;
        justify-content: flex-start;
    }
}

/* Desktop navigation stays in the header; the dropdown is only for narrow screens. */
@media (min-width: 768px) {
    .nav {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .nav-topbar {
        flex: 0 0 auto;
    }

    .brand .app-logo-image {
        height: 58px;
    }

    .brand-name {
        font-size: 22px;
    }

    .menu-toggle {
        display: none;
    }

    .site-menu,
    .site-menu.is-open {
        position: static;
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
        margin-left: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-menu a {
        min-height: 48px;
        padding: 0 15px;
        white-space: nowrap;
        font-size: 17px;
    }

    .site-menu a:last-child {
        margin-left: 4px;
        padding: 0 16px;
        border-radius: 8px;
        background: var(--sea-blue);
        color: var(--white);
    }

    .site-menu a:last-child:hover {
        background: var(--sea-blue-dark);
        color: var(--white);
    }
}
