/* =========================================================
   DS MARKET – HOMEPAGE
   Statická úvodní hero sekce
   ========================================================= */


/* ---------------------------------------------------------
   ZÁKLADNÍ NASTAVENÍ SEKCE
   --------------------------------------------------------- */

.dsm-home-hero {
    --dsm-hero-primary: #496b42;
    --dsm-hero-primary-hover: #385533;
    --dsm-hero-primary-light: #edf3eb;

    --dsm-hero-accent: #d9a441;
    --dsm-hero-background: #f8f5ee;
    --dsm-hero-background-soft: #fcfaf6;

    --dsm-hero-text: #243026;
    --dsm-hero-text-muted: #5e695f;
    --dsm-hero-border: #e4ded2;
    --dsm-hero-white: #ffffff;

    --dsm-hero-radius: 24px;
    --dsm-hero-radius-small: 12px;

    width: 100%;
    margin: 0 auto 48px;
    color: var(--dsm-hero-text);
    font-family: inherit;
}


/* ---------------------------------------------------------
   HLAVNÍ OBAL
   --------------------------------------------------------- */

.dsm-home-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: stretch;
    width: 100%;
    min-height: 520px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 255, 255, 0.85) 0,
            rgba(255, 255, 255, 0) 32%
        ),
        linear-gradient(
            135deg,
            var(--dsm-hero-background-soft) 0%,
            var(--dsm-hero-background) 100%
        );

    border: 1px solid var(--dsm-hero-border);
    border-radius: var(--dsm-hero-radius);
    box-shadow: 0 14px 40px rgba(44, 55, 42, 0.08);
}


/* ---------------------------------------------------------
   TEXTOVÁ ČÁST
   --------------------------------------------------------- */

.dsm-home-hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 5vw, 72px);
}


/* Horní štítek */

.dsm-home-hero__label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 22px;
    padding: 8px 14px;

    color: var(--dsm-hero-primary);
    background: var(--dsm-hero-primary-light);
    border: 1px solid rgba(73, 107, 66, 0.14);
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}


/* Hlavní nadpis */

.dsm-home-hero__title {
    max-width: 760px;
    margin: 0 0 22px;
    padding: 0;

    color: var(--dsm-hero-text);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.035em;
}


/* Úvodní text */

.dsm-home-hero__description {
    max-width: 720px;
    margin: 0 0 30px;

    color: var(--dsm-hero-text-muted);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.7;
}


/* ---------------------------------------------------------
   TLAČÍTKA
   --------------------------------------------------------- */

.dsm-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 34px;
}

.dsm-home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;

    border: 2px solid transparent;
    border-radius: var(--dsm-hero-radius-small);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* Primární tlačítko */

.dsm-home-hero__button--primary {
    color: var(--dsm-hero-white);
    background: var(--dsm-hero-primary);
    border-color: var(--dsm-hero-primary);
    box-shadow: 0 8px 20px rgba(73, 107, 66, 0.2);
}

.dsm-home-hero__button--primary:hover {
    color: var(--dsm-hero-white);
    background: var(--dsm-hero-primary-hover);
    border-color: var(--dsm-hero-primary-hover);
    box-shadow: 0 10px 24px rgba(73, 107, 66, 0.26);
    transform: translateY(-2px);
}


/* Sekundární tlačítko */

.dsm-home-hero__button--secondary {
    color: var(--dsm-hero-primary);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(73, 107, 66, 0.35);
}

.dsm-home-hero__button--secondary:hover {
    color: var(--dsm-hero-primary-hover);
    background: var(--dsm-hero-white);
    border-color: var(--dsm-hero-primary);
    transform: translateY(-2px);
}


/* Ovládání klávesnicí */

.dsm-home-hero__button:focus-visible {
    outline: 3px solid rgba(217, 164, 65, 0.55);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   VÝHODY NÁKUPU
   --------------------------------------------------------- */

.dsm-home-hero__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: auto 0 0;
    padding: 24px 0 0;

    list-style: none;
    border-top: 1px solid var(--dsm-hero-border);
}

