/* GLOBAL SITE STYLES - ROOTS KIDS */

/* Navigation Highlights */
.nav-item {
    position: relative;
    padding-bottom: 4px;
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0049e8; /* Primary */
    transition: width 0.3s ease;
}
.nav-item:hover::after, .nav-item.text-primary::after {
    width: 100%;
}

/* Premium Brand Buttons */
.btn-yellow {
    background-color: #f8e501;
    color: #1e293b;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(248, 229, 1, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(248, 229, 1, 0.5);
}
.btn-primary {
    background-color: #0049e8;
    color: #ffffff;
    font-weight: 900;
    transition: all 0.3s ease;
}

/* Premium Footer Architecture */
.premium-footer {
    background: linear-gradient(180deg, #0049e8 0%, #0036ad 100%) !important;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #f8e501 !important; /* Force Secondary Yellow */
}
.footer-column {
    transition: transform 0.3s ease;
}
.footer-column:hover {
    transform: translateY(-5px);
}
.premium-footer a:not(.btn-yellow):hover {
    color: #f8e501 !important;
}

/* Roots Signature Divider */
.roots-divider { 
    width: 100%; 
    height: 32px; 
    background-color: #0049e8; 
    border-top: 4px solid #f8e501; 
    position: relative; 
    z-index: 20; 
}

/* Dropdown Animation */
.group:hover .group-hover\:visible {
    visibility: visible;
}
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Sticky Header Utilities */
#main-nav {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Universal Card Style */
.card, .activity-card, .phonics-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border-radius: 3rem;
    padding: 2.5rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover, .activity-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(0, 73, 232, 0.15);
    border-color: #0049e8;
}

/* Premium Age Tabs */
.age-tab {
    background: #ffffff;
    border: 1px solid rgba(0, 73, 232, 0.1);
    color: #2c2f30;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.age-tab:hover {
    transform: translateY(-3px);
    border-color: #0049e8;
    color: #0049e8;
    box-shadow: 0 10px 25px rgba(0, 73, 232, 0.1);
}

.age-tab.active {
    background: #0049e8;
    color: #ffffff !important;
    border-color: #0049e8;
    box-shadow: 0 25px 50px -12px rgba(0, 73, 232, 0.4);
    transform: translateY(-6px);
}

/* Glass Tag */
.glass-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Age Entry Animation */
.animate-age-entry {
    animation: ageEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* SECTION ARCHITECTURE */
.section-spacing {
    padding-top: 100px;
    padding-bottom: 100px;
}
@media (min-width: 768px) {
    .section-spacing {
        padding-top: 140px;
        padding-bottom: 140px;
    }
}

@keyframes ageEntry {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Luxury Editorial Grid */
.grid-editorial {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(1, 1fr);
}

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

@media (min-width: 1024px) {
    .grid-editorial {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        padding: 40px 0;
    }
}

/* MARQUEE ARCHITECTURE - FIXED OVERLAP */
.activities-track-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    overflow: hidden;
    width: 100%;
}

.animate-activities-scroll {
    display: flex;
    width: max-content;
    gap: 40px; /* Locked Gap */
    padding: 60px 0;
    animation: scroll-luxury 120s linear infinite;
}

@keyframes scroll-luxury {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-activities-scroll:hover {
    animation-play-state: paused;
}

.editorial-card {
    position: relative;
    width: 100%; /* Flexible for grids */
    max-width: 600px; /* Elite luxury scale */
    aspect-ratio: 1 / 1.15; /* Taller cinematic profile */
    border-radius: 3rem;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 30px 60px -20px rgba(0, 73, 232, 0.15);
    display: block;
}

/* Locked Marquee Behavior */
.animate-activities-scroll .editorial-card {
    width: 380px;
    height: 520px;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.editorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -20px rgba(0, 73, 232, 0.25);
}



.editorial-info {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 40px 30px 30px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.editorial-card:hover .editorial-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
}

.editorial-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
    transition: all 0.4s ease;
    color: white;
}

.editorial-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    letter-spacing: 0.02em;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.editorial-card:hover .editorial-desc {
    opacity: 1;
    margin-bottom: 20px;
    max-height: 100px;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(0);
}

.footer-metadata {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
    border-top: 1px solid transparent;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.editorial-card:hover .footer-metadata {
    max-height: 60px;
    padding-top: 1rem;
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Scroll Reveal System */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
