/* ==========================================================================
   THE KING WEB: FOOTER
   Deploy to: hello-elementor-child/css/footer.css (enqueued as "kw-footer")
   Markup: template-parts/dynamic-footer.php + inc/class-kw-footer-walker.php
   (link columns come from WP Admin → Menus, location "Footer").
   Phone accordion: js/footer.js adds .is-accordion and the toggle buttons.

   Every selector starts with #site-footer so it outranks Hello's reset.css
   and the Elementor kit globals (every link 21px, h3 38px, buttons with a
   gradient) without !important. The resets use :where() so component rules
   win over them.
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
#site-footer {
    --kw-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* The brand gradient under a 20% ink veil: keeps white text above 4.5:1. */
    --kw-grad-deep: linear-gradient(rgba(18, 18, 23, 0.2), rgba(18, 18, 23, 0.2)), linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --kw-bg: #121217;
    --kw-plum: #2e0c2e;
    --kw-heading: #fff;
    --kw-text: rgba(255, 255, 255, 0.72);
    --kw-muted: rgba(255, 255, 255, 0.58);
    --kw-accent: #b4b9f5;
    --kw-line: rgba(255, 255, 255, 0.1);
    --kw-surface: rgba(255, 255, 255, 0.06);
    --kw-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Resets ------------------------------------------------------------------ */
#site-footer,
#site-footer *,
#site-footer *::before,
#site-footer *::after {
    box-sizing: border-box;
}

#site-footer :where(h2, h3, p, ul, address) {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
}

#site-footer :where(ul) {
    list-style: none;
}

/* Other code on the site also uses kw- classes (Service Package Manager's
   keyword spans once shipped a global [class^="kw-"] { font-weight: 600 }).
   Keep footer elements on the weights this file gives them. */
#site-footer :where([class^="kw-"]) {
    font-weight: inherit;
}

#site-footer :where(address) {
    font-style: normal;
}

/* The kit also gives every link font-size: 21px and line-height: 36.75px. */
#site-footer :where(a),
#site-footer :where(a):where(:hover, :focus, :active, :visited) {
    color: inherit;
    font: inherit;
    text-decoration: none;
    background: none;
    outline: 0;
}

#site-footer :where(button),
#site-footer :where(button):where(:hover, :focus, :active) {
    appearance: none;
    margin: 0;
    padding: 0;
    width: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    outline: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
    cursor: pointer;
}

#site-footer :where(a, button):focus-visible {
    outline: 2px solid var(--kw-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Font Awesome icons (the kit renders <i> as a webfont glyph). */
#site-footer :where(i[class*="fa-"]) {
    flex-shrink: 0;
    line-height: 1;
}

#site-footer .kw-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Shell ------------------------------------------------------------------- */
#site-footer {
    position: relative;
    padding: 96px max(24px, calc((100% - 1280px) / 2)) 0;
    background-color: var(--kw-bg);
    color: var(--kw-text);
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Call to action: the one loud moment -------------------------------------- */
#site-footer .kw-footer__cta {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 48px;
    margin-bottom: 88px;
    padding: 56px 64px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--kw-grad-deep);
    color: #fff;
}

/* The site's dot grid (see #intro::after), fading out to the right. */
#site-footer .kw-footer__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px) 0 0 / 20px 20px;
    -webkit-mask-image: linear-gradient(110deg, #000 0%, transparent 65%);
    mask-image: linear-gradient(110deg, #000 0%, transparent 65%);
    pointer-events: none;
}

#site-footer .kw-footer__cta-text {
    max-width: 600px;
}

#site-footer .kw-footer__cta-title {
    color: #fff;
    font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

#site-footer .kw-footer__cta-lead {
    max-width: 46ch;
    margin-top: 16px;
    color: #fff;
    font-size: 18px;
    line-height: 1.55;
}

#site-footer .kw-footer__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#site-footer .kw-footer__cta :focus-visible {
    outline-color: #fff;
}

#site-footer .kw-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition:
        transform 0.2s var(--kw-ease),
        box-shadow 0.2s var(--kw-ease),
        background-color 0.2s var(--kw-ease),
        border-color 0.2s var(--kw-ease);
}

#site-footer .kw-footer__btn i {
    font-size: 20px;
}

#site-footer .kw-footer__btn--light {
    background-color: #fff;
    color: var(--kw-plum);
    box-shadow: 0 10px 24px -10px rgba(18, 18, 23, 0.55);
}

#site-footer .kw-footer__btn--light:hover {
    color: var(--kw-plum);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(18, 18, 23, 0.6);
}

#site-footer .kw-footer__btn--ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

