/* Hlavní stránka – rozcestník Můj bar, recepty a produkty. */
.home-page {
    overflow: clip;
    padding: 34px 0 90px;
}

.home-shell {
    width: min(calc(100% - 80px), 1320px);
    margin-right: auto;
    margin-left: auto;
}

.home-eyebrow {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-eyebrow-light {
    color: rgba(255, 255, 255, .72);
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: clamp(38px, 6vw, 86px);
    align-items: center;
    overflow: hidden;
    padding: clamp(42px, 6vw, 78px);
    border: 1px solid rgba(144, 8, 33, .12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 8%, rgba(144, 8, 33, .1), transparent 32%),
        linear-gradient(135deg, #fff 0%, #f7f1f2 100%);
}

.home-hero::before {
    position: absolute;
    right: -140px;
    bottom: -160px;
    width: 430px;
    height: 430px;
    border: 64px solid rgba(144, 8, 33, .04);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.home-hero-copy,
.home-featured-drink {
    position: relative;
    z-index: 1;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(2.75rem, 5.5vw, 5.25rem);
    line-height: .96;
    letter-spacing: -.035em;
}

.home-hero-lead {
    max-width: 700px;
    color: var(--text-muted-color);
    font-size: clamp(1.1rem, 1.8vw, 1.28rem);
    line-height: 1.55;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 26px;
    align-items: center;
    margin-top: 30px;
}

.home-button {
    margin-top: 0;
    border-radius: 7px;
}

.home-secondary-link,
.home-section-heading > a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.home-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 26px 0 0;
    padding: 0;
    color: var(--text-muted-color);
    font-size: .92rem;
    list-style: none;
}

.home-hero-points li {
    position: relative;
    padding-left: 18px;
}

.home-hero-points li::before {
    position: absolute;
    top: .62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    content: "";
}

.home-featured-drink {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #42101a;
    box-shadow: 0 22px 54px rgba(62, 4, 16, .2);
}

.home-featured-drink > a {
    position: relative;
    display: block;
    min-height: 480px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.home-featured-drink img,
.home-featured-drink .home-image-placeholder {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform .45s ease;
}

.home-featured-drink:hover img,
.home-featured-drink:hover .home-image-placeholder {
    transform: scale(1.035);
}

.home-image-placeholder {
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .2), transparent 17%),
        radial-gradient(circle at 75% 70%, rgba(255, 255, 255, .12), transparent 20%),
        linear-gradient(145deg, #7d0a20, #28050c);
}

.home-featured-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(26px, 5vw, 46px);
    background: linear-gradient(180deg, rgba(0, 0, 0, .04) 28%, rgba(0, 0, 0, .82) 100%);
}

.home-featured-kicker {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .76);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-featured-overlay strong,
.home-featured-drink-empty strong {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1;
}

.home-featured-overlay > span:last-child {
    margin-top: 14px;
    font-weight: 700;
}

.home-featured-drink-empty {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px;
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 255, 255, .13), transparent 20%),
        linear-gradient(145deg, #7d0a20, #28050c);
}

.home-bar-preview {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: clamp(34px, 6vw, 80px);
    align-items: center;
    margin-top: 28px;
    padding: clamp(32px, 5vw, 54px);
    border-radius: 18px;
    background: linear-gradient(130deg, #43000e 0%, var(--primary-color) 100%);
    color: #fff;
    box-shadow: 0 18px 44px rgba(64, 0, 13, .15);
}

.home-bar-copy h2 {
    max-width: 700px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 2.9rem);
    line-height: 1.06;
}

.home-bar-copy > p:last-child {
    max-width: 740px;
    color: rgba(255, 255, 255, .76);
}

.home-bar-example {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.home-ingredient-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.home-ingredient-chips span {
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}

.home-bar-link {
    display: inline-block;
    margin-top: 22px;
    color: #fff;
    font-weight: 700;
    text-underline-offset: 4px;
}

.home-section {
    padding-top: clamp(72px, 9vw, 112px);
}

.home-section-heading {
    display: flex;
    gap: 34px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 34px;
}

.home-section-heading h2 {
    margin: 0;
    font-size: clamp(2.15rem, 4vw, 3.45rem);
    line-height: 1;
}

.home-section-heading-compact {
    margin-bottom: 26px;
}

.home-drink-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.home-drink-card {
    min-width: 0;
}

.home-drink-card > a {
    position: relative;
    display: block;
    min-height: 330px;
    overflow: hidden;
    border-radius: 14px;
    background: #32070f;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(26, 26, 26, .1);
}

.home-drink-card img,
.home-drink-card .home-image-placeholder {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: transform .4s ease;
}

.home-drink-card:hover img,
.home-drink-card:hover .home-image-placeholder {
    transform: scale(1.045);
}

.home-drink-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .05) 46%, rgba(0, 0, 0, .68) 100%);
}

