/* ==========================================================================
   Şam Turizm — homepage only
   Loaded from front::index via the `style` stack
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero-glow::before {
    content: '';
    position: absolute;
    width: 38vw;
    height: 38vw;
    max-width: 620px;
    max-height: 620px;
    border-radius: 999px;
    background: rgba(24, 183, 178, .20);
    filter: blur(40px);
    top: 10%;
    inset-inline-end: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero slider
   -------------------------------------------------------------------------- */

/* `--hero-shift` is updated on scroll by home.js */
.hero-media {
    position: absolute;
    inset: 0;
    opacity: .75;
    transform: translateY(var(--hero-shift, 0px)) scale(1.04);
}

.hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}

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

.hero-slide-img,
.hero-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    pointer-events: none;
}

/* A 16:9 player has to be over-scaled to cover a tall viewport without letterboxing */
.hero-slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 177.78vh;
    height: 56.25vw;
    transform: translate(-50%, -50%);
}

/* Centers copy between the fixed header and the slider / scroll controls */
.hero-stage {
    box-sizing: border-box;
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 6.75rem 1.25rem 8.75rem;
}

.hero-stage-inner {
    width: 100%;
    max-width: 72rem;
    min-width: 0;
    text-align: center;
}

/* Overlapping copy blocks keep the hero height stable while slides change */
.hero-copy-stack {
    display: grid;
    width: 100%;
    min-width: 0;
}

.hero-copy {
    grid-area: 1 / 1;
    min-width: 0;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
}

.hero-copy.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.hero-title {
    margin: 0 auto;
    max-width: 100%;
    font-size: clamp(1.875rem, 1.05rem + 3.6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

html[lang="ar"] .hero-title {
    letter-spacing: 0;
    line-height: 1.35;
}

.hero-subtitle {
    margin: 1.5rem auto 0;
    max-width: min(42rem, 100%);
    font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.125rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .8);
    overflow-wrap: break-word;
}

.hero-typewriter-host {
    position: relative;
    min-width: 0;
}

.hero-typewriter-sizer {
    display: block;
    visibility: hidden;
}

.hero-typewriter {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
}

.hero-caret {
    display: inline-block;
    width: .085em;
    height: .78em;
    margin-inline-start: .08em;
    vertical-align: .04em;
    background: currentColor;
    animation: heroCaret .72s steps(1) infinite;
}

.hero-copy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 0;
    opacity: 1;
}

.has-typewriter .hero-copy-actions {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease;
}

.has-typewriter .hero-copy.is-typed .hero-copy-actions {
    opacity: 1;
    transform: none;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 1 1 12.5rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: .95rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease;
}

@media (min-width: 640px) {
    .hero-cta {
        flex: 0 1 auto;
        min-width: 10.5rem;
        padding: 1rem 1.5rem;
    }
}

.hero-cta-primary {
    border: 1px solid #18B7B2;
    background: #18B7B2;
    color: #0B1F3A;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / .18), 0 8px 10px -6px rgb(0 0 0 / .14);
}

.hero-cta-primary:hover,
.hero-cta-primary:focus-visible {
    transform: translateY(-4px);
    background: #2fd4cf;
    box-shadow: 0 18px 36px rgba(24, 183, 178, .42);
}

.hero-cta-secondary {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    backdrop-filter: blur(12px);
}

.hero-cta-secondary:hover,
.hero-cta-secondary:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .48);
    background: rgba(255, 255, 255, .22);
}

.hero-cta:focus-visible {
    outline: 2px solid #18B7B2;
    outline-offset: 3px;
}

.hero-controls {
    position: absolute;
    inset-inline-start: 50%;
    bottom: 5.15rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem 1rem;
    max-width: calc(100% - 1.5rem);
    transform: translateX(-50%);
}

[dir="rtl"] .hero-controls {
    transform: translateX(50%);
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    transition: color .3s ease, background .3s ease;
}

.hero-arrow:hover {
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

.hero-arrow svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

[dir="rtl"] .hero-arrow svg {
    transform: scaleX(-1);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.hero-dot {
    width: .5rem;
    height: .5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
    transition: width .3s ease, background .3s ease;
}

.hero-dot.is-active {
    width: 1.75rem;
    background: #C8A24A;
}

.hero-scroll-link {
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    max-width: calc(100% - 1.5rem);
    translate: -50% 0;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.hero-scroll-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    transition: color .3s ease;
}

.hero-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    animation: heroScrollCue 2.2s ease-in-out infinite;
}

.hero-scroll-plane {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    color: #C8A24A;
    transform: rotate(180deg);
    transition: color .3s ease;
}

.hero-scroll-line {
    display: block;
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(200, 162, 74, .9), rgba(200, 162, 74, 0));
}

.hero-scroll-link:hover .hero-scroll-label {
    color: #fff;
}

.hero-scroll-link:hover .hero-scroll-plane {
    color: #fff;
}

@media (min-width: 1024px) {
    .hero-stage {
        padding-inline: 2rem;
    }
}

@media (max-width: 639px) {
    .hero-cta {
        flex-basis: 100%;
    }

    .hero-controls {
        bottom: 4.85rem;
        gap: .5rem .75rem;
    }

    .hero-arrow {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (max-height: 700px) {
    .hero-stage {
        padding-top: 5.5rem;
        padding-bottom: 6.75rem;
    }

    .hero-copy-actions {
        margin-top: 1.35rem;
    }

    .hero-controls {
        bottom: 4.1rem;
    }

    .hero-scroll-link {
        bottom: 0.1rem;
    }

    .hero-scroll-line {
        height: 1.1rem;
    }
}

@keyframes heroCaret {
    50% { opacity: 0; }
}

@keyframes heroScrollCue {
    0% { transform: translateY(-10px); opacity: 0; }
    25% { opacity: 1; }
    70% { opacity: .85; }
    100% { transform: translateY(16px); opacity: 0; }
}

.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Phone and email stay LTR on Arabic pages so +90 and @ don't reverse */
.cta-contact {
    unicode-bidi: isolate;
}

html[dir="rtl"] .cta-contact {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.cta-copy-email {
    appearance: none;
    cursor: pointer;
}

.cta-copy-fallback {
    position: fixed;
    top: 0;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}

/* --------------------------------------------------------------------------
   Package cards
   -------------------------------------------------------------------------- */

.image-zoom {
    transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.group:hover .image-zoom {
    transform: scale(1.06);
}

.tour-card::after {
    content: '';
    position: absolute;
    inset: auto 22px 0 22px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #18B7B2, transparent);
    transform: scaleX(0);
    transition: transform .45s ease;
}

.tour-card:hover::after {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media {
        transform: scale(1.04);
    }

    .hero-slide,
    .hero-copy,
    .hero-copy-actions,
    .hero-cta {
        transition: none;
    }

    .hero-cta:hover,
    .hero-cta:focus-visible {
        transform: none;
    }

    .hero-typewriter-sizer {
        visibility: visible;
    }

    .hero-typewriter,
    .hero-caret {
        display: none;
        animation: none;
    }

    .hero-copy-actions {
        opacity: 1;
        transform: none;
    }

    .float-slow,
    .marquee-track,
    .hero-scroll-cue {
        animation: none;
    }
}
