/* ===================================================
   Prototype Header Section
   Based on project-header with info text on top
   and media wrapper at 60vh
   =================================================== */

/* Base Styles */
body {
    font-family: polymath-display, sans-serif;
}

.prototype-header {
    background-color: #FAFAFA;
    padding: 0;
    overflow: hidden;
}

/* ===================================================
   Top Info Row (displayed above the media wrapper)
   =================================================== */
.prototype-header__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 52px 24px;
}

.prototype-header__info-left {
    max-width: 50%;
}

.prototype-header__info-right {
    text-align: right;
    max-width: 45%;
}

/* Title */
.prototype-header__title {
    font-family: polymath-display, sans-serif;
    font-weight: 400;
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.1;
}

/* Description */
.prototype-header__description {
    font-family: polymath-display, sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 0;
}

/* Price */
.prototype-header__price {
    font-family: polymath-display, sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.1;
}

/* Address Text (top info) */
.prototype-header__address-text {
    font-family: polymath-display, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 0;
    opacity: 0.8;
}

/* ===================================================
   Media Wrapper (60vh instead of 100vh)
   =================================================== */
.prototype-header__media-wrapper {
    position: relative;
    overflow: hidden;
    height: 70vh;
    border-radius: 16px;
    margin: 0 52px 16px;
}

/* Logo */
.prototype-header__logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 12px;
}

/* Text over media (top-centered) */
.prototype-header__text {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

/* Media (video/image) */
.prototype-header__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop / Mobile video toggle */
.prototype-header__media--mobile {
    display: none;
}

@media (max-width: 767px) {
    .prototype-header__media--desktop {
        display: none;
    }

    .prototype-header__media--mobile {
        display: block;
    }
}

/* ===================================================
   Overlay (bottom bar)
   =================================================== */
.prototype-header__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    border-radius: 0 0 16px 16px;
}

/* Address - Desktop CTA */
.prototype-header__address--desktop {
    color: #ffffff;
}

.prototype-header__address--desktop:hover {
    text-decoration: none;
    color: #ffffff;
}

.address-icon {
    vertical-align: middle;
    margin-right: 6px;
    opacity: 0.9;
}

/* Address - Mobile Text */
.prototype-header__address--mobile {
    color: #ffffff;
    font-size: 0.8rem;
    opacity: 0.9;
    text-align: center;
}

/* ===================================================
   Responsive - Tablet (768px - 991px)
   =================================================== */
@media (max-width: 991px) {
    .prototype-header__info {
        padding: 32px 32px 20px;
    }

    .prototype-header__media-wrapper {
        margin: 0 32px 16px;
    }

    .prototype-header__title {
        font-size: 2.5rem;
    }

    .prototype-header__price {
        font-size: 2rem;
    }

    .prototype-header__logo {
        max-width: 440px;
    }

    .prototype-header__overlay {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    }

    .prototype-header__overlay .dv-cta {
        order: 1;
        margin-bottom: 16px;
        width: 100%;
        justify-content: center;
    }

    .prototype-header__overlay .dv-cta .dv-cta__label {
        width: 100%;
        justify-content: center;
        padding: 12px 40px;
        font-size: 0.95rem;
    }

    .prototype-header__address--mobile {
        order: 2;
    }
}

/* ===================================================
   Responsive - Mobile (below 768px)
   =================================================== */
@media (max-width: 767px) {
    .prototype-header__info {
        flex-direction: column;
        padding: 24px 20px 16px;
        gap: 16px;
    }

    .prototype-header__info-left {
        max-width: 100%;
    }

    .prototype-header__info-right {
        text-align: left;
        max-width: 100%;
    }

    .prototype-header__title {
        font-size: 2rem;
    }

    .prototype-header__price {
        font-size: 1.75rem;
    }

    .prototype-header__media-wrapper {
        height: 50vh;
        margin: 0 16px 16px;
        border-radius: 12px;
    }

    .prototype-header__overlay {
        border-radius: 0 0 12px 12px;
    }

    .prototype-header__logo {
        max-width: 200px;
    }


}
