/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://missingyouforever.com
Description: Child theme for Twenty Twenty-Four with custom Light a Candle landing page
Author: Missing You Forever
Author URI: https://missingyouforever.com
Template: twentytwentyfour
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour-child
*/

/* ==========================================================================
   Child Theme Styles
   ========================================================================== */

/* ==========================================================================
   Global Color Palette - Soft Muted Colors (Easy on the eyes)
   ========================================================================== */
:root {
    --wp--preset--color--primary: #6b5d52;
    --wp--preset--color--primary-light: #9d8b7e;
    --wp--preset--color--primary-dark: #5a4d44;
    --wp--preset--color--accent: #d9b88f;
    --wp--preset--color--accent-light: #f0e5d8;
    --wp--preset--color--flame: #daa67d;
    --wp--preset--color--background-alt: #faf7f4;
}
:where(.wp-site-blocks) > * {
    margin-block-start: 0 !important;
}


/* ==========================================================================
   Global Header Width
   ========================================================================== */
body header,
body .wp-site-blocks > header,
body .wp-block-template-part,
body header.wp-block-template-part {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    background-color: #ffffff !important;
}

/* ==========================================================================
   Sticky Header on Scroll (Fixed position approach)
   ========================================================================== */
header.wp-block-template-part {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    transition: box-shadow 0.3s ease !important;
}

header.wp-block-template-part.is-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Add padding to body to compensate for fixed header */
.wp-site-blocks {
    padding-top: 80px !important;
}

@media (max-width: 768px) {
    .wp-site-blocks {
        padding-top: 70px !important;
    }
}

/* Force white background on header for all pages including front page */
body header .wp-block-group,
body header .wp-block-group.has-background,
body header .wp-block-group.has-base-background-color,
body.home header .wp-block-group,
body.front-page header .wp-block-group,
body.home header .wp-block-group.has-background,
body.front-page header .wp-block-group.has-background {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Uniform header layout on all pages including front page */
body header .wp-block-group.is-content-justification-space-between,
body.home header .wp-block-group.is-content-justification-space-between,
body.front-page header .wp-block-group.is-content-justification-space-between {
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    gap: 20px !important;
}

/* Hide empty div between logo and navigation */
body header .wp-block-group.is-layout-flow:empty,
body header .wp-block-group.wp-block-group-is-layout-flow:empty {
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Logo group - no extra spacing */
body header .wp-block-group.is-layout-flex .wp-block-site-logo {
    margin: 0 !important;
}

/* Navigation group - align right, no extra margin */
body header .wp-block-group.is-content-justification-left {
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-grow: 0 !important;
}

/* Logo container - same size on all pages */
body header .wp-block-site-logo,
body.home header .wp-block-site-logo,
body.front-page header .wp-block-site-logo {
    flex-shrink: 0 !important;
}

body header .wp-block-site-logo img,
body.home header .wp-block-site-logo img,
body.front-page header .wp-block-site-logo img {
    height: auto !important;
}

/* Navigation container - aligned right */
body header .wp-block-navigation,
body.home header .wp-block-navigation,
body.front-page header .wp-block-navigation {
    flex-shrink: 0 !important;
}

/* Remove extra padding from alignwide on front page */
body.home header .wp-block-group.alignwide,
body.front-page header .wp-block-group.alignwide {
    max-width: var(--wp--style--global--wide-size);
    margin: auto;
}

/* Desktop header width matches .lac-container */
@media (min-width: 769px) {
    body header,
    body .wp-site-blocks > header,
    body .wp-block-template-part,
    body header.wp-block-template-part {

    }

    /* Header inner content with padding */
    body header .wp-block-group {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Mobile header full width */
@media (max-width: 768px) {
    body header,
    body .wp-site-blocks > header,
    body .wp-block-template-part,
    body header.wp-block-template-part {
        max-width: 100% !important;
    }

    /* Header inner content with padding */
    body header .wp-block-group {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Override any full-width settings in header */
body header .alignfull,
body header .wp-block-group.alignfull {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Container padding for header */
body header .wp-block-group,
body header .wp-block-navigation,
body header .wp-block-site-title {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Inner header container */
body header .wp-block-group__inner-container {
    width: 100% !important;
    max-width: 100% !important;
}

body header .wp-block-group > * {
    max-width: 100% !important;
}

/* Make logo larger - Desktop default */
body header .wp-block-site-logo img {
    max-width: 250px !important;
    width: auto !important;
    height: auto !important;
}

body header .wp-block-site-logo a {
    max-width: 250px !important;
}

body header .wp-block-site-title {
    font-size: 2rem !important;
    max-width: none !important;
}

/* Hide empty div next to logo */
body header .wp-block-group.is-layout-flow.wp-block-group-is-layout-flow:empty,
body header .wp-block-group[class*="wp-container-core-group-is-layout"]:empty {
    display: none !important;
}

/* Desktop menu - ensure normal display and layout */
@media (min-width: 769px) {
    .wp-block-navigation__responsive-container {
        position: static !important;
        display: block !important;
        visibility: visible !important;
    }

    .wp-block-navigation__responsive-container-open,
    .wp-block-navigation__responsive-container-close {
        display: none !important;
    }

    /* Ensure header items stay on same row */
    body header .wp-block-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
    }

    /* Logo should not grow or shrink */
    body header .wp-block-site-logo {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    /* Navigation should take remaining space */
    body header .wp-block-navigation {
        flex-shrink: 1 !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
    }

    /* Navigation container should respect parent width */
    body header .wp-block-navigation__responsive-container {
        width: 100% !important;
    }

    /* Navigation items should be flexible */
    body header .wp-block-navigation__responsive-container-content {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        justify-content: flex-end !important;
    }

    /* Make navigation items more compact if needed */
    body header .wp-block-navigation-item {
        white-space: nowrap !important;
    }

    body header .wp-block-navigation-item a {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 0.95rem !important;
    }
}

/* Remove top/bottom padding from header */
body header,
body header .wp-block-group,
body header .wp-block-template-part,
body .wp-block-template-part[data-area="header"],
body header.wp-block-template-part {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ==========================================================================
   Override WordPress Global Padding
   ========================================================================== */
.has-global-padding {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* For mobile devices */
@media (max-width: 768px) {
    .has-global-padding {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

@media (max-width: 480px) {
    .has-global-padding {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
}

/* ==========================================================================
   Mobile Header & Navigation
   ========================================================================== */
@media (max-width: 768px) {
    /* Make header flex to put logo and nav on same row */
    body header .wp-block-group,
    body header .wp-block-template-part > .wp-block-group,
    body.home header .wp-block-group,
    body.page-template-default header .wp-block-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* Logo aligned to left */
    body header .wp-block-site-logo,
    body header .wp-block-site-title,
    body.home header .wp-block-site-logo,
    body.home header .wp-block-site-title,
    body.page-template-default header .wp-block-site-logo,
    body.page-template-default header .wp-block-site-title {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }

    /* Reduce logo size on tablet */
    body header .wp-block-site-title {
        font-size: 1.5rem !important;
        max-width: 180px !important;
    }

    body header .wp-block-site-logo {
        max-width: 180px !important;
    }

    body header .wp-block-site-logo img {
        max-width: 180px !important;
        height: auto !important;
    }

    body header .wp-block-site-logo a {
        max-width: 180px !important;
    }

    /* Navigation on same row - aligned right */
    body header .wp-block-navigation,
    body.home header .wp-block-navigation,
    body.page-template-default header .wp-block-navigation {
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        justify-content: flex-end !important;
        order: 2 !important;
    }

    /* Mobile menu button - more visible */
    body header .wp-block-navigation__responsive-container-open {
        padding: 8px 12px !important;
        background: #6b5d52 !important;
        color: white !important;
        border-radius: 6px !important;
        border: 2px solid #d9b88f !important;
        font-size: 1.2rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body header .wp-block-navigation__responsive-container-open:hover {
        background: #5a4d44 !important;
        border-color: #c9a67a !important;
    }

    body header .wp-block-navigation__responsive-container-open svg {
        fill: white !important;
        width: 24px !important;
        height: 24px !important;
    }

    /* Compact navigation items */
    body header .wp-block-navigation__responsive-container-content {
        gap: 5px !important;
    }

    body header .wp-block-navigation-item {
        font-size: 0.85rem !important;
    }

    /* Close button in mobile menu */
    body header .wp-block-navigation__responsive-container-close {
        background: #6b5d52 !important;
        color: white !important;
        border-radius: 50% !important;
        padding: 8px !important;
    }

    /* Fix mobile menu functionality - tablet/mobile only */
    .wp-block-navigation__responsive-container {
        position: fixed !important;
        z-index: 100000 !important;
        display: none !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }

    .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background-color: white !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        background-color: white !important;
        height: 100vh !important;
        width: 100vw !important;
        overflow-y: auto !important;
        margin: 0 !important;
        padding: 80px 20px 20px 20px !important;
        box-shadow: none !important;
    }

    /* Ensure mobile menu button is clickable on all pages */
    .wp-block-navigation__responsive-container-open,
    button.wp-block-navigation__responsive-container-open {
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 10001 !important;
        position: relative !important;
        display: flex !important;
        background: #6b5d52 !important;
        border: 2px solid #d9b88f !important;
    }

    /* Ensure close button works */
    .wp-block-navigation__responsive-container-close,
    button.wp-block-navigation__responsive-container-close {
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 10002 !important;
    }

    /* Reduce header padding on mobile */
    body header {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body header .wp-block-group {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    body header .wp-block-navigation,
    body header .wp-block-site-title {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Smaller logo on very small screens */
    body header .wp-block-site-title {
        font-size: 1.2rem !important;
        max-width: 180px !important;
    }

    body header .wp-block-site-logo {
        max-width: 180px !important;
    }

    body header .wp-block-site-logo img {
        max-width: 180px !important;
    }

    body header .wp-block-site-logo a {
        max-width: 180px !important;
    }

    /* More compact on small screens */
    body header {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body header .wp-block-group {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    body header .wp-block-navigation,
    body header .wp-block-site-title {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body header .wp-block-navigation-item {
        font-size: 0.75rem !important;
    }

    /* Hamburger menu button on very small screens - keep visible */
    body header .wp-block-navigation__responsive-container-open {
        padding: 6px 10px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    body header .wp-block-navigation__responsive-container-open svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ==========================================================================
   Homepage Specific Header Fixes
   ========================================================================== */

/* Fix for homepage - ensure header layout works correctly */
body.home header .wp-block-group.alignfull,
body.front-page header .wp-block-group.alignfull,
body.page-template-default header .wp-block-group.alignfull {
    display: block !important;
}

body.home header .wp-block-group.alignfull > .wp-block-group,
body.front-page header .wp-block-group.alignfull > .wp-block-group,
body.page-template-default header .wp-block-group.alignfull > .wp-block-group {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
}

/* Logo - align left */
body.home header .wp-block-site-title,
body.home header .wp-block-site-logo,
body.front-page header .wp-block-site-title,
body.front-page header .wp-block-site-logo {
    margin: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    flex-shrink: 0 !important;
}

/* Navigation - align right */
body.home header .wp-block-navigation,
body.front-page header .wp-block-navigation {
    margin: 0 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   Mobile Menu - Fullscreen Slide from Right
   ========================================================================== */
@media (max-width: 768px) {
    /* Mobile menu overlay - fullscreen, slide from right */
    .wp-block-navigation__responsive-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        z-index: 999999 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-in-out !important;
        visibility: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: block !important;
        transform: translateX(100%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open {
        display: block !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Wrapper divs inside menu - full height, align content to top */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
    }

    /* Menu content container - links aligned TOP LEFT */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        background-color: #ffffff !important;
        width: 100% !important;
        height: auto !important;
        padding: 80px 30px 40px 30px !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* UL container inside content */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    /* Navigation items - stacked vertically, aligned top-left */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0;
        animation: fadeInUp 0.4s ease forwards;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(1) { animation-delay: 0.1s; }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.15s; }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.2s; }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.25s; }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.3s; }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: 0.35s; }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Link styling - modern, light font, aligned LEFT */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        display: block !important;
        text-align: left !important;
        padding: 18px 0 !important;
        font-size: 1.5rem !important;
        font-weight: 300 !important;
        letter-spacing: 1px !important;
        color: #4a4a4a !important;
        text-decoration: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        transition: color 0.2s ease, padding-left 0.2s ease !important;
        width: 100% !important;
        text-transform: none !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
        font-family: var(--wp--preset--font-family--body) !important;
        font-style: normal !important;
        font-weight: 300 !important;
        text-transform: uppercase !important;
        font-size: 0.95rem !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
        border-bottom: none !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
        color: #6b5d52 !important;
        padding-left: 10px !important;
    }

    /* Close button - top right */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
        position: absolute !important;
        top: 25px !important;
        right: 25px !important;
        background: transparent !important;
        border: none !important;
        padding: 10px !important;
        cursor: pointer !important;
        z-index: 1000000 !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
        width: 28px !important;
        height: 28px !important;
        fill: #4a4a4a !important;
        transition: fill 0.2s ease, transform 0.2s ease !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover svg {
        fill: #6b5d52 !important;
        transform: rotate(90deg) !important;
    }

    /* Homepage specific mobile header fix */
    body.home header .wp-block-group.alignfull > .wp-block-group,
    body.front-page header .wp-block-group.alignfull > .wp-block-group {
        padding: 10px !important;
    }
    body header .wp-block-group {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body .wp-site-blocks {
    overflow-x: hidden !important;
}

/* Navigation link label font */
.wp-block-navigation-item__label {
    font-family: var(--wp--preset--font-family--body) !important;
}

/* ==========================================================================
   Mobile Search Form - Hide Reasons and Countries dropdowns
   ========================================================================== */
@media (max-width: 768px) {
    .lac-frontend-search-form .lac-frontend-filter-select {
        display: none !important;
    }
}

/* ==========================================================================
   Modern Footer Styles
   ========================================================================== */

/* Footer template part - reset and base styles */
footer.wp-block-template-part,
.wp-block-template-part[data-area="footer"],
body .wp-site-blocks > footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
    background: linear-gradient(135deg, #3d3530 0%, #2a2522 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Subtle decorative top border */
footer.wp-block-template-part::before,
.wp-block-template-part[data-area="footer"]::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #d9b88f 0%, #c9a67a 50%, #d9b88f 100%) !important;
}

/* Footer inner content wrapper */
footer.wp-block-template-part .wp-block-group,
.wp-block-template-part[data-area="footer"] .wp-block-group,
body .wp-site-blocks > footer .wp-block-group {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 30px 40px !important;
    background: transparent !important;
}

/* Footer headings */
footer.wp-block-template-part h2,
footer.wp-block-template-part h3,
footer.wp-block-template-part h4,
.wp-block-template-part[data-area="footer"] h2,
.wp-block-template-part[data-area="footer"] h3,
.wp-block-template-part[data-area="footer"] h4 {
    color: #f5f0eb !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
}

/* Footer paragraphs and text */
footer.wp-block-template-part p,
footer.wp-block-template-part span,
footer.wp-block-template-part li,
.wp-block-template-part[data-area="footer"] p,
.wp-block-template-part[data-area="footer"] span,
.wp-block-template-part[data-area="footer"] li {
    color: #b8ada3 !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    font-weight: 300 !important;
}

/* Footer links */
footer.wp-block-template-part a,
.wp-block-template-part[data-area="footer"] a {
    color: #d9b88f !important;
    text-decoration: none !important;
    transition: color 0.3s ease, transform 0.2s ease !important;
    display: inline-block !important;
}

footer.wp-block-template-part a:hover,
.wp-block-template-part[data-area="footer"] a:hover {
    color: #f5f0eb !important;
    transform: translateX(3px) !important;
}

/* Footer navigation lists */
footer.wp-block-template-part ul,
footer.wp-block-template-part .wp-block-navigation,
.wp-block-template-part[data-area="footer"] ul,
.wp-block-template-part[data-area="footer"] .wp-block-navigation {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer.wp-block-template-part li,
.wp-block-template-part[data-area="footer"] li {
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

footer.wp-block-template-part li:last-child,
.wp-block-template-part[data-area="footer"] li:last-child {
    border-bottom: none !important;
}

/* Footer columns layout */
footer.wp-block-template-part .wp-block-columns,
.wp-block-template-part[data-area="footer"] .wp-block-columns {
    gap: 50px !important;
}

footer.wp-block-template-part .wp-block-column,
.wp-block-template-part[data-area="footer"] .wp-block-column {
    padding: 0 !important;
}

/* Social icons in footer */
footer.wp-block-template-part .wp-block-social-links,
.wp-block-template-part[data-area="footer"] .wp-block-social-links {
    gap: 15px !important;
    margin-top: 20px !important;
}

footer.wp-block-template-part .wp-block-social-link,
.wp-block-template-part[data-area="footer"] .wp-block-social-link {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

footer.wp-block-template-part .wp-block-social-link:hover,
.wp-block-template-part[data-area="footer"] .wp-block-social-link:hover {
    background: #d9b88f !important;
    transform: translateY(-3px) !important;
}

footer.wp-block-template-part .wp-block-social-link a,
.wp-block-template-part[data-area="footer"] .wp-block-social-link a {
    padding: 12px !important;
}

footer.wp-block-template-part .wp-block-social-link svg,
.wp-block-template-part[data-area="footer"] .wp-block-social-link svg {
    fill: #f5f0eb !important;
    width: 20px !important;
    height: 20px !important;
}

footer.wp-block-template-part .wp-block-social-link:hover svg,
.wp-block-template-part[data-area="footer"] .wp-block-social-link:hover svg {
    fill: #2a2522 !important;
}

/* Footer logo */
footer.wp-block-template-part .wp-block-site-logo img,
.wp-block-template-part[data-area="footer"] .wp-block-site-logo img {
    max-width: 180px !important;
    opacity: 0.9 !important;
    transition: opacity 0.3s ease !important;
    filter: brightness(1.1) !important;
}

footer.wp-block-template-part .wp-block-site-logo img:hover,
.wp-block-template-part[data-area="footer"] .wp-block-site-logo img:hover {
    opacity: 1 !important;
}

/* Footer copyright / bottom section */
footer.wp-block-template-part .wp-block-group:last-child,
.wp-block-template-part[data-area="footer"] .wp-block-group:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 40px !important;
    padding-top: 25px !important;
}

footer.wp-block-template-part .wp-block-group:last-child p,
.wp-block-template-part[data-area="footer"] .wp-block-group:last-child p {
    font-size: 0.85rem !important;
    color: #8a7f75 !important;
    text-align: center !important;
}

/* Footer separator styling */
footer.wp-block-template-part .wp-block-separator,
.wp-block-template-part[data-area="footer"] .wp-block-separator {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 30px 0 !important;
}

/* Footer buttons */
footer.wp-block-template-part .wp-block-button .wp-block-button__link,
.wp-block-template-part[data-area="footer"] .wp-block-button .wp-block-button__link {
    background: transparent !important;
    border: 1px solid #d9b88f !important;
    color: #d9b88f !important;
    padding: 12px 25px !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

footer.wp-block-template-part .wp-block-button .wp-block-button__link:hover,
.wp-block-template-part[data-area="footer"] .wp-block-button .wp-block-button__link:hover {
    background: #d9b88f !important;
    color: #2a2522 !important;
    transform: translateY(-2px) !important;
}

/* Footer input fields (newsletter signup) */
footer.wp-block-template-part input[type="email"],
footer.wp-block-template-part input[type="text"],
.wp-block-template-part[data-area="footer"] input[type="email"],
.wp-block-template-part[data-area="footer"] input[type="text"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f5f0eb !important;
    padding: 12px 18px !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

footer.wp-block-template-part input[type="email"]:focus,
footer.wp-block-template-part input[type="text"]:focus,
.wp-block-template-part[data-area="footer"] input[type="email"]:focus,
.wp-block-template-part[data-area="footer"] input[type="text"]:focus {
    border-color: #d9b88f !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

footer.wp-block-template-part input::placeholder,
.wp-block-template-part[data-area="footer"] input::placeholder {
    color: #8a7f75 !important;
}

/* Mobile footer styles */
@media (max-width: 768px) {
    footer.wp-block-template-part .wp-block-group,
    .wp-block-template-part[data-area="footer"] .wp-block-group {
        padding: 40px 20px 30px !important;
    }

    footer.wp-block-template-part .wp-block-columns,
    .wp-block-template-part[data-area="footer"] .wp-block-columns {
        gap: 35px !important;
    }

    footer.wp-block-template-part h2,
    footer.wp-block-template-part h3,
    footer.wp-block-template-part h4,
    .wp-block-template-part[data-area="footer"] h2,
    .wp-block-template-part[data-area="footer"] h3,
    .wp-block-template-part[data-area="footer"] h4 {
        font-size: 1rem !important;
        text-align: center !important;
    }

    footer.wp-block-template-part p,
    .wp-block-template-part[data-area="footer"] p {
        text-align: center !important;
    }

    footer.wp-block-template-part ul,
    .wp-block-template-part[data-area="footer"] ul {
        text-align: center !important;
    }

    footer.wp-block-template-part .wp-block-social-links,
    .wp-block-template-part[data-area="footer"] .wp-block-social-links {
        justify-content: center !important;
    }

    footer.wp-block-template-part .wp-block-site-logo,
    .wp-block-template-part[data-area="footer"] .wp-block-site-logo {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    footer.wp-block-template-part .wp-block-group,
    .wp-block-template-part[data-area="footer"] .wp-block-group {
        padding: 30px 15px 25px !important;
    }

    footer.wp-block-template-part .wp-block-columns,
    .wp-block-template-part[data-area="footer"] .wp-block-columns {
        gap: 25px !important;
    }
}

/* ==========================================================================
   MYF Footer Specific Styles
   ========================================================================== */

/* Main footer wrapper */
.myf-footer {
    background: linear-gradient(135deg, #3d3530 0%, #2a2522 100%) !important;
    padding: 60px 30px 40px !important;
    position: relative !important;
}

.myf-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #d9b88f 0%, #c9a67a 50%, #d9b88f 100%) !important;
}

/* Footer logo */
.myf-footer .myf-footer-logo img {
    filter: brightness(1.2) !important;
    max-width: 160px !important;
}

/* Footer headings */
.myf-footer .myf-footer-heading {
    color: #f5f0eb !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 25px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #d9b88f !important;
    display: inline-block !important;
}

/* Footer menu */
.myf-footer .myf-footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.myf-footer .myf-footer-menu li {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.myf-footer .myf-footer-menu li:last-child {
    border-bottom: none !important;
}

.myf-footer .myf-footer-menu li a {
    color: #b8ada3 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.myf-footer .myf-footer-menu li a:hover {
    color: #d9b88f !important;
    padding-left: 8px !important;
}

/* Footer contact form */
.myf-footer-contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.myf-footer-contact-form .myf-form-row {
    width: 100% !important;
}

.myf-footer-contact-form input[type="email"],
.myf-footer-contact-form textarea {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f5f0eb !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.myf-footer-contact-form input[type="email"]:focus,
.myf-footer-contact-form textarea:focus {
    outline: none !important;
    border-color: #d9b88f !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(217, 184, 143, 0.15) !important;
}

.myf-footer-contact-form input::placeholder,
.myf-footer-contact-form textarea::placeholder {
    color: #8a7f75 !important;
}

.myf-footer-contact-form textarea {
    resize: vertical !important;
    min-height: 80px !important;
}

.myf-footer-contact-form button {
    background: linear-gradient(135deg, #d9b88f 0%, #c9a67a 100%) !important;
    color: #2a2522 !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
}

.myf-footer-contact-form button:hover {
    background: linear-gradient(135deg, #c9a67a 0%, #b8956a 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(217, 184, 143, 0.3) !important;
}

.myf-footer-contact-form button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Form messages */
.myf-form-message {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-top: 15px !important;
    font-size: 0.9rem !important;
}

.myf-form-message.success {
    background: rgba(76, 175, 80, 0.15) !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
    color: #81c784 !important;
}

.myf-form-message.error {
    background: rgba(244, 67, 54, 0.15) !important;
    border: 1px solid rgba(244, 67, 54, 0.3) !important;
    color: #ef9a9a !important;
}

/* Footer social links */
.myf-footer .myf-footer-social .wp-block-social-link {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    width: 57px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.myf-footer .myf-footer-social .wp-block-social-link:hover {
    background: #d9b88f !important;
    transform: translateY(-3px) !important;
}

.myf-footer .myf-footer-social .wp-block-social-link a {
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.myf-footer .myf-footer-social svg {
    fill: #f5f0eb !important;
    width: 18px !important;
    height: 18px !important;
}

.myf-footer .myf-footer-social .wp-block-social-link:hover svg {
    fill: #2a2522 !important;
}

/* Footer separator */
.myf-footer .myf-footer-separator {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 40px 0 25px !important;
}

/* Footer copyright */
.myf-footer .myf-footer-copyright {
    color: #8a7f75 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* Footer paragraphs */
.myf-footer p {
    color: #b8ada3 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* Mobile footer */
@media (max-width: 782px) {
    .myf-footer {
        padding: 40px 20px 30px !important;
    }

    .myf-footer .wp-block-columns {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .myf-footer .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        text-align: center !important;
    }

    .myf-footer .myf-footer-logo {
        display: flex !important;
        justify-content: center !important;
    }

    .myf-footer .myf-footer-heading {
        display: block !important;
        text-align: center !important;
    }

    .myf-footer .myf-footer-menu li a:hover {
        padding-left: 0 !important;
    }

    .myf-footer .myf-footer-social {
        justify-content: center !important;
    }

    .myf-footer-contact-form button {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .myf-footer {
        padding: 30px 15px 25px !important;
    }

    .myf-footer .wp-block-columns {
        gap: 30px !important;
    }

    .myf-footer .myf-footer-heading {
        font-size: 1rem !important;
    }
}
