/* ============================================================================
   True Makeup Theme — Site Colophon (footer + bottom strip + cookie banner)
   Migrated out of footer.twig inline styles.
   ============================================================================ */

/* -------------------- Colophon main panel -------------------- */
.tmt-colophon {
    background: #fff;
    color: #000;
}
.tmt-colophon__inner {
    max-width: var(--layout-max-width, 1700px);
    margin: 0 auto;
    padding: 64px 0 48px;
}
.tmt-colophon__grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    padding-bottom: 48px;
}

/* -------------------- Company column -------------------- */
.tmt-colophon__company {
    display: block;
}
.tmt-colophon__brand {
    display: inline-block;
    margin-bottom: 32px;
    text-decoration: none;
}
.tmt-colophon__brand-img {
    height: 32px;
    width: auto;
    display: block;
}
.tmt-colophon__address {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.75;
    color: #000;
    font-style: normal;
}
.tmt-colophon__address p { margin: 0; }
.tmt-colophon__contact {
    margin-top: 20px;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.75;
    color: #000;
}
.tmt-colophon__contact p { margin: 0; }
.tmt-colophon__contact a {
    color: #000;
    text-decoration: none;
    transition: font-weight 0.15s;
}
.tmt-colophon__contact a:hover { font-weight: 700; }

/* -------------------- Nav columns -------------------- */
.tmt-colophon__nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.tmt-colophon__col {
    min-width: 0;
}
.tmt-colophon__heading {
    font-family: var(--font-secondary);
    font-size: 20px;
    color: #000;
    margin: 0 0 20px;
    font-weight: 400;
}
.tmt-colophon__heading em { font-style: italic; font-weight: 400; }
.tmt-colophon__heading strong { font-style: normal; font-weight: 700; }

.tmt-colophon__links {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 2.2;
}
.tmt-colophon__links a {
    display: block;
    color: #000;
    text-decoration: none;
    transition: font-weight 0.15s;
}
.tmt-colophon__links a:hover { font-weight: 700; }

.tmt-colophon__socials a {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: normal;
    margin-bottom: 14px;
}

