/* Explain: App-specific layout utilities and component styles, including marquee animation. */
.section-pad {
    padding-block: 4.5rem;
}

.section-pad-lg {
    padding-block: 6rem;
}

.heading-xl {
    font-size: clamp(2rem, 5vw, 3.35rem);
    letter-spacing: -0.01em;
}

.heading-lg {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    text-shadow: 0 2px 18px rgba(12, 59, 34, 0.45);
}

@media (min-width: 640px) {
    .hero-title {
        white-space: nowrap;
    }
}

.hero-media {
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    z-index: 0;
}

.mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: var(--dark-color);
}

.mobile-menu.is-open {
    max-height: 32rem;
    opacity: 1;
}

.grid-auto {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-auto {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-auto.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-auto.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cta-band {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    border-radius: 1.75rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}

.prose-rtl p + p {
    margin-top: 1rem;
}

.logo-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: logo-scroll 40s linear infinite;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
    animation-play-state: paused;
}

.logo-group {
    display: flex;
    flex-shrink: 0;
    gap: 1.5rem;
    margin: 0;
    padding-left: 0;
    padding-right: 1.5rem;
    list-style: none;
}

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .logo-track {
        animation: none;
        width: 100%;
    }
    .logo-group {
        flex-shrink: 1;
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
    }
    .logo-group[aria-hidden="true"] {
        display: none;
    }
}