:root {
    --kampachi-page-background: #f5ebe0;
}

html,
body {
    background-color: var(--kampachi-page-background) !important;
    background-image: none !important;
}

.paper-surface {
    background-color: var(--kampachi-page-background) !important;
    background-image: none !important;
}

.paper-surface::before,
.paper-surface::after {
    display: none !important;
    background-image: none !important;
    content: none !important;
}

.view-all-button {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    max-inline-size: 100%;
    padding: 8px 24px;
    border: 1px solid #241d19;
    border-radius: 0;
    color: #241d19;
    font-size: var(--kampachi-font-link);
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
    text-decoration: none;
    text-transform: uppercase;
}

.view-all-button:is(:hover, :focus-visible) {
    background: #241d19;
    color: #f5ebe0;
}

.site-header,
.site-header.is-scrolled {
    background: #000000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.site-footer,
.site-footer.paper-surface {
    background-color: #050505 !important;
    background-image: url("images/footer-brush-texture.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    color: #f5ebe0 !important;
}

.site-footer::before,
.site-footer::after {
    display: none !important;
    background-image: none !important;
    content: none !important;
}

.site-footer * {
    color: #f5ebe0 !important;
}

.site-footer .footer-brand img {
    filter: brightness(0) invert(1) !important;
}

.site-footer .footer-rule {
    background: rgba(245, 235, 224, 0.36) !important;
}

/* Screenshot-led Kampachi footer layout */
.site-footer {
    padding: 58px 0 24px !important;
    border-top: 1px solid rgba(245, 235, 224, 0.12);
}

.site-footer .footer-inner {
    width: min(1365px, calc(100% - 96px)) !important;
    margin-inline: auto !important;
}

.site-footer .footer-top {
    --footer-heading-gap: 19px;
    display: grid !important;
    min-height: 0 !important;
    grid-template-columns: minmax(130px, 1.05fr) minmax(150px, 1fr) minmax(205px, 1.3fr) minmax(220px, 1.45fr) minmax(185px, 1.05fr) !important;
    align-items: start !important;
    gap: clamp(22px, 3vw, 48px) !important;
    padding: 0 0 44px !important;
}

.site-footer .footer-brand {
    width: 110px !important;
    margin-top: 2px;
}

.site-footer .footer-brand img {
    width: 100% !important;
    max-height: 72px !important;
    object-fit: contain !important;
}

.site-footer .footer-heading {
    margin: 0 0 var(--footer-heading-gap) !important;
    color: #c9b28a !important;
    font-family: inherit;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    line-height: 1.4 !important;
}

.site-footer .footer-links {
    display: grid !important;
    justify-content: start !important;
    gap: 11px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.site-footer .footer-links a,
.site-footer .footer-address address {
    display: block !important;
}

.site-footer .footer-links a,
.site-footer .footer-address address,
.site-footer .footer-contact > a {
    color: rgba(245, 235, 224, 0.86) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    letter-spacing: 0.015em !important;
    line-height: 1.75 !important;
    text-decoration: none !important;
}

.site-footer .footer-brand,
.site-footer .footer-links a,
.site-footer .footer-contact > a {
    font-size: var(--kampachi-font-link) !important;
}

.site-footer .footer-address address {
    font-size: 13px !important;
}

.site-footer .footer-links a:hover,
.site-footer .footer-contact > a:hover,
.site-footer .footer-privacy:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.site-footer .footer-contact > a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.site-footer .footer-contact > a + a {
    margin-top: 5px;
}

.site-footer .kc-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-inline-start: -10px;
}

.site-footer .kc-footer-socials > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.site-footer .kc-footer-socials > a:hover {
    opacity: 0.75;
}

.site-footer .kc-footer-socials > a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.site-footer .kc-footer-icon {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
}

.site-footer .kc-footer-icon--wordmark {
    width: 28px;
    height: 28px;
}

.site-footer .social-links {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 17px !important;
    margin-top: 17px !important;
}

.site-footer .social-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.site-footer .social-links svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}

.site-footer .footer-cta {
    display: flex;
    justify-content: flex-end;
}

@media (width > 1080px) {
    .site-footer .footer-top:has(> .footer-contact > .footer-heading:empty) > .footer-cta {
        padding-top: var(--footer-heading-gap);
    }
}

#site-header :is(.reservation-trigger, .language-button),
.site-footer .footer-cta > a,
.site-footer .kc-footer-enquiry-toggle {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 48px !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(245, 235, 224, 0.72) !important;
    border-radius: 0;
    padding: 10px 21px !important;
    background: transparent !important;
    color: #f5ebe0 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.13em !important;
    line-height: 1.3 !important;
    text-decoration: none;
    text-transform: uppercase;
    text-align: start;
    overflow-wrap: anywhere;
    transition: background-color 180ms ease, color 180ms ease;
}

.site-footer .footer-cta > a {
    width: min(100%, 230px);
}

#site-header .reservation-trigger {
    min-width: 0 !important;
    box-shadow: none;
}