/* -------------------- Bottom legal strip -------------------- */
.tmt-colophon-strip {
    background: #F4F4F5;
}
.tmt-colophon-strip__inner {
    max-width: var(--layout-max-width, 1700px);
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tmt-colophon-strip__legal {
    display: flex;
    flex-direction: column;
}
.tmt-colophon-strip__copyright {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 6px;
    line-height: 1.3;
}
.tmt-colophon-strip__credit {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    opacity: 0.5;
    margin: 0 0 8px;
    line-height: 1.3;
}
.tmt-colophon-strip__credit a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.tmt-colophon-strip__legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tmt-colophon-strip__legal-links a {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.tmt-colophon-strip__legal-links a:hover,
.tmt-colophon-strip__legal-links a:focus { opacity: 1; }
.tmt-colophon-strip__legal-links span {
    font-size: 11px;
    color: #000;
    opacity: 0.3;
}

.tmt-colophon-strip__payments {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.tmt-colophon-strip__pay-icon {
    height: 24px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.tmt-colophon-strip__pay-icon:hover { transform: scale(1.25); }

/* -------------------- Cookie consent banner -------------------- */
.tmt-cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #fff;
    transition: opacity 0.4s, transform 0.4s;
}
.tmt-cookie-banner.is-dismissing {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.tmt-cookie-banner__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tmt-cookie-banner__message {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 12px;
    color: #000;
}
/* Inline links inside the banner copy (e.g. the "Learn More"
   anchor dropped into the ACF cookie-banner-content field) inherit
   the paragraph's font + colour so they read as part of the
   sentence, not as a browser-default blue URL. No underline —
   the client wants the link styled identically to the surrounding
   text. The ACF content itself wraps the link in a
   <span style="text-decoration: underline"> which we neutralise
   via .tmt-cookie-banner span below so nothing forces an
   underline back on. On hover/focus a thin underline fades in
   as a minimal affordance for mouse + keyboard users. Broader
   .tmt-cookie-banner prefix used because the ACF content nests
   its own <p>, and browsers auto-reparent the inline anchor out
   of .__message when that nested <p> is parsed — catching it at
   the banner root is bullet-proof. */
.tmt-cookie-banner a,
.tmt-cookie-banner a:visited {
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.tmt-cookie-banner a:hover,
.tmt-cookie-banner a:focus-visible {
    text-decoration-thickness: 2px;
}
/* Neutralise the inline span the ACF editor wraps the link in —
   any text-decoration:underline declared inline loses to this
   rule, keeping the link visually flush with the surrounding
   paragraph at rest. */
.tmt-cookie-banner__message span[style*="underline"],
.tmt-cookie-banner span[style*="underline"] {
    text-decoration: none !important;
}
.tmt-cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
/* Cookie banner buttons — structural rules only (sizing, type,
   tracking). Background / text colour / border / hover state all
   come from the plugin's secondary-button tokens (Site Wide →
   Buttons → Secondary), injected via token-output.php. Both
   Accept and Decline are declared as secondary so they read as
   a pair; the client can skin them once in the plugin admin and
   both update together. */
.tmt-cookie-banner__btn {
    padding: 7px 24px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
}

/* -------------------- Responsive collapse -------------------- */
@media (max-width: 1023px) {
    .tmt-colophon__inner {
        padding: 48px 0 32px;
    }
    /* Everything in the colophon centres on mobile — company column,
       nav columns, headings, links, legal strip, socials. */
    .tmt-colophon__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 32px;
        text-align: center;
    }
    .tmt-colophon__nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
    .tmt-colophon__heading {
        font-size: 18px;
        margin: 0 0 14px;
    }
    .tmt-colophon__links,
    .tmt-colophon__address,
    .tmt-colophon__contact { font-size: 14px; }
    .tmt-colophon__links { line-height: 1.9; }
    /* Social icon rows become centred horizontally instead of left-aligned
       so each icon+label pair sits in the middle of its column. */
    .tmt-colophon__socials a {
        justify-content: center;
        margin-bottom: 10px;
    }
    /* Logo was inline-block with left default — margin:auto centres it
       inside the now-centred company column. */
    .tmt-colophon__brand {
        display: block;
        margin: 0 auto 20px;
        width: fit-content;
    }
    .tmt-colophon__brand-img { height: 28px; }
    .tmt-colophon-strip__inner {
        flex-direction: column;
        align-items: center;
        padding: 18px 0;
        gap: 14px;
        text-align: center;
    }
    .tmt-colophon-strip__legal { align-items: center; text-align: center; }
    .tmt-colophon-strip__legal-links {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .tmt-colophon-strip__payments {
        gap: 14px;
        justify-content: center;
    }
    .tmt-colophon-strip__pay-icon { height: 20px; }
}
@media (max-width: 600px) {
    .tmt-colophon {
        /* Shrink the footer's side padding below what the shared px-8
           utility provides — 32px on both sides steals too much space
           from the stacked nav columns at phone widths. */
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .tmt-colophon-strip {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .tmt-colophon__inner { padding: 36px 0 24px; }
    .tmt-colophon__grid { gap: 32px; padding-bottom: 24px; }
    .tmt-colophon__nav-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .tmt-colophon__heading { font-size: 17px; }
    .tmt-colophon__links { font-size: 14px; line-height: 1.85; }
    .tmt-colophon__address,
    .tmt-colophon__contact { font-size: 13px; line-height: 1.65; }
    .tmt-colophon-strip__copyright { font-size: 11px; letter-spacing: 0.1em; }
    .tmt-colophon-strip__credit { font-size: 10px; letter-spacing: 0.08em; }
    .tmt-colophon-strip__legal-links a { font-size: 10px; letter-spacing: 0.08em; }
    .tmt-cookie-banner__inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 18px;
    }
    .tmt-cookie-banner__btn { padding: 9px 22px; font-size: 11px; letter-spacing: 0.16em; }
}


/* ================================================================
   Global footer link hover (legacy .tmt-footer-nav + bare <a>)
   Kept as a fallback for any template branch that still uses the
   legacy nav-list class name instead of the new BEM scheme.
   ================================================================ */

.tmt-footer-nav ul          { list-style: none; padding: 0; margin: 0; }
.tmt-footer-nav li          { list-style: none; }
.tmt-footer-nav a,
footer a {
    color: #000;
    text-decoration: none;
    transition: font-weight 0.15s;
}
.tmt-footer-nav a:hover,
footer a:hover              { font-weight: 700; }

.tmt-social-bar a           { transition: transform 0.2s ease; }
.tmt-social-bar a:hover     { transform: scale(1.25); }


/* ================================================================
   Cookie banner (#tmt-cookie-banner) overrides
   The banner is rendered by footer.twig; these rules force the
   type stack and button text colour on top of whatever inline
   styles the plugin may inject.
   ================================================================ */

#tmt-cookie-banner.cookie-banner {
    opacity:          1    !important;
    transform:        none !important;
    background-color: #fff !important;
}

#tmt-cookie-banner.cookie-banner p,
#tmt-cookie-banner.cookie-banner a,
#tmt-cookie-banner.cookie-banner span {
    font-family: var(--font-primary) !important;
    font-weight: 700                 !important;
    color:       #000                !important;
}

#tmt-cookie-banner.cookie-banner button {
    font-family: var(--font-primary) !important;
    font-weight: 700                 !important;
}

#tmt-cookie-banner.cookie-banner button[style*="background:#000"],
#tmt-cookie-banner.cookie-banner button[style*="background: #000"] {
    color: #fff !important;
}

#tmt-cookie-banner.cookie-banner a { text-decoration: underline !important; }


/* ================================================================
   WP editor alignwide / alignfull + wp-block-image radius reset
   ================================================================ */

.wp-block-image img { border-radius: 0 !important; }

.alignwide {
    max-width:    1200px;
    margin-left:  auto;
    margin-right: auto;
}
.alignfull {
    width:     100%;
    max-width: 100%;
}
