/*
 Theme Name:   Twenty Nineteen Child
 Template:     twentynineteen
*/

/* ========== ШАПКА ========== */
.custom-fixed-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #A8774E !important;
    padding: 0;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Логотип */
.site-branding {
    display: flex;
    align-items: center;
    margin: 0;
    flex: 0 0 auto;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff !important;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-paw {
    width: 35px;
    height: 35px;
    margin-left: 8px;
}

/* Отдельный телефон (виден только на мобильных) */
.header-phone {
    display: none;
    margin: 0 15px;
}

.header-phone a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

/* ========== НАВИГАЦИЯ ========== */
.main-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Кнопка-гамбургер */
.menu-toggle {
    display: none !important;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    background-color: #fff;
    display: block;
    height: 2px;
    width: 24px;
    border-radius: 2px;
    transition: all 0.3s;
    content: "";
    position: relative;
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Меню */
.main-navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 10px;
    position: relative;
    list-style: none !important;
}

.main-navigation a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 10px;
    transition: opacity 0.3s;
    display: inline-block;
}

.main-navigation a:hover {
    opacity: 0.8;
}

/* Пункт телефона внутри меню (скрыт на мобильных) */
.main-navigation .header-phone {
    display: inline-block;
    margin: 0;
}

.main-navigation .header-phone a {
    font-weight: 600;
}

/* Кнопка "Хочу щеночка" внутри меню */
.header-btn .btn-puppy {
    background-color: #fff !important;
    color: #A8774E !important;
    padding: 10px 20px !important;
    border-radius: 7px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s;
    border: 2px solid #fff;
    white-space: nowrap;
}

.header-btn .btn-puppy:hover {
    background-color: transparent !important;
    color: #fff !important;
}

/* Отступ контента */
.site-content {
    padding-top: 80px;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    /* Показываем отдельный телефон */
    .header-phone {
        display: block;
        order: 2;
    }

    .site-branding {
        order: 1;
        flex: 1;
    }

    /* Навигация */
    .main-navigation {
        order: 3;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    /* Показываем гамбургер */
    .menu-toggle {
        display: block !important;
    }

    /* Скрываем обычное горизонтальное меню */
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #A8774E;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
        border-radius: 0 0 7px 7px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    /* Когда меню открыто (класс toggled) */
    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation li {
        margin: 5px 0;
        width: 100%;
    }

    .main-navigation a {
        padding: 10px 0;
        width: 100%;
        display: block;
        font-size: 16px;
    }

    /* Скрываем телефон внутри выпадающего меню (он уже снаружи) */
    .main-navigation .header-phone {
        display: none;
    }

    /* Кнопка внутри меню */
    .header-btn .btn-puppy {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        padding: 12px 20px !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }
    .logo-paw {
        width: 28px;
        height: 28px;
    }
    .header-phone a {
        font-size: 14px;
    }
}