/* Mazzraty Hero Slider */
.mazzraty-hero {
    position: relative;
    width: 100%;
    min-height: clamp(560px, 45vw, 720px);
    overflow: hidden;
    background: var(--mz-color-tone-e9dcc4);
    color: var(--mz-color-text);
    isolation: isolate;
}

.mazzraty-hero__track {
    display: flex;
    direction: ltr;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform: translateX(0);
    transition: transform .75s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.mazzraty-hero__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    min-height: inherit;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mazzraty-hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--mz-overlay-255-250-241-_12) 0%, var(--mz-overlay-249-239-219-_46) 42%, var(--mz-overlay-243-231-207-_86) 100%);
    z-index: 0;
}

.mazzraty-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
    min-height: inherit;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    direction: rtl;
}

.mazzraty-hero__content {
    width: min(620px, 100%);
    text-align: right;
    padding-block: 72px;
}

.mazzraty-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--mz-color-accent-light);
    font-size: 15px;
    font-weight: 650;
}

.mazzraty-hero__eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.mazzraty-hero__title {
    margin: 0 0 18px;
    color: var(--mz-color-primary);
    font-size: clamp(36px, 3.7vw, 58px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
    text-wrap: balance;
}

.mazzraty-hero__text {
    margin: 0 0 30px;
    color: color-mix(in srgb, var(--mz-color-text) 78%, transparent);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 2;
    max-width: 560px;
}

.mazzraty-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--mz-color-accent);
    border-radius: 10px;
    background: var(--mz-color-accent);
    color: var(--mz-color-text) !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.mazzraty-hero__button:hover {
    background: var(--mz-color-accent-light);
    border-color: var(--mz-color-accent-light);
    transform: translateY(-1px);
}

.mazzraty-hero__nav {
    position: absolute;
    inset-inline: 0;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.mazzraty-hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mz-color-primary) 30%, transparent);
    cursor: pointer;
    pointer-events: auto;
    transition: width .25s ease, background-color .25s ease;
}

.mazzraty-hero__dot.is-active {
    width: 30px;
    background: var(--mz-color-accent-light);
}

.mazzraty-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid color-mix(in srgb, var(--mz-color-primary) 28%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--mz-color-background) 52%, transparent);
    color: var(--mz-color-primary);
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background-color .2s ease, border-color .2s ease;
}

.mazzraty-hero__arrow:hover {
    background: color-mix(in srgb, var(--mz-color-accent) 90%, transparent);
    border-color: color-mix(in srgb, var(--mz-color-accent) 100%, transparent);
    color: var(--mz-color-text);
}

.mazzraty-hero__arrow--prev {
    right: 24px;
}

.mazzraty-hero__arrow--next {
    left: 24px;
}

.mazzraty-hero__arrow svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .mazzraty-hero {
        min-height: 600px;
    }

    .mazzraty-hero__inner {
        width: min(100% - 32px, 1240px);
        align-items: flex-end;
    }

    .mazzraty-hero__content {
        width: 100%;
        padding: 80px 0 96px;
    }

    .mazzraty-hero__title {
        font-size: clamp(34px, 11vw, 48px);
    }

    .mazzraty-hero__slide::before {
        background: linear-gradient(0deg, var(--mz-overlay-244-232-209-_93) 0%, var(--mz-overlay-244-232-209-_64) 48%, var(--mz-overlay-244-232-209-_18) 100%);
    }

    .mazzraty-hero__arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mazzraty-hero__track,
    .mazzraty-hero__button,
    .mazzraty-hero__dot {
        transition: none;
    }
}


/* Front page: true full-bleed hero directly below header */
.home .entry-header,
.home .page-title,
.home [class*="page-title"] {
    display: none !important;
}

.home .site-main,
.home #main,
.home .ct-container-full,
.home .ct-container {
    --theme-content-vertical-spacing: 0px;
}

.home .entry-content {
    margin-top: 0 !important;
}

