/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 2.4.1
WPVibe: yes
*/

body .hob-back-to-top {
    position: fixed !important;
    right: clamp(16px, 2vw, 28px) !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    z-index: 999997 !important;
    display: grid !important;
    width: 48px !important;
    height: 48px !important;
    visibility: hidden !important;
    place-items: center;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    background: #171514 !important;
    color: #fffdf9 !important;
    box-shadow: 0 12px 32px rgba(23, 21, 20, 0.22);
    font-family: Arial, sans-serif;
    font-size: 24px !important;
    font-weight: 400;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    pointer-events: none !important;
    transform: translateY(12px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.25s ease;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

body .hob-back-to-top:hover,
body .hob-back-to-top:focus-visible {
    background: #9d6c58 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

body .hob-back-to-top:focus-visible {
    outline: 2px solid #9d6c58;
    outline-offset: 3px;
}

body .hob-back-to-top.is-visible {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.hob-cookie-banner[hidden],
.hob-cookie-settings[hidden] {
    display: none !important;
}

.hob-cookie-banner {
    position: fixed;
    right: clamp(14px, 2.5vw, 34px);
    bottom: clamp(14px, 2.5vw, 34px);
    left: clamp(14px, 2.5vw, 34px);
    z-index: 1000001;
    display: grid;
    max-width: 1120px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 0 auto;
    padding: 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: #171514;
    color: #fffdf9;
    box-shadow: 0 22px 70px rgba(23, 21, 20, 0.34);
    font-family: "Manrope", Arial, sans-serif;
}

.hob-cookie-copy h2,
.hob-cookie-copy p {
    margin: 0;
}

.hob-cookie-copy h2 {
    color: #fffdf9;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    line-height: 1;
}

.hob-cookie-copy .hob-cookie-eyebrow {
    margin-bottom: 7px;
    color: #d7c7b4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hob-cookie-copy #hob-cookie-description {
    max-width: 670px;
    margin-top: 12px;
    color: rgba(255, 253, 249, 0.74);
    font-size: 13px;
    line-height: 1.55;
}

.hob-cookie-copy a {
    display: inline-block;
    margin-top: 10px;
    border-bottom: 1px solid rgba(255, 253, 249, 0.5);
    color: #fffdf9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.hob-cookie-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.hob-cookie-actions button {
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 253, 249, 0.5);
    border-radius: 999px;
    background: transparent;
    color: #fffdf9;
    font: 700 11px/1.2 "Manrope", Arial, sans-serif;
    letter-spacing: 0.05em;
    white-space: nowrap;
    cursor: pointer;
}

.hob-cookie-actions button[data-cookie-accept] {
    border-color: #b98d7b;
    background: #b98d7b;
    color: #171514;
}

.hob-cookie-actions button:hover,
.hob-cookie-actions button:focus-visible {
    border-color: #fffdf9;
    outline: none;
    background: #fffdf9;
    color: #171514;
}

.hob-cookie-settings {
    position: fixed;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 18px;
    z-index: 999996;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(23, 21, 20, 0.18);
    border-radius: 999px;
    background: rgba(244, 240, 233, 0.96);
    color: #171514;
    box-shadow: 0 8px 24px rgba(23, 21, 20, 0.14);
    font: 700 10px/1 "Manrope", Arial, sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
}

body.hob-cookie-open .hob-back-to-top {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hob-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 14px;
}

.hob-footer-legal a,
.hob-footer-legal button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

@media (max-width: 850px) {
    body .hob-back-to-top {
        right: 16px !important;
        width: 46px !important;
        height: 46px !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 22px !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .hob-cookie-banner {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 20px;
        border-radius: 16px;
    }

    .hob-cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hob-cookie-actions button {
        width: 100%;
    }

    .hob-cookie-settings {
        bottom: max(18px, env(safe-area-inset-bottom));
        left: 12px;
    }

    .hob-footer-legal {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .hob-back-to-top {
        transition: none;
    }
}
