/* ==========================================================================
   Online shop promotion — links from winestoreorbeliani.ge to
   shop.winestoreorbeliani.ge.

   Four pieces, all prefixed .sp-:
     .sp-nav-link   highlighted item in the main navigation (every page)
     .sp-hero-pill  announcement pill inside the home page hero
     .sp-banner     full-width section under the home page hero
     .sp-strip      contextual banner on the wine category pages

   navigation.css styles every nav link with `html body .nav-menu a` and
   !important, so the nav rules below need at least that much weight.
   No images: everything is CSS and inline SVG.
   ========================================================================== */

:root {
    --sp-wine: #8B0000;
    --sp-wine-2: #B22222;
    --sp-wine-deep: #3a0a10;
    --sp-cream: #f7efe4;
    --sp-gold: #d9b26f;
}

/* ---- 1. Navigation item ------------------------------------------------- */

html body .navbar .nav-menu a.sp-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 14px 7px 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--sp-wine) 0%, var(--sp-wine-2) 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px -4px rgba(139, 0, 0, 0.55) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

html body .navbar .nav-menu a.sp-nav-link:hover,
html body .navbar .nav-menu a.sp-nav-link:focus-visible {
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px -6px rgba(139, 0, 0, 0.7) !important;
}

/* No underline animation on the pill. */
html body .navbar .nav-menu a.sp-nav-link::after {
    display: none !important;
}

html body .navbar .nav-menu a.sp-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/*
 * The Georgian and Russian menus are already close to full: their nine items
 * need ~1040px of the ~1075px the 1200px container leaves. A text pill does
 * not fit, so on desktop there are two tiers:
 *   >= 1400px  the container widens a little and the full pill fits
 *   769-1399px the pill collapses to a round cart button (label in the
 *              tooltip and still read by screen readers)
 * The mobile drawer (<= 768px) keeps the full text pill.
 */
@media (min-width: 1400px) {
    html body .navbar .nav-container {
        max-width: 1340px !important;
    }
    html body .navbar .nav-menu {
        gap: 1rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1399px) {
    html body .navbar .nav-menu {
        gap: 0.85rem !important;
    }
    html body .navbar .nav-menu a.sp-nav-link {
        position: relative !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    html body .navbar .nav-menu a.sp-nav-link svg {
        width: 18px;
        height: 18px;
    }
    /* Visually hidden, still announced. */
    html body .navbar .nav-menu a.sp-nav-link span {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
    }
    /* A small "live" dot so the round button reads as something new. */
    html body .navbar .nav-menu a.sp-nav-link::before {
        content: "" !important;
        position: absolute !important;
        top: 1px !important;
        right: 1px !important;
        width: 9px !important;
        height: 9px !important;
        border-radius: 50% !important;
        background: #4ade80 !important;
        border: 2px solid #fff !important;
    }
}

/* ---- 2. Hero announcement pill (home page) ------------------------------ */

.sp-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto 22px;
    padding: 7px 8px 7px 16px;
    border-radius: 999px;
    background: rgba(20, 6, 8, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sp-hero-pill:hover,
.sp-hero-pill:focus-visible {
    color: #fff;
    background: rgba(139, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

.sp-hero-pill__dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: sp-pulse 2.2s ease-out infinite;
}

.sp-hero-pill__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--sp-wine);
}

.sp-hero-pill__go svg {
    width: 14px;
    height: 14px;
}

@keyframes sp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---- 3. Home page banner ------------------------------------------------ */

.sp-banner {
    position: relative;
    overflow: hidden;
    padding: 72px 20px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(178, 34, 34, 0.55) 0%, transparent 55%),
        radial-gradient(90% 120% at 0% 100%, rgba(217, 178, 111, 0.16) 0%, transparent 60%),
        linear-gradient(135deg, #2a070c 0%, var(--sp-wine-deep) 45%, #5c0d16 100%);
    color: #fff;
}

/* Faint diagonal texture, like a wine label. */
.sp-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.025) 0 2px,
        transparent 2px 14px
    );
    pointer-events: none;
}

.sp-banner__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    max-width: 1140px;
    margin: 0 auto;
}

