/* =====================================================================
   Homepage conversion layer (index.html only).
   Brand: burgundy --accent-amber #5D0C1D, gold --accent-gold #CCAC6F,
   cream --accent-light #fdf5ec. Motion follows one strong ease-out curve.
   ===================================================================== */
:root {
    --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Hero: what we sell + why to trust it ---------- */
.hero-value-line {
    max-width: 30ch;
    margin: 0.4rem auto 0.2rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: clamp(0.86rem, 2.6vw, 1rem);
    line-height: 1.5;
    letter-spacing: 0.005em;
    color: var(--text-muted, #7a5060);
}
.hero-value-line strong {
    color: var(--accent-amber, #5D0C1D);
    font-weight: 600;
}

.hero-cta-row {
    flex-wrap: wrap;
    gap: 12px 18px;
}
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 6px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-amber, #5D0C1D);
    text-decoration: none;
    border-bottom: 1px solid rgba(204, 172, 111, 0.8);
    transition: color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out-strong);
}
.hero-cta-secondary i {
    font-size: 0.8em;
    transition: transform 200ms var(--ease-out-strong);
}
.hero-cta-secondary:active {
    transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
    .hero-cta-secondary:hover {
        color: var(--accent-dark, #3d0813);
        border-color: var(--accent-amber, #5D0C1D);
    }
    .hero-cta-secondary:hover i {
        transform: translateX(3px);
    }
}

/* ---------- Trust strip under the hero ---------- */
.trust-strip {
    background: var(--accent-amber, #5D0C1D);
    color: var(--accent-light, #fdf5ec);
    padding: 14px 16px;
}
.trust-strip__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1180px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 18px;
}
.trust-strip__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: rgba(253, 245, 236, 0.86);
    text-align: left;
}
.trust-strip__item strong {
    color: #fff;
    font-weight: 600;
}
.trust-strip__item i {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(204, 172, 111, 0.16);
    color: var(--accent-gold, #CCAC6F);
    font-size: 0.85rem;
}
@media (max-width: 900px) {
    .trust-strip__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trust-strip__item {
        justify-content: flex-start;
        font-size: 0.8rem;
    }
}

/* ---------- Blogs: swipeable row on phones instead of a very long column ---------- */
@media (max-width: 768px) {
    .blogs-grid {
        display: flex !important;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        padding: 4px 2px 18px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .blogs-grid::-webkit-scrollbar {
        display: none;
    }
    .blogs-grid > .blog-card {
        flex: 0 0 80%;
        max-width: 320px;
        scroll-snap-align: start;
    }
}

/* ---------- Phones: keep both hero buttons above the bottom tab bar ---------- */
@media (max-width: 480px) {
    .hero-logo-wrapper img {
        max-height: 60px;
        width: auto;
    }
    .hero-main-image {
        max-height: 200px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
        margin-inline: auto;
    }
}

/* The hero is one full screen with its buttons at the bottom: reserve room for the
   64px bottom tab bar so "Shop Now" and "Build your own mix" are never hidden behind it */
@media (max-width: 768px) {
    body.has-bottom-nav .hero-premium-section {
        --hero-pb: calc(64px + 36px + env(safe-area-inset-bottom, 0px));
    }
}

/* The hero starts below the 80px site header, so a full-screen hero pushed its
   buttons ~80px below the fold on tablets and desktops. Fit it to the space under the header. */
.hero-premium-section {
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
}
.hero-content {
    height: calc(100vh - 80px - var(--hero-pt) - var(--hero-pb));
    height: calc(100dvh - 80px - var(--hero-pt) - var(--hero-pb));
}

/* Short phones (e.g. iPhone SE, 667px tall): a fixed one-screen hero squeezes the text and
   lets the bowl overlap it. Let the hero size to its content instead, drop the duplicate
   logo mark (the header already shows it) and use a smaller bowl. */
@media (max-width: 480px) and (max-height: 760px) {
    .hero-premium-section {
        height: auto;
        min-height: calc(100dvh - 80px);
    }
    .hero-content {
        height: auto;
        min-height: 0;
        gap: 6px;
    }
    .hero-logo-wrapper {
        display: none;
    }
    .hero-main-image-container {
        flex: 0 0 auto;
        height: auto;
    }
    .hero-main-image {
        max-height: 130px !important;
        height: auto !important;
    }
}

/* Short phones: tighten vertical rhythm so "Shop Now" clears the tab bar */
@media (max-width: 480px) and (max-height: 760px) {
    .hero-premium-section {
        --hero-pt: 60px; /* clears the 131px header + search bar */
    }
    .hero-value-line {
        margin: 0 auto;
    }
    .hero-main-image-container {
        margin: 2px 0 !important;
    }
    .hero-cta-row {
        margin-top: 4px !important;
    }
}

/* Short laptop screens (e.g. 1280x720): don't let the bowl collapse to make room */
@media (min-width: 769px) and (max-height: 820px) {
    .hero-premium-section {
        height: auto;
        min-height: calc(100dvh - 80px);
    }
    .hero-content {
        height: auto;
        min-height: 0;
    }
    .hero-logo-wrapper {
        display: none;
    }
    .hero-main-image-container {
        flex: 0 0 auto;
        height: auto;
    }
    .hero-main-image {
        height: clamp(150px, 24vh, 230px) !important;
        max-height: none !important;
        width: auto;
        object-fit: contain;
        display: block;
        margin-inline: auto;
    }
}
@media (min-width: 769px) and (max-height: 820px) {
    .hero-value-line {
        margin-top: 14px;
    }
}
