/* 
Theme Name: Masters Academy
Version: 1.0
Description: A custom theme for Masters Academy
Author: Christopher Sharp
*/


:root {
    --color-primary: #0888c9;
    --color-primary-light: #0888c999;
    --color-primary-super-light: #0888c922;
    --color-secondary: #A3320B;
    --color-light: white;
    --color-light-gray: #dfdfdf;
    --color-dark: #2E2F2F;
}

body {
    width: 100%;
    background-color: var(--color-light-gray);
    padding-top: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    padding-left: 1.5rem; 
    list-style: disc;
}
  
ul ul {
    list-style: circle;
}

ol {
    padding-left: 1.5rem;
    list-style: decimal;
}

.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
font-family: "Poppins", sans-serif;
font-weight: 400;
font-style: normal;
}

.poppins-medium {
font-family: "Poppins", sans-serif;
font-weight: 500;
font-style: normal;
}

.poppins-semibold {
font-family: "Poppins", sans-serif;
font-weight: 600;
font-style: normal;
}

.poppins-bold {
font-family: "Poppins", sans-serif;
font-weight: 700;
font-style: normal;
}

.poppins-extrabold {
font-family: "Poppins", sans-serif;
font-weight: 800;
font-style: normal;
}

.poppins-black {
font-family: "Poppins", sans-serif;
font-weight: 900;
font-style: normal;
}

.poppins-thin-italic {
font-family: "Poppins", sans-serif;
font-weight: 100;
font-style: italic;
}

.poppins-extralight-italic {
font-family: "Poppins", sans-serif;
font-weight: 200;
font-style: italic;
}

.poppins-light-italic {
font-family: "Poppins", sans-serif;
font-weight: 300;
font-style: italic;
}

.poppins-regular-italic {
font-family: "Poppins", sans-serif;
font-weight: 400;
font-style: italic;
}

.poppins-medium-italic {
font-family: "Poppins", sans-serif;
font-weight: 500;
font-style: italic;
}

.poppins-semibold-italic {
font-family: "Poppins", sans-serif;
font-weight: 600;
font-style: italic;
}

.poppins-bold-italic {
font-family: "Poppins", sans-serif;
font-weight: 700;
font-style: italic;
}

.poppins-extrabold-italic {
font-family: "Poppins", sans-serif;
font-weight: 800;
font-style: italic;
}

.poppins-black-italic {
font-family: "Poppins", sans-serif;
font-weight: 900;
font-style: italic;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    padding: 2rem;
    background-color: var(--color-light-gray);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-dark);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    padding-right: 3.5rem;
}

.custom-logo {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    display: block !important;
    
    /* White tint by default */
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Show original colors on hover */
.custom-logo-link:hover .custom-logo {
    filter: none;
}

/* Home page logo styling - show original colors */
.custom-logo-link.home-logo .custom-logo {
    filter: none;
}

/* Home page logo hover - show original colors (same as default) */
.custom-logo-link.home-logo:hover .custom-logo {
    filter: none;
}

.site-title {
    margin: 0;
    line-height: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
}

.site-title a {
    text-decoration: none;
    color: var(--color-light);
    display: flex;
    flex-direction: column;
}

.site-title a:hover {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.title-main {
    font-size: 1.5rem;
    line-height: 1.2;
}

.title-sub {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #666;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 24px;
    height: 24px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-light);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-light);
    transition: all 0.3s ease;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.nav-wrapper {
    display: flex;
    justify-content: flex-start;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-light);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    line-height: 1;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu .current-menu-item > a {
    color: var(--color-primary);
    position: relative;
}

/* Submenu Styles */
.nav-menu .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--color-dark);
    min-width: 200px;
    box-shadow: 0 0px 4px rgba(0,0,0,0.5);
    z-index: 1000;
    list-style: none;
    border-radius: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Desktop hover behavior */
@media screen and (min-width: 769px) {
    .nav-menu li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-wrapper {
        margin-right: 2rem;
    }

    .header-content {
        justify-content: center;
    }
}

.nav-menu .sub-menu li {
    padding: 0.5rem 1rem;
    margin: 0;
    list-style: none;
    text-align: center;
    padding-left: 0.5rem;
}

.nav-menu .sub-menu a {
    padding: 0.5rem 1rem;
    padding-left: 0;
    text-align: center;
    white-space: nowrap;
}