#site-footer .kw-footer__btn--ghost:hover {
    color: #fff;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Main grid: brand | menu columns | contact --------------------------------- */
#site-footer .kw-footer__main {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 2.4fr) minmax(250px, 1.1fr);
    gap: 48px 56px;
    padding-bottom: 64px;
}

#site-footer .kw-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--kw-heading);
}

#site-footer .kw-footer__logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

#site-footer .kw-footer__name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

#site-footer .kw-footer__tagline {
    max-width: 30ch;
    margin-top: 16px;
}

#site-footer .kw-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

/* Social links: outlined at rest. On hover they fill with the platform's
   gradient and a light sweep crosses them, the design of the blog's
   "Get to know us" widget (css/sidebar.css, which only loads on pages with a
   sidebar). Touch screens have no hover, so they show the fill at rest. */
#site-footer .kw-footer__social-link {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    overflow: hidden;
    border: 1px solid var(--kw-line);
    border-radius: 50%;
    color: var(--kw-heading);
    transition: border-color 0.3s var(--kw-ease), box-shadow 0.3s var(--kw-ease);
}

#site-footer .kw-footer__social-link i {
    font-size: 20px;
}

/* The fill lives on ::after so it can fade in (gradients don't transition). */
#site-footer .kw-footer__social-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kw-social);
    opacity: 0;
    transition: opacity 0.3s var(--kw-ease);
}

/* The light sweep. */
#site-footer .kw-footer__social-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

#site-footer .kw-footer__social-link:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

#site-footer .kw-footer__social-link:hover::after {
    opacity: 1;
}

#site-footer .kw-footer__social-link:hover::before {
    left: 100%;
}

/* Brand gradients, as in the blog widget. */
#site-footer .kw-footer__social-link--facebook {
    --kw-social: linear-gradient(135deg, #3b5998, #4c70ba);
}

#site-footer .kw-footer__social-link--instagram {
    --kw-social: linear-gradient(45deg, #405de6, #833ab4, #c13584, #f56040, #fcac45);
}

#site-footer .kw-footer__social-link--linkedin {
    --kw-social: linear-gradient(135deg, #0077b5, #0099cc);
}

#site-footer .kw-footer__social-link--tiktok {
    --kw-social: linear-gradient(135deg, #000, #333);
}

#site-footer .kw-footer__social-link--youtube {
    --kw-social: linear-gradient(135deg, #ff0000, #cc0000);
}

/* TikTok's black needs a faint ring to stand out on the ink background. */
#site-footer .kw-footer__social-link--tiktok:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

@media (hover: none) {
    #site-footer .kw-footer__social-link {
        color: #fff;
        border-color: transparent;
    }

    #site-footer .kw-footer__social-link::after {
        opacity: 1;
    }

    #site-footer .kw-footer__social-link--tiktok {
        border-color: rgba(255, 255, 255, 0.35);
    }
}

/* Menu columns (any number: they wrap to fit) */
#site-footer .kw-footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px 32px;
}

#site-footer .kw-footer__title {
    margin-bottom: 16px;
    color: var(--kw-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

#site-footer .kw-footer__title a:hover {
    color: var(--kw-accent);
}

#site-footer .kw-footer__links {
    display: grid;
    gap: 4px;
}

/* Gradient underline that grows on hover, like the header's nav links. */
#site-footer .kw-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-block: 4px;
    color: var(--kw-text);
    font-size: 15px;
    line-height: 1.5;
    background: var(--kw-grad) 0 calc(100% - 2px) / 0 2px no-repeat;
    transition: color 0.2s var(--kw-ease), background-size 0.25s var(--kw-ease);
}

#site-footer .kw-footer__link:hover,
#site-footer .kw-footer__link:focus-visible,
#site-footer .kw-footer__link[aria-current="page"] {
    color: #fff;
    background-size: 100% 2px;
}

#site-footer .kw-footer__link i {
    font-size: 11px;
    opacity: 0.8;
}

/* Contact column */
#site-footer .kw-footer__contact-list {
    display: grid;
    gap: 12px;
}

#site-footer .kw-footer__contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--kw-text);
    overflow-wrap: anywhere;
    transition: color 0.2s var(--kw-ease);
}

#site-footer .kw-footer__contact-link:hover {
    color: #fff;
}

#site-footer .kw-footer__chip {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--kw-surface);
    color: var(--kw-accent);
    transition: background-color 0.2s var(--kw-ease), color 0.2s var(--kw-ease);
}

#site-footer .kw-footer__chip i {
    font-size: 17px;
}

#site-footer .kw-footer__contact-link--whatsapp .kw-footer__chip {
    color: #25d366;
}