.sp-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(217, 178, 111, 0.45);
    background: rgba(217, 178, 111, 0.1);
    color: var(--sp-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sp-banner__eyebrow svg {
    width: 15px;
    height: 15px;
}

/*
 * styles.css forces `body.lang-ka h2 { font-size: 1.8rem !important }` and a
 * smaller paragraph size, so the banner's own type needs the same weight.
 * Scoped to .sp-banner, it touches nothing else on the page.
 */
html body .sp-banner h2 {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-align: left !important;
}

/* Georgian script runs wide, and the Russian title is long: at the shared
   size both broke onto two lines with a word left hanging. Keep them on one
   line on desktop. (The Russian page has no body class, hence html[lang].) */
html body.lang-ka .sp-banner h2,
html[lang="ru"] body .sp-banner h2 {
    font-size: clamp(1.45rem, 2.3vw, 1.9rem) !important;
    line-height: 1.3 !important;
}

html body .sp-banner .sp-banner__lead {
    max-width: 560px;
    margin: 0 0 26px !important;
    color: rgba(247, 239, 228, 0.86) !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
}

.sp-banner__perks {
    display: grid;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.sp-banner__perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sp-cream);
    font-size: 0.98rem;
}

.sp-banner__perks svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 50%;
    background: rgba(217, 178, 111, 0.16);
    color: var(--sp-gold);
}

.sp-banner__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    background: #fff;
    color: var(--sp-wine);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sp-btn:hover,
.sp-btn:focus-visible {
    color: var(--sp-wine);
    background: var(--sp-cream);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.75);
}

.sp-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.sp-btn:hover svg {
    transform: translateX(3px);
}

.sp-banner__domain {
    color: rgba(247, 239, 228, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(247, 239, 228, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sp-banner__domain:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* Illustration: a bottle and a glass sitting on a delivery box. */
.sp-banner__art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.sp-banner__art::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 178, 111, 0.22) 0%, transparent 68%);
}

.sp-banner__art svg {
    position: relative;
    width: min(100%, 320px);
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

@media (max-width: 900px) {
    .sp-banner {
        padding: 56px 20px;
    }
    .sp-banner__inner {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    html body .sp-banner h2 {
        text-align: center !important;
    }
    html body .sp-banner .sp-banner__lead {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Centre the list as a block but keep the icons in one straight column. */
    .sp-banner__perks {
        grid-template-columns: max-content;
        justify-content: center;
        text-align: left;
    }
    .sp-banner__actions {
        justify-content: center;
    }
    /* Keep the art, but small and above the text. */
    .sp-banner__art {
        order: -1;
        min-height: 0;
        margin-bottom: 8px;
    }
    .sp-banner__art::before {
        width: 190px;
        height: 190px;
    }
    .sp-banner__art svg {
        width: 170px;
    }
}

/* ---- 4. Category page strip -------------------------------------------- */

.sp-strip {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 22px 26px;
    border-radius: 18px;
    background:
        radial-gradient(110% 160% at 100% 0%, rgba(178, 34, 34, 0.5) 0%, transparent 60%),
        linear-gradient(135deg, #2a070c 0%, var(--sp-wine-deep) 55%, #5c0d16 100%);
    color: #fff;
    box-shadow: 0 18px 40px -22px rgba(58, 10, 16, 0.9);
}

.sp-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 16px;
    background: rgba(217, 178, 111, 0.15);
    border: 1px solid rgba(217, 178, 111, 0.35);
    color: var(--sp-gold);
}

.sp-strip__icon svg {
    width: 26px;
    height: 26px;
}

.sp-strip__text {
    flex: 1;
    min-width: 0;
}

html body .sp-strip .sp-strip__title {
    display: block;
    margin: 0 0 4px !important;
    color: #fff !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

html body .sp-strip .sp-strip__sub {
    margin: 0 !important;
    color: rgba(247, 239, 228, 0.8) !important;
    font-size: 0.93rem !important;
    line-height: 1.55 !important;
    text-align: inherit !important;
}

.sp-strip .sp-btn {
    flex-shrink: 0;
    padding: 13px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 720px) {
    /* The page column already has side padding; line up with the text. */
    .sp-strip {
        flex-direction: column;
        margin: 0 0 32px;
        padding: 24px 20px;
        text-align: center;
    }
    .sp-strip .sp-btn {
        white-space: normal;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-hero-pill__dot {
        animation: none;
    }
    .sp-btn,
    .sp-btn svg,
    .sp-hero-pill,
    html body .navbar .nav-menu a.sp-nav-link {
        transition: none !important;
    }
}
