/* =========================================================
   Site footer — hand-coded replacement for the Elementor footer
   template (id 5695). Colors/gradient match exactly what that
   template's live settings specified - see footer.php's header comment.
   ========================================= */
.hec-site-footer {
    position: relative;
    background-image: linear-gradient(130deg, var(--fp-color2, #2F4A9D) 0%, var(--fp-secondary, #A502A8) 100%);
    padding: 6em 0 1.5em;
}
.hec-site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
}
.hec-site-footer__inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.hec-site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2em;
    margin-bottom: 3em;
}

.hec-site-footer__logo {
    display: inline-block;
}
.hec-site-footer__logo img {
    display: block;
    max-width: 220px;
    height: auto;
    /* wp_get_attachment_image() already outputs width="440" height="110"
       (footer.php), and modern browsers derive the right aspect ratio
       from those attributes even with height: auto here - but a static
       scanner can't see that implicit behavior, so this makes it
       explicit too (matches the source image's real 4:1 ratio). */
    aspect-ratio: 440 / 110;
}
.hec-site-footer__tagline {
    margin: 0.75em 0 0;
    font-family: var(--fp-body-font, 'Inter', sans-serif);
    font-size: 0.9rem;
    color: var(--fp-text, #FAFAFA);
}

/* Chained selector + !important - a global heading style (h3 typography
   from the Elementor kit) was winning over a plain single-class rule
   here, same recurring fight as buttons on this site (see the
   hamburger/FAQ-button fixes) but for headings instead. */
.hec-site-footer .hec-site-footer__heading.hec-site-footer__heading {
    font-family: var(--fp-heading-font, 'Mulish', sans-serif) !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: var(--fp-accent, #FFFFFF) !important;
    margin: 0 0 1em !important;
    /* "Subscribe Our Newsletter" is long enough to wrap to 2 lines at
       some widths while "Quick Link"/"Contact Us" stay on 1, which
       pushed each column's first item to a different Y even with the
       same margin above. Reserving 2 lines' worth of height in every
       column keeps all three column bodies starting at the same
       baseline regardless of which heading actually wraps. */
    min-height: 2.6em;
    display: flex !important;
    align-items: flex-end;
}

.hec-site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}
.hec-site-footer__links a {
    font-family: var(--fp-body-font, 'Inter', sans-serif);
    font-size: 0.9rem;
    color: var(--fp-accent, #FFFFFF);
    text-decoration: none;
    transition: color 0.2s ease;
}
.hec-site-footer__links a:hover {
    color: var(--fp-secondary, #A502A8);
}

.hec-site-footer__contact-item {
    /* Was 1em - nearly double the Quick Link column's 0.6em item gap,
       giving the two columns visibly different vertical rhythm even
       though they sit side by side in the same footer row. */
    margin-bottom: 0.6em;
}
.hec-site-footer__contact-item:last-child {
    margin-bottom: 0;
}
.hec-site-footer__contact-label {
    display: block;
    font-family: var(--fp-body-font, 'Inter', sans-serif);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fp-text, #FAFAFA);
    opacity: 0.75;
    margin-bottom: 0.25em;
}
.hec-site-footer__contact-item a {
    font-family: var(--fp-body-font, 'Inter', sans-serif);
    font-size: 0.95rem;
    color: var(--fp-accent, #FFFFFF);
    text-decoration: none;
}
.hec-site-footer__contact-item a:hover {
    color: var(--fp-secondary, #A502A8);
}

.hec-site-footer__newsletter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1.25em;
}
.hec-site-footer__newsletter input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6em 0.9em;
    border-radius: 6px;
    /* Was 0.25 border opacity on a black(0.25)-tinted fill - too faint
       to read as an input boundary against the dark footer. */
    border: 1px solid rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--fp-accent, #FFFFFF);
    font-family: var(--fp-body-font, 'Inter', sans-serif);
    font-size: 0.9rem;
}
.hec-site-footer__newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.hec-site-footer__newsletter input[type="email"]:focus {
    border-color: var(--fp-accent, #FFFFFF);
    outline: none;
}
@media (max-width: 480px) {
    /* Input and button sit side-by-side (flex row) down to this width,
       then wrap to a stacked layout where the shared 0.5em row-gap
       reads as cramped vertical spacing. */
    .hec-site-footer__newsletter { gap: 0.9em; }
}
/* Same fight, same fix as the header hamburger and FAQ accordion
   buttons: a bare <button> inherits a global Elementor kit button style
   (solid pill, its own padding/sizing) unless every property that style
   sets is explicitly beaten with !important on an equally/more specific
   selector. */
.hec-site-footer .hec-site-footer__newsletter button.hec-site-footer__newsletter-submit {
    flex-shrink: 0;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0.6em 1.25em !important;
    margin: 0 !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: none !important;
    background-color: var(--fp-secondary, #A502A8) !important;
    background-image: none !important;
    color: var(--fp-accent, #FFFFFF) !important;
    font-family: var(--fp-body-font, 'Inter', sans-serif) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.hec-site-footer .hec-site-footer__newsletter button.hec-site-footer__newsletter-submit:hover {
    background-color: var(--fp-color1, #101010) !important;
}
.hec-site-footer__newsletter-msg {
    width: 100%;
    margin: 0.25em 0 0;
    font-family: var(--fp-body-font, 'Inter', sans-serif);
    font-size: 0.85rem;
    color: var(--fp-accent, #FFFFFF);
}
.hec-site-footer__newsletter-msg.is-success {
    color: #4ade80;
}
.hec-site-footer__newsletter-msg.is-error {
    color: #f87171;
}

.hec-site-footer__socials {
    display: flex;
    gap: 0.75em;
}
.hec-site-footer .hec-site-footer__socials a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--fp-secondary, #A502A8) !important;
    background: transparent !important;
    color: var(--fp-accent, #FFFFFF) !important;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.hec-site-footer .hec-site-footer__socials a:hover {
    background-color: var(--fp-secondary, #A502A8) !important;
}
/* Belt-and-suspenders: force the icon glyph itself to render at a fixed
   visible size and inherit the link's color, in case something else on
   the page resets icon-font sizing/line-height to 0 for bare <i> tags. */
.hec-site-footer .hec-site-footer__socials a i {
    font-size: 13px !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    color: inherit !important;
}

.hec-site-footer__copyright {
    text-align: center;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--fp-body-font, 'Inter', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    /* var(--fp-secondary) (#A502A8) on the footer's dark background is
       ~2.9:1 - fails WCAG AA's 4.5:1 for normal-size text. Same fix as
       .hec-fp-eyebrow (front-page.css) and .hec-links-tagline__sub
       (links.css) - #D34DD6 is ~5.8:1. */
    color: #D34DD6;
}

@media (max-width: 900px) {
    .hec-site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 575px) {
    .hec-site-footer {
        padding: 4em 0 1.5em;
    }
    .hec-site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5em;
        text-align: center;
    }
    .hec-site-footer__links,
    .hec-site-footer__socials {
        align-items: center;
    }
    .hec-site-footer__socials {
        justify-content: center;
    }
    .hec-site-footer__logo {
        margin: 0 auto;
    }
}

/* ---------- Floating contact buttons ---------- */
/* WhatsApp stays the one always-visible action; LinkedIn/Email/Fiverr/
   Google Business Profile sit in .hec-float-buttons__group, collapsed
   by default and revealed by the toggle button - see footer.js for the
   click handler and footer.php's header comment above this markup for
   why five permanently-visible circles was too heavy, especially on
   mobile. */
.hec-float-buttons {
    position: fixed;
    right: 1.25em;
    bottom: 1.25em;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
}
.hec-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.6rem;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}
.hec-float-btn:hover,
.hec-float-btn:focus-visible {
    transform: scale(1.08);
    color: #ffffff;
}
.hec-float-btn--whatsapp {
    background-color: #25D366;
}
.hec-float-btn--linkedin {
    background-color: #0A66C2;
}
.hec-float-btn--email {
    background-color: #6b7280;
}
.hec-float-btn--fiverr {
    background-color: #1DBF73;
}
.hec-float-btn--google {
    background-color: #4285F4;
}
.hec-float-btn--toggle {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    background-color: var(--fp-secondary, #A502A8);
    transition: transform 0.25s ease, background-color 0.2s ease;
}
.hec-float-btn--toggle[aria-expanded="true"] {
    transform: rotate(45deg);
}
.hec-float-buttons__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    /* Collapsed by default: not just hidden, actually removed from
       layout/tab order (max-height:0 + overflow:hidden + the buttons'
       own opacity/pointer-events) so a keyboard user can't tab into an
       invisible LinkedIn/Email/Fiverr/Google link while collapsed. */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.hec-float-buttons__group .hec-float-btn {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.hec-float-buttons.is-open .hec-float-buttons__group {
    max-height: 320px;
}
.hec-float-buttons.is-open .hec-float-buttons__group .hec-float-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
@media (max-width: 575px) {
    .hec-float-buttons {
        right: 1em;
        bottom: 1em;
    }
    .hec-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .hec-float-btn--toggle {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}