#site-footer .kw-footer__contact-link:hover .kw-footer__chip {
    color: #fff;
    background: var(--kw-grad);
}

#site-footer .kw-footer__contact-link--whatsapp:hover .kw-footer__chip {
    color: #25d366;
    background: rgba(37, 211, 102, 0.18);
}

/* Short labels ("Call", "Email") are for the phone tiles only. */
#site-footer .kw-footer__contact-short {
    display: none;
}

#site-footer .kw-footer__place {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#site-footer .kw-footer__place .kw-footer__chip i {
    font-size: 19px;
}

/* Google's four colours on Font Awesome's single-colour glyphs (pin, "G"). */
#site-footer .kw-footer__google-colors::before {
    background: conic-gradient(from -60deg, #ea4335 0deg 120deg, #4285f4 0deg 210deg, #34a853 0deg 300deg, #fbbc04 0deg 360deg);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#site-footer .kw-footer__address {
    padding-top: 8px;
    line-height: 1.55;
}

#site-footer .kw-footer__link--small {
    margin-top: 2px;
    color: var(--kw-accent);
    font-size: 14px;
}

#site-footer .kw-footer__review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 16px;
    border: 1px solid var(--kw-line);
    border-radius: 999px;
    color: var(--kw-heading);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    transition: background-color 0.2s var(--kw-ease), border-color 0.2s var(--kw-ease);
}

#site-footer .kw-footer__review i {
    font-size: 17px;
}

#site-footer .kw-footer__review:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: var(--kw-surface);
}

/* Newsletter (Email Subscribers "minimal" form) ------------------------------ */
#site-footer .kw-footer__newsletter {
    padding-block: 40px;
    border-top: 1px solid var(--kw-line);
}

/* Mail badge: phones only (the newsletter becomes a card there). */
#site-footer .kw-footer__newsletter-icon {
    display: none;
}

#site-footer .es-subscription-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    align-items: center;
    gap: 24px 64px;
}

#site-footer .es-subscription-form .heading {
    margin: 0;
    color: var(--kw-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#site-footer .es-subscription-form .subheading {
    max-width: 60ch;
    margin-top: 8px;
    color: var(--kw-muted);
    font-size: 14px;
    line-height: 1.6;
}

#site-footer .es-subscription-form .es-form-field-group {
    display: flex;
    gap: 8px;
}

#site-footer .es-subscription-form .es-input-email {
    flex: 1;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    font-size: 15px;
    transition: border-color 0.2s var(--kw-ease), box-shadow 0.2s var(--kw-ease), background-color 0.2s var(--kw-ease);
}

#site-footer .es-subscription-form .es-input-email::placeholder {
    color: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

#site-footer .es-subscription-form .es-input-email:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

#site-footer .es-subscription-form .es-input-email:focus {
    outline: 0;
    border-color: var(--kw-accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(180, 185, 245, 0.25);
}

#site-footer .es-subscription-form .es-input-email:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    box-shadow: inset 0 0 0 100px #25252b;
    caret-color: #fff;
}

/* The plugin paints invalid fields pink with !important; keep them dark. */
#site-footer .es-subscription-form .es-input-error,
#site-footer .es-subscription-form .es-form-input.error {
    border-color: #f06a78 !important;
    background-color: rgba(240, 106, 120, 0.1) !important;
}

#site-footer .es-subscription-form .es-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    background: var(--kw-grad-deep);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(118, 75, 162, 0.6);
    transition: transform 0.2s var(--kw-ease), box-shadow 0.2s var(--kw-ease), filter 0.2s var(--kw-ease);
}

#site-footer .es-subscription-form .es-submit-button:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 12px 24px -8px rgba(118, 75, 162, 0.7);
}

#site-footer .es-subscription-form .es-form-group-privacy {
    margin-top: 12px;
}

#site-footer .es-subscription-form .es-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--kw-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

/* Custom checkbox: the native one is a bright white square on the dark band. */
#site-footer .es-subscription-form .es-gdpr-label input {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s var(--kw-ease), border-color 0.2s var(--kw-ease);
}

#site-footer .es-subscription-form .es-gdpr-label input::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform 0.15s var(--kw-ease);
}

#site-footer .es-subscription-form .es-gdpr-label input:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

#site-footer .es-subscription-form .es-gdpr-label input:checked {
    border-color: transparent;
    background: var(--kw-grad);
}

#site-footer .es-subscription-form .es-gdpr-label input:checked::before {
    transform: scale(1);
}

#site-footer .es-subscription-form .es-gdpr-label input:focus-visible {
    outline: 2px solid var(--kw-accent);
    outline-offset: 2px;
}

