/* ==========================================================================
   EXPERTPULSE MODERN FOOTERS (Styles 7–14) — Shared Base
   Loaded only when one of footer styles 7–14 is active.
   Each style sets its own palette through the --epf-* variables below.
   ========================================================================== */

.epf {
    --epf-bg: #ffffff;
    --epf-fg: #111111;
    --epf-muted: #555555;
    --epf-line: #e5e7eb;
    --epf-input: #f1f5f9;
    --epf-accent: var(--accent);
    --epf-on-accent: #ffffff;
    position: relative;
    z-index: 10;
    background-color: var(--epf-bg);
    background-clip: padding-box; /* keep the theme's 80px spacer transparent */
    color: var(--epf-fg);
    font-size: 15px;
    line-height: 1.6;
}
.epf *, .epf *::before, .epf *::after { box-sizing: border-box; }
/* Colours need class specificity to beat the theme's global `a { color }` rule. */
.epf a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, opacity .2s; }
.epf a:hover { color: var(--epf-accent); }
.epf h2, .epf h3, .epf h4 { color: inherit; }
/* Spacing resets use :where() (zero specificity) so each style's own spacing always wins. */
:where(.epf) :is(h2, h3, h4) { margin: 0; line-height: 1.2; }
:where(.epf) p { margin: 0; }
:where(.epf) ul { list-style: none; margin: 0; padding: 0; }
:where(.epf) li { margin: 0; }
.epf :focus-visible { outline: 2px solid var(--epf-accent); outline-offset: 3px; }
.epf .screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.epf img { max-width: 100%; height: auto; }

/* Inline list with thin separators */
.epf-inline { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; }
.epf-inline li { display: flex; align-items: center; }
.epf-inline li:not(:last-child)::after {
    content: ""; width: 1px; height: 12px; margin: 0 12px; background: var(--epf-line);
}

/* Social icons */
.epf-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.epf-social { display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }

/* Newsletter form (submits through the theme's AJAX handler) */
.epf-form__row { display: flex; }
.epf-form input[type="email"] {
    flex: 1; min-width: 0; margin: 0;
    font: inherit; font-size: 14px; color: var(--epf-fg);
    padding: 14px 18px; background: var(--epf-input);
    border: 1px solid var(--epf-line); border-radius: 4px 0 0 4px;
    outline: none; box-shadow: none; transition: border-color .2s;
}
.epf-form input[type="email"]:focus { border-color: var(--epf-accent); }
.epf-form input[type="email"]::placeholder { color: var(--epf-muted); opacity: 1; }
.epf-form button {
    flex-shrink: 0; margin: 0; cursor: pointer; white-space: nowrap;
    font: inherit; font-size: 14px; font-weight: 700;
    padding: 14px 24px; border: 0; border-radius: 0 4px 4px 0;
    background: var(--epf-accent); color: var(--epf-on-accent);
    transition: filter .2s, transform .2s;
}
.epf-form button:hover { filter: brightness(.92); }
.epf-form--stacked .epf-form__row { flex-direction: column; gap: 14px; }
.epf-form--stacked input[type="email"], .epf-form--stacked button { border-radius: 6px; }
.epf-form--stacked button { align-self: flex-start; }



.epf .ep-newsletter-msg { text-align: left !important; }

/* Copyright + back to top */
.epf-copy { font-size: 13px; color: var(--epf-muted); }



/* Custom logo images keep their configured width */
.epf .footer-custom-logo { display: inline-block; max-width: 100%; }

@media (max-width: 600px) {
    .epf-form--inline .epf-form__row { flex-direction: column; gap: 10px; }
    .epf-form--inline input[type="email"], .epf-form--inline button { border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .epf *, .epf *::before, .epf *::after { transition: none !important; }
}

/* Hide the theme's floating back-to-top while a 7–14 footer (with its own button) is visible */


/* Menu badges (styles 15–28): add the CSS class badge-hot, badge-new or badge-trend
   to a menu item (Appearance › Menus › CSS Classes) to show a small label after it. */
.epf .menu-item:is(.badge-hot, .badge-new, .badge-trend) > a::after {
    display: inline-block; margin-left: 8px; padding: 2px 5px 1px; border-radius: 2px;
    font-size: 9px; font-weight: 800; letter-spacing: .5px; line-height: 1.3; vertical-align: 2px;
    color: #fff; background: var(--epf-badge, var(--epf-accent));
}
.epf .menu-item.badge-hot > a::after { content: 'HOT'; --epf-badge: #7c3aed; }
.epf .menu-item.badge-new > a::after { content: 'NEW'; --epf-badge: #ef4444; }
.epf .menu-item.badge-trend > a::after { content: 'TREND'; --epf-badge: #f43f5e; }
.epf .ep-menu-title { display: inline; }