.dsm-home-hero__benefit {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 0;

    color: var(--dsm-hero-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.dsm-home-hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 22px;
    height: 22px;
    margin-top: -1px;

    color: var(--dsm-hero-white);
    background: var(--dsm-hero-primary);
    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}


/* ---------------------------------------------------------
   OBRAZOVÁ ČÁST
   --------------------------------------------------------- */

.dsm-home-hero__visual {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #ece8df;
}


/* Jemné barevné překrytí mezi textem a fotografií */

.dsm-home-hero__visual::before {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;

    width: 90px;
    content: "";
    pointer-events: none;

    background: linear-gradient(
        90deg,
        var(--dsm-hero-background) 0%,
        rgba(248, 245, 238, 0) 100%
    );
}

.dsm-home-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;

    object-fit: cover;
    object-position: center;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1100px) {
    .dsm-home-hero__content {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
        min-height: 480px;
    }

    .dsm-home-hero__text {
        padding: 42px;
    }

    .dsm-home-hero__title {
        font-size: clamp(32px, 4.4vw, 46px);
    }

    .dsm-home-hero__benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dsm-home-hero__image {
        min-height: 480px;
    }
}


/* ---------------------------------------------------------
   MENŠÍ TABLET A MOBIL
   --------------------------------------------------------- */

@media (max-width: 820px) {
    .dsm-home-hero {
        margin-bottom: 36px;
    }

    .dsm-home-hero__content {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 20px;
    }

    .dsm-home-hero__text {
        order: 1;
        padding: 38px 30px;
    }

    .dsm-home-hero__visual {
        order: 2;
        min-height: 320px;
        max-height: 420px;
    }

    .dsm-home-hero__visual::before {
        inset: 0 0 auto;
        width: 100%;
        height: 60px;

        background: linear-gradient(
            180deg,
            var(--dsm-hero-background) 0%,
            rgba(248, 245, 238, 0) 100%
        );
    }

    .dsm-home-hero__image {
        min-height: 320px;
        max-height: 420px;
        object-position: center;
    }

    .dsm-home-hero__benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ---------------------------------------------------------
   MOBIL
   --------------------------------------------------------- */

@media (max-width: 600px) {
    .dsm-home-hero {
        margin-bottom: 28px;
    }

    .dsm-home-hero__content {
        border-radius: 16px;
        box-shadow: 0 10px 28px rgba(44, 55, 42, 0.07);
    }

    .dsm-home-hero__text {
        padding: 30px 22px;
    }

    .dsm-home-hero__label {
        margin-bottom: 18px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .dsm-home-hero__title {
        margin-bottom: 18px;
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.12;
        letter-spacing: -0.025em;
    }

    .dsm-home-hero__description {
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.65;
    }

    .dsm-home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 28px;
    }

    .dsm-home-hero__button {
        width: 100%;
        min-height: 50px;
        padding: 13px 16px;
    }

    .dsm-home-hero__benefits {
        grid-template-columns: 1fr;
        gap: 11px;
        padding-top: 22px;
    }

    .dsm-home-hero__benefit {
        font-size: 14px;
    }

    .dsm-home-hero__visual {
        min-height: 250px;
        max-height: 320px;
    }

    .dsm-home-hero__image {
        min-height: 250px;
        max-height: 320px;
    }
}


/* ---------------------------------------------------------
   VELMI MALÉ DISPLEJE
   --------------------------------------------------------- */

@media (max-width: 390px) {
    .dsm-home-hero__text {
        padding: 26px 18px;
    }

    .dsm-home-hero__title {
        font-size: 29px;
    }

    .dsm-home-hero__visual,
    .dsm-home-hero__image {
        min-height: 220px;
    }
}


/* ---------------------------------------------------------
   OMEZENÍ ANIMACÍ
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .dsm-home-hero__button {
        transition: none;
    }

    .dsm-home-hero__button:hover {
        transform: none;
    }
}