:root {
    --vino: #650820;
    --vino-oscuro: #4A0618;
    --crema: #FBF0E8;
    --dorado: #B58A2E;
    --blanco-calido: #F5E6DC;
}

.site-header {
    z-index: 1000;
    top: 0;
    position: -webkit-sticky;
    position: sticky;
    border: 0;
    background: var(--crema);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.site-header::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #9c7020 0%, #d9bc73 24%, #b58a2e 52%, #e1ca91 78%, #9c7020 100%);
    content: "";
    pointer-events: none;
}

.header-topbar {
    height: 48px;
    min-height: 48px;
    overflow: hidden;
    background-color: var(--vino);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 5px);
    opacity: 1;
    transition: height .35s ease, min-height .35s ease, opacity .35s ease;
}

.header-topbar-inner {
    width: min(100% - 64px, 1120px);
    height: 48px;
    min-height: 48px;
    gap: 18px;
    color: var(--blanco-calido);
    font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
    font-size: 14px;
}

.header-topbar-contact a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(245, 230, 220, .62);
    border-radius: 999px;
    padding: 3px 12px;
    color: var(--blanco-calido);
    transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.header-topbar-contact a:hover {
    border-color: var(--crema);
    background: var(--crema);
    color: var(--vino);
}

.header-topbar-contact svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.header-topbar-separator {
    width: 1px;
    height: 22px;
    background: rgba(245, 230, 220, .7);
}

.header-topbar-lang {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blanco-calido);
    font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
    font-size: 14px;
}

.header-topbar-lang button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 0;
    padding: 2px 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    opacity: .58;
    cursor: pointer;
    transition: opacity .2s ease;
}

.header-topbar-lang .lang-flag {
    width: 20px;
    height: 13px;
    flex: 0 0 20px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(245, 230, 220, .45);
}

.header-topbar-lang button:hover,
.header-topbar-lang button.is-active {
    opacity: 1;
}

.header-topbar-lang button.is-active {
    font-weight: 600;
}

.header-topbar-lang .lang-sep {
    opacity: .7;
}

.header-inner {
    width: min(100% - 64px, 1120px);
    min-height: 100px;
    gap: 24px;
    transition: min-height .35s ease;
}

.brand {
    flex: 0 1 285px;
    color: var(--vino);
    transform-origin: left center;
    transition: transform .35s ease;
}

.brand-logo {
    width: 275px;
    max-height: 88px;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    height: auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(16px, 2vw, 28px);
}

.primary-nav-list {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.1vw, 30px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header .primary-navigation .nav-link,
.site-header .primary-navigation .nav-link:link,
.site-header .primary-navigation .nav-link:visited {
    display: inline-flex;
    height: auto;
    align-items: center;
    padding: 8px 0;
    color: var(--vino-oscuro) !important;
    font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.site-header .primary-navigation .nav-link:hover {
    color: var(--vino) !important;
}

.site-header .primary-navigation .nav-link::after {
    bottom: -5px;
    width: 0;
    height: 1.5px;
    background: var(--dorado);
}

.site-header .primary-navigation .nav-link:hover::after,
.site-header .primary-navigation .nav-link.is-current::after,
.site-header .primary-navigation .nav-link[aria-current="page"]::after {
    width: 100%;
}

.mobile-drawer-heading {
    display: none;
}

.header-cta,
.header-cta:link,
.header-cta:visited {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1.5px solid var(--dorado);
    border-radius: 999px;
    padding: 0 22px;
    background: transparent;
    box-shadow: none;
    color: var(--vino-oscuro);
    font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
    border-color: var(--vino);
    background: var(--vino);
    color: var(--crema);
}

.header-cta svg {
    width: 17px;
    height: 17px;
    transition: transform .3s ease;
}

.header-cta:hover svg {
    transform: translateX(4px);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border-color: transparent;
    border-radius: 6px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--vino);
}

.menu-toggle:focus-visible,
.drawer-close:focus-visible,
.header-topbar-lang button:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 3px;
}

.nav-backdrop {
    display: none;
}

.site-header.is-scrolled .header-topbar {
    height: 48px;
    min-height: 48px;
    opacity: 1;
}

.site-header.is-scrolled .header-topbar-inner {
    min-height: 48px;
}

.site-header.is-scrolled .header-inner {
    min-height: 76px;
}

.site-header.is-scrolled .brand {
    transform: scale(.9);
}