/* The plugin transitions "all", which also fades the focus ring in; colour only. */
#site-footer .es-subscription-form .es-gdpr-label a {
    color: var(--kw-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: normal;
    transition: color 0.2s var(--kw-ease);
}

#site-footer .es-subscription-form .es-gdpr-label a:hover {
    color: #fff;
}

/* Plugin messages (prepended to the form), recoloured for a dark background. */
#site-footer .es-subscription-form .es-message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-left-width: 3px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

#site-footer .es-subscription-form .es-message-success {
    border-left-color: #25d366;
    background: rgba(37, 211, 102, 0.12);
    color: #b8f3cf;
}

#site-footer .es-subscription-form .es-message-error {
    border-left-color: #f06a78;
    background: rgba(240, 106, 120, 0.12);
    color: #ffc9cf;
}

#site-footer .es-subscription-form .es-message-warning {
    border-left-color: #fbbc04;
    background: rgba(251, 188, 4, 0.12);
    color: #ffe7a3;
}

#site-footer .es-subscription-form .es-message-info {
    border-left-color: var(--kw-accent);
    background: rgba(180, 185, 245, 0.12);
    color: #dfe1fb;
}

#site-footer .es-subscription-form .es-inline-error {
    color: #ff9aa6;
    font-size: 13px;
}

/* Bottom bar ---------------------------------------------------------------- */
#site-footer .kw-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    padding-block: 24px 32px;
    border-top: 1px solid var(--kw-line);
    color: var(--kw-muted);
    font-size: 14px;
    line-height: 1.5;
}

#site-footer .kw-footer__copy {
    margin-right: auto;
}

#site-footer .kw-footer__made {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* The old footer's red ❤️, as a filled icon that beats once on hover. */
#site-footer .kw-footer__made i {
    font-size: 13px;
    color: #ef4444;
}

#site-footer .kw-footer__made:hover i {
    animation: kw-footer-beat 0.9s var(--kw-ease);
}

@keyframes kw-footer-beat {
    0%,
    50%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.25);
    }

    75% {
        transform: scale(1.15);
    }
}

#site-footer .kw-footer__cookie {
    padding-block: 4px;
    color: var(--kw-muted);
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s var(--kw-ease);
}

#site-footer .kw-footer__cookie:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

/* Tablet + small laptop: brand on top, menu columns + contact below. The
   three-column row needs 1280px to fit the email address on one line. */
@media (max-width: 1279.98px) {
    #site-footer {
        padding-top: 72px;
    }

    #site-footer .kw-footer__cta {
        margin-bottom: 72px;
        padding: 48px;
    }

    #site-footer .kw-footer__main {
        grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    }

    #site-footer .kw-footer__brand {
        grid-column: 1 / -1;
    }

    #site-footer .kw-footer__tagline {
        max-width: 48ch;
    }
}

/* Small tablet: everything stacks; contact details flow in two columns. */
@media (max-width: 1023.98px) {
    #site-footer .kw-footer__main {
        grid-template-columns: minmax(0, 1fr);
    }

    #site-footer .kw-footer__contact-list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px 24px;
    }

    #site-footer .es-subscription-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Phone: centred brand, accordion menu, contact tiles, cards ------------------ */
