/**
 * Hero Section Component Styles
 * 
 * Styles for the hero section component including background, content layout,
 * typography, search functionality and responsive design.
 */
.hero-section {
    position: relative;
    width: 100%;
    height: 810px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 102px 64px 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}

.hero-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section__background-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section__background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.hero-section__background-video:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section__background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-section__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 32px;
}

.hero-section__textual-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 32px;
}

.hero-section__title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--heading-2-large);
    line-height: var(--heading-2-line-height-large);
    text-transform: uppercase;
    text-align: center;
    color: var(--neutral-1000);
    max-width: 1033px;
    margin: 0;
}
.hero-section__title small {
    letter-spacing: 3%;
}

.hero-section__description {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--heading-4-small);
    line-height: var(--heading-4-line-height-small);
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--neutral-1000);
    margin: 0;
    max-width: 605px;
}

.hero-section__content color,
.hero-section__content cor {
    color: var(--success-850);
}

.hero-section__search {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    width: 312px;
}

/**
 * Hero Countries Dropdown Styles
 * 
 * Styles for the countries dropdown in hero section
 * Based on menu dropdown functionality
 */
.hero-countries-dropdown {
    position: relative;
    width: 100%;
}

.hero-countries-dropdown .dropdown__field {
    position: relative;
    width: 100%;
}

.hero-countries-dropdown .dropdown__input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--success-850);
    border: 1px solid rgba(22, 13, 130, 0.12);
    border-radius: var(--radius-full);
    padding: 8px 11px 8px 16px;
    gap: 8px;
    color: var(--climate-scanner-roxo);
    font-weight: 600;
    font-size: 20px;
    transition: var(--transition-normal);
    cursor: pointer;
}
#main .hero-countries-dropdown .dropdown__input-wrapper label {
    font-family: var(--font-family-primary);
    color: var(--climate-scanner-roxo) !important;
    font-weight: 600;
    font-size: 20px;
}

.hero-countries-dropdown .dropdown__input-wrapper:hover,
.hero-countries-dropdown .dropdown__input-wrapper:focus-within {
    cursor: pointer;
}

.hero-countries-dropdown .dropdown__input-wrapper:hover,
.hero-countries-dropdown .dropdown__input-wrapper:focus-within {
    border-color: rgba(22, 13, 130, 0.2);
    /* background-color: var(--success-800); */
}

.hero-countries-dropdown .dropdown__input {
    flex: 1;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--heading-4-small);
    line-height: 1.2;
    text-align: center;
    color: var(--neutral-1000);
    background: none;
    border: none;
    outline: none;
    padding: 0;
    cursor: pointer;
    pointer-events: none;
    user-select: none;
}

.hero-countries-dropdown .dropdown__input::placeholder {
    color: var(--neutral-1000);
}

.hero-countries-dropdown .dropdown__icon {
    display: flex;
    align-items: center;
    width: 16px;
    transition: var(--transition-normal);
}

.hero-countries-dropdown .dropdown__icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--neutral-1000);
    transition: var(--transition-normal);
}

.hero-section__search:hover .hero-countries-dropdown .dropdown__icon svg,
.hero-countries-dropdown .dropdown__input-wrapper:focus-within .dropdown__icon svg,
.hero-countries-dropdown.dropdown--active .dropdown__icon svg {
    transform: rotate(180deg);
}

.hero-countries-dropdown .dropdown__options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--neutral-1000);
    border: 1px solid rgba(22, 13, 130, 0.12);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-bottom-large);
    max-height: 300px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-slow);
    margin-top: 4px;
    font-weight: var(--font-weight-semibold);
    padding: 15px;
}

.hero-section__search:hover .hero-countries-dropdown .dropdown__options,
.hero-countries-dropdown .dropdown__input-wrapper:focus-within .dropdown__options,
.hero-countries-dropdown .dropdown__options--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-countries-dropdown .dropdown__item {
    margin-bottom: 4px;
}

