/* =============================================
   Healthier U — .com home (store 6) — v1 replica
   ============================================= */

.v2-home-com { display: block; }

/* Note: section rhythm (.v2-section / .v2-section__title) and divider (.v2-divider*)
   moved to stylesheet/v2/_marquee.css (shared across home + product pages). */

/* Botanical accent — leaf dividers + underline bar. Заголовки остаются чёрные. */
.v2-home-com .v2-section__title::after { background: var(--primary-600); }
.v2-home-com .v2-divider__icon { color: var(--primary-600); }

/* ---------- HERO — full-width video + text overlay left ---------- */
.v2-hero {
    position: relative;
    min-height: 554px;
    overflow: hidden;
    isolation: isolate;
}
.v2-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.v2-hero__overlay {
    display: none;
}
.v2-hero__inner {
    min-height: 554px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    position: relative;
}
.v2-hero__inner {
    z-index: 1;
}
/* White outline halo — text sits directly on landscape image, no panel.
   Multiple stacked shadows create a thick white outline around each glyph
   so dark ink-color text stays legible on any part of the photo. */
.v2-hero__title,
.v2-hero__sub {
    text-shadow:
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
        -2px  0   0 #fff,
         2px  0   0 #fff,
         0   -2px 0 #fff,
         0    2px 0 #fff,
         0 0 6px rgba(255,255,255,0.95),
         0 0 18px rgba(255,255,255,0.75);
}
.v2-hero__title {
    font-family: var(--ff-head);
    font-size: 52px;             /* +37% — title должен доминировать как focal point верхней трети */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--ink);
    margin: 0 0 16px;
    max-width: 60%;              /* левая 60% viewport — правую треть оставляем под "воздух" / focal */
    text-wrap: balance;
}
.v2-hero__sub {
    font-family: var(--ff-head);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(28,32,33,0.85);
    margin: 0 0 32px;
    max-width: 60%;
}
.v2-hero__sub-logo {
    display: block;
    width: 200px;
    height: auto;
    max-width: 100%;
    /* White halo around the brand logo to match the text outline treatment. */
    filter:
        drop-shadow( 1px  0   0 #fff)
        drop-shadow(-1px  0   0 #fff)
        drop-shadow( 0    1px 0 #fff)
        drop-shadow( 0   -1px 0 #fff)
        drop-shadow( 0 0 8px rgba(255,255,255,0.9));
}
.v2-hero .v2-btn {
    margin-top: 0;
}

/* Marquee + Why Healthier U styles moved to stylesheet/v2/_marquee.css. */

/* ---------- FIND YOUR FORMULA — uses .v2-tile--portrait (shared in _hscroll.css) ---------- */
.v2-formula { background: var(--bg-section); }
.v2-formula .v2-hscroll__track { grid-auto-columns: 260px; gap: 14px; }
.v2-formula__more {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--secondary-600);
    font-family: var(--ff-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.v2-formula__more:hover { color: var(--secondary-700); }

@media (max-width: 720px) {
    .v2-formula .v2-hscroll__track { grid-auto-columns: 180px; gap: 10px; }
    .v2-formula__more { font-size: 14px; margin-top: 16px; }
}


/* ---------- TWO TRADITIONS (v1 style: full-width photo banner with text+button overlay) ---------- */
.v2-story {
    position: relative;
    background: url('/image/cache/catalog/banners/brand-story-2064x512.jpg') center/cover no-repeat,
                var(--bg-section);
    min-height: 408px;
    padding: 0;
    color: var(--ink);
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.v2-story__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    min-height: 408px;
    padding: 56px 48px;
}
.v2-story__text {
    flex: 1 1 0;
    max-width: 58%;
    padding: 32px 36px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.v2-story__text h2 {
    font-family: var(--ff-head);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}
.v2-story__text p {
    font-family: var(--ff-head);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 16px;
}
.v2-story__text p:last-child { margin-bottom: 0; }
.v2-story__cta {
    flex: 0 0 auto;
    align-self: center;
}

/* ---------- WHOLESALE (banner bg, v1 height 544px) ---------- */
.v2-wholesale {
    position: relative;
    background: var(--decor-teal-deep) url('/image/catalog/banners/banner 1800.jpg') center/cover no-repeat;
    padding: 112px 0;
    min-height: 480px;
    color: #fff;
    isolation: isolate;
    display: flex;
    align-items: center;
}
.v2-wholesale::before {
    content: "";
    position: absolute; inset: 0;
    /* Усиленный overlay — banner 1800.jpg даёт хаос "летящие фрукты+витамины", не B2B-визуал.
       До замены фото от Билла — глушим до едва-видимой текстуры по правому краю. */
    background:
        linear-gradient(90deg, rgba(54,95,110,0.95) 0%, rgba(54,95,110,0.85) 50%, rgba(54,95,110,0.55) 100%),
        linear-gradient(180deg, rgba(54,95,110,0.2) 0%, transparent 30%, transparent 70%, rgba(54,95,110,0.3) 100%);
    z-index: -1;
}
.v2-wholesale__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Сдвиг от левого края — текст уходит в визуальный optical-center левой половины,
       не прижимается к viewport-edge. Overlay слева тёмный — контраст сохраняется. */
    padding-left: 8%;
    max-width: 640px;
}
.v2-wholesale h2.v2-wholesale__title {
    font-family: var(--ff-head);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}
.v2-wholesale__sub {
    font-family: var(--ff-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    margin: 0 0 32px;
    max-width: 560px;
    opacity: 0.95;
}

/* ---------- NEWSLETTER ---------- */
.v2-newsletter {
    /* analogous harmony teal+green — полоса не "пятый teal-блок", получает botanical-подтон */
    background: linear-gradient(180deg, var(--decor-teal-deep) 0%, var(--forest-teal) 100%);
    color: #fff;
    padding: 64px 0;
}
.v2-newsletter__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.v2-newsletter h2.v2-newsletter__title {
    font-family: var(--ff-head);
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.v2-newsletter__sub {
    font-family: var(--ff-body);
    font-size: 16px;
    color: #fff;
    margin: 0 0 28px;
    opacity: 0.95;
    line-height: 1.5;
}
.v2-newsletter__form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
    align-items: stretch;
}
.v2-newsletter__form input[type="email"] {
    flex: 1;
    background: #fff;
    border: 1px solid rgba(28,32,33,0.12);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-family: var(--ff-body);
    /* 16px+ avoids iOS Safari auto-zoom on focus. */
    font-size: 16px;
    color: var(--ink);
    outline: none;
}
.v2-newsletter__form input[type="email"]:focus {
    border-color: var(--secondary-700);
}
.v2-newsletter__form button[type="submit"] {
    background: #fff;
    color: var(--primary-600);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px 28px;
    font-family: var(--ff-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.v2-newsletter__form button[type="submit"]:hover {
    background: var(--bg-section);
}

/* ---------- HERO CTA — accent purple (matches U body in real logo) ---------- */
.v2-hero .v2-btn--pink {
    background: var(--accent-purple);
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.v2-hero .v2-btn--pink:hover {
    background: var(--accent-purple-700);
}

/* Why icons — три цвета восстановлены (из _marquee.css базы): accent-purple / primary-600 / secondary-600. */

/* ---------- Movement: .com brand-tile mode (NOT a shop) ----------
   Скрываем e-com артефакты (price/actions/quickview), карточка читается как
   фото+название, кликабельна целиком через stretched link. .co.uk не задеваем. */
.v2-home-com .v2-pcard {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.v2-home-com .v2-pcard:hover {
    transform: translateY(-4px);
    /* inset border вместо border-left — не сдвигает layout */
    box-shadow: inset 2px 0 0 var(--primary-500);
}
.v2-home-com .v2-pcard:hover .v2-pcard__name a {
    color: var(--primary-600);
}
/* Gestalt similarity: 6×6 green dot top-left на всех product cards — связывает в "natural product" семью */
.v2-home-com .v2-pcard::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}
.v2-home-com .v2-pcard__price,
.v2-home-com .v2-pcard__actions,
.v2-home-com .v2-pcard__quickview,
.v2-home-com .v2-pcard__desc { display: none !important; }
.v2-home-com .v2-pcard__name { text-align: center; padding: 12px 0 4px; }
.v2-home-com .v2-pcard__name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ---------- WHOLESALE CTA — white button to stand out on teal overlay ---------- */
.v2-wholesale .v2-btn {
    background: #fff;
    color: var(--secondary-700) !important;
    border-color: #fff;
    font-weight: 600;
}
.v2-wholesale .v2-btn:hover {
    background: var(--bg-section);
    color: var(--secondary-700) !important;
}

/* ---------- DEV BADGE ---------- */
.v2-dev-badge {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    padding: 6px 12px;
    background: var(--accent-purple);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.v2-dev-badge a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .v2-why__grid { grid-template-columns: 1fr; gap: 32px; }
    .v2-story__inner { flex-direction: column; align-items: stretch; gap: 20px; padding: 32px 20px; }
    .v2-story__text { max-width: 100%; padding: 24px; }
    .v2-story__cta { align-self: flex-start; }
}

@media (max-width: 720px) {
    .v2-section { padding: 24px 0; }
    .v2-section__title { font-size: 22px; }
    .v2-divider { padding: 12px 0; }

    .v2-hero { min-height: 420px; }
    .v2-hero__inner {
        min-height: 420px;
        padding: 24px 16px;
        justify-content: flex-end;  /* контент к низу, scrim под ним */
    }
    .v2-hero__title { font-size: 28px; line-height: 1.2; max-width: 100%; }  /* mobile — full-width text */
    .v2-hero__sub { font-size: 14px; max-width: 100%; }  /* -15% от desktop 16 */

    /* Mobile scrim: warm-beige fade bottom 50% — figure-ground для текста на фото */
    .v2-hero__overlay {
        display: block !important;
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 50%,
            rgba(250,250,247,0.55) 70%,
            rgba(250,250,247,0.85) 100%
        );
        z-index: 0;
        pointer-events: none;
    }
    .v2-hero__inner { z-index: 1; }

    /* Full-width CTA mobile — column-flex parent игнорирует width, нужен align-self: stretch */
    .v2-hero .v2-btn--pink {
        align-self: stretch;
        display: block;
        width: 100%;
        padding: 18px 24px;
        text-align: center;
        height: 56px;
        box-sizing: border-box;
        line-height: 20px;
    }

    .v2-marquee__item { font-size: 20px; }
    .v2-marquee__sep { font-size: 16px; }

    .v2-hscroll__track { grid-auto-columns: 240px; }
    .v2-products__track { grid-auto-columns: 220px; }

    /* WHY: tighter vertical spacing */
    .v2-why__grid { gap: 24px; }

    /* STORY: full-width text, smaller type, vertical scrim для контраста на пёстром фото */
    .v2-story { min-height: 360px; position: relative; }
    .v2-story::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 30%,
            rgba(245,243,238,0.92) 100%
        );
        pointer-events: none;
        z-index: 0;
    }
    .v2-story__inner { position: relative; z-index: 1; justify-content: flex-end; min-height: 360px; }
    .v2-story__text {
        background: rgba(255,255,255,0.78);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .v2-story__text h2 { font-size: 20px; margin-bottom: 14px; }
    .v2-story__text p { font-size: 15px; line-height: 1.55; margin-bottom: 12px; }

    /* WHOLESALE: tighter padding + smaller heading so it fits 375px */
    .v2-wholesale { padding: 56px 0; min-height: auto; }
    .v2-wholesale h2.v2-wholesale__title { font-size: 22px; line-height: 1.2; }
    .v2-wholesale__sub { font-size: 15px; line-height: 1.5; margin-bottom: 24px; }

    .v2-newsletter { padding: 48px 0; }
    .v2-newsletter__form { flex-direction: column; }

    /* Hide dev badge on mobile — clutters small viewport */
    .v2-dev-badge { display: none; }
}