@media (min-width: 1024px) and (max-width: 1150px) {
    .header-inner {
        width: calc(100% - 40px);
        gap: 12px;
    }

    .brand {
        flex-basis: 230px;
    }

    .brand-logo {
        width: 225px;
    }

    .primary-navigation,
    .primary-nav-list {
        gap: 13px;
    }

    .site-header .primary-navigation .nav-link {
        font-size: 15px;
    }

    .header-cta,
    .header-cta:hover {
        min-height: 40px;
        padding: 0 15px;
        font-size: 15px;
    }
}

@media (max-width: 1023px) {
    .header-inner {
        width: calc(100% - 48px);
        min-height: 88px;
        justify-content: space-between;
    }

    .brand {
        flex-basis: 210px;
    }

    .brand-logo {
        width: 205px;
        max-height: 72px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
        position: relative;
        z-index: 2;
    }

    .site-header .primary-navigation {
        position: fixed;
        z-index: 1102;
        top: 0;
        left: auto;
        right: 0;
        bottom: 0;
        display: flex;
        width: min(380px, 88vw);
        height: 100vh;
        height: 100dvh;
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        gap: 28px;
        overflow-y: auto;
        padding: 28px 30px 32px;
        border-left: 2px solid var(--dorado);
        background: var(--crema);
        box-shadow: -10px 0 30px rgba(0, 0, 0, .16);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .35s ease, visibility .35s ease;
    }

    .site-header .primary-navigation::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, #9c7020 0%, #d9bc73 45%, #b58a2e 100%);
        content: "";
    }

    .site-header .primary-navigation.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .site-header .primary-nav-list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .site-header .primary-navigation .nav-link,
    .site-header .primary-navigation .nav-link:link,
    .site-header .primary-navigation .nav-link:visited {
        display: flex;
        min-height: 50px;
        align-items: center;
        border-bottom: 1px solid rgba(181, 138, 46, .23);
        padding: 8px 0;
        color: var(--vino-oscuro) !important;
        font-size: 19px;
    }

    .site-header .primary-navigation .nav-link::after {
        display: none;
    }

    .site-header .primary-navigation .nav-link.is-current,
    .site-header .primary-navigation .nav-link[aria-current="page"] {
        color: var(--vino) !important;
        font-weight: 600;
    }

    .mobile-drawer-heading {
        display: flex;
        min-height: 42px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(181, 138, 46, .45);
        padding-bottom: 14px;
        color: var(--vino);
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 23px;
        font-weight: 600;
    }

    .drawer-close {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(101, 8, 32, .25);
        border-radius: 50%;
        background: transparent;
        color: var(--vino);
        cursor: pointer;
    }

    .drawer-close svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 1.6;
    }

    .header-cta,
    .header-cta:hover {
        width: 100%;
        min-height: 48px;
        margin-top: auto;
        font-size: 19px;
    }

    .nav-backdrop {
        position: fixed;
        z-index: 1101;
        inset: 0;
        display: block;
        background: rgba(34, 8, 15, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s ease, visibility .35s ease;
        visibility: hidden;
    }

    .site-header.is-menu-open {
        z-index: 1100;
    }

    .site-header.is-menu-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .site-header.is-menu-open .menu-toggle {
        display: none;
    }

    body.drawer-open {
        overflow: hidden;
    }
}

@media (max-width: 599px) {
    .header-topbar-inner {
        width: calc(100% - 32px);
        gap: 14px;
    }

    .header-topbar-contact a span,
    .header-topbar-separator {
        display: none;
    }

    .header-topbar-contact a {
        min-height: 30px;
        padding: 5px;
    }

    .header-inner {
        width: calc(100% - 32px);
        min-height: 78px;
        gap: 8px;
    }

    .brand {
        flex-basis: 170px;
    }

    .brand-logo {
        width: 170px;
        max-height: 62px;
    }

    .site-header.is-scrolled .header-inner {
        min-height: 68px;
    }

    .site-header .primary-navigation {
        padding: 24px 24px 28px;
    }

    .about-art {
        padding: 12px;
    }

}

.about-art {
    padding: 14px;
    border-color: rgba(181, 138, 46, .46);
    background:
        radial-gradient(circle at 50% 40%, rgba(181, 138, 46, .16), transparent 54%),
        linear-gradient(140deg, #fdf8f3 0%, #f6ece2 52%, #efe0d2 100%);
    box-shadow: 0 20px 44px rgba(101, 8, 32, .12);
}

.about-art::before {
    content: none;
}

.about-art:hover {
    box-shadow: 0 26px 54px rgba(101, 8, 32, .18);
}

.about-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 24%;
    border-radius: 26px 4px 26px 4px;
    transition: transform .45s ease;
}

.about-art:hover .about-image {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .site-header *,
    .site-header *::before,
    .site-header *::after {
        transition-duration: .01ms !important;
    }
}