.home-drink-overlay > strong {
    max-width: 92%;
    color: #fff;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    line-height: 1.06;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.home-drink-card-bottom {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.home-card-category {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(144, 8, 33, .94);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.home-empty-message {
    padding: 42px;
    border: 1px dashed rgba(144, 8, 33, .3);
    border-radius: 14px;
    color: var(--text-muted-color);
    text-align: center;
}

.home-products {
    margin-top: clamp(72px, 9vw, 112px);
    padding: clamp(70px, 8vw, 100px) 0;
    border-top: 1px solid rgba(144, 8, 33, .08);
    border-bottom: 1px solid rgba(144, 8, 33, .08);
    background: linear-gradient(180deg, #faf7f8 0%, #f5eff0 100%);
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.home-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(144, 8, 33, .1);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(26, 26, 26, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-product-card:hover {
    box-shadow: 0 18px 44px rgba(26, 26, 26, .1);
    transform: translateY(-5px);
}

.home-product-image {
    display: grid;
    min-height: 245px;
    overflow: hidden;
    padding: 22px;
    place-items: center;
    background: linear-gradient(145deg, #f7f7f7, #ededed);
}

.home-product-image img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    transition: transform .35s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.035);
}

.home-product-placeholder {
    color: var(--text-muted-color);
    font-weight: 700;
}

.home-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.home-product-label {
    width: max-content;
    margin: 0 0 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(144, 8, 33, .08);
    color: var(--primary-color);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.home-product-content h3 {
    margin: 0 0 8px;
    font-size: 1.55rem;
    line-height: 1.08;
}

.home-product-content h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.home-product-content h3 a:hover {
    color: var(--primary-color);
}

.home-product-content > p:not(.home-product-label) {
    color: var(--text-muted-color);
}

.home-product-footer {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 22px;
}

.home-product-footer strong {
    color: var(--primary-color);
    font-size: 1.16rem;
}

.home-product-footer a {
    color: var(--text-color);
    font-weight: 700;
    white-space: nowrap;
}

.home-topics {
    padding-top: clamp(72px, 9vw, 112px);
}

.home-topic-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-topic-links a {
    display: flex;
    min-width: 0;
    min-height: 66px;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-color);
    background: var(--surface-color);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.home-topic-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.home-topic-links a span {
    flex-shrink: 0;
    color: var(--primary-color);
}

.home-philosophy {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: clamp(34px, 8vw, 120px);
    align-items: start;
    margin-top: clamp(72px, 9vw, 112px);
    padding: clamp(34px, 5vw, 62px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(26, 26, 26, .06);
}

.home-philosophy h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1;
}

.home-philosophy > div:last-child > p {
    max-width: 720px;
    color: var(--text-muted-color);
    font-size: 1.14rem;
}

.home-page a:focus-visible {
    outline: 3px solid rgba(144, 8, 33, .38);
    outline-offset: 4px;
}

@media (max-width: 1080px) {
    .home-hero {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .home-drink-grid,
    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-product-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .home-topic-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .home-page {
        padding-top: 10px;
    }

    .home-shell {
        width: calc(100% - 40px);
    }

    .home-hero,
    .home-bar-preview,
    .home-philosophy {
        grid-template-columns: 1fr;
    }

    .home-featured-drink > a,
    .home-featured-drink img,
    .home-featured-drink .home-image-placeholder {
        min-height: 390px;
        height: 390px;
    }

    .home-section-heading {
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .home-page {
        padding-bottom: 60px;
    }

    .home-hero {
        padding: 30px 22px 22px;
        border-radius: 16px;
    }

    .home-hero h1 {
        font-size: clamp(2.55rem, 13vw, 3.55rem);
    }

    .home-actions,
    .home-section-heading,
    .home-product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .home-button {
        width: 100%;
    }

    .home-secondary-link {
        text-align: center;
    }

    .home-featured-drink > a,
    .home-featured-drink img,
    .home-featured-drink .home-image-placeholder {
        min-height: 330px;
        height: 330px;
    }

    .home-featured-overlay {
        padding: 26px;
    }

    .home-bar-preview {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .home-bar-example {
        padding: 18px;
    }

    .home-drink-grid,
    .home-product-grid,
    .home-topic-links {
        grid-template-columns: 1fr;
    }

    .home-product-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .home-drink-card > a,
    .home-drink-card img,
    .home-drink-card .home-image-placeholder {
        min-height: 300px;
        height: 300px;
    }

    .home-product-footer a {
        width: max-content;
    }

    .home-philosophy {
        padding: 28px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-featured-drink img,
    .home-featured-drink .home-image-placeholder,
    .home-drink-card img,
    .home-drink-card .home-image-placeholder,
    .home-product-card,
    .home-product-image img,
    .home-topic-links a {
        transition: none;
    }
}
