/**
 * Hero Block - Frontend Styles
 * Matching Figma Design
 */

.hero-block {
    width: 100%;
    min-height: 35rem;
    overflow: hidden;
    position: relative;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-container {
    display: flex;
    min-height: 35rem;
    width: 100%;
}

.hero-text-column {
    flex: 0 0 42.82%; /* 740px / 1728px from Figma */
    background-color: var(--color-navy-deep); /* Primary One from Figma */
    display: flex;
    /* align-items: flex-start; */
    align-items: center;
    padding-right: 2rem;
    justify-content: flex-end;
    padding-bottom: 4.25rem;

    /* padding: 120px 0 0 150px;  */
    position: relative;
}

/* Align content with 1728px container on large screens */
@media (min-width: 1729px) {
    .hero-text-column {
        justify-content: flex-start;
        padding-left: calc((100vw - 1728px) / 2 + clamp(6rem, 15.046vw, 16.25rem));
        padding-right: 2rem;
    }
}

.hero-content {
    max-width: 28rem; /* Content width from Figma */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Gap between headline and subheadline from Figma */
}

.hero-headline {
    color: var(--color-white); /* Base UI-Light from Figma */
    font-family: 'Outfit', sans-serif;
    font-size: 3rem; /* Headline Regular 48 from Figma */
    font-weight: 400; /* Regular weight from Figma */
    line-height: 1.1667em; /* 56px / 48px from Figma */
    margin: 0;
    text-align: left;
}

.hero-subheadline {
    color: var(--color-hero-subheadline); /* Primary Three from Figma */
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; /* Headline Regular 24 from Figma */
    font-weight: 400; /* Regular weight from Figma */
    line-height: 1.333em; /* 32px / 24px from Figma */
    margin: 0;
    text-align: left;
}

.hero-image-column {
    flex: 0 0 57.18%; /* 988px / 1728px from Figma */
    background-color: var(--color-gray-border); /* Medium Gray from Figma */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    min-height: 35rem;
    overflow: hidden;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-border); /* Medium Gray from Figma */
}

.placeholder-text {
    color: var(--color-gray-700-ui); /* Base UI-Three from Figma */
    font-family: 'Avenir Next', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}

/* Block Alignment Support */
.hero-block.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-block.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Responsive Design */
/* Desktop - 1025px to 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
    .hero-text-column {
        padding-left: 5rem;
    }
}

/* Below 1280px */
@media (max-width: 1024px) {
    .hero-text-column {
        /* padding: 120px 0 0 40px; */
        /* padding-right: 2rem; */
        justify-content: center;
        padding: 0 2rem;
        padding-bottom: 4.2rem;
        padding-left: 5rem;
    }
}

/* Desktop - 1199px and above */
@media (min-width: 1199px) {
    .hero-text-column {
        padding-bottom: 3.5rem !important;
    }
}

/* Tablet - 768px to 1199px */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-text-column {
        padding-bottom: 3.7rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Tablet styles here */
    .hero-text-column {
        /* padding: 60px 0 90px 50px; */
        padding-bottom: 4.25rem;
        padding-left: 3.125rem;
        padding-bottom: 3.7rem !important;
    }

    .hero-headline {
        font-size: clamp(2.25rem, calc(2.25rem + 0.75 * ((100vw - 768px) / 256)), 3rem);
    }

    .hero-subheadline {
        font-size: clamp(1.25rem, calc(1.25rem + 0.25 * ((100vw - 768px) / 256)), 1.5rem);
    }
}

@media (min-width: 768px) and (max-width: 870px) {
    .hero-text-column {
        padding-left: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-block {
        min-height: 25rem;
    }
    
    .hero-container {
        flex-direction: column;
        min-height: 25rem;
    }
    
    .hero-text-column {
        flex: 1;
        padding: 2.5rem 2rem;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        gap: 1.25rem;
    }
    
    .hero-image-column {
        flex: 1;
        min-height: 18.75rem;
        overflow: hidden;
    }
    
    .hero-headline {
        font-size: 2.25rem;
        line-height: 1.1667em;
    }
    
    .hero-subheadline {
        font-size: 1.25rem;
        line-height: 1.333em;
    }
}

@media (max-width: 480px) {
    .hero-block {
        min-height: auto;
    }
    
    .hero-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-text-column {
        padding: 2.5rem 2rem; /* top/bottom: 2.5rem (40px), left/right: 2rem (32px) */
        min-height: auto;
        justify-content: flex-start;
        order: 1;
    }
    
    .hero-content {
        max-width: 20.5625rem; /* Content width from Figma mobile */
        gap: 1rem; /* Gap from Figma mobile */
    }
    
    .hero-image-column {
        min-height: 13.875rem; /* Image height from Figma mobile */
        order: 2;
        overflow: hidden;
    }
    
    .hero-headline {
        font-size: 2rem; /* Headline Regular 32 from Figma mobile */
        font-weight: 400; /* Regular weight from Figma */
        line-height: 1.25em; /* 1.25em from Figma mobile */
    }
    
    .hero-subheadline {
        font-size: 1.125rem; /* Body Light 18 from Figma mobile */
        font-weight: 300; /* Light weight from Figma mobile */
        line-height: 1.4444em; /* 1.4444em from Figma mobile */
        color: var(--color-hero-subheadline); /* Primary Three from Figma */
        /* margin-bottom: 30px; */
    }
}

/* Desktop - 1281px to 1540px */
@media (min-width: 1281px) and (max-width: 1540px) {
    .hero-text-column {
        padding-left: 9.375rem;
    }
}

/* Desktop - 1541px to 1728px */
@media (min-width: 1541px) and (max-width: 1728px) {
    .hero-text-column {
        padding-left: clamp(6rem, 15.046vw, 16.25rem);
    }
}

