/*
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: 'Asul', 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: -20px; /* align inside the board */
    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: -50px;
    z-index: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.3);
    width: 80%;
    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;
}

/* =Animated Gradient Keyframes
-------------------------------------------------------------- */

@keyframes gradientShift {
    0% {
        background: linear-gradient(11deg, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
    }
    25% {
        background: linear-gradient(101deg, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
    }
    50% {
        background: linear-gradient(191deg, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
    }
    75% {
        background: linear-gradient(281deg, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
    }
    100% {
        background: linear-gradient(11deg, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
    }
}

@keyframes gradientPulse {
    0%, 100% {
        background-size: 200% 200%;
        background-position: 0% 50%;
    }
    50% {
        background-size: 250% 250%;
        background-position: 100% 50%;
    }
}

/* =Typography and Content Styling with Animated Gradients
-------------------------------------------------------------- */

#contentwrap h1, #contentwrap h2, #contentwrap h3 {
    font-family: 'Asul', serif;
    font-weight: bold;
    margin-bottom: 20px;
}

h1, h2 {
background: #634953;
background: radial-gradient(circle,rgba(99, 73, 83, 1) 0%, rgba(87, 119, 150, 1) 100%);
  font-weight: 600;
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animatedTextGradient 1.5s linear infinite;
}
@keyframes animatedTextGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

#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 - FROSTED GLASS VERSION */
@media screen and (max-width: 1080px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav, .burger-menu {
        display: block;
    }
    #contentwrap h1 {
    	font-size: 32px;
	}

	#contentwrap h2 {
    	font-size: 24px;
	}
    
    /* 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;
        border: 2px solid white;
        border-radius: 50%;
        width: 60px;
        height: 60px;
    }
    
    /* FROSTED GLASS MOBILE NAVIGATION OVERLAY */
    .mobile-nav {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        height: 90vh;
        
        /* Frosted glass effect */
        background: rgba(255, 255, 255, 0.57);
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(7.2px);
        -webkit-backdrop-filter: blur(7.2px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        
        z-index: 10000;
        display: none;
        padding: 80px 20px 20px 20px;
        box-sizing: border-box;
    }
    
    .mobile-nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Traditional navigation styles (for fallback) */
    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
        height: 40vh; /* Container height for absolute positioning */
        top: -100px;
    }
    
    .mobile-nav ul li {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-nav ul li a {
        display: block;
        text-stroke: 1px rgba(0, 0, 0, 0.3) !important;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3) !important;
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8) !important;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        font-size: 36px !important;
        font-family: 'Asul', serif !important;
        font-weight: 900 !important;
        color: rgba(0, 0, 0, 0.8) !important;
        padding: 20px 15px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-nav ul li a:hover {
        color: rgba(0, 0, 0, 1) !important;
        text-shadow: 2px 2px 6px rgba(255, 255, 255, 1) !important;
        text-stroke: 1px rgba(0, 0, 0, 0.5) !important;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5) !important;
        transform: scale(1.05);
    }
    
    /* WordPress Block Navigation Setup */
    .mobile-nav .wp-block-navigation {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        height: 40vh !important; /* Container height for absolute positioning */
    }

    .mobile-nav .wp-block-navigation__container,
    .mobile-nav .wp-block-navigation__responsive-container,
    .mobile-nav .wp-block-navigation__responsive-container-content,
    .mobile-nav .wp-block-page-list {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        height: 40vh !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .mobile-nav .wp-block-navigation.is-responsive .wp-block-navigation__container {
        display: block !important;
        width: 100% !important;
        position: relative !important;
    }
    
    /* Hide responsive toggle buttons */
    .mobile-nav .wp-block-navigation__responsive-container-open,
    .mobile-nav .wp-block-navigation__responsive-container-close {
        display: none !important;
    }

    /* WordPress Block Navigation Items */
    .mobile-nav .wp-block-navigation-item,
    .mobile-nav .wp-block-pages-list__item {
        display: block !important;
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-nav .wp-block-navigation-item__content,
    .mobile-nav .wp-block-pages-list__item__link {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        font-size: 36px !important;
        font-family: 'Asul', serif !important;
        font-weight: 400 !important;
        color: rgba(0, 0, 0, 0.8) !important;
        padding: 20px 15px !important;
        text-decoration: none !important;
        text-stroke: 1px rgba(0, 0, 0, 0.3) !important;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3) !important;
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8) !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-nav .wp-block-navigation-item__content:hover,
    .mobile-nav .wp-block-pages-list__item__link:hover {
        color: rgba(0, 0, 0, 1) !important;
        text-shadow: 2px 2px 6px rgba(255, 255, 255, 1) !important;
        text-stroke: 1px rgba(0, 0, 0, 0.5) !important;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5) !important;
        transform: scale(1.05);
    }
    
    /* ===== ABSOLUTE POSITIONING WITH CLEAN ANIMATIONS ===== */
    
    /* Fade in from left with letter spacing animation */
    @keyframes fadeInFromLeft {
        0% {
            opacity: 0;
            transform: translateX(-60px);
            letter-spacing: 0.3em;
        }
        50% {
            opacity: 0.7;
            transform: translateX(-20px);
            letter-spacing: 0.1em;
        }
        100% {
            opacity: 1;
            transform: translateX(0);
            letter-spacing: normal;
        }
    }
    
    /* Apply letter spacing and breathing effect to all menu text */
    .mobile-nav a,
    .mobile-nav .wp-block-navigation-item__content,
    .mobile-nav .wp-block-pages-list__item__link {
        letter-spacing: normal;
        transition: letter-spacing 0.3s ease;
        animation: gentleBreathing 4s ease-in-out infinite;
    }
    
    /* Subtle breathing animation - very minimal */
    @keyframes gentleBreathing {
        0%, 100% {
            transform: scale(1);
            letter-spacing: normal;
            font-weight: 900;
        }
        50% {
            transform: scale(1.02);
            letter-spacing: 0.02em;
            font-weight: 700;
        }
    }
    
    #contentwrap {
        width: 80%;
        top: -50px;
        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: 80%;
        padding: 15px 10px;
    }
    
    /* Adjust frosted glass menu for small screens */
    .mobile-nav {
        width: 95vw;
        height: 95vh;
        padding: 60px 15px 15px 15px;
    }
        #contentwrap h1 {
    	font-size: 28px;
	}

	#contentwrap h2 {
    	font-size: 22px;
	}
}