/* Break the hero out of Gutenberg/Blocksy content container safely */
.home .mazzraty-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Remove accidental block margins around the shortcode */
.home .wp-block-shortcode:has(.mazzraty-hero) {
    margin-block: 0 !important;
}

/* Fallback for browsers without :has support */
.home .wp-block-shortcode {
    max-width: none;
}

@media (max-width: 768px) {
    .home .mazzraty-hero {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}


/* v3.4 — accessible slider pause control */
.mazzraty-hero__pause{
    width:28px;
    height:28px;
    padding:0;
    display:grid;
    place-items:center;
    border:1px solid color-mix(in srgb, var(--mz-color-primary) 20%, transparent);
    border-radius:50%;
    background:color-mix(in srgb, var(--mz-color-background) 58%, transparent);
    color:var(--mz-color-primary);
    cursor:pointer;
    pointer-events:auto;
    transition:background-color .2s ease,border-color .2s ease;
}

.mazzraty-hero__pause:hover{
    background:color-mix(in srgb, var(--mz-color-background) 92%, transparent);
    border-color:color-mix(in srgb, var(--mz-color-primary) 40%, transparent);
}

.mazzraty-hero__pause svg{
    width:13px;
    height:13px;
    fill:currentColor;
}

.mazzraty-hero__pause .mz-play-icon{
    display:none;
}

.mazzraty-hero__pause.is-paused .mz-pause-icon{
    display:none;
}

.mazzraty-hero__pause.is-paused .mz-play-icon{
    display:block;
}

@media(max-width:768px){
    .mazzraty-hero__pause{
        width:30px;
        height:30px;
    }
}


/* v3.6 — refined Home hero composition
 * Desktop image brief: product/food stays on the LEFT half,
 * text sits on a quiet RIGHT area with enough width for Persian copy.
 */
@media (min-width: 769px) {
    .mazzraty-hero__slide {
        background-position: left center !important;
    }

    .mazzraty-hero__slide::before {
        background:
            linear-gradient(
                90deg,
                var(--mz-overlay-255-250-241-_03) 0%,
                var(--mz-overlay-248-237-216-_09) 34%,
                var(--mz-overlay-246-233-209-_48) 60%,
                var(--mz-overlay-243-231-207-_95) 100%
            ) !important;
    }

    .mazzraty-hero__inner {
        width: min(1320px, calc(100% - 56px)) !important;
        justify-content: flex-start !important;
        direction: rtl !important;
    }

    .mazzraty-hero__content {
        width: min(680px, 50vw) !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        padding-block: 64px !important;
        text-align: right !important;
    }

    .mazzraty-hero__title,
    .mazzraty-hero__text,
    .mazzraty-hero__eyebrow {
        text-align: right !important;
    }

    .mazzraty-hero__title {
        max-width: 680px;
        font-size: clamp(36px, 3.65vw, 58px) !important;
        line-height: 1.3;
        text-wrap: balance;
    }

    .mazzraty-hero__text {
        max-width: 650px !important;
        font-size: clamp(15px, 1.15vw, 18px) !important;
        line-height: 1.9;
        text-wrap: pretty;
    }
}

/* Medium desktop/tablet landscape: keep two-column composition without
 * forcing the Persian title into 3 lines. */
@media (min-width: 769px) and (max-width: 1100px) {
    .mazzraty-hero__inner {
        width: min(100% - 40px, 1180px) !important;
    }

    .mazzraty-hero__content {
        width: min(600px, 54vw) !important;
    }

    .mazzraty-hero__title {
        font-size: clamp(34px, 4.2vw, 48px) !important;
        line-height: 1.32;
    }

    .mazzraty-hero__text {
        max-width: 580px !important;
        font-size: 15px !important;
    }
}

/* v3.6 mobile copy balance */
@media (max-width: 768px) {
    .mazzraty-hero__content {
        padding: 72px 0 88px;
    }

    .mazzraty-hero__title {
        font-size: clamp(31px, 9.5vw, 44px) !important;
        line-height: 1.35;
        text-wrap: balance;
    }

    .mazzraty-hero__text {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.9;
        text-wrap: pretty;
    }
}
