/* Version 1.5.6 — global spacing tune.
 * Keeps the approved luxury layout but removes the oversized gaps that appeared
 * after the emergency layout locks. This file intentionally loads last on every
 * public template.
 */
:root {
    --jda-section: clamp(48px, 5.2vw, 68px);
    --jda-section-tight: clamp(34px, 4vw, 52px);
    --jda-section-heading-gap: clamp(1.25rem, 3vw, 2.25rem);
}

body.jda-theme .jda-page-hero,
body.jda-theme .jda-archive-hero,
body.jda-theme .jda-single-hero,
body.jda-theme:not(.jda-front-page) .jda-page-hero,
body.jda-theme:not(.jda-front-page) .jda-archive-hero,
body.jda-theme:not(.jda-front-page) .jda-single-hero {
    padding-block: clamp(44px, 5.8vw, 76px) !important;
}

body.jda-theme .jda-home-section,
body.jda-theme .jda-directory-section,
body.jda-theme .jda-page-content,
body.jda-theme .jda-contact-section,
body.jda-theme .jda-map-section,
body.jda-theme .jda-related-section,
body.jda-theme .jda-about-values,
body.jda-theme .jda-about-stats,
body.jda-theme .jda-event-feature,
body.jda-theme .jda-past-events,
body.jda-theme .jda-blog-feature,
body.jda-theme .jda-page-entry,
body.jda-theme .jda-single-content,
body.jda-theme .jda-foundation-callout,
body.jda-theme .jda-checkout-section,
body.jda-theme .jda-booking-section,
body.jda-theme .jda-academy-section,
body.jda-theme .jda-commerce-section {
    padding-block: var(--jda-section) !important;
}

body.jda-theme .jda-home-cards {
    margin-top: clamp(-38px, -3vw, -24px) !important;
    padding-bottom: var(--jda-section-tight) !important;
}

body.jda-theme .jda-section-heading {
    margin-bottom: var(--jda-section-heading-gap) !important;
}

body.jda-theme .jda-page-content + .jda-page-content,
body.jda-theme .jda-home-section + .jda-home-section,
body.jda-theme .jda-directory-section + .jda-directory-section,
body.jda-theme .jda-contact-section + .jda-map-section,
body.jda-theme .jda-event-feature + .jda-directory-section,
body.jda-theme .jda-about-values + .jda-about-stats {
    padding-top: 0 !important;
}

body.jda-theme .jda-footer-main {
    padding-block: clamp(42px, 5vw, 64px) !important;
}

@media (max-width: 782px) {
    :root {
        --jda-section: 42px;
        --jda-section-tight: 30px;
    }

    body.jda-theme .jda-page-hero,
    body.jda-theme .jda-archive-hero,
    body.jda-theme .jda-single-hero,
    body.jda-theme:not(.jda-front-page) .jda-page-hero,
    body.jda-theme:not(.jda-front-page) .jda-archive-hero,
    body.jda-theme:not(.jda-front-page) .jda-single-hero {
        padding-block: 38px !important;
    }
}

/* v1.5.7 footer utility fixes */
.jda-page-top {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.jda-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.1rem;
}

.jda-footer-credit a,
.jda-footer-credit span {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 680px) {
    .jda-footer-bottom > .jda-container,
    .jda-footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }
}
