:root {
    --gold: #d4af37;
    --crimson: #b22222;
    --charcoal: #0a0a0a;
    --sg-red: #a00808;
    --sg-red-dark: #6f0505;
    --sg-ivory: #f2eee2;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--charcoal);
    background-image:
        radial-gradient(circle at 8% 10%, rgba(160, 8, 8, 0.1), transparent 26%),
        radial-gradient(circle at 92% 84%, rgba(160, 8, 8, 0.07), transparent 32%);
}

h2[data-i18n='menu.title'],
h2[data-i18n='wines.title'] {
    color: var(--sg-ivory);
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 0.04em;
}

/* Global SG Surface */
nav {
    border-bottom: 1px solid rgba(242, 238, 226, 0.16) !important;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.62) 100%) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.sg-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sg-brand-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.sg-brand-logo-nav img {
    height: 110px;
    object-fit: contain;
}

.sg-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid rgba(242, 238, 226, 0.16);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sg-language-switch-mobile {
    transform: scale(0.96);
    transform-origin: center;
}

.sg-lang-btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(242, 238, 226, 0.72);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1;
    padding: 0.65rem 0.82rem;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sg-lang-btn:hover {
    color: var(--sg-ivory);
}

.sg-lang-btn.is-active {
    background: linear-gradient(140deg, var(--sg-red), var(--sg-red-dark));
    color: var(--sg-ivory);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.mobile-nav-link:focus-visible,
nav a:focus-visible,
footer a:focus-visible {
    color: var(--sg-ivory) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
    border-radius: 0.375rem;
}

nav a[data-i18n='nav.menu'],
nav a[data-i18n='nav.wines'] {
    color: rgba(242, 238, 226, 0.72);
}

nav a[data-i18n='nav.menu']:hover,
nav a[data-i18n='nav.wines']:hover {
    color: var(--sg-ivory) !important;
}

nav a[data-i18n='nav.visit'] {
    background: linear-gradient(140deg, var(--sg-red), var(--sg-red-dark)) !important;
    color: var(--sg-ivory) !important;
    border: 1px solid rgba(242, 238, 226, 0.26);
}

nav a[data-i18n='nav.visit']:hover {
    background: linear-gradient(140deg, #b30c0c, #7d0606) !important;
}

/* Hero SG Styling */
section.relative.h-screen {
    position: relative;
}

section.relative.h-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 70%, rgba(160, 8, 8, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.62));
    pointer-events: none;
    z-index: 11;
}

section.relative.h-screen .relative.z-20 {
    z-index: 20;
}

[data-i18n='hero.tagline'] {
    color: var(--sg-ivory) !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

[data-i18n-html='hero.title'] {
    text-shadow: 0 8px 38px rgba(0, 0, 0, 0.6);
}

a[data-i18n='hero.button'] {
    background: linear-gradient(140deg, var(--sg-red), var(--sg-red-dark)) !important;
    border: 1px solid rgba(242, 238, 226, 0.34);
}

a[data-i18n='hero.whatsapp'] {
    border-color: rgba(242, 238, 226, 0.65) !important;
    color: var(--sg-ivory) !important;
}

a[data-i18n='hero.whatsapp']:hover {
    background: var(--sg-ivory) !important;
    color: #111 !important;
}

.serif {
    font-family: 'Playfair Display', serif;
}

/* SG Menu Identity */
#menu,
#wines,
#visit {
    scroll-margin-top: 6.5rem;
}

#allergens {
    scroll-margin-top: 7.25rem;
}

#menu {
    background:
        radial-gradient(circle at 12% 18%, rgba(160, 8, 8, 0.16), transparent 32%),
        radial-gradient(circle at 88% 80%, rgba(160, 8, 8, 0.12), transparent 36%),
        linear-gradient(180deg, #090909 0%, #080808 100%);
}

#menu .w-24.h-1 {
    background: linear-gradient(90deg, transparent 0%, var(--sg-red) 50%, transparent 100%) !important;
}

.sg-menu-section {
    position: relative;
}

.sg-menu-heading-wrap {
    border-left: 6px solid var(--sg-red);
    padding: 0.25rem 0 0.25rem 1rem;
}

.sg-menu-kicker {
    display: block;
    color: rgba(242, 238, 226, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.62rem;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.sg-menu-heading {
    color: var(--sg-ivory);
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 0.03em;
    line-height: 1;
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.sg-menu-label {
    color: rgba(242, 238, 226, 0.8);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-weight: 700;
}

.sg-menu-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(160, 8, 8, 0.55);
    background:
        linear-gradient(170deg, rgba(122, 6, 6, 0.32), rgba(24, 24, 24, 0.92) 56%),
        #0d0d0d;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sg-menu-card::before {
    content: 'SG';
    position: absolute;
    top: 0.6rem;
    right: 0.72rem;
    color: rgba(242, 238, 226, 0.12);
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 0.06em;
    font-size: 1.45rem;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.sg-menu-card:hover {
    border-color: rgba(242, 238, 226, 0.7);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.52);
}

.sg-menu-image-wrap {
    position: relative;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.2), rgba(8, 8, 8, 0.75));
}

