/*
Theme Name: Twenty Twenty-Five Child
Description: Child theme with custom header image and menu positioning
Template: twentytwentyfive
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* =Reset and Base Styles
-------------------------------------------------------------- */

html {
    margin-top: 0 !important;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =Header Layout Structure
-------------------------------------------------------------- */

#wrapper {
    margin: 0 auto;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

#header {
    position: relative;
    width: 100%;
    max-width: 1108px;
    margin: 0 auto;
    height: auto;
    min-height: 200px;
}

#header-image {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    height: auto;
    min-height: 200px;
}

#header-image img {
    width: 100%;
    max-width: 1108px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Above the circular text */
}

/* Circular text element */
#circular-text {
    position: absolute;
    top: 5%;
    right: 2%;
    width: 25%;
    height: 25%;
    max-width: 250px;
    max-height: 250px;
    min-width: 60px;
    min-height: 60px;
    margin-top: 10px;
    text-stroke: 2px black;
    -webkit-text-stroke: 2px black;
    z-index: 1;
    font-family: 'IM Fell English', serif;
    font-size: calc(9px + 1vw);
    color: black;
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

@keyframes spin { 
    100% { 
        transform: rotate(-360deg); 
    } 
}

/* =Menu Positioning in Yellow Band
-------------------------------------------------------------- */

#navi {
    position: absolute;
    top: 56.3%; /* Yellow band position (350px/622px) */
    left: 0;
    right: 0;
    height: 8%; /* Yellow band height (50px/622px) */
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

#navi ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

#navi ul li {
    display: inline-block;
    margin: 0 15px;
    padding: 0;
}

#navi ul li a {
    font-family: 'IM Fell English', serif;
    font-size: 23px;
    color: #000;
    text-stroke: 1px black;
    -webkit-text-stroke: 1px black;
    text-shadow: 2px 2px 3px #d0b551;
    text-decoration: none;
    line-height: 50px;
    display: block;
}

#navi ul li a:hover {
    color: #222;
    text-shadow: 2px 2px 6px #e1cd85;
    text-stroke: 1px #222;
    -webkit-text-stroke: 1px #222;
}

/* =Content Wrapper with Blue Area Overlap
-------------------------------------------------------------- */
#contentwrap {
    position: relative;
    top: -150px;
    z-index: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 980px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 400px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

#main {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =Mobile Navigation Setup
-------------------------------------------------------------- */

.mobile-nav, .burger-menu {
    display: none;
}

/* =Typography and Content Styling
-------------------------------------------------------------- */


#contentwrap h1, #contentwrap h2, #contentwrap h3 {
    color: #000cff;
    font-family: 'IM Fell English', serif;
    font-weight: bold;
    margin-bottom: 20px;
}

#contentwrap h1 {
    font-size: 36px;
    line-height: 1.2;
}

#contentwrap h2 {
    font-size: 28px;
    line-height: 1.3;
}

#contentwrap p {
    margin-bottom: 18px;
}

#contentwrap a {
    color: #6655EE;
    text-decoration: none;
}

#contentwrap a:hover {
    color: #3a3a38;
    text-decoration: underline;
}

/* =Responsive Design - Ordered by Screen Size
-------------------------------------------------------------- */

/* Mobile menu activation point - CONSOLIDATED VERSION */
@media screen and (max-width: 1080px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav, .burger-menu {
        display: block;
    }
    
    /* Burger menu styling */
    .burger-menu {
        position: fixed;
        top: 15px;
        left: 15px;
        cursor: pointer;
        z-index: 1000;
        background-color: rgba(0, 0, 0, 1);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .burger-lines {
        position: fixed;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        left: 15px;
        top: 15px;
        width: 60px;
        height: 60px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .burger-lines span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 3px 0;
        background-color: white;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* Burger menu animation to X */
    .burger-lines.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .burger-lines.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-lines.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Circle around X when active */
    .burger-lines.active {
        background-color: black /* rgba(255, 255, 255, 0.2);*/
        border: 2px solid white;
        border-radius: 50%;
        width: 60px;
        height: 60px;
    }
    
    /* Mobile navigation overlay */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.82);
        z-index: 10000;
        display: none;
        padding: 100px 20px 20px 20px;
    }
    
    .mobile-nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .mobile-nav ul li {
        display: block;
        margin: 30px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-nav ul li a {
        display: block;
		text-stroke: 0px white !important;
		-webkit-text-stroke: 0px !important;
		text-shadow: none !important;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-nav ul li a:hover {
        color: #ffff00;
		text-shadow: 1px 1px 8px white;
    }
    
    /* WordPress vertical navigation override - INTEGRATED */
    .mobile-nav .wp-block-navigation {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-nav .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }

    .mobile-nav .wp-block-navigation.is-responsive .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .mobile-nav .wp-block-navigation-item {
        display: block !important;
        width: 100% !important;
        margin: 15px 0 !important;
        flex: none !important;
    }

    .mobile-nav .wp-block-navigation-item__content {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        font-size: 36px !important;
        font-family: 'IM Fell English', serif !important;
        font-weight: 900 !important;
        color: white !important;
        padding: 20px 15px !important;
        text-decoration: none !important;
    }
    
    #contentwrap {
        width: 95%;
        top: -80px;
        padding: 20px 15px;
    }
}

/* Small screens */
@media screen and (max-width: 660px) {
    #header {
        height: auto;
        min-height: 180px;
    }
    
    #header-image {
        height: auto;
    }
    
    #header-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    #contentwrap {
        top: -50px;
        width: 92%;
        padding: 15px 10px;
    }
}

/* Ensure desktop menu shows on large screens */
@media screen and (min-width: 1081px) {
    .desktop-nav {
        display: block;
    }
    .mobile-nav, .burger-menu {
        display: none;
    }
}