/*
Theme Name: Shut up and swim 2026
Template: kt-acf
Author: the Jonas Koller
Description: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kt-acf
*/

/* Logo Styling */
.custom-logo-link svg, 
.custom-logo-link img {
    height: 64px;
    width: auto;
    max-width: 200px;

    display: block;
    overflow: visible;
}

.header-logo-container svg {
    color: var(--text);
}

.footer-logo-container svg {
    color: var(--white);
}

/* Ensure the logo container in header doesn't collapse or squeeze */
.header-logo-container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 64px;
}

/* WordPress Menu and Language Switcher Adaptations */

.main-nav ul {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    color: inherit;
    transition: color 140ms ease;
}

.main-nav a:hover, 
.main-nav a:focus-visible,
.main-nav .current-menu-item > a {
    color: var(--primary-red);
}

/* Submenu / Dropdown */
.main-nav li {
    position: relative;
}

.main-nav .sub-menu {
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius-m);
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    padding: 20px;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 140ms ease, visibility 140ms ease;
    visibility: hidden;
    width: max-content;
    z-index: 20;
    list-style: none;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-nav li:hover > .sub-menu, 
.main-nav li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Language Switcher */
.language-switcher-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher-container a {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: color 140ms ease;
}

.language-switcher-container a:hover,
.language-switcher-container .current-lang a {
    color: var(--primary-red);
}

/* Polylang list style reset */
.language-switcher-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

/* Mobile Nav Menu Adjustments */
.mobile-nav__menu-main {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav__menu-main li a {
    align-items: center;
    color: var(--heading);
    display: flex;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 600;
    justify-content: space-between;
    letter-spacing: .02em;
    line-height: 1;
    min-height: 68px;
    text-decoration: none;
    width: 100%;
}

/* Footer Meta Menu Styling */
.footer-meta ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-meta a {
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 140ms ease;
}

.footer-meta a:hover {
    opacity: 1;
}

@media (max-width: 760px) {
    .footer-meta ul {
        justify-content: center;
        gap: 16px;
    }
}
