/**
 * Hero Section Styles
 * 
 * @package ChildTheme_Clean
 */

.hero-section {
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Break out of site-content padding and margins to be full-width */
.site-content .hero-section,
#content .hero-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    position: relative;
    left: 0;
    right: 0;
}

/* Remove top margin/padding to start right after header */
.site-content>.hero-section:first-child,
#content>.hero-section:first-child {
    margin-top: 0;
}

/* Ensure site-content has no top padding when hero is first */
.site-content:has(> .hero-section:first-child),
#content:has(> .hero-section:first-child) {
    padding-top: 0 !important;
}

/* Ensure no spacing from parent */
body .hero-section,
.page .hero-section {
    margin: 0;
    padding: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .hero-section {
        height: calc(100vh - 56px);
        min-height: calc(100vh - 56px);
        background-size: cover;
        background-position: center center;
    }

    .site-content .hero-section,
    #content .hero-section {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        margin-top: 0;
    }
}

/* Hero Text Overlay */
.hero-section {
    position: relative;
}

.hero-title,
.hero-subtitle,
.hero-button {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #666;
    margin: 0 0 1.5rem 0;
    text-align: center;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color, #245c2a);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color, #245c2a);
    padding-bottom: 4px;
    text-align: center;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .hero-section {
        height: calc(100vh - var(--header-height, 80px));
        min-height: 600px;
        background-size: cover;
        background-position: center center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}