/* Dove Footer Plugin Styles v1.2.0 */

.dove-footer {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8e4dc;
    padding: 0;
    width: 100%;
    position: relative;
    border-top: 1px solid #D1C8B4DB;
}

/* Overlay layer sits between background image and content */
.dove-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--dove-footer-overlay, #ffffff);
    opacity: var(--dove-footer-overlay-opacity, 0.5);
    pointer-events: none;
    z-index: 0;
}

.dove-footer__inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 50px var(--dove-footer-pad-r, 40px) 30px var(--dove-footer-pad-l, 40px);
    position: relative;
    z-index: 1;
}

/* Top section: logo + nav row, policy centered below */
.dove-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 0 40px;
}

/* Logo column — logo at top, policy at bottom */
.dove-footer__logo-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dove-footer__logo-link {
    display: inline-block;
    text-decoration: none;
}

.dove-footer__logo {
    max-height: var(--dove-footer-logo-h, 60px);
    width: auto;
    display: block;
}

/* Spacer column between logo and nav */
.dove-footer__spacer {
    flex: 1;
    order: 2;
}

/* Navigation column */
.dove-footer__nav-col {
    flex: 0 0 auto;
    max-width: 180px;
    text-align: left;
}

.dove-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each top-level item has a bottom border separator */
.dove-footer__nav-list > li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d1c8b4;
}

.dove-footer__nav-list > li:last-child {
    border-bottom: none;
}