.hero-countries-dropdown .dropdown__item:last-child {
    margin-bottom: 0;
}

.hero-countries-dropdown .dropdown__item--hidden {
    display: none;
}

.hero-countries-dropdown .dropdown__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px 11px;
    border-radius: var(--radius-medium);
    font-family: var(--font-family-primary);
    font-weight: 400;
    font-size: var(--body-large);
    line-height: var(--body-line-height-large);
    color: var(--neutral-200);
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
}
.hero-countries-dropdown .dropdown__item--worldwide .dropdown__link,
.hero-countries-dropdown .dropdown__item--worldwide-pillars .dropdown__link {
    font-weight: 600;
}


.hero-countries-dropdown .dropdown__link:hover {
    background-color: var(--neutral-800);
    text-decoration: none;
    color: var(--neutral-200);
}

.hero-countries-dropdown .dropdown__link:focus {
    background-color: var(--accent-highlight-subtle);
    color: var(--accent-primary);
    outline: none;
}

.hero-countries-dropdown .dropdown__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.hero-countries-dropdown .dropdown__icon.desktop {
    display: block;
}

.hero-countries-dropdown .dropdown__icon.mobile {
    display: none;
}

/* Scrollbar Styling */
.hero-countries-dropdown .dropdown__options::-webkit-scrollbar {
    width: 6px;
}

.hero-countries-dropdown .dropdown__options::-webkit-scrollbar-track {
    background: rgba(22, 13, 130, 0.05);
    border-radius: 3px;
}

.hero-countries-dropdown .dropdown__options::-webkit-scrollbar-thumb {
    background: rgba(22, 13, 130, 0.2);
    border-radius: 3px;
}

.hero-countries-dropdown .dropdown__options::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 13, 130, 0.3);
}



/**
 * Responsive Design
 * 
 * Media queries for different screen sizes and device orientations
 */
@media (max-width: 1200px) {
    .hero-section {
        height: 700px;
        padding: 60px 40px;
    }
    
    .hero-section__title {
        font-size: var(--heading-3-large);
        max-width: 900px;
    }
    
    .hero-section__description {
        font-size: var(--heading-5-large);
    }
}

@media (max-width: 910px) {
    .hero-section__title {
        font-size: var(--heading-1-small);
    }
    .hero-section__description {
        font-size: var(--heading-4-small);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 568px;
        padding: 110px 20px 40px;
    }
    
    .hero-section__title {
        font-size: 28px;
        line-height: 1.4;
        max-width: 100%;
    }
    .hero-section__title small {
        font-size: 28px;
    }
    .hero-section__textual-content {
        gap: 50px;
    }
    .hero-section__content {
        gap: 45px;
    }
    .hero-section__description {
        font-size: var(--body-large);
        line-height: 2;
    }
    
    .hero-section__search {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-countries-dropdown .dropdown__input {
        font-size: var(--heading-6-small);
    }
    
    .hero-countries-dropdown .dropdown__input-wrapper {
        padding: 11px 16px;
    }
    
    .hero-countries-dropdown .dropdown__icon.mobile {
        display: block;
    }
    
    .hero-countries-dropdown .dropdown__icon.desktop {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
        padding: 110px 16px 40px;
    }
    
    .hero-section__title {
        font-size: var(--heading-5-large);
    }
    
    .hero-section__description {
        font-size: var(--body-small);
    }
    
    .hero-section__search {
        max-width: 100%;
    }
    
    .hero-countries-dropdown .dropdown__input {
        font-size: var(--body-large);
    }
    
    .hero-countries-dropdown .dropdown__input-wrapper {
        padding: 8px 12px;
    }
    
    .hero-countries-dropdown .dropdown__options {
        max-height: 250px;
    }
    
    .hero-countries-dropdown .dropdown__link {
        font-size: var(--body-small);
        padding: 8px 12px;
    }
}