@media (max-width: 767.98px) {
    #site-footer {
        padding: 56px 20px 0;
    }

    #site-footer .kw-footer__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        margin-bottom: 56px;
        padding: 32px 24px;
        border-radius: 20px;
    }

    #site-footer .kw-footer__cta-lead {
        font-size: 16px;
    }

    #site-footer .kw-footer__cta-actions {
        flex-direction: column;
    }

    #site-footer .kw-footer__btn {
        width: 100%;
    }

    #site-footer .kw-footer__main {
        gap: 40px;
        padding-bottom: 40px;
    }

    /* Brand: centred, bigger social targets. */
    #site-footer .kw-footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #site-footer .kw-footer__tagline {
        max-width: 34ch;
    }

    #site-footer .kw-footer__social {
        justify-content: center;
        gap: 12px;
    }

    #site-footer .kw-footer__social-link {
        width: 48px;
        height: 48px;
    }

    /* Menu columns: two-up without JS; an accordion once js/footer.js adds
       .is-accordion and the toggle buttons. */
    #site-footer .kw-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 16px;
    }

    #site-footer .kw-footer__title {
        margin-bottom: 8px;
    }

    #site-footer .kw-footer__links {
        gap: 0;
    }

    #site-footer .kw-footer__link {
        padding-block: 8px;
    }

    #site-footer .kw-footer__nav.is-accordion {
        display: block;
        border-top: 1px solid var(--kw-line);
    }

    /* 0fr → 1fr animates to the list's natural height (as in the header). */
    #site-footer .is-accordion .kw-footer__col {
        display: grid;
        grid-template-rows: auto 0fr;
        border-bottom: 1px solid var(--kw-line);
        transition: grid-template-rows 0.3s var(--kw-ease);
    }

    #site-footer .is-accordion .kw-footer__col.is-open {
        grid-template-rows: auto 1fr;
    }

    #site-footer .is-accordion .kw-footer__title {
        margin: 0;
    }

    #site-footer .kw-footer__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 56px;
        color: var(--kw-heading);
        font-size: 16px;
        font-weight: 600;
        text-align: left;
    }

    #site-footer .kw-footer__toggle i {
        font-size: 14px;
        color: var(--kw-muted);
        transition: transform 0.25s var(--kw-ease), color 0.2s var(--kw-ease);
    }

    #site-footer .kw-footer__col.is-open .kw-footer__toggle i {
        color: #fff;
        transform: rotate(180deg);
    }

    /* Closed lists are hidden from Tab; the side padding keeps focus rings unclipped. */
    #site-footer .is-accordion .kw-footer__links {
        min-height: 0;
        padding-inline: 8px;
        overflow: hidden;
        visibility: hidden;
        transition: visibility 0s linear 0.3s;
    }

    #site-footer .is-accordion .kw-footer__col.is-open .kw-footer__links {
        padding-bottom: 12px;
        visibility: visible;
        transition-delay: 0s;
    }

    /* Contact: WhatsApp / Call / Email as tap tiles, the address as a card. */
    #site-footer .kw-footer__contact-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #site-footer .kw-footer__contact-link {
        position: relative;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        min-height: 88px;
        padding: 14px 6px;
        border: 1px solid var(--kw-line);
        border-radius: 14px;
        background-color: var(--kw-surface);
        color: var(--kw-heading);
        font-size: 13px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
    }

    #site-footer .kw-footer__contact-link .kw-footer__chip {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.08);
    }

    #site-footer .kw-footer__contact-link .kw-footer__chip i {
        font-size: 19px;
    }

    /* The full value stays in the link for screen readers. */
    #site-footer .kw-footer__contact-value {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    #site-footer .kw-footer__contact-short {
        display: block;
    }

    #site-footer .kw-footer__place {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        padding: 16px;
        border: 1px solid var(--kw-line);
        border-radius: 16px;
        background-color: var(--kw-surface);
    }

    #site-footer .kw-footer__place-text {
        display: contents;
    }

    #site-footer .kw-footer__address {
        flex: 1 1 0;
        min-width: 0;
        padding-top: 8px;
        color: var(--kw-heading);
    }

    #site-footer .kw-footer__directions {
        flex-basis: 100%;
        justify-content: center;
        min-height: 48px;
        margin-top: 4px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        background: none;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
    }

    #site-footer .kw-footer__review {
        display: flex;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin-top: 12px;
        font-size: 15px;
    }

    /* Newsletter: a card with a mail badge; field and button stack. */
    #site-footer .kw-footer__newsletter {
        margin-bottom: 40px;
        padding: 24px 20px;
        border: 1px solid var(--kw-line);
        border-radius: 20px;
        background-color: var(--kw-surface);
    }

    #site-footer .kw-footer__newsletter-icon {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
        border-radius: 14px;
        background: var(--kw-grad);
        color: #fff;
        box-shadow: 0 10px 24px -10px rgba(118, 75, 162, 0.7);
    }

    #site-footer .kw-footer__newsletter-icon i {
        font-size: 20px;
    }

    #site-footer .es-subscription-form .es-form-field-group {
        flex-direction: column;
        gap: 10px;
    }

    #site-footer .es-subscription-form .es-input-email {
        flex: none;
        width: 100%;
        height: 52px;
    }

    #site-footer .es-subscription-form .es-submit-button {
        width: 100%;
        height: 52px;
        font-size: 16px;
    }

    /* Bottom bar: centred, cookie settings as a pill. */
    #site-footer .kw-footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    #site-footer .kw-footer__copy {
        margin-right: 0;
    }

    #site-footer .kw-footer__cookie {
        min-height: 40px;
        margin-top: 4px;
        padding: 8px 18px;
        border: 1px solid var(--kw-line);
        border-radius: 999px;
        text-decoration: none;
    }
}

/* Reduced motion: every state change is instant, no heartbeat. */
@media (prefers-reduced-motion: reduce) {
    #site-footer *,
    #site-footer *::before,
    #site-footer *::after {
        animation: none !important;
        transition-duration: 0s !important;
    }
}
