/* --- Hero Section Styles --- */
#hero {
    min-height: max(640px, 92svh);
    display: flex;
    align-items: center;
    background: transparent;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
    padding-bottom: 120px;
    isolation: isolate;
}

.hero-slides,
.hero-shade {
    /* Preserve the original fixed-background scrolling with CMS image layers. */
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-slides { background: var(--bg-dark); }

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 800ms ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-shade {
    background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.3) 75%),
                linear-gradient(0deg, var(--bg-dark), transparent 35%, rgba(0,0,0,.25));
}

[dir="rtl"] .hero-shade {
    background: linear-gradient(270deg, rgba(0,0,0,.8), rgba(0,0,0,.3) 75%),
                linear-gradient(0deg, var(--bg-dark), transparent 35%, rgba(0,0,0,.25));
}

.hero-arrow,
.hero-playback,
.hero-slide-dot {
    appearance: none;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(17,17,17,.65);
    color: var(--text-main);
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 12;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
}

.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

.hero-arrow:hover,
.hero-playback:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
}

.hero-arrow:focus-visible,
.hero-playback:focus-visible,
.hero-slide-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.hero-slider-footer {
    position: absolute;
    inset-inline: 80px;
    bottom: 32px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-slide-count { display: flex; align-items: center; gap: 16px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.hero-slide-count > :first-child { color: var(--primary); font-weight: 700; }
.hero-count-divider { width: 48px; height: 1px; background: rgba(255,255,255,.35); }
.hero-slide-dots { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; min-width: 0; overflow-x: auto; }
.hero-slide-dot { flex-shrink: 0; width: 28px; height: 44px; padding: 0; background: transparent; border: 0; position: relative; }
.hero-slide-dot::after { content: ''; display: block; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background 180ms ease, width 180ms ease; }
.hero-slide-dot.is-active::after { background: var(--primary); width: 24px; border-radius: 4px; }
.hero-playback { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.hero-slider-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero-content {
    text-align: start;
    position: relative;
    z-index: 10;
    max-width: min(900px, calc(100% - 160px));
    margin-inline: 80px 0;
    padding: 0 20px;
}

.hero-quick-coupon-cta {
    position: absolute;
    top: calc(var(--header-height) + 1rem);
    inset-inline-start: 80px;
    z-index: 11;
    width: calc(100% - 160px);
    display: flex;
    justify-content: center;
}

.hero-quick-coupon-button {
    width: 460px;
    max-width: 100%;
    min-height: 50px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.75rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    letter-spacing: 0;
    background: rgba(174, 202, 55, 0.85);
    border: 2px solid var(--primary);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hero-quick-coupon-button:focus-visible {
    outline: none;
    background: var(--primary);
    border-color: var(--secondary);
}

.hero-title {
    font-size: 3.5rem; 
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    color: var(--text-main);
    font-family: 'Michroma', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-subtitle.rich-content > .hero-description {
    margin-bottom: 40px;
}

.hero-description {
    font-size: calc(1.2rem + 4px);
    margin-bottom: 40px;
    opacity: 0;
    color: #ccc;
    font-family: 'Michroma', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s 0.5s forwards;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

/* Responsive Hero Title */
@media (max-width: 1024px) {
    .hero-quick-coupon-cta {
        inset-inline-start: 40px;
        width: calc(100% - 80px);
    }
    .hero-content {
        margin-inline: 80px 0;
    }
    .hero-slider-footer { inset-inline: 40px; }
    .hero-title { font-size: 2.75rem; }
    .hero-description { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    #hero {
        min-height: clamp(540px, 82svh, 720px);
        padding-top: calc(var(--header-height) + 100px);
        padding-bottom: 140px;
    }
    .hero-quick-coupon-cta {
        inset-inline-start: 20px;
        width: calc(100% - 40px);
    }
    .hero-quick-coupon-button {
        font-size: clamp(0.7rem, 2.5vw, 0.875rem);
    }
    .hero-content {
        width: 100%;
        margin-inline: auto;
        max-width: 38rem;
        padding-inline: 24px;
        text-align: center;
    }
    .hero-shade,
    [dir="rtl"] .hero-shade {
        background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.2) 20%, rgba(0,0,0,.65) 48%, rgba(0,0,0,.45) 68%, var(--bg-dark));
    }
    .hero-arrow { top: auto; bottom: 88px; }
    .hero-slider-footer { inset-inline: 20px; bottom: 20px; gap: 12px; }
    .hero-count-divider { width: 24px; }
    .hero-slide-count { gap: 8px; }
    .hero-slide-dots { gap: 0; }
    .hero-slide-dot { width: 44px; }
    .hero-slide-dot.is-active::after { width: 16px; }
    .hero-title { font-size: clamp(1.3rem, 5.5vw, 2rem); }
    .hero-subtitle,
    .hero-description {
        font-size: clamp(0.875rem, 3.2vw, 1.125rem);
        line-height: 1.75;
        letter-spacing: 0.035em;
        margin-bottom: 0;
        text-wrap: balance;
        text-shadow: 0 2px 8px rgba(0,0,0,.85);
    }
    .hero-subtitle.rich-content > .hero-description {
        margin-bottom: 0;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-height: 600px) and (min-width: 641px) {
    #hero {
        padding-top: calc(var(--header-height) + 100px);
    }
}

@media (max-width: 480px) {
    .hero-slide-count { display: none; }
    .hero-slide-dots { margin-inline-start: 0; margin-inline-end: auto; }
}

@media (max-width: 640px) {
    /* Match the site's mobile background-attachment: scroll fallback. */
    .hero-slides,
    .hero-shade { position: absolute; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-arrow,
    .hero-playback,
    .hero-slide-dot::after { transition: none; }
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-buttons { animation: none; opacity: 1; }
}