/* Arrow for items with submenu */
.nav-menu .menu-item-has-children > a {
    padding-right: 1.2rem;
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

/* Desktop arrow rotation */
@media screen and (min-width: 769px) {
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-y: scroll;
        padding-right: 0;
    }

    body.menu-open {
        overflow-y: scroll;
        padding-right: 0;
    }

    .menu-toggle {
        display: block;
        margin-right: 1rem;
        z-index: 1002;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-dark);
        padding: 4rem 1rem 1rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow-y: auto;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
        transform: translateY(-10px);
    }

    /* Submenu Styles */
    .nav-menu .sub-menu {
        display: none;
        margin-top: 0.5rem;
        position: absolute;
        left: 0;
        width: 100%;
        background: var(--color-dark);
        box-shadow: 0 2px 4px rgba(0,0,0,0.5);
        text-align: left;
        list-style: none;
        padding: 0 1rem;
        margin: 0;
    }

    .nav-menu .sub-menu::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        background: var(--color-accent);
    }

    .nav-menu .menu-item-has-children {
        position: relative;
    }

    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: block;
    }

    .nav-menu .menu-item-has-children > a::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        font-size: 1.2em;
    }

    .nav-menu .menu-item-has-children.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .nav-menu .menu-item-has-children.active > .sub-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
    }

    .nav-menu .sub-menu a {
        padding: 0.5rem 0;
        font-size: 1em;
        opacity: 0.8;
        display: block;
        width: 100%;
    }

    .nav-menu .sub-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .footer-copyright {
        display: none;
    }
}


.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-dark);
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-title {
    margin: 0;
    font-size: 1.5rem;
}

.footer-title a {
    text-decoration: none;
    color: var(--color-light);
}

.footer-navigation {
    margin: 1rem 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-menu a {
    text-decoration: none;
    color: var(--color-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--color-primary);
}

.footer-copyright {
    color: var(--color-light);
    font-size: 0.9rem;
}

@media screen and (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.wpcf7 {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--color-light);
}

.wpcf7-response-output {
    margin: 1rem 0 !important;
    padding: 1rem !important;
    border-radius: 4px !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: var(--color-light);
    border-color: var(--color-light) !important;
    color: var(--color-dark);
}

.wpcf7 form.failed .wpcf7-response-output {
    background: #f8d7da;
    border-color: #f5c6cb !important;
    color: #721c24;
}

.form-title {
    text-align: center;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 4px;
}

.site-content {
    flex: 1;
    margin-top: 0;
    padding: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
    background-color: var(--color-light-gray);
}

.site-footer {
    flex-shrink: 0;
    background: var(--color-dark);
    padding: 1rem 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    margin-top: auto;
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: left;
}

.page-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: left;
    margin-bottom: 1rem;
}


.site-header.hide {
    transform: translateY(-100%);
}

.color-primary {
    color: var(--color-primary);
}

.color-light {
    color: var(--color-light);
}

.color-dark {
    color: var(--color-dark);
}

.color-secondary {
    color: var(--color-secondary);
}

.btn {
    background: var(--color-primary);
    color: white;
    padding: 1rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    flex-direction: column;
}

.btn:hover {
    background: var(--color-primary-light);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.home-picture {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    object-position: top;
    margin: 0 auto;
    border-radius: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.home-buttons-container {
    position: absolute;
    bottom: 0 ;
    left: 7.5%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    width: 50%;
}

.back-to-shop {
    text-decoration: none;
    color: var(--color-dark);
    transition: opacity 0.3s ease;
}

.back-to-shop:hover {
    opacity: 0.7;
}

/* Desktop/Laptop Styles */
@media screen and (min-width: 769px) {
    .site-content {
        margin: 0 100px;
        padding: 1rem;
        max-width: var(--container-width);
        background-color: var(--color-light-gray);
    }

    .header-container {
        margin: 0 100px;
        padding: 0 1rem;
        max-width: var(--container-width);
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-right: 1rem;
        z-index: 1002;
    }

    body.menu-open {
        overflow-y: scroll;
        padding-right: 0;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-dark);
        padding: 4rem 1rem 1rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow-y: auto;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Submenu Styles */
    .nav-menu .sub-menu {
        display: none;
        margin-top: 0.5rem;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        background: var(--color-dark);
        box-shadow: 0 2px 4px rgba(0,0,0,0.5);
        height: 500;
        transform: translateX(0%);
        text-align: left;
        list-style: none;
        padding: 0 1rem;
        margin: 0;
    }

    .nav-menu .sub-menu::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        background: var(--color-accent);
    }

    .nav-menu .menu-item-has-children {
        position: relative;
    }

    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: block;
    }

    .nav-menu .menu-item-has-children > a::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        font-size: 1.2em;
    }

    .nav-menu .menu-item-has-children.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .nav-menu .menu-item-has-children.active > .sub-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
    }

    .nav-menu .sub-menu a {
        padding: 0.5rem 0;
        font-size: 1em;
        opacity: 0.8;
        display: block;
        width: 100%;
    }

    .nav-menu .sub-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .footer-copyright {
        display: none;
    }
}

/* 404 Error Page Styles */
.error-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem 0;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.error-description {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-search {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-light-gray);
}

.error-search h3 {
    margin-bottom: 1rem;
    color: var(--color-dark);
    font-size: 1.2rem;
}

/* Mobile Styles for 404 Page */
@media screen and (max-width: 768px) {
    .error-title {
        font-size: 4rem;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .error-search .search-form {
        flex-direction: column;
    }
    
    .error-search .search-submit {
        width: 100%;
    }
}