#site-header .reservation-label {
    flex: 1;
    text-align: center;
}

#site-header .header-actions:has(.language-wrap) {
    gap: 10px !important;
}

#site-header .language-wrap {
    position: relative;
    display: block !important;
    flex: none;
}

#site-header .language-button {
    width: auto;
    min-width: 44px;
    height: auto;
    gap: 7px;
    justify-content: center;
    padding-inline: 10px !important;
    overflow: visible;
    cursor: pointer;
}

.kc-language-icon {
    width: 16px;
    height: 16px;
}

.kc-language-flag {
    display: block;
    flex: none;
    inline-size: 20px;
    block-size: 15px;
    border-radius: 2px;
    object-fit: contain;
}

.kc-language-option-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.kc-language-chevron {
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

#site-header .language-popover {
    top: calc(100% + 8px);
    right: 0;
    z-index: 90;
    display: grid;
    min-width: 175px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    background: #090909;
    box-shadow: 0 16px 28px rgb(0 0 0 / 25%);
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

#site-header .language-popover[hidden] {
    display: none !important;
}

#site-header .language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 10px;
    color: #f5ebe0;
    text-decoration: none;
    white-space: nowrap;
}

#site-header .language-option[aria-current="page"] {
    color: #e0c9aa;
}

#site-header .language-option[aria-disabled="true"] {
    color: #b8b0a7;
}

#site-header a.language-option:is(:hover, :focus-visible) {
    background: #292322;
}

@media (min-width: 1200px) and (max-width: 1440px) {
    body:has(#site-header .language-wrap) #site-menu {
        padding-inline: 100px 218px !important;
    }

    body:has(#site-header .language-wrap) #site-menu .nav-list {
        gap: clamp(10px, 0.95vw, 16px) !important;
    }
}

@media (max-width: 600px) {
    #site-header .reservation-trigger {
        gap: 10px;
        padding-inline: 10px !important;
        white-space: normal;
    }

    #site-header .header-actions:has(.language-wrap) {
        gap: 7px !important;
    }

    #site-header .kc-language-icon,
    #site-header .language-button:has(.kc-language-flag) .kc-language-code {
        display: none;
    }

    #site-header .language-button .kc-language-flag {
        inline-size: 16px;
        block-size: 12px;
    }
}

@media (max-width: 360px) {
    #site-header:has(.language-wrap) :is(.brand, .brand-logo) {
        width: 65px !important;
        max-width: 65px !important;
        flex-basis: 65px !important;
    }
}

.site-footer .footer-cta > a:hover,
.site-footer .footer-cta > a:focus-visible {
    background: #f5ebe0 !important;
    color: #000000 !important;
}

.site-footer .kc-footer-enquiry {
    position: relative;
    width: min(100%, 230px);
    text-align: start;
}

.site-footer .kc-footer-enquiry-toggle {
    display: flex;
    width: 100%;
    cursor: pointer;
    list-style: none;
}

.site-footer .kc-footer-enquiry-toggle::-webkit-details-marker {
    display: none;
}

.site-footer .kc-footer-enquiry-chevron,
#site-header .reservation-chevron {
    flex: none;
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: translateY(-2px) rotate(45deg);
}

.site-footer .kc-footer-enquiry[open] .kc-footer-enquiry-chevron,
#site-header .reservation-trigger[aria-expanded="true"] .reservation-chevron {
    transform: translateY(2px) rotate(225deg);
}

#site-header .reservation-trigger:is(:hover, :focus-visible, [aria-expanded="true"]),
.site-footer .kc-footer-enquiry[open] .kc-footer-enquiry-toggle,
.site-footer .kc-footer-enquiry-toggle:hover {
    border-color: #f5ebe0 !important;
    background: #f5ebe0 !important;
}

#site-header .reservation-trigger:is(:hover, :focus-visible, [aria-expanded="true"]),
.site-footer .kc-footer-enquiry[open] .kc-footer-enquiry-toggle > span,
.site-footer .kc-footer-enquiry-toggle:hover > span {
    color: #1c0e0e !important;
}

.site-footer .kc-footer-enquiry-panel {
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid rgba(245, 235, 224, 0.75);
    background: #231e1d;
    color: #f5ebe0;
    scroll-margin-top: calc(var(--header-height, 88px) + var(--wp-admin--admin-bar--height, 0px) + 12px);
}

.site-footer .kc-footer-enquiry-notice {
    margin: 0;
    font-size: 14px;
}

.site-footer .kc-footer-enquiry-notice + .kc-footer-enquiry-form {
    margin-top: 12px;
}

.site-footer .kc-footer-enquiry-form {
    display: grid;
    gap: 8px;
}

.site-footer .kc-footer-enquiry-trap,
.site-footer .kc-footer-enquiry-form .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.site-footer .kc-footer-enquiry-form label {
    display: block;
    min-width: 0;
}

.site-footer .kc-footer-enquiry-form input:not([type="hidden"]),
.site-footer .kc-footer-enquiry-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 0;
    background: #383433;
    font: inherit;
    font-size: 16px;
}