.sg-menu-image-wrap::before,
.sg-wine-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0.75rem;
    background:
        linear-gradient(rgba(242, 238, 226, 0.62), rgba(242, 238, 226, 0.62)) left top / 3rem 2px no-repeat,
        linear-gradient(rgba(242, 238, 226, 0.62), rgba(242, 238, 226, 0.62)) left top / 2px 3rem no-repeat,
        linear-gradient(rgba(242, 238, 226, 0.62), rgba(242, 238, 226, 0.62)) right bottom / 3rem 2px no-repeat,
        linear-gradient(rgba(242, 238, 226, 0.62), rgba(242, 238, 226, 0.62)) right bottom / 2px 3rem no-repeat;
    pointer-events: none;
    z-index: 2;
}

.sg-menu-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sg-menu-image-wrap img,
.sg-wine-image-wrap img {
    position: relative;
    z-index: 0;
    display: block;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.sg-menu-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 8, 8, 0.82) 3%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.sg-menu-card-content {
    border-top: 1px solid rgba(242, 238, 226, 0.16);
}

.sg-menu-item-title {
    color: var(--sg-ivory);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sg-menu-price {
    color: var(--sg-ivory);
    background: linear-gradient(140deg, var(--sg-red), var(--sg-red-dark));
    border: 1px solid rgba(242, 238, 226, 0.2);
    padding: 0.22rem 0.48rem;
    line-height: 1;
    font-weight: 800;
}

.sg-menu-description {
    color: rgba(242, 238, 226, 0.72);
    font-style: italic;
}

.sg-menu-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sg-allergen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sg-ivory);
    font-size: 1rem;
    border: 1px solid rgba(242, 238, 226, 0.12);
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sg-allergen-icon:hover {
    background: rgba(212, 175, 55, 0.18);
    transform: translateY(-1px);
}

/* ── Wine Accordion ─────────────────────────────────── */
.wine-accordion-item {
    border: 1px solid rgba(242, 238, 226, 0.10);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: border-color 0.3s ease;
}
.wine-accordion-item.is-open {
    border-color: rgba(242, 238, 226, 0.22);
}

/* Trigger button */
.wine-accordion-trigger {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    overflow: hidden;
    min-height: 5.5rem;
    transition: opacity 0.2s ease;
}
.wine-accordion-trigger:hover { opacity: 0.92; }

/* Cover image inside trigger */
.wine-trigger-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.wine-trigger-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.38) saturate(0.8);
    transition: filter 0.4s ease, transform 0.6s ease;
}
.wine-accordion-trigger:hover .wine-trigger-img {
    filter: brightness(0.46) saturate(0.9);
    transform: scale(1.03);
}
.wine-accordion-item.is-open .wine-trigger-img {
    filter: brightness(0.30) saturate(0.7);
}
.wine-trigger-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,5,5,0.65) 0%, transparent 80%);
}

/* Trigger text */
.wine-trigger-content {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.wine-trigger-title {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    color: var(--sg-ivory);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.wine-trigger-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(242,238,226,0.55);
}

/* Chevron */
.wine-chevron {
    position: relative;
    z-index: 1;
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(242,238,226,0.6);
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.35s ease, color 0.2s ease;
}
.wine-accordion-item.is-open .wine-chevron {
    transform: rotate(180deg);
    color: var(--gold);
}

/* Header accent overlays per type */
.wine-header-white  .wine-trigger-overlay { background: linear-gradient(90deg, rgba(30,20,5,0.72) 0%, rgba(200,180,100,0.08) 100%); }
.wine-header-red    .wine-trigger-overlay { background: linear-gradient(90deg, rgba(30,3,3,0.78) 0%, rgba(140,10,10,0.12) 100%); }
.wine-header-sparkling .wine-trigger-overlay { background: linear-gradient(90deg, rgba(10,10,5,0.72) 0%, rgba(212,175,55,0.10) 100%); }
.wine-header-rose   .wine-trigger-overlay { background: linear-gradient(90deg, rgba(20,5,10,0.72) 0%, rgba(220,100,130,0.10) 100%); }
.wine-header-sweet  .wine-trigger-overlay { background: linear-gradient(90deg, rgba(20,10,3,0.72) 0%, rgba(180,120,30,0.10) 100%); }

/* Collapsible panel */
.wine-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
}
.wine-accordion-item.is-open .wine-accordion-panel {
    max-height: 3000px;
}

/* Panel content */
.wine-accordion-content {
    padding: 1.5rem 1.25rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(12,6,6,0.92) 0%, rgba(8,8,8,0.98) 100%);
    border-top: 1px solid rgba(242,238,226,0.07);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Group block */
.wine-group-block { display: flex; flex-direction: column; gap: 0.5rem; }
.wine-group-label-wrap { padding-left: 0.75rem; margin-bottom: 0.5rem; }
.wine-group-label-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}
.wine-group-label-sub {
    font-size: 0.65rem;
    color: rgba(242,238,226,0.35);
    margin-top: 0.15rem;
}

