/* CSS Variables */
:root {
    --primary-green: #1a5f5f;
    --primary-green-dark: #0d4a4a;
    --primary-green-light: #2a7a7a;
    --white: #ffffff;
    --cream: #fafafa;
    --text-dark: #1a1a1a;
    --text-grey: #4a4a4a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Main Container */
.landing-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Images (for crossfade) */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: opacity 2s ease-in-out;
}

.background-image-1 {
    background-image: url('/static/img/areal_shot_1.png');
    opacity: 1;
    z-index: 0;
}

.background-image-2 {
    background-image: url('/static/img/areal_shot_2.png');
    opacity: 0;
    z-index: 1;
}

/* Mobile Background Images */
@media (max-width: 900px) {
    .background-image-1 {
        background-image: url('/static/img/areal_shot_mobile_1.png');
    }

    .background-image-2 {
        background-image: url('/static/img/areal_shot_mobile_2.png');
    }
}

/* Navbar */
.navbar {
    position: relative;
    width: 100%;
    padding: 1.5rem 4rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20vh;
    background: linear-gradient(
        to bottom,
        rgba(250, 250, 250, 0.95) 0%,
        rgba(250, 250, 250, 0.85) 30%,
        rgba(250, 250, 250, 0.5) 60%,
        rgba(250, 250, 250, 0) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Top Section */
.top-section {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem 4rem 3rem;
    z-index: 2;
    min-height: 60vh;
}

/* Decorative Dots */
.decorative-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--text-grey);
    border-radius: 50%;
    opacity: 0.3;
}

.dot-1 {
    top: 15%;
    left: 10%;
}

.dot-2 {
    top: 15%;
    right: 10%;
}

.dot-3 {
    top: 50%;
    left: 5%;
}

.dot-4 {
    top: 50%;
    right: 5%;
}

/* Branding */
.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-green);
    flex-shrink: 0;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-name-container {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-green-light);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Features Section */
.features-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    width: 100%;
    margin-bottom: 2rem;
}

.for-sale-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Slogan */
.slogan {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-grey);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Features Bar */
.features-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 95, 95, 0.85) 0%, rgba(42, 122, 122, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    max-width: 700px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-text {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
}

.feature-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Bottom Contact Bar */
.contact-bar {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 74, 74, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.contact-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 100%;
    width: 100%;
}

.contact-btn {
    background-color: var(--white);
    color: var(--primary-green);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-btn:hover {
    background-color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn:active {
    transform: translateY(0);
}

.maps-btn {
    background: none;
    color: var(--white);
    border: none;
    padding: 0.5rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.maps-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.maps-btn:hover::after {
    width: 100%;
}

.maps-btn:hover {
    color: var(--cream);
}

.maps-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

.maps-icon svg {
    width: 100%;
    height: 100%;
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 900px) {
    html, body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .landing-container {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    .navbar {
        padding: 1rem 2rem;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .top-section {
        padding: 2rem;
        min-height: auto;
    }

    .features-section {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .for-sale-text {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .features-bar {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem 0.75rem;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .feature-item {
        flex: 0 1 auto;
        min-width: 0;
        white-space: nowrap;
    }

    .feature-text {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .feature-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .feature-icon {
        width: 16px;
        height: 16px;
    }

    .feature-divider {
        width: 1px;
        height: 20px;
    }

    .contact-bar {
        padding: 0.75rem 1.5rem;
    }

    .contact-bar-content {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        max-width: 700px;
    }

    .maps-btn,
    .contact-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    .maps-icon,
    .contact-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .branding {
        gap: 0.75rem;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    .top-section {
        padding: 1.5rem;
    }

    .features-section {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .for-sale-text {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }

    .features-bar {
        padding: 0.65rem 0.5rem;
        gap: 0.4rem;
        flex-wrap: nowrap;
    }

    .feature-item {
        flex-direction: row;
        gap: 0.3rem;
        text-align: left;
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
    }

    .feature-text {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .feature-icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    
    .feature-divider {
        width: 1px;
        height: 18px;
        flex-shrink: 0;
    }

    .feature-icon {
        width: 14px;
        height: 14px;
    }

    .feature-divider {
        width: 1px;
        height: 18px;
    }

    .contact-bar {
        padding: 0.65rem 1rem;
    }

    .contact-bar-content {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
        max-width: 700px;
    }

    .maps-btn,
    .contact-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.85rem;
        white-space: nowrap;
    }

    .maps-icon,
    .contact-icon {
        width: 14px;
        height: 14px;
    }
}
