/**
 * eBiz Woo Pro - trust bar and footer
 *
 * One home for everything below the page content (markup: footer.php,
 * link columns: ebiz_footer_menu_column() in inc/nav-menu.php).
 *
 *   1. Tokens
 *   2. Trust bar     [icon  TITLE / text]  x 4, hairline dividers on desktop
 *   3. Footer        brand | Policies | Customer Service | Explore
 *   4. Copyright
 *
 * Mobile first: base rules are the phone layout, min-width queries add the
 * larger layouts. Shares --font-nav and --header-gutter's idea of a gutter
 * with header.css.
 */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    --footer-gutter: clamp(20px, 3.3vw, 64px);

    --trust-bg: #20242e;
    --trust-divider: #444750;
    --trust-text: #b7b9bc;

    --footer-bg: #16120f;
    --footer-heading: #fffaf6;
    --footer-text: #b3aba6;
    --footer-muted: #928b86;
    --footer-line: rgba(255, 255, 255, .16);
}

.trust-section .container,
.site-footer .container {
    padding-inline: var(--footer-gutter);
}

/* ==========================================================================
   2. TRUST BAR
   Phone: stacked. 576px: 2 x 2. 992px: one row of four with dividers.
   ========================================================================== */
.trust-section {
    padding: 2rem 0;
    background: var(--trust-bg);
    color: #fff;
    font-family: var(--font-nav);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    flex: 0 0 auto;
    font-size: 2.2rem;
    line-height: 1;
}

.trust-item h4 {
    margin: 0 0 .15rem;
    color: #fff;
    font-family: var(--font-nav);   /* the global heading font would otherwise win */
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.trust-item p {
    margin: 0;
    color: var(--trust-text);
    font-size: .9375rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.4;
}

@media (min-width: 576px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (min-width: 992px) {
    .trust-section { padding: 3.4rem 0; margin-top: 100px; }

    /* One column per item, however many are enabled in the Customizer. */
    .trust-grid {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        grid-template-columns: none;
        gap: 0;
    }

    .trust-item {
        padding-inline: 2.75rem;
    }

    .trust-item:first-child {
        padding-left: 0;
    }

    .trust-item:last-child {
        padding-right: 0;
    }

    .trust-item + .trust-item {
        border-left: 1px solid var(--trust-divider);
    }
}

/* ==========================================================================
   3. FOOTER
   Phone: one column. 576px: two columns, brand across the top.
   992px: brand (a little wider) + three columns.
   ========================================================================== */
.site-footer {
    padding-top: 3rem;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-family: var(--font-nav);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .site-footer { padding-top: 4.25rem; }

    .footer-logo-text { font-size: 3.25rem; }

    .footer-grid {
        grid-template-columns: 1.25fr repeat(3, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* --- brand column ---------------------------------------------------------- */
.footer-logo {
    display: inline-block;
    color: #fff;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 56px;
}

/* The site logo is dark artwork made for a white header. Turn it white for
   this dark footer: invert + greyscale handles transparent logos, and the
   screen blend makes an opaque white logo background disappear. */
.footer-logo img {
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
}

/* Fallback when no site logo is set: the site name in a classic serif. */
.footer-logo-text {
    display: block;
    font-family: "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: .05em;
    line-height: 1.1;
    text-transform: uppercase;
}

.footer-about {
    max-width: 26rem;
    margin-top: 1.25rem;
    font-size: .875rem;
    letter-spacing: .04em;
    line-height: 1.65;
}

.footer-about p:last-child {
    margin-bottom: 0;
}

/* Round outlined social buttons. */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--footer-line);
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .35);
}

/* --- link / contact columns ---------------------------------------------------- */
.footer-title {
    margin: 0 0 1.35rem;
    color: var(--footer-heading);
    font-family: var(--font-nav);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: .55rem;
}

.footer-links a,
.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-links a {
    font-size: .9rem;
    letter-spacing: .03em;
    line-height: 1.5;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-links a:focus-visible,
.footer-contact a:focus-visible {
    color: #fff;
}

.footer-contact p {
    margin: 0 0 .15rem;
    font-size: .9rem;
    letter-spacing: .03em;
    line-height: 1.7;
}

/* ==========================================================================
   4. COPYRIGHT
   ========================================================================== */
.footer-bottom {
    margin-top: 3rem;
    padding: 0 0 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-muted);
    font-size: .85rem;
    letter-spacing: .04em;
}

@media (min-width: 992px) {
    .footer-bottom { margin-top: 5rem; padding-bottom: 2.75rem; }
}

/* Checkout / order-received: copyright line only. */
.site-footer--minimal {
    padding-top: 0;
}

.site-footer--minimal .footer-bottom {
    margin-top: 0;
    padding: 1.75rem 0;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .footer-socials a,
    .footer-links a,
    .footer-contact a {
        transition: none;
    }
}