.site-footer .kc-footer-enquiry-form textarea {
    display: block;
    min-height: 140px;
    resize: vertical;
}

.site-footer .kc-footer-enquiry-form input::placeholder,
.site-footer .kc-footer-enquiry-form textarea::placeholder {
    color: #f5ebe0;
    opacity: 1;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer .kc-footer-enquiry-form button {
    justify-self: end;
    min-height: 44px;
    padding: 8px 4px 8px 16px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.site-footer .kc-footer-enquiry-form button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .kc-footer-enquiry :focus-visible {
    outline: 2px solid #f5ebe0;
    outline-offset: -2px;
}

.site-footer .kc-footer-enquiry[open] .kc-footer-enquiry-toggle:focus-visible,
.site-footer .kc-footer-enquiry-toggle:hover:focus-visible {
    outline-color: #1c0e0e;
}

@media (width > 1080px) and (height >= 640px) {
    .site-footer .kc-footer-enquiry-panel {
        position: absolute;
        z-index: 2;
        inset-block-end: 100%;
        inset-inline-end: 0;
        width: max(100%, 270px);
        max-height: min(540px, calc(100dvh - 152px));
        overflow: auto;
        border-block-end: 0;
    }

    .site-footer .kc-footer-enquiry {
        width: min(100%, 310px);
    }
}

@media (width >= 1280px) and (height >= 640px) {
    .site-footer .footer-top {
        grid-template-columns: minmax(130px, 1.05fr) minmax(150px, 1fr) minmax(205px, 1.3fr) minmax(220px, 1.45fr) minmax(275px, 1.4fr) !important;
    }
}

@media (width <= 1080px), (height < 640px) {
    .site-footer .kc-footer-enquiry[open] {
        width: min(100%, 310px);
    }

    .site-footer .kc-footer-enquiry-panel {
        border-block-start: 0;
    }
}

.kc-contact-form-wrap#enquiry {
    scroll-margin-top: calc(var(--header-height, 88px) + var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

body .site-footer .footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(245, 235, 224, 0.27);
    padding-top: 18px;
}

.site-footer .copyright,
.site-footer .footer-privacy {
    margin: 0 !important;
    color: rgba(245, 235, 224, 0.69) !important;
    font-size: 11px !important;
    letter-spacing: 0.035em !important;
    line-height: 1.5 !important;
    text-align: left !important;
    text-decoration: none !important;
}

.site-footer .footer-privacy {
    flex: none;
    font-size: var(--kampachi-font-link) !important;
    margin-inline-start: auto !important;
    text-align: end !important;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .site-footer .footer-inner {
        width: min(100% - 64px, 820px) !important;
    }

    .site-footer .footer-top {
        grid-template-columns: minmax(110px, 0.8fr) minmax(160px, 1fr) minmax(210px, 1.3fr) !important;
        justify-items: stretch;
        gap: 34px 28px !important;
    }

    .site-footer .footer-cta {
        grid-column: 2 / 4;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .site-footer {
        padding: 40px 0 calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .site-footer .footer-inner {
        width: calc(100% - 40px) !important;
    }

    .site-footer .footer-top {
        grid-template-columns: minmax(88px, 0.55fr) minmax(0, 1fr) !important;
        gap: 24px 16px !important;
        padding-bottom: 32px !important;
    }

    .site-footer .footer-brand {
        width: 88px !important;
        line-height: 1.4;
    }

    .site-footer .footer-brand img {
        display: block;
    }

    .site-footer .footer-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        min-inline-size: 0;
        width: 100%;
    }

    .site-footer .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 10px 16px !important;
    }

    .site-footer .footer-heading {
        margin-bottom: 13px !important;
        font-size: 10px !important;
    }

    .site-footer .footer-links a,
    .site-footer .footer-address address,
    .site-footer .footer-contact > a {
        line-height: 1.65 !important;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .site-footer .footer-address address {
        font-size: 12px !important;
    }

    .site-footer .footer-contact {
        grid-column: 1 / -1;
    }

    .site-footer .footer-contact > a {
        min-height: 36px;
        margin-bottom: 4px;
    }

    .site-footer .footer-contact > a > span {
        min-width: 0;
    }

    .site-footer .kc-footer-socials {
        margin-inline-start: -14px;
    }

    .site-footer .kc-footer-socials > a {
        width: 44px;
        height: 44px;
    }

    .site-footer .footer-cta {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .site-footer .footer-cta > a,
    .site-footer .kc-footer-enquiry,
    .site-footer .kc-footer-enquiry[open] {
        width: 100%;
    }

    body .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-footer .copyright {
        padding-inline: 0;
        overflow-wrap: anywhere;
    }

    .site-footer .footer-privacy {
        margin-inline-start: 0 !important;
        text-align: start !important;
        white-space: normal;
    }
}

/* Media Library image (or bundled fallback) for every shared footer. */
body .site-footer.site-footer--brush.paper-surface {
    background-image: var(--kampachi-footer-bg, url("images/footer-brush-texture.png")) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}
