/* =========================
   Hero — NETA Editorial Split
========================= */

.home-hero {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 108px 0 112px;

    background:
        radial-gradient(
            ellipse 56% 42% at 76% 16%,
            color-mix(in srgb, var(--neta-white, #fffaf1) 82%, transparent),
            transparent 62%
        ),
        radial-gradient(
            circle at 18% 80%,
            color-mix(in srgb, var(--neta-brass, #8f7b5d) 10%, transparent),
            transparent 34%
        ),
        linear-gradient(
            150deg,
            var(--neta-paper-light, #fffaf1) 0%,
            var(--neta-paper, #eee6d8) 56%,
            var(--neta-linen, #ded4c2) 100%
        );
}

.home-hero::before {
    display: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.032;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================
   Layout
========================= */

.home-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(0, 660px);
    gap: clamp(70px, 7vw, 116px);
    align-items: center;
    justify-content: center;
    direction: ltr;
}

/* =========================
   Media — Left
========================= */

.home-hero__media {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 768 / 512;
    justify-self: start;

    border-radius: 34px;
    overflow: hidden;

    background: var(--neta-linen, #ded4c2);
    border: 1px solid var(--neta-line-soft, rgba(36, 25, 15, 0.08));
    box-shadow:
        0 34px 90px rgba(36, 25, 15, 0.13),
        0 12px 30px rgba(36, 25, 15, 0.07);

    isolation: isolate;
    direction: rtl;
    contain: layout paint;
}

.home-hero__picture {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 768 / 512;
}

.home-hero__media::before {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: 2;

    border: 1px solid color-mix(in srgb, var(--neta-white, #fffaf1) 58%, transparent);
    border-radius: 24px;

    pointer-events: none;
}

.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(180deg, color-mix(in srgb, var(--neta-white, #fffaf1) 6%, transparent), transparent 38%),
        linear-gradient(0deg, rgba(43, 33, 24, 0.12), transparent 52%);

    pointer-events: none;
}

.home-hero__media img,
.home-hero__image {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 768 / 512;

    display: block !important;
    object-fit: cover !important;
    object-position: center !important;

    background: var(--neta-linen, #ded4c2);
    filter: saturate(0.95) sepia(0.025) contrast(1.01);
}

/* =========================
   Content — Right
========================= */

.home-hero__content {
    grid-column: 2;
    grid-row: 1;
    max-width: 660px;
    justify-self: end;
    text-align: right;
    direction: rtl;
}

/* =========================
   Eyebrow
========================= */

.home-hero__eyebrow {
    width: fit-content;
    margin: 0 0 42px auto;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: color-mix(in srgb, var(--neta-brass, #8f7b5d) 88%, var(--neta-walnut, #24190f));
    font-family: var(--font-label, var(--font-mono, monospace));
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.home-hero__eyebrow::before {
    content: "";
    width: 72px;
    height: 1px;
    background: currentColor;
    opacity: 0.72;
}

/* =========================
   Text
========================= */

.home-hero h1 {
    max-width: 660px;
    margin: 0;
    color: var(--neta-walnut, #24190f);
    font-family: var(--font-display, serif);
    font-size: clamp(64px, 7vw, 104px);
    font-weight: 650;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.home-hero__text {
    max-width: 600px;
    margin: 42px 0 0 auto;
    color: var(--neta-walnut-soft, #4d4035);
    font-family: var(--font-body, sans-serif);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.95;
}

/* =========================
   Controls
========================= */

.home-hero__controls {
    width: fit-content;
    min-width: 390px;
    margin: 52px 0 0 auto;
    display: grid;
    gap: 14px;
    justify-items: stretch;
}

/* =========================
   Buttons
========================= */

.home-hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.home-hero__actions a,
.home-hero__actions a:visited {
    min-height: 50px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-button, var(--font-body, sans-serif)) !important;
    font-size: var(--size-button, 15px) !important;
    font-weight: var(--weight-button, 800) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.home-hero__actions a:first-child,
.home-hero__actions a:first-child:visited {
    background: var(--neta-walnut, #24190f) !important;
    color: var(--neta-white, #fffaf1) !important;
    border: 1px solid var(--neta-walnut, #24190f) !important;
    box-shadow: 0 18px 42px rgba(43, 33, 24, 0.18) !important;
}

.home-hero__actions a:first-child:hover {
    background: color-mix(in srgb, var(--neta-walnut, #24190f) 88%, var(--neta-brass, #8f7b5d)) !important;
    color: var(--neta-white, #fffaf1) !important;
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(43, 33, 24, 0.24) !important;
}

.home-hero__actions a:last-child,
.home-hero__actions a:last-child:visited {
    background: color-mix(in srgb, var(--neta-white, #fffaf1) 42%, transparent) !important;
    color: var(--neta-walnut, #24190f) !important;
    border: 1px solid color-mix(in srgb, var(--neta-walnut, #24190f) 18%, transparent) !important;
}

.home-hero__actions a:last-child:hover {
    background: color-mix(in srgb, var(--neta-white, #fffaf1) 86%, transparent) !important;
    color: var(--neta-walnut, #24190f) !important;
    border-color: color-mix(in srgb, var(--neta-brass, #8f7b5d) 42%, transparent) !important;
    transform: translateY(-2px);
}

/* =========================
   Color Picker — Fabric Reference
========================= */

.home-hero__controls .neta-color-picker {
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: stretch;
}

.home-hero__controls .neta-color-picker__swatches {
    width: 100%;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 13px 22px;
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--neta-white, #fffaf1) 88%, transparent),
            color-mix(in srgb, var(--neta-paper-light, #fffaf1) 72%, transparent)
        );
    border: 1px solid color-mix(in srgb, var(--neta-line-soft, rgba(36, 25, 15, 0.08)) 90%, transparent);
    box-shadow:
        0 14px 34px rgba(36, 25, 15, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* =========================
   Swatches — Fabric Arch Shape
========================= */

.home-hero .neta-swatch {
    position: relative;
    width: 48px;
    height: 46px;
    min-width: 48px;
    min-height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    transform: none;
    transition:
        transform 0.22s ease,
        opacity 0.22s ease,
        filter 0.22s ease;
}

/* אין טבעות חיצוניות בכלל */
.home-hero .neta-swatch::before,
.home-hero .neta-swatch::after,
.home-hero .neta-swatch.is-active::before,
.home-hero .neta-swatch.is-active::after {
    content: none !important;
    display: none !important;
}

/*
   צורה כמו בתמונה:
   חצי עיגול שמאלי + קשת עליונה + תחתית ישרה + צד ימין ישר.
*/
.home-hero .neta-swatch span {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 999px 999px 0 999px;
    border: 1px solid rgba(36, 25, 15, 0.055);
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.22),
        inset 0 -5px 10px rgba(36, 25, 15, 0.045),
        0 7px 14px rgba(36, 25, 15, 0.045);
}

/* טקסטורת בד */
.home-hero .neta-swatch span::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.78'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* סיבי בד */
.home-hero .neta-swatch span::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.13) 0,
            rgba(255, 255, 255, 0.13) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(36, 25, 15, 0.07) 0,
            rgba(36, 25, 15, 0.07) 1px,
            transparent 1px,
            transparent 5px
        );
    pointer-events: none;
}

.home-hero .neta-swatch:hover {
    transform: translateY(-2px);
}

.home-hero .neta-swatch.is-active {
    transform: translateY(-2px);
}

/* הבחירה יושבת על הדוגמית עצמה, לא מחוץ אליה */
.home-hero .neta-swatch.is-active span {
    border: 2px solid color-mix(in srgb, var(--neta-walnut, #24190f) 56%, transparent);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.22),
        inset 0 -5px 10px rgba(36, 25, 15, 0.045),
        0 8px 16px rgba(36, 25, 15, 0.08),
        0 0 0 4px color-mix(in srgb, var(--neta-white, #fffaf1) 74%, transparent);
}

.home-hero .neta-swatch:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--neta-brass, #8f7b5d) 22%, transparent);
    outline-offset: 8px;
}

/* =========================
   Fabric Colors — Reference Image
========================= */

/* 01 — בז׳ בד */
.home-hero .neta-swatch--fabric-beige span {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.13), transparent 28%),
        linear-gradient(135deg, #d8d1bd 0%, #c8c0ab 58%, #b6ad96 100%);
}

/* 02 — אפור בהיר בד */
.home-hero .neta-swatch--fabric-light span {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.15), transparent 28%),
        linear-gradient(135deg, #d9d6cf 0%, #c8c5bd 58%, #b4b1aa 100%);
}

/* 03 — פחם בד */
.home-hero .neta-swatch--fabric-charcoal span {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.07), transparent 28%),
        linear-gradient(135deg, #3c3936 0%, #2c2a28 56%, #1c1b1a 100%);
}

/* 04 — ירוק עמוק בד */
.home-hero .neta-swatch--fabric-green span {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.07), transparent 28%),
        linear-gradient(135deg, #183c37 0%, #11312d 58%, #0b2421 100%);
}

/* 05 — אפור בינוני בד */
.home-hero .neta-swatch--fabric-gray span {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #aaa7a1 0%, #918f89 58%, #777570 100%);
}

/* =========================
   Tablet
========================= */

@media (max-width: 1100px) {
    .home-hero {
        min-height: auto;
        padding: 82px 0 88px;
    }

    .home-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        direction: rtl;
    }

    .home-hero__content {
        grid-column: 1;
        grid-row: 1;
        max-width: 760px;
        margin-inline: auto;
        justify-self: center;
        text-align: center;
    }

    .home-hero__media {
        grid-column: 1;
        grid-row: 2;
        max-width: 560px;
        margin-inline: auto;
        justify-self: center;
    }

    .home-hero__eyebrow {
        margin: 0 auto 32px;
        justify-content: center;
    }

    .home-hero__eyebrow::before {
        width: 56px;
    }

    .home-hero h1 {
        max-width: 720px;
        margin-inline: auto;
        font-size: clamp(50px, 8vw, 78px);
        line-height: 1;
    }

    .home-hero__text {
        max-width: 640px;
        margin: 34px auto 0;
        font-size: 18px;
        line-height: 1.82;
    }

    .home-hero__controls {
        min-width: 390px;
        margin: 38px auto 0;
    }

}

/* =========================
   Mobile
========================= */

@media (max-width: 899px) {
    .home-hero {
        padding: 48px 0 54px;
        align-items: flex-start;
    }

    .home-hero__inner {
        gap: 32px;
    }

    .home-hero__content {
        max-width: none;
        text-align: center;
    }

    .home-hero__eyebrow {
        margin: 0 auto 22px;
        justify-content: center;
        gap: 10px;
        color: color-mix(in srgb, var(--neta-brass, #8f7b5d) 84%, var(--neta-walnut, #24190f));
        font-size: 11px;
        letter-spacing: 0.22em;
        font-weight: 700;
    }

    .home-hero__eyebrow::before {
        width: 34px;
    }

    .home-hero h1 {
        max-width: 430px;
        margin-inline: auto;
        font-size: clamp(38px, 10vw, 52px);
        line-height: 1.05;
        letter-spacing: -0.048em;
    }

    .home-hero__text {
        max-width: 390px;
        margin: 24px auto 0;
        font-size: 15.9px;
        line-height: 1.74;
    }

    .home-hero__controls {
        width: min(100%, 430px) !important;
        min-width: 0 !important;
        margin: 30px auto 0 !important;
        gap: 10px;
    }

    .home-hero__actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        align-items: stretch !important;
        justify-content: initial !important;
    }

    .home-hero__controls .neta-color-picker__swatches {
        min-height: 68px;
        gap: 18px;
        padding: 12px 16px;
    }

    .home-hero .neta-swatch {
        width: 43px;
        height: 41px;
        min-width: 43px;
        min-height: 41px;
    }

    .home-hero__actions a,
    .home-hero__actions a:visited {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 46px !important;
        padding: 0 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13.6px !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .home-hero__media {
        width: min(100%, 370px) !important;
        max-width: 370px !important;
        aspect-ratio: 768 / 512 !important;
        margin: 0 auto !important;

        border-radius: 22px !important;
        box-shadow: 0 16px 42px rgba(36, 25, 15, 0.11) !important;
    }

    .home-hero__media::before {
        inset: 10px !important;
        border-radius: 14px !important;
        border-color: color-mix(in srgb, var(--neta-white, #fffaf1) 46%, transparent) !important;
    }

    .home-hero__media img,
    .home-hero__image {
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* =========================
   Small Mobile
========================= */

@media (max-width: 560px) {
    .home-hero {
        padding: 40px 0 48px;
    }

    .home-hero__inner {
        gap: 26px;
    }

    .home-hero__eyebrow {
        margin-bottom: 18px;
        font-size: 10.5px;
        letter-spacing: 0.2em;
    }

    .home-hero h1 {
        max-width: 365px;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.06;
    }

    .home-hero__text {
        max-width: 340px;
        margin-top: 21px;
        font-size: 15.25px;
        line-height: 1.68;
    }

    .home-hero__controls {
        width: 100% !important;
        margin-top: 27px !important;
        gap: 9px !important;
    }

    .home-hero__actions {
        gap: 7px !important;
    }

    .home-hero__actions a,
    .home-hero__actions a:visited {
        min-height: 45px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
    }

    .home-hero__controls .neta-color-picker__swatches {
        min-height: 62px;
        gap: 13px;
        padding: 10px 12px;
    }

    .home-hero .neta-swatch {
        width: 38px;
        height: 36px;
        min-width: 38px;
        min-height: 36px;
    }

    .home-hero__media {
        width: min(100%, 340px) !important;
        max-width: 340px !important;
        aspect-ratio: 768 / 512 !important;
        border-radius: 19px !important;
    }

}

/* =========================
   Very Small Mobile
========================= */

@media (max-width: 390px) {
    .home-hero {
        padding: 36px 0 44px;
    }

    .home-hero h1 {
        font-size: 31px;
    }

    .home-hero__text {
        font-size: 14.8px;
    }

    .home-hero__actions {
        gap: 7px !important;
    }

    .home-hero__actions a,
    .home-hero__actions a:visited {
        font-size: 12.7px !important;
        padding: 0 7px !important;
    }

    .home-hero__controls .neta-color-picker__swatches {
        gap: 9px;
        padding-inline: 10px;
    }

    .home-hero .neta-swatch {
        width: 34px;
        height: 32px;
        min-width: 34px;
        min-height: 32px;
    }

    .home-hero__media {
        width: min(100%, 318px) !important;
        max-width: 318px !important;
        aspect-ratio: 768 / 512 !important;
    }

}