/* ===== HEADER ===== */
.header {
    width: 100%;
    position: fixed;
    z-index: 100;
    background: var(--color-white);
}

@media screen and (max-width: 767px) {
    .header {
        background-color: var(--color-white);
    }
}

/* --- Top bar --- */
.header__top {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2.6rem 0 1.6rem 0;
    border-bottom: max(1px, 0.1rem) solid #26316A;
}

.header__nav::after,
.header__top::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    right: 0;
    background-color: var(--color-white);
    pointer-events: none;
    width: 50%;
    z-index: 0;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    display: block;
    height: 2.4rem;
    width: auto;
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    margin-left: 4rem;
}

.header__contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: var(--font-size-13);
    font-weight: var(--font-weight-regular);
    color: var(--color-navy-dark);
    white-space: nowrap;
    transition: color 0.2s;
}

.header__contact-item:hover {
    color: var(--color-gold);
}

.header__icons {
    display: flex;
    align-items: center;
    gap: max(1.5rem, 15px);
    margin-left: auto;
}

.header__icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max(33px, 3.3rem);
    height: max(33px, 3.3rem);
    border-radius: 50%;
    color: var(--color-navy-dark);
    transition: background 0.2s, color 0.2s;
}

.header__icon-link path,
.header__icon-link circle {
    transition: fill .3s ease;
}

.header__icon-link:hover circle {
    fill: var(--color-gold);
}

.header__icon-link:hover path {
    fill: var(--color-navy-dark);
}


/* --- Hamburger --- */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-navy-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Desktop nav --- */
.header__nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 1.8rem 0;
    border-bottom: max(1px, 0.1rem) solid #26316A;
}

.header__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__menu li {
    position: relative;
}

.header__menu li a {
    display: block;
    padding: 1.8rem 1.6rem;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-light);
    color: #131E46;
    transition: color 0.2s;
}

@media screen and (min-width: 768px) {
    .header__menu li:first-child a {
        padding-left: 0;
    }
}

.header__menu li a:hover {
    color: var(--color-gold);
}

.header__menu li.current-menu-item>a,
.header__menu li.current_page_item>a {
    font-weight: var(--font-weight-semibold);
}

/* Desktop submenu */
.header__menu li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 20rem;
    background: var(--color-white);
    box-shadow: 0 0.8rem 2.4rem rgba(9, 17, 51, 0.1);
    border-radius: 0.4rem;
    padding: 0.8rem 0;
    list-style: none;
    z-index: 10;
}

.header__menu li:hover>.sub-menu {
    display: block;
}

.header__menu li .sub-menu li a {
    padding: 1rem 2rem;
    font-size: var(--font-size-13);
    white-space: nowrap;
}

/* CTA */
.header__cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-13);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 1.8rem 0;
    transition: color 0.2s;
}

body:not(.home) .header .header__cta,
.header:not(.header--top) .header__cta{
    color: var(--color-navy-dark);
}

.header__cta path {
    transition: fill 0.2s;
}

body:not(.home) .header .header__cta:hover,
.header:not(.header--top) .header__cta:hover,
.header__cta:hover {
    color: var(--color-gold);
}

body:not(.home) .header .header__cta path,
.header:not(.header--top) .header__cta path{
    fill: var(--color-navy-dark);
}

body:not(.home) .header .header__cta:hover path,
.header:not(.header--top) .header__cta:hover path,
.header__cta:hover path {
    fill: var(--color-gold);
}

/* ===== MOBILE MENU ===== */
.header__mobile {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 1.2rem 3.2rem rgba(9, 17, 51, 0.12);
    overflow: hidden;
    z-index: 99;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.header__mobile.is-open {
    max-height: 100vh;
    opacity: 1;
    visibility: visible;
}

.header__mobile-inner {
    margin: 0 auto;
    padding: 2.4rem 0 3.2rem;
    transform: translateY(-1rem);
    opacity: 0;
    transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s;
}

.header__mobile.is-open .header__mobile-inner {
    transform: translateY(0);
    opacity: 1;
}

.header__mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__mobile-menu li a {
    display: block;
    padding: 1.4rem 0;
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-regular);
    color: var(--color-navy-dark);
    border-bottom: 0.1rem solid var(--color-border-gray, #EEF0F3);
    transition: color 0.2s;
}

.header__mobile-menu li a:hover {
    color: var(--color-gold);
}

.header__mobile-menu li.current-menu-item>a,
.header__mobile-menu li.current_page_item>a {
    font-weight: var(--font-weight-semibold);
}

.header__mobile-menu li .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.6rem;
}

.header__mobile-menu li .sub-menu li a {
    font-size: var(--font-size-14);
    padding: 1rem 0;
}

/* Mobile CTA */
.header__mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.4rem;
    padding: 1.4rem 2.8rem;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: var(--font-size-13);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    border-radius: 0.4rem;
    transition: background 0.2s;
}

.header__mobile-cta:hover {
    background: var(--color-navy-dark);
}

/* Mobile contact */
.header__mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 0.1rem solid var(--color-border-gray, #EEF0F3);
}

.header__mobile-contact a {
    font-size: var(--font-size-14);
    color: var(--color-navy-dark);
    transition: color 0.2s;
}

.header__mobile-contact a:hover {
    color: var(--color-gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header__top {
        gap: 2rem;
        padding: 1.4rem 0;
    }

    .header__contact {
        gap: 1.6rem;
    }

    .header__menu li a {
        padding: 1.6rem 1.4rem;
        font-size: var(--font-size-13);
    }

    .header__cta {
        font-size: var(--font-size-12);
        letter-spacing: 0.1rem;
    }
}

@media (max-width: 768px) {
    .header__contact {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__nav {
        display: none;
    }

    .header__top {
        padding: 1.2rem 0;
        gap: 0;
        border-bottom: unset;
    }
}

/* ===== HEADER SCROLLED STATE ===== */
.header {
    transition: background 0.3s ease;
}

body.home .header.header--top {
    background: transparent;
    box-shadow: none;
}

@media screen and (max-width: 768px){
    body.home .header.header--top {
        background-color: var(--color-white);
    }
}

.header--scrolled .header__top {
    padding: 1.4rem 0 1rem 0;
    transition: padding 0.3s ease;
}

.header--scrolled .header__nav {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: none;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.header__nav {
    max-height: 10rem;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease 0.1s, visibility 0.2s ease 0.1s;
}

.header--scrolled .header__top::after,
.header--scrolled .header__top {
    border-bottom-color: #E5E7EB;
}


/* ===== FOOTER ===== */
.footer {
    width: 100%;
    background: var(--color-navy-dark);
    color: var(--color-white);
}

/* --- Main area --- */
.footer__main {
    padding: 6rem 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 0.6fr 1fr 1.3fr;
    gap: 4rem;
}

/* --- Logo column --- */
.footer__col--logo {
    margin-right: 11rem;
}

.footer__logo {
    margin-bottom: 3.4rem;
}

.footer__logo-img {
    display: block;
    height: 4.4rem;
    width: auto;
}

.footer__logo-text {
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-light);
    line-height: 1.7;
    color: var(--color-white);
    margin: 0;
}

/* --- Column titles --- */
.footer__title {
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-regular);
    color: #B88E70;
    margin: 0 0 max(20px, 2rem) 0;
}

.footer__accordion-icon {
    display: none;
}

/* --- Menu columns --- */
.footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__menu li {
    margin-bottom: 1.4rem;
}

.footer__menu li:last-child {
    margin-bottom: 0;
}

.footer__menu li a {
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-light);
    color: var(--color-white);
    transition: color 0.2s;
}

.footer__menu li a:hover {
    color: var(--color-white);
}

/* --- Contact column --- */
.footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer__contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer__contact-value {
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-light);
    line-height: 1.57;
    color: var(--color-white);
    transition: color 0.2s;
}

a.footer__contact-value:hover {
    color: var(--color-white);
}

/* Socials */
.header__socials,
.footer__socials {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.header__socials{
    margin-top: unset;
}

@media screen and (max-width: 767px){
    .header__socials{
        margin-top: 10px;
    }
}

@media screen and (min-width: 767px){
    .footer__socials.mobile{
        display: none;
    }
}

@media screen and (max-width: 767px){
    .footer__accordion-content .footer__socials{
        display: none;
    }
}

.header__social-link,
.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max(30px, 3rem);
    height: max(30px, 3rem);
    border-radius: 50%;
    transition: background 0.2s;
}

/* --- Bottom bar --- */

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #26316A;
    padding: 2rem 0;
}

.footer__bottom-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer__bottom-left span,
.footer__bottom-left a,
.footer__bottom-right a {
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-light);
    color: var(--color-white);
    transition: color 0.2s;
}

.footer__bottom-left a:hover,
.footer__bottom-right a:hover {
    color: var(--color-white);
}

.footer__bottom-sep {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3.2rem;
    }

    .footer__col--logo {
        grid-column: 1 / -1;
        padding-right: 0;
        max-width: 40rem;
    }
}

@media (max-width: 768px) {
    .footer__main {
        padding: 4rem 0;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer__col--logo {
        max-width: 100%;
        padding-bottom: 2.4rem;
        margin-bottom: 0.8rem;
        margin-right: 0;
        border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
    }

    /* Accordion */
    .footer__accordion-icon {
        display: block;
        transition: transform 0.3s ease;
    }

    .footer__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        padding: 1.6rem 0;
        cursor: pointer;
        border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
        -webkit-user-select: none;
        user-select: none;
    }

    .footer__col.is-open .footer__accordion-icon {
        transform: rotate(180deg);
    }

    .footer__accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        padding: 0;
    }

    .footer__col.is-open .footer__accordion-content {
        max-height: 50rem;
        padding: 1.6rem 0;
    }

    /* Bottom bar */
    .footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 2rem 0;
    }
}


/* Cart counter */
.header__cart-link {
    position: relative;
}

.header__cart-count {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    min-width: 1.8rem;
    height: 1.8rem;
    padding: 0 0.4rem;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: max(10px, 1rem);
    font-weight: var(--font-weight-medium);
    line-height: 1.8rem;
    text-align: center;
    border-radius: 50%;
    display: none;
    box-sizing: border-box;
}

.header__cart-count.is-visible {
    display: block;
}


/* Payment methods */
.footer__payments {
    border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
    padding: 2.4rem 0;
}

.footer__payments-img {
    display: block;
    height: 5.1rem;
    width: auto;
}