body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.admin-bar { min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px)); }
body > .eo-footer { margin-block-start: auto; padding-block-start: clamp(1.75rem, 4vw, 3.5rem); }
body > .eo-footer:has(> .eo-newsletter) { padding-block-start: 0; }
body > .eo-contact-page + .eo-footer:has(> .eo-newsletter) { margin-block-start: 0; }

.eo-footer .eo-newsletter { padding-block: clamp(1.7rem, 3.5vw, 3rem); background: var(--eo-champagne); color: #432d20; text-align: start; }
.eo-newsletter-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); align-items: center; gap: 1rem clamp(2rem, 7vw, 6.5rem); }
.eo-footer .eo-newsletter h2 { margin: 0 0 .5rem; color: inherit; font-size: clamp(1.9rem, 3.7vw, 3.5rem); }
.eo-newsletter-copy p { max-width: 35ch; margin: 0; }
.eo-newsletter-signup { min-width: 0; }
.eo-newsletter-signup .wpcf7-form > label:has(input:is([type="text"], [type="email"])) { display: block; margin-block-end: .65rem; }
.eo-footer .eo-newsletter .eo-native-consent { justify-content: start; }
.eo-footer .eo-newsletter .eo-native-form-actions { justify-items: start; }

.eo-footer .eo-instagram { padding-block: clamp(1.75rem, 3.5vw, 3rem); text-align: start; }
.eo-instagram-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .85rem 1.5rem; margin-block-end: 1.15rem; }
.eo-footer .eo-instagram h2 { margin: 0; font-size: clamp(1.85rem, 3.4vw, 3rem); line-height: 1; text-transform: none; }
.eo-instagram-header p { margin: .4rem 0 0; color: #60483a; font-size: .95rem; }
.eo-instagram-follow { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem .95rem; border: 1px solid var(--eo-gold); background: var(--eo-ivory); color: var(--eo-ink); font-weight: 600; text-decoration: none; }
.eo-instagram-follow { border-image: var(--eo-logo-reflection) 1; }
.eo-instagram-follow:is(:hover, :focus-visible) { background: var(--eo-champagne); color: var(--eo-ink); }
.eo-instagram-follow svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.eo-instagram-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.4rem, 1vw, .9rem); margin: 0; padding: 0; list-style: none; }
.eo-instagram-grid a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 3px; background: var(--eo-champagne); }
.eo-instagram-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eo-instagram-video { position: absolute; inset: .5rem .5rem auto auto; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; color: #fff; background: #302018e6; }
.eo-instagram-video svg { width: .9rem; height: .9rem; fill: currentColor; }
.eo-instagram :is(.eo-instagram-follow, .eo-instagram-grid a):focus-visible { outline: 2px solid var(--eo-ink); outline-offset: 3px; }

.eo-footer .eo-footer-legal { padding-block: 1.2rem; background: var(--eo-champagne); color: #432d20; text-align: start; }
.eo-footer-inner { display: grid; grid-template-columns: minmax(max-content, 1fr) auto; align-items: center; gap: .65rem 1.5rem; }
.eo-footer-legal a { color: inherit; text-underline-offset: .25em; }
.eo-footer-brand { font: 700 clamp(1.45rem, 2.1vw, 1.85rem)/1 var(--eo-serif); text-decoration: none; }
.eo-footer .eo-footer-legal ul { justify-content: end; gap: .45rem 1.2rem; }
.eo-footer-credits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.25rem; color: #60483a; font-size: .85rem; }
.eo-footer-legal a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.eo-back-to-top {
    --eo-scroll-progress: 0%;
    position: fixed;
    z-index: 15;
    right: max(1.125rem, env(safe-area-inset-right));
    bottom: calc(1.125rem + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 3px;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(var(--eo-gold) var(--eo-scroll-progress), var(--eo-accent) 0);
    color: var(--eo-ink);
    cursor: pointer;
    box-shadow: 0 5px 16px #39281f24;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body:has(.wa-wrapper) .eo-back-to-top {
    right: calc(31px + env(safe-area-inset-right));
}

body:not(.eo-menu-visible):has(> .eo-back-to-top.is-visible) > .wa-wrapper {
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(1.125rem + 64px + env(safe-area-inset-bottom));
}

.eo-back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.eo-menu-visible .eo-back-to-top { visibility: hidden; opacity: 0; pointer-events: none; }
.eo-back-to-top:focus-visible { outline: 2px solid #634422; outline-offset: 4px; }
.eo-back-to-top-icon { position: relative; display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--eo-ivory); }
.eo-back-to-top-icon::before, .eo-back-to-top-icon::after { content: ''; position: absolute; left: 50%; }
.eo-back-to-top-icon::before { top: 17px; width: 10px; height: 10px; border-top: 2px solid; border-left: 2px solid; transform: translateX(-50%) rotate(45deg); }
.eo-back-to-top-icon::after { top: 17px; width: 2px; height: 15px; background: currentColor; transform: translateX(-50%); }
.eo-back-to-top-label { position: absolute; right: calc(100% + .55rem); padding: .37rem .62rem; border-radius: 4px; background: var(--eo-champagne); color: var(--eo-ink); font: 600 .85rem/1.25 var(--eo-sans); white-space: nowrap; visibility: hidden; opacity: 0; pointer-events: none; }
.eo-back-to-top:focus-visible .eo-back-to-top-label { visibility: visible; opacity: 1; }

@media (hover: hover) {
    .eo-back-to-top:hover .eo-back-to-top-label { visibility: visible; opacity: 1; }
    .eo-back-to-top:hover .eo-back-to-top-icon { background: var(--eo-champagne); }
}

@media (prefers-reduced-motion: no-preference) {
    .eo-instagram-follow svg { transition: transform .25s cubic-bezier(.18,.76,.28,1); }
    .eo-instagram-follow:is(:hover, :focus-visible) svg { transform: translateY(-2px); }
    .eo-instagram-grid img { transition: transform 300ms ease; }
    .eo-instagram-grid a:is(:hover, :focus-visible) img { transform: scale(1.05); }
    .eo-back-to-top { transform: translateY(9px); transition: opacity .2s ease, transform .2s cubic-bezier(.23, 1, .32, 1), visibility .2s; }
    .eo-back-to-top.is-visible { transform: translateY(0); }
    .eo-back-to-top.is-visible:active { transform: scale(.96); }
    .eo-back-to-top-icon, .eo-back-to-top-label { transition: background-color .15s ease, opacity .15s ease; }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    body.eo-floating-scroll > :is(.wa-wrapper, .eo-back-to-top) { transition: none; }
    body.eo-floating-scroll > .wa-wrapper .wa-btn::before { animation: none; opacity: 0; }
    body.eo-floating-scroll.eo-floating-scroll-active > .wa-wrapper,
    body.eo-floating-scroll > .wa-wrapper:has(:focus-visible) { opacity: 1; transform: none; pointer-events: auto; }
    body.eo-floating-scroll:not(.eo-floating-scroll-active) > .wa-wrapper:not(:has(:focus-visible)),
    body.eo-floating-scroll:not(.eo-floating-scroll-active) > .eo-back-to-top:not(:focus-visible),
    body.eo-floating-scroll.eo-menu-visible > .wa-wrapper { opacity: 0; pointer-events: none; }

    @media (prefers-reduced-motion: no-preference) {
        body.eo-floating-scroll:not(.eo-floating-scroll-active) > :is(.wa-wrapper, .eo-back-to-top) { transition: opacity .16s ease-out; }
    }
}

@media (max-width: 900px) {
    .eo-footer-inner { grid-template-columns: 1fr; }
    .eo-footer .eo-footer-legal ul { justify-content: start; }
}

@media (max-width: 690px) {
    .eo-newsletter-inner { grid-template-columns: 1fr; }
    .eo-instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