/* Top-level link row */
.dove-footer__nav-list > li > a {
    text-decoration: none;
    color: var(--dove-footer-nav-color, #222);
    font-size: var(--dove-footer-nav-fs, 15px);
    font-weight: 400;
    display: block;
    padding: var(--dove-footer-nav-pad, 8px) 0;
    transition: color 0.2s;
}

.dove-footer__nav-list > li > a:hover {
    color: var(--dove-footer-nav-hover, #8B7536);
}

.dove-footer__nav-list > li.current-menu-item > a,
.dove-footer__nav-list > li.current-menu-ancestor > a {
    color: var(--dove-footer-nav-active, #8B7536);
}

/* Parent item with children — flex row for link + toggle */
.dove-footer__nav-list li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.dove-footer__nav-list li.menu-item-has-children > a {
    flex: 1;
    min-width: 0;
}

/* Chevron toggle button */
.dove-footer__nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: var(--dove-footer-nav-pad, 8px) 0;
    margin-left: 10px;
    line-height: 1;
    flex: 0 0 auto;
}

.dove-footer__nav-toggle:focus,
.dove-footer__nav-toggle:focus-visible,
.dove-footer__nav-toggle:active,
.dove-footer__nav-toggle:hover {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}

.dove-footer__nav-toggle::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 1.2px solid currentColor;
    border-bottom: 1.2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s;
    color: var(--dove-footer-nav-color, #555);
}

.dove-footer__nav-toggle.is-open::after {
    transform: rotate(-135deg);
}

/* Submenu — hidden by default, revealed on toggle */
.dove-footer__nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
}

.dove-footer__nav-list .sub-menu.is-open {
    max-height: 300px;
}

.dove-footer__nav-list .sub-menu li {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dove-footer__nav-list .sub-menu li a {
    font-size: var(--dove-footer-sub-fs, 13px);
    color: var(--dove-footer-nav-color, #222);
    text-decoration: none;
    padding: 2px 0;
    display: block;
    transition: color 0.2s;
}

.dove-footer__nav-list .sub-menu li a:hover {
    color: var(--dove-footer-nav-hover, #8B7536);
}

.dove-footer__nav-list .sub-menu li.current-menu-item a {
    color: var(--dove-footer-nav-active, #8B7536);
}

/* Sub-sub menus indented */
.dove-footer__nav-list .sub-menu .sub-menu {
    padding-left: 15px;
}

/* Child item chevron — uses same toggle class */
.dove-footer__nav-list .sub-menu .dove-footer__nav-toggle {
    padding: 2px 0;
    margin-left: 4px;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.dove-footer__nav-list .sub-menu .dove-footer__nav-toggle::after {
    width: 6px;
    height: 6px;
}

/* Bottom section: copyright only (policy links moved into logo column) */
.dove-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    padding-top: 12px;
}

.dove-footer__policy-col {
    margin-top: auto;
}

.dove-footer__policy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}

.dove-footer__policy-list li {
    margin: 0;
    padding: 0;
}

.dove-footer__policy-list li a {
    text-decoration: underline;
    color: var(--dove-footer-brand, #8B7536);
    font-size: var(--dove-footer-policy-fs, 13px);
    font-weight: 400;
    line-height: 1.7;
    transition: opacity 0.2s;
}

.dove-footer__policy-list li a:hover {
    opacity: 0.7;
}

.dove-footer__copyright {
    flex: 1 1 100%;
    font-size: 12px;
    color: #666;
    text-align: center;
}
.dove-footer__copyright img {
    display: inline;
    vertical-align: middle;
    height: 14px;
    margin-right: 2px;
}

/* =====================================================
   HAMBURGER BUTTON — hidden on desktop, shown on tablet/mobile
   ===================================================== */
.dove-footer__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: var(--dove-footer-hamburger-size, 40px);
    height: var(--dove-footer-hamburger-size, 40px);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    flex-shrink: 0;
    order: 3;
}

.dove-footer__hamburger:focus,
.dove-footer__hamburger:active {
    outline: none !important;
    box-shadow: none !important;
}

.dove-footer__hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--dove-footer-nav-color, #222);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.dove-footer__hamburger.is-open .dove-footer__hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.dove-footer__hamburger.is-open .dove-footer__hamburger-bar:nth-child(2) {
    opacity: 0;
}

.dove-footer__hamburger.is-open .dove-footer__hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   DRAWER OVERLAY + SLIDE-OUT PANEL
   ===================================================== */
/* Desktop: overlay hidden, drawer is inline static element */
.dove-footer__drawer-overlay {
    display: none;
}

.dove-footer__drawer {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    transform: none;
    overflow: visible;
    box-shadow: none;
    flex: 0 0 auto;
    order: 4;
}

/* Hide close button on desktop */
.dove-footer__drawer-close {
    display: none;
}

/* Drawer content area — no padding on desktop */
.dove-footer__drawer-content {
    padding: 0;
}

/* Drawer nav inherits base nav-col styles on desktop */

/* =====================================================
   TABLET (< 900px)
   ===================================================== */
@media (max-width: 900px) {
    .dove-footer__inner {
        padding: 40px 30px 24px;
    }

    .dove-footer__top {
        gap: 24px;
    }

    .dove-footer__spacer {
        display: none;
    }

    /* Flatten logo-col for mobile layout */
    .dove-footer__logo-col {
        display: contents;
    }

    .dove-footer__logo-link {
        flex: 1 1 auto;
        order: 1;
    }

    .dove-footer__policy-col {
        flex: 0 0 100%;
        order: 3;
        text-align: center;
        margin-top: 16px;
    }

    /* Show hamburger */
    .dove-footer__hamburger {
        display: flex;
        flex: 0 0 auto;
        order: 2;
        margin: 0;
    }

    /* Switch drawer from inline to fixed slide-out */
    .dove-footer__drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 65%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -2px 0 16px rgba(0, 0, 0, 0.1);
    }

    .dove-footer__drawer.is-open {
        transform: translateX(0);
    }

    .dove-footer__drawer-overlay.is-open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
        opacity: 1;
    }

    .dove-footer__drawer-close {
        display: block;
        position: absolute;
        top: 12px;
        right: 16px;
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #222;
        cursor: pointer;
        padding: 4px 8px;
    }

    .dove-footer__drawer-content {
        padding: 56px 0 32px;
    }

    /* Drawer nav styles — large, full-width for slide-out */
    .dove-footer__drawer .dove-footer__nav-col {
        max-width: none;
        flex: none;
        text-align: left;
    }

    .dove-footer__drawer .dove-footer__nav-list > li {
        border-bottom: 1px solid #e5e5e5;
    }

    .dove-footer__drawer .dove-footer__nav-list > li:last-child {
        border-bottom: 1px solid #e5e5e5;
    }

    .dove-footer__drawer .dove-footer__nav-list > li > a {
        font-size: var(--dove-footer-nav-fs, 14px);
        padding: 14px 20px;
        flex: 1;
        min-width: 0;
    }

    .dove-footer__drawer .dove-footer__nav-toggle {
        padding: 14px 20px 14px 0;
        margin-left: 0;
        flex-shrink: 0;
    }

    .dove-footer__drawer .dove-footer__nav-toggle::after {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }

    .dove-footer__drawer .sub-menu {
        background: #fafafa;
    }

    .dove-footer__drawer .sub-menu li a {
        font-size: var(--dove-footer-sub-fs, 13px);
        text-decoration: none;
        padding: 10px 20px 10px 40px;
        flex: 1;
        min-width: 0;
    }

    .dove-footer__drawer .sub-menu .dove-footer__nav-toggle {
        padding: 10px 20px 10px 0;
    }

    .dove-footer__drawer .sub-menu .sub-menu li a {
        padding-left: 56px;
    }

    /* Logo left, hamburger right — same row */
    .dove-footer__logo-link {
        flex: 1 1 auto;
        order: 1;
    }

    /* Policy: centered row below */
    .dove-footer__policy-col {
        margin-top: 16px;
    }

    .dove-footer__policy-list li a {
        font-size: var(--dove-footer-policy-fs-tablet, var(--dove-footer-policy-fs, 12px));
    }
}

/* =====================================================
   MOBILE (< 767px)
   ===================================================== */
@media (max-width: 767px) {
    .dove-footer__inner {
        padding: 30px 20px 20px;
    }

    .dove-footer__top {
        gap: 16px;
    }

    .dove-footer__policy-list {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .dove-footer__policy-list li {
        margin: 0;
    }

    .dove-footer__policy-list li a {
        font-size: var(--dove-footer-policy-fs-mobile, var(--dove-footer-policy-fs, 12px));
    }

    .dove-footer__copyright {
        text-align: center;
    }
}