/* Ensure desktop menu shows on large screens */
@media screen and (min-width: 1081px) {
    .desktop-nav {
        display: block;
    }
    .mobile-nav, .burger-menu {
        display: none;
    }
}
@media screen and (max-width: 420px) {    
    #contentwrap {
        top: -20px;
        width: 80%;
        padding: 15px 10px;
    }
        #contentwrap h1 {
    	font-size: 26px;
	}

	#contentwrap h2 {
    	font-size: 20px;
	}
}

/* cf7 Form design */
.wpcf7 input, .wpcf7 textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    box-shadow: inset 0px 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.wpcf7 input:focus, .wpcf7 textarea:focus {
    border-color: #f66444;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.2);
}

#wpcf7-neu {
    font-size: 8px;
    font-weight: 600;
    color: red;
    border: solid 2px red;
}

/* Styled Submit Button with Animated Gradient */
.styled-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(11deg, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    box-shadow: 0px 5px 10px rgba(148, 187, 233, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    animation: gradientShift 8s ease-in-out infinite, gradientPulse 4s ease-in-out infinite;
}

.styled-submit-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0px 8px 20px rgba(148, 187, 233, 0.6);
}

.styled-submit-btn:active {
    transform: scale(0.98);
    box-shadow: 0px 3px 8px rgba(148, 187, 233, 0.4);
}

/* WordPress Buttons - Same styling as CF7 buttons */
.wp-block-button__link,
.wp-element-button {
    width: 100% !important;
    padding: 15px !important;
    font-size: 20px !important;
    color: #fff !important;
    background: linear-gradient(11deg, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%) !important;
    background-size: 200% 200% !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0px 5px 10px rgba(148, 187, 233, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    animation: gradientShift 8s ease-in-out infinite, gradientPulse 4s ease-in-out infinite !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    opacity: 0.9 !important;
    transform: scale(1.02) !important;
    box-shadow: 0px 8px 20px rgba(148, 187, 233, 0.6) !important;
    color: #fff !important;
}

.wp-block-button__link:active,
.wp-element-button:active {
    transform: scale(0.98) !important;
    box-shadow: 0px 3px 8px rgba(148, 187, 233, 0.4) !important;
}

/* Override WordPress default button styling */
.wp-block-button {
    margin: 20px 0 !important;
}

.wp-block-buttons {
    gap: 15px !important;
}

/* Error and Success Messages */
.wpcf7-response-output {
    background-color: #ffffff; /* Match the color scheme */
    color: #000000; /* White text */
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    border-radius: 10px;
    border: 5px solid #7edaf4;
    transition: all 0.5s ease;
}

.wpcf7-validation-errors {
    background-color: #ff000a;
    color: white;
    border: 2px solid #ff000a;
    box-shadow: 0px 5px 10px rgba(255, 0, 0, 0.2);
}

.wpcf7-mail-sent-ok {
    background: linear-gradient(
        to right,
        rgba(238, 174, 202, 1) 20%,
        rgba(148, 187, 233, 1) 30%,
        rgba(238, 174, 202, 1) 70%,
        rgba(148, 187, 233, 1) 80%
    );
    background-size: 500% auto;
    color: white;
    border: 2px solid rgba(148, 187, 233, 1);
    box-shadow: 0px 5px 10px rgba(148, 187, 233, 0.4);
    animation: textShine 8s ease-in-out infinite alternate, wobble 0.8s ease-out;
}

@keyframes wobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25px) rotate(-5deg); }
    30% { transform: translateX(20px) rotate(3deg); }
    45% { transform: translateX(-15px) rotate(-3deg); }
    60% { transform: translateX(10px) rotate(2deg); }
    75% { transform: translateX(-5px) rotate(-1deg); }
    100% { transform: translateX(0%); }
}