/**
 * Hero Working Solution
 * Now that we know CSS is applying, let's fix the hero properly
 */

/* Import Irish-inspired fonts */
@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Celtic+Garamond&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sorts+Mill+Goudy:ital@0;1&display=swap');

/* Apply background image directly to page-header */
body.home .page-header {
    position: relative !important;
    min-height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    margin-bottom: 40px !important;
    overflow: hidden !important;
    /* Remove any existing background */
    background: none !important;
}

/* Add image as a pseudo-element to ensure it displays */
body.home .page-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url('http://localhost:10018/wp-content/uploads/2025/06/IMG_1809-optimized.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
    display: block !important;
}

/* Add overlay for better text readability */
body.home .page-header::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%) !important;
    z-index: 1 !important;
    display: block !important;
}

/* Make title visible and styled */
body.home .page-header .page-title {
    /* Reset any hiding */
    visibility: visible !important;
    text-indent: 0 !important;
    overflow: visible !important;
    
    /* Typography */
    color: white !important;
    font-family: 'Uncial Antiqua', cursive !important;
    font-size: 0 !important; /* Hide original text */
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    
    /* Layout */
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
}

/* Add WildRover text with Irish font */
body.home .page-header .page-title::before {
    content: 'WildRover' !important;
    font-size: 4.2rem !important;
    display: block !important;
    color: white !important;
    font-family: 'Uncial Antiqua', cursive !important;
    font-weight: normal !important;
    letter-spacing: 2px !important;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8) !important;
    text-transform: none !important; /* Prevent all caps */
}

/* Add tagline with elegant serif */
body.home .page-header .page-title::after {
    content: 'Your Guide To Trekking In Ireland' !important;
    display: block !important;
    font-size: 1.6rem !important;
    font-family: 'Sorts Mill Goudy', 'Cardo', Georgia, serif !important;
    font-style: italic !important;
    color: white !important;
    margin-top: 15px !important;
    letter-spacing: 1px !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7) !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body.home .page-header {
        min-height: 300px !important;
        padding: 40px 20px !important;
    }
    
    body.home .page-header .page-title::before {
        font-size: 2.8rem !important;
        letter-spacing: 1px !important;
    }
    
    body.home .page-header .page-title::after {
        font-size: 1.2rem !important;
        margin-top: 10px !important;
    }
}