/* ==========================================================================
   Healing Thyme Herbal — Custom Footer Styles
   Child Theme: healing-thyme-child
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (footer-scoped)
   -------------------------------------------------------------------------- */
:root {
    /* Backgrounds */
    --htf-bg:           #F6F1EA;
    --htf-bg-bottom:    #EDE4D8;

    /* Text */
    --htf-text:         #5F4C3D;
    --htf-text-muted:   #8B7767;
    --htf-heading:      #3F3127;
    --htf-white:        #FFFFFF;

    /* Brand Accent */
    --htf-pink:         #B56B8C;   /* muted herbal pink */
    --htf-link-hover:   #7A5A45;   /* warm brown */

    /* Border */
    --htf-border:       rgba(95, 76, 61, 0.12);

    /* Typography */
    --htf-font-nav:     'Lato', 'Helvetica Neue', Arial, sans-serif;
    --htf-font-logo:    'Playfair Display', Georgia, serif;

    /* Animation */
    --htf-transition:   0.2s ease;
}

/* --------------------------------------------------------------------------
   Footer Shell
   -------------------------------------------------------------------------- */
.ht-site-footer {
    background-color: var(--htf-bg);
    color: var(--htf-text);
    font-family: var(--htf-font-nav);
}

.ht-footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px 64px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 40px 56px;
}

/* --------------------------------------------------------------------------
   Column 1 — Brand
   -------------------------------------------------------------------------- */
.ht-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* WordPress custom logo */
.ht-footer-logo .custom-logo-link {
    display: inline-block;
    text-decoration: none;
}

.ht-footer-logo .custom-logo {
    height: 80px;
    width: auto;
    display: block;
    /* Keep logo visible on dark bg — if logo has white bg, use mix-blend-mode */
    filter: brightness(0.9);
}

.ht-footer-logo-text {
    font-family: var(--htf-font-logo);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--htf-heading);
    text-decoration: none;
}

.ht-footer-tagline {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--htf-text);
    max-width: 300px;
}

/* Social icons */
.ht-footer-social {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 4px;
}

.ht-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--htf-text);
    border: 1px solid var(--htf-border);
    border-radius: 50%;
    text-decoration: none;
    transition: color var(--htf-transition), border-color var(--htf-transition), background-color var(--htf-transition);
}

.ht-social-link:hover,
.ht-social-link:focus-visible {
    color: var(--htf-white);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.07);
    outline: none;
}

/* --------------------------------------------------------------------------
   Column 2 & 3 — Shared heading style
   -------------------------------------------------------------------------- */
.ht-footer-heading {
    margin: 0 0 24px;
    font-family: var(--htf-font-nav);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--htf-heading);
}

/* --------------------------------------------------------------------------
   Column 2 — Explore (WP Nav Menu)
   -------------------------------------------------------------------------- */
.ht-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ht-footer-menu li {
    margin: 0;
    padding: 0;
}

.ht-footer-menu a {
    font-size: 0.9rem;
    color: var(--htf-text);
    text-decoration: none;
    transition: color var(--htf-transition);
    position: relative;
    display: inline-block;
}

.ht-footer-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--htf-link-hover);
    transition: width var(--htf-transition);
}

.ht-footer-menu a:hover,
.ht-footer-menu a:focus-visible {
    color: var(--htf-link-hover);
    outline: none;
}

.ht-footer-menu a:hover::after,
.ht-footer-menu a:focus-visible::after {
    width: 100%;
}

.ht-footer-menu .current-menu-item a {
    color: var(--htf-link-hover);
}

/* --------------------------------------------------------------------------
   Column 3 — Contact / Reach Out
   -------------------------------------------------------------------------- */
.ht-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ht-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--htf-text);
}

.ht-contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--htf-text-muted);
    display: flex;
    align-items: center;
}

.ht-contact-item a {
    color: var(--htf-text);
    text-decoration: none;
    transition: color var(--htf-transition);
}

.ht-contact-item a:hover,
.ht-contact-item a:focus-visible {
    color: var(--htf-link-hover);
    outline: none;
}

/* --------------------------------------------------------------------------
   Bottom Bar — Copyright + Legal Menu
   -------------------------------------------------------------------------- */
.ht-footer-bottom {
    border-top: 1px solid var(--htf-border);
    background-color: var(--htf-bg-bottom);
}

.ht-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 40px;
}

.ht-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: var(--htf-text-muted);
}

.ht-copyright a {
    color: var(--htf-text-muted);
    text-decoration: none;
    transition: color var(--htf-transition);
}

.ht-copyright a:hover {
    color: var(--htf-text);
}

/* Legal links menu */
.ht-footer-legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ht-footer-legal-menu a {
    font-size: 0.8rem;
    color: var(--htf-text-muted);
    text-decoration: none;
    transition: color var(--htf-transition);
}

.ht-footer-legal-menu a:hover,
.ht-footer-legal-menu a:focus-visible {
    color: var(--htf-text);
    outline: none;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (≤ 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .ht-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px 48px;
        padding: 52px 32px 44px;
    }

    /* Brand spans full width on its own row */
    .ht-footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 24px;
    }

    .ht-footer-tagline {
        max-width: 420px;
    }

    .ht-footer-bottom-inner {
        padding: 16px 32px;
    }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤ 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .ht-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 44px 24px 36px;
    }

    .ht-footer-brand {
        flex-direction: column;
        gap: 16px;
    }

    .ht-footer-tagline {
        max-width: 100%;
    }

    .ht-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 24px;
    }

    .ht-footer-legal-menu {
        gap: 14px;
    }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ht-social-link,
    .ht-footer-menu a,
    .ht-footer-menu a::after,
    .ht-contact-item a {
        transition: none;
    }
    
    .footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    color: #d8c9b8; /* adjust to match your existing footer text tone */
    font-size: 14px;
    font-style: italic;
}


}