/*
Theme Name: TradeCraft Child
Description: Child theme for TradeCraft
Author: Your Name
Template: tradecraft
Version: 1.0.0
*/

/* About text */
.about-text {
    padding: 20px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
body {
    background: linear-gradient(to bottom, #169133 60%, black);
    background-attachment: fixed;
    color: #fff;
    padding-top: 0;
    margin-top: 0;
}

/* Sticky header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    padding: 10px;
    text-align: center;
}

/* TradeCraft navigation bar tweak so the white logo shows up */
.navigation-007 {
    background: rgba(13, 13, 13, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    margin-top: 25px !important;
    margin-bottom: 25px !important;
    transition: margin-top 0.3s ease;
}

.navigation-007.scrolled {
    margin-top: 0 !important;
}

/* Hide mobile phone button on desktop, show right column button */
.navigation-007 .navigation-007-mobile-phone {
    display: none;
}
.navigation-007 .navigation-007-col-right {
    display: block;
}
.navigation-007-logo img {
    max-height: 60px;
    height: auto;
    width: auto;
    display: block;
    margin: 25px auto 0;
    animation: logoFadeIn 1.5s ease-in;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Banner logo animation */
.banner-logo-overlay {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    animation: bannerLogoAnimation 3s ease-out forwards;
}

.banner-logo-overlay img {
    display: block;
}

@keyframes bannerLogoAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0.05);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    66% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Mobile navigation layout */
@media only screen and (max-width: 781px) {
    .navigation-007 {
        transition: padding 0.3s ease, margin-top 0.3s ease;
    }
    .navigation-007.scrolled {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .navigation-007.scrolled .wp-block-group {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .navigation-007.scrolled .wp-block-columns {
        margin-bottom: 0 !important;
    }
    .navigation-007 .navigation-007-col-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        transition: transform 0.3s ease;
        padding-top: 15px;
    }
    .navigation-007.scrolled .navigation-007-col-left {
        transform: scale(0.6);
        margin: 0 !important;
        padding: 0 !important;
    }
    .navigation-007 .navigation-007-col-left .wp-block-social-links {
        margin: 0 !important;
    }
    .navigation-007-mobile-phone {
        display: flex !important;
        margin: 0 !important;
    }
    .navigation-007-mobile-phone .wp-block-button {
        margin: 0;
    }
    .navigation-007-mobile-phone .wp-block-button__link {
        padding: 8px 12px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        min-height: auto !important;
    }
    .navigation-007 .navigation-007-col-right {
        display: none !important;
    }
    .navigation-007 .navigation-007-col-mid {
        width: 100%;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        max-height: 200px;
        overflow: hidden;
    }
    .navigation-007.scrolled .navigation-007-col-mid {
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin: 0;
        pointer-events: none;
    }
    /* Change nav menu icon to text on mobile scroll */
    .navigation-007 .wp-block-navigation__responsive-container-open {
        transition: all 0.3s ease;
    }
    .navigation-007.scrolled .wp-block-navigation__responsive-container-open {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .navigation-007.scrolled .wp-block-navigation__responsive-container-open svg {
        display: none;
    }
    .navigation-007.scrolled .wp-block-navigation__responsive-container-open::after {
        content: "Show More";
        font-size: 12px;
        white-space: nowrap;
    }
    .navigation-007.scrolled .wp-block-navigation {
        margin: 0 !important;
        padding: 0 !important;
    }
    .navigation-007.scrolled .wp-block-group:last-child {
        padding-top: 2px !important;
    }
}

/* Sections */
.section-joinery {
    background: linear-gradient(rgba(0, 128, 0, 0.8), rgba(0, 128, 0, 0.8));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-pos {
    background: linear-gradient(rgba(165, 42, 42, 0.8), rgba(165, 42, 42, 0.8));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-garden {
    background: linear-gradient(rgba(255, 160, 122, 0.8), rgba(255, 160, 122, 0.8));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-tfs {
    background: linear-gradient(rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.8));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-partners {
    background: linear-gradient(rgba(0, 0, 255, 0.8), rgba(0, 0, 255, 0.8));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-about {
    background: linear-gradient(rgba(128, 0, 128, 0.8), rgba(128, 0, 128, 0.8));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-joinery:hover, .section-pos:hover, .section-garden:hover, .section-tfs:hover, .section-partners:hover, .section-about:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 24px 6px rgba(212, 175, 55, 0.55);
}

/* Video banner */
.video-banner {
    width: 100%;
    height: 500px;
    background: #000;
}

/* Google Map */
.google-map {
    width: 100%;
    height: 300px;
}

/* Contact form */
.contact-form {
    padding: 20px;
    background: #333;
}
