/**
 * Vingo/Hiva Theme — Global Styles (loaded on every page)
 * =========================================================
 * Contains:
 *   • CSS custom properties (brand tokens)
 *   • Header / navigation overrides
 *   • Footer shared helpers
 *
 * Homepage-specific styles → web/css/vingo-home.css
 * (loaded only via cms_index_index.xml)
 */

/* ============================================================
   0. BRAND DESIGN TOKENS (global scope)
   ============================================================ */
:root {
    /* Brand palette */
    --vingo-black: #131210;
    --vingo-dark: #1A1513;
    --vingo-dark-soft: #242019;
    --vingo-gold: #F5DC5A;
    --vingo-gold-dark: #C9A830;
    --vingo-gold-light: #FBF0A8;
    --vingo-cream: #FAF3E0;
    --vingo-white: #FFFFFF;

    /* Typography */
    --vingo-font-body:    'Lato', sans-serif;
    --vingo-font-display: 'Bebas Neue', sans-serif;

    /* Transitions */
    --vingo-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dot pattern (used in dark sections) */
    --vingo-dot-pattern: radial-gradient(circle, #2a2725 1px, transparent 1px);
    --vingo-dot-size: 18px;
    --form-active-color: #0d141a;
}

/* ============================================================
   0b. GLOBAL TYPOGRAPHY
   Apply Lato to the entire page, Bebas Neue to the nav menu.
   ============================================================ */

/* ── Lato everywhere ─────────────────────────────────────── */
body,
input,
button,
select,
textarea,
.form-input,
.form-select {
    font-family: var(--vingo-font-body);
}
.btn-primary{
    background-color: #8B3C2E;color: #FFF;border-color: #8B3C2E;
}
/* ── Bebas Neue: desktop navigation menu links ───────────── */
#header .navigation nav a.level-0,
#header .navigation nav ul li span a {
    font-family: var(--vingo-font-display);
    letter-spacing: 0.08em;
    font-size: 1rem;
    line-height: 1;
}

/* ── Bebas Neue: mobile navigation menu links ────────────── */
[x-data="initMobileMenu"] nav ul li a,
[x-data="initMobileMenu"] nav ul li button span:first-child {
    font-family: var(--vingo-font-display);
    letter-spacing: 0.08em;
    font-size: 1.05rem;
    line-height: 1;
}

/* ============================================================
   1. HEADER OVERRIDES
   Always keep the header white with VINS-GO accent on active
   ============================================================ */

/* Active nav underline colour → brand gold instead of Hyvä primary */
#header .level-0:is([data-active], :has([aria-current="page"])) {
    border-bottom-color: var(--vingo-gold-dark) !important;
}

/* Hover underline */
#header .level-0:hover {
    border-bottom-color: var(--vingo-gold-dark) !important;
}

/* Cart badge → brand gold */
#menu-cart-icon .absolute {
    background: var(--vingo-gold) !important;
    color: var(--vingo-dark) !important;
}
nav .p-4 {
    padding: 14px;
}

/* ============================================================
   2. LANGUAGE SWITCHER — Desktop (shared, lives inside menu)
   ============================================================ */

/* Pill colour inherits from header text, gold on hover */
.vingo-lang-btn {
    font-size: 0.78rem;
    color: inherit;
    line-height: 1;
}

.vingo-lang-dropdown {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.vingo-lang-option {
    font-size: 0.85rem;
    transition: background 0.15s;
}

.vingo-lang-option:hover {
    background: #f5f5f5;
}

.vingo-lang-option--active {
    background: color-mix(in srgb, var(--vingo-gold) 12%, transparent);
    font-weight: 700;
    cursor: default;
}

/* Flag images */
.vingo-flag-img {
    display: inline-block;
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Fallback code badge (when image file not found) */
.vingo-flag-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    background: #e5e7eb;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #374151;
    flex-shrink: 0;
}

ul#vingo-lang-dropdown li {
    margin: 5px;
}

ul#vingo-lang-dropdown li span {
    padding: 5px;
}

div#vingo-lang-switcher {
    margin-top: 8px;
}

/* ============================================================
   3. LANGUAGE SWITCHER — Mobile drawer
   ============================================================ */

.vingo-mobile-lang {
    background: #f8f7f5;
    border-top: 1px solid #e5e0d8;
}

.vingo-mobile-lang-btn {
    font-size: 0.8rem;
    border-radius: 100px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #555;
    cursor: pointer;
    user-select: none;
    padding: 0.38em 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.vingo-mobile-lang-btn--active {
    background: var(--vingo-dark);
    color: var(--vingo-white);
    border-color: var(--vingo-dark);
    font-weight: 700;
    cursor: default;
}

.vingo-mobile-lang-btn:not(.vingo-mobile-lang-btn--active):hover {
    border-color: var(--vingo-gold-dark);
    color: var(--vingo-gold-dark);
    background: rgba(201, 168, 48, 0.07);
}

/* ============================================================
   4. FOOTER GLOBAL
   (Detailed styles live inline in footer.phtml to avoid a
    second HTTP request and maintain colocation with markup.)
   ============================================================ */

/* Ensure footer resets any container constraints inherited from Hyvä */
#vingo-footer .container,
#vingo-footer .page-wrapper {
    max-width: none !important;
    padding: 0 !important;
}

/* ============================================================
   5. UTILITY — Screen-reader only
   (DRY: also defined per-section to remove dependency on home CSS)
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   6. SMOOTH SCROLLING & FOCUS RING
   ============================================================ */
html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 2px solid var(--vingo-gold-dark);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ============================================================
   7. CUSTOM SCROLLBAR
   Replaces the default browser blue with VINS-GO brand colors:
   - Thumb  : burgundy  #8B3C2E  (matches "Book Now" button)
   - Track  : warm cream #f0ebe0  (matches --vingo-cream tone)
   ============================================================ */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #8B3C2E #f0ebe0;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0ebe0;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #8B3C2E;
    border-radius: 8px;
    border: 2px solid #f0ebe0;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0452f;
}

::-webkit-scrollbar-corner {
    background: #f0ebe0;
}

.top-blocks {
    background: rgb(46, 47, 49);
    text-align: center;
}

.top-blocks .body-small {
    color: #ffffff;
    padding: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.top-blocks .body-small strong {
    font-weight: 500;
}
body .text-\[var\(--ammenu-third-level-menu\)\],
body .text-\[var\(--ammenu-current-category-color\)\],
body .text-\[var\(--ammenu-submenu-text\)\],
body .text-\[var\(--ammenu-main-menu-text\)\]{color: #0d141a;}
body .hover\:bg-\[var\(--ammenu-main-menu-background-hover\)\]:hover,
body .group-hover\:text-\[var\(--ammenu-submenu-text-hover\)\]:is(:where(.group):hover *),
body .text-\[var\(--ammenu-current-category-color\)\] {
    text-decoration: underline;
    text-underline-offset: 7px;
    color: #0d141a;
    overflow: visible;
}
body .bg-\[var\(--ammenu-main-menu-background\)\]{background: #FFF;}