/* Wine rows */
.wine-items-list { display: flex; flex-direction: column; }
.wine-row {
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(242,238,226,0.05);
}
.wine-row:last-child { border-bottom: none; }
.wine-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}
.wine-row-name {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sg-ivory);
    line-height: 1.3;
}
.wine-row-star {
    color: var(--gold);
    margin-right: 0.2rem;
}
.wine-row-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.wine-row-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}
.wine-row-region {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(242,238,226,0.35);
}
.wine-row-dot {
    font-size: 0.6rem;
    color: rgba(242,238,226,0.2);
}
.wine-row-desc {
    font-size: 0.68rem;
    font-style: italic;
    color: rgba(242,238,226,0.5);
}

/* Wines SG Styling */
#wines {
    background:
        radial-gradient(circle at 14% 14%, rgba(122, 6, 6, 0.18), transparent 32%),
        radial-gradient(circle at 84% 82%, rgba(122, 6, 6, 0.14), transparent 36%),
        linear-gradient(180deg, #0a0a0a 0%, #070707 100%) !important;
    border-color: rgba(242, 238, 226, 0.12) !important;
}

#wines .w-24.h-1 {
    background: linear-gradient(90deg, transparent 0%, var(--sg-red) 50%, transparent 100%) !important;
}

.sg-wine-card {
    position: relative;
    border: 1px solid rgba(160, 8, 8, 0.52);
    background:
        linear-gradient(168deg, rgba(100, 6, 6, 0.3), rgba(16, 16, 16, 0.94) 56%),
        #090909;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.42);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.sg-wine-card:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 238, 226, 0.62);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.52);
}

.sg-wine-image-wrap {
    background: linear-gradient(180deg, #130808 0%, #090909 100%);
}

.sg-wine-image {
    background: #ffffff;
}

.sg-wine-content {
    border-top: 1px solid rgba(242, 238, 226, 0.12);
}

.sg-wine-type {
    border-width: 1px;
}

.sg-wine-type-red {
    border-color: rgba(160, 8, 8, 0.9);
    color: rgba(242, 238, 226, 0.86);
    background: rgba(160, 8, 8, 0.2);
}

.sg-wine-type-white {
    border-color: rgba(242, 238, 226, 0.4);
    color: rgba(242, 238, 226, 0.84);
    background: rgba(242, 238, 226, 0.06);
}

.sg-wine-meta {
    color: rgba(242, 238, 226, 0.5);
}

.sg-wine-price {
    color: var(--sg-ivory);
    background: linear-gradient(140deg, var(--sg-red), var(--sg-red-dark));
    border: 1px solid rgba(242, 238, 226, 0.24);
    padding: 0.2rem 0.48rem;
    font-weight: 800;
    line-height: 1;
}

.sg-wine-title {
    color: var(--sg-ivory);
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 0.04em;
    overflow-wrap: break-word;
}

.sg-wine-card:hover .sg-wine-title {
    color: #fff;
}

.sg-wine-pairing {
    color: rgba(242, 238, 226, 0.7);
    font-style: italic;
}

/* Footer SG Styling */
footer#visit {
    background:
        linear-gradient(180deg, #080808 0%, #050505 100%) !important;
    border-top-color: rgba(242, 238, 226, 0.14) !important;
}

.sg-brand-logo-footer img {
    height: 14rem;
    object-fit: contain;
}

footer#visit h4 {
    color: rgba(242, 238, 226, 0.8) !important;
}

footer#visit p,
footer#visit a {
    color: rgba(242, 238, 226, 0.72);
}

footer#visit a:hover {
    color: var(--sg-ivory) !important;
}

/* Custom UI Elements */
.burger-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.burger-card:hover {
    transform: translateY(-10px);
}

.burger-image-container {
    position: relative;
    overflow: hidden;
    background-color: #111;
}

.burger-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 40%);
    pointer-events: none;
}

.gold-border {
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.gold-border:hover {
    border-color: rgba(212, 175, 55, 0.6);
}

/* Animations */
.fade-in {
    opacity: 1;
    transform: none;
}

.js .fade-in {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .sg-brand-logo-nav img {
        height: 88px;
    }

    .sg-brand-logo-footer img {
        height: 10.5rem;
    }

    .sg-lang-btn {
        font-size: 0.68rem;
        letter-spacing: 0.18em;
        padding: 0.55rem 0.72rem;
    }

    .burger-card:hover {
        transform: none;
    }

    #burger-grid {
        gap: 2rem;
    }

    .sg-menu-heading-wrap {
        border-left-width: 4px;
        padding-left: 0.75rem;
    }

    .sg-menu-kicker {
        letter-spacing: 0.25em;
    }

    .sg-menu-card:hover {
        transform: none;
    }

    .sg-wine-card:hover {
        transform: none;
    }

    [data-i18n='hero.tagline'] {
        letter-spacing: 0.28em !important;
    }
}

#mobile-menu {
    transition: opacity 0.3s ease;
}

#mobile-menu.menu-open {
    display: flex;
    opacity: 1;
}

#mobile-menu:not(.menu-open) {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    white-space: nowrap;
}

/* Text Selection */
::selection {
    background: var(--gold);
    color: #000;
}
