/**
 * Header and Hero Section Styles
 *
 * @package ChaletMontagne
 */

/*--------------------------------------------------------------
Header Enhancements
--------------------------------------------------------------*/
.site-header {
    background: var(--color-bg);
    border-bottom: 3px solid var(--color-secondary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.5s ease-out;
}

.site-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header Top */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-divider);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.site-title a:hover {
    color: var(--color-secondary);
}

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.custom-logo-link {
    display: block;
    max-width: 250px;
}

.custom-logo-link img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Header Contact */
.header-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.9rem;
}

.header-phone a,
.header-email a {
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.header-phone a:hover,
.header-email a:hover {
    color: var(--color-primary);
}

.header-contact .icon {
    font-size: 1.2rem;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    padding: 10px 15px;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    transform: scaleX(1);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-primary);
}

/*--------------------------------------------------------------
Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 124, 1) 0%, rgba(61, 92, 62, 1) 100%);
    opacity: var(--hero-overlay-opacity, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding: var(--spacing-xl) var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: var(--hero-title-size, 3rem);
    font-weight: 700;
    margin: 0 0 var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 0 0 var(--spacing-lg);
    font-weight: 300;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #b8864a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/*--------------------------------------------------------------
Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .header-top {
        padding: var(--spacing-sm);
    }

    .site-branding {
        flex: 1;
        min-width: 0;
    }

    .site-title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-contact {
        flex-direction: column;
        gap: var(--spacing-sm);
        font-size: 0.85rem;
    }

    .main-navigation {
        flex-direction: column;
        padding: 0 var(--spacing-sm) var(--spacing-sm);
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--color-divider);
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-title {
        font-size: var(--hero-title-size, 2rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .site-description {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: var(--hero-title-size, 1.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
