/*
Theme Name: Błękitny Anioł*PL - Layout
Description: Motyw hodowli kotów Neva Masquerade - Blękitny Anioł*PL. Kompatybilny z Elementorem.
Version: 1.0.0
Author: Blękitny Anioł*PL
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: blekitny-aniol
Tags: full-width, custom-menu, elementor
*/

/* === RESET === */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
}

/* === FULL WIDTH DLA ELEMENTORA === */

.site-main {
    margin: 0;
    padding: 0;
    width: 100%;
}

.site-main .elementor {
    width: 100%;
}

/* === STOPKA === */

.ba-site-footer {
    margin: 0;
    padding: 0;
    width: 100%;
}

.ba-site-footer .elementor {
    width: 100%;
}

/* === NAGŁÓWEK === */

.ct-header {
    background: url('assets/images/top_bg.jpg') no-repeat bottom center;
    background-size: cover;
    width: 100%;
    min-height: 515px;
    clip-path: polygon(0 80%, 0 0, 100% 0, 100% 100%);
}

/* === NAWIGACJA / MENU === */

.ct-menu {
    background: #547aa5;
    border-bottom: 1px solid rgba(123, 97, 68, 0.5);
    backdrop-filter: blur(2px);
    min-height: 100px;
    width: 100%;
}

.ct-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    text-align: center;
}

.ct-menu li a {
    display: block;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    color: #2d3840;
    line-height: 100px;
    text-decoration: none;
    text-transform: uppercase;
}

.ct-menu li a:hover,
.ct-menu li a:focus {
    color: #96d6ff;
}

/* === LOGO MOBILNE === */

.ct-logo-mobile {
    width: 250px;
    position: absolute;
    height: 100px;
    display: block;
    background-image: url('assets/images/logo.png');
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

/* === LOGO DESKTOPOWE === */

@media (min-width: 1000px) {
    .ct-logo {
        content: "";
        background-image: url('assets/images/logo.png');
        background-repeat: no-repeat;
        background-position: 100% 50%;
        height: 450px;
    }
}

/* === MENU - domyślnie ukryte (mobile first) === */

.ct-menu .menu {
    clear: both;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

/* === HAMBURGER ICON === */

.ct-menu .menu-icon {
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 50px 50px;
    position: relative;
    user-select: none;
    background: none;
    border: none;
    outline: none;
}

.ct-menu .menu-icon .navicon {
    background: #333;
    display: block;
    height: 3px;
    position: relative;
    transition: background 0.2s ease-out;
    width: 18px;
}

.ct-menu .menu-icon .navicon::before,
.ct-menu .menu-icon .navicon::after {
    background: #333;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
    width: 100%;
}

.ct-menu .menu-icon .navicon::before {
    top: 5px;
}

.ct-menu .menu-icon .navicon::after {
    top: -5px;
}

/* === HAMBURGER TOGGLE (JS klasa .menu-open) === */

.ct-menu.menu-open .menu {
    /* max-height ustawiany dynamicznie przez JS (scrollHeight) */
}

.ct-menu.menu-open .menu-icon .navicon {
    background: transparent;
}

.ct-menu.menu-open .menu-icon .navicon::before {
    transform: rotate(-45deg);
    top: 0;
}

.ct-menu.menu-open .menu-icon .navicon::after {
    transform: rotate(45deg);
    top: 0;
}

/* === SEKCJA KOT + LOGO DESKTOPOWE === */

.ct-header-cat {
    background-image: url('assets/images/cat.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    min-height: 449px;
    max-width: 1200px;
    margin: auto;
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

/* === OBRAZY W EDYTORZE TEKSTU ELEMENTORA === */

.elementor-widget-text-editor img {
    max-width: 100%;
    height: auto;
}

/* === LINKI W TREŚCI === */

a {
    color: #3d74b1;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #36b9fc;
}

/* === RESPONSYWNOŚĆ === */

/* Mobile: < 768px (48em) */
@media (max-width: 48em) {
    .ct-header-cat {
        background-position: center bottom;
    }

    .ct-menu li a {
        line-height: 90px;
    }
}

/* Tablet/Desktop: >= 768px (48em) */
@media (min-width: 48em) {

    .ct-logo-mobile {
        display: none;
        visibility: hidden;
    }

    .ct-menu li {
        float: left;
        text-align: center;
    }

    .ct-menu li a {
        padding: 0px 30px;
    }

    .ct-menu .menu {
        clear: none;
        display: flex;
        justify-content: center;
        max-height: none;
        overflow: visible;
    }

    .ct-menu .menu-icon {
        display: none;
    }
}
