/* ModeX site styles */
html { scroll-behavior: smooth; }

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #e40202;
    border-radius: 10px;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #e4021d transparent;
}


.form-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: #111;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color .15s, background .15s;
}
.form-input::placeholder {
    color: #6b7280;
}
.form-input:focus {
    outline: none;
    border-color: #e4021d;
    background: rgba(228,2,29,0.05);
}
html:not(.dark) .form-input {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111;
}
html.dark .form-input,
html.dark input,
html.dark textarea,
html.dark select {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111 !important;
}
html.dark .form-input::placeholder,
html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #6b7280;
}
html.dark .form-input:focus,
html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
    background: #fff;
    border-color: #e4021d;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: 0.6rem;
    padding: 0.75rem 1.4rem;
    transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #e4021d; color: #fff; box-shadow: 0 8px 24px -8px rgba(228,2,29,.5); }
.btn-primary:hover { background: #c50018; }
.btn-outline { border: 1px solid currentColor; }
.btn-outline:hover { background: rgba(255,255,255,0.06); }

.product-card { transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }

.swatch {
    width: 1.75rem; height: 1.75rem;
    border-radius: 9999px;
    border: 2px solid rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform .15s;
}
.swatch.active { transform: scale(1.15); border-color: #e4021d; box-shadow: 0 0 0 2px #e4021d33; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .4s ease both; }

img { content-visibility: auto; }

/* ===== Hero background ===== */
.hero-section {
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Air Force glow ===== */
.air-force-glow {
    background: radial-gradient(circle at center, rgba(228,2,29,0.35) 0%, rgba(228,2,29,0.1) 40%, transparent 70%);
    pointer-events: none;
}

/* ===== Hero animations ===== */
.hero-shose-animate {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateX(-100%);
}
.hero-section .hero-reveal {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-reveal-delay-1 { transition-delay: 0.12s; }
.hero-reveal-delay-2 { transition-delay: 0.26s; }
.hero-reveal-delay-3 { transition-delay: 0.4s; }
.hero-reveal-delay-4 { transition-delay: 0.54s; }
.hero-reveal-delay-5 { transition-delay: 0.68s; }
.hero-visible .hero-shose-animate {
    animation: heroShoeSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-visible .hero-reveal {
    opacity: 1;
    transform: translateY(0);
}
.hero-visible .hero-reveal.opacity-80 {
    opacity: 0.8;
}

@keyframes heroShoeSlide {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes revealUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ===== Air Force animations ===== */
.air-force-shoe {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateX(-60px);
}
.air-force-fade-up {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(30px);
}
.air-force-visible .air-force-shoe {
    animation: airShoeSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}
.air-force-visible .air-force-fade-up-d1 { animation: revealUp 0.7s 0.1s ease forwards; }
.air-force-visible .air-force-fade-up-d2 { animation: revealUp 0.7s 0.25s ease forwards; }
.air-force-visible .air-force-fade-up-d3 { animation: revealUp 0.7s 0.4s ease forwards; }
.air-force-visible .air-force-fade-up-d4 { animation: revealUp 0.7s 0.55s ease forwards; }

@keyframes airShoeSlide {
    0% { transform: translateX(-60px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ===== Header transparent (only when .header-transparent is applied via JS) ===== */
.header-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: white !important;
}
.header-transparent .text-brand-black {
    color: white !important;
}
.header-transparent .text-brand-red {
    color: #e4021d !important;
}
.header-transparent svg {
    stroke: white !important;
}
.dark .header-transparent {
    background: transparent !important;
}
.dark .header-transparent .text-brand-black,
.dark .header-transparent span:not(.text-brand-red) {
    color: white !important;
}
.dark .header-transparent svg {
    stroke: white !important;
}

/* Home page + Light mode: header text is dark even when transparent */
html:not(.dark) .header-transparent {
    color: #111111 !important;
}
html:not(.dark) .header-transparent .text-brand-black {
    color: #111111 !important;
}
html:not(.dark) .header-transparent svg {
    stroke: #111111 !important;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    direction: rtl;
}
.testimonials-section > .max-w-7xl {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonials-section.testimonials-visible > .max-w-7xl {
    opacity: 1;
    transform: translateY(0);
}
.testimonials-glow-left {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(228,2,29,0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.testimonials-glow-right {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(168,85,247,0.06) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}
.dark .testimonials-glow-left {
    background: radial-gradient(circle at center, rgba(228,2,29,0.12) 0%, transparent 70%);
}
.dark .testimonials-glow-right {
    background: radial-gradient(circle at center, rgba(168,85,247,0.1) 0%, transparent 70%);
}

.testimonials-divider {
    width: 60px;
    height: 4px;
    background: #e4021d;
    border-radius: 4px;
    margin: 16px auto 0;
}
.dark .testimonials-divider {
    background: #e4021d;
}

/* Card wrapper */
.testimonial-card-wrapper {
    min-height: 300px;
}

/* Card */
.testimonial-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 20px 60px -12px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
    color: #fff;
    direction: rtl;
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.dark .testimonial-card {
    background: linear-gradient(145deg, #111 0%, #1a1a1a 50%, #222 100%);
    box-shadow: 0 20px 60px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Rating row */
.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}
.testimonial-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.95rem;
    direction: ltr;
}

/* Quote icon */
.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.75rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(228,2,29,0.15);
    color: #e4021d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quote text */
.testimonial-quote {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.92;
    margin: 0.5rem 0 0;
    padding-left: 0;
}
@media (min-width: 640px) {
    .testimonial-quote {
        font-size: 1.2rem;
        padding-left: 0;
    }
}

/* Footer */
.testimonial-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.dark .testimonial-card-footer {
    border-top-color: rgba(255,255,255,0.05);
}

/* Avatar */
.testimonial-avatar {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e4021d, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

/* Author */
.testimonial-author {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}
.testimonial-meta {
    font-size: 0.8rem;
    opacity: 0.55;
    margin-top: 1px;
}

/* Navigation arrows */
.testimonial-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.testimonial-nav:hover {
    background: #e4021d;
    border-color: #e4021d;
    color: #fff;
    box-shadow: 0 4px 16px rgba(228,2,29,0.3);
}
.testimonial-nav:active {
    transform: scale(0.92);
}
.dark .testimonial-nav {
    background: #1d1d1d;
    border-color: rgba(255,255,255,0.1);
    color: #eee;
}
.dark .testimonial-nav:hover {
    background: #e4021d;
    border-color: #e4021d;
    color: #fff;
}

/* Dots */
.testimonial-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.75rem;
}
.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, width 0.3s;
    padding: 0;
}
.testimonial-dot:hover {
    background: rgba(228,2,29,0.4);
}
.testimonial-dot.active {
    background: #e4021d;
    width: 28px;
    border-radius: 5px;
    transform: none;
}
.dark .testimonial-dot {
    background: rgba(255,255,255,0.15);
}
.dark .testimonial-dot:hover {
    background: rgba(228,2,29,0.4);
}
.dark .testimonial-dot.active {
    background: #e4021d;
}

/* Stats row */
.testimonials-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
@media (min-width: 640px) {
    .testimonials-stats {
        gap: 2.5rem;
    }
}
.testimonials-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.testimonials-stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #e4021d;
    line-height: 1.1;
}
.testimonials-stat-label {
    font-size: 0.78rem;
    opacity: 0.6;
    font-weight: 600;
}
.testimonials-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(0,0,0,0.1);
}
.dark .testimonials-stat-divider {
    background: rgba(255,255,255,0.08);
}

/* ===== FAQ Section ===== */
.faq-section {
    direction: rtl;
}
.faq-section > .max-w-7xl {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-section.faq-visible > .max-w-7xl {
    opacity: 1;
    transform: translateY(0);
}
.faq-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e4021d;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}
.faq-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    color: #111;
}
.dark .faq-title {
    color: #fefeff;
}
@media (min-width: 640px) {
    .faq-title {
        font-size: 2.5rem;
    }
}
@media (min-width: 1024px) {
    .faq-title {
        font-size: 3rem;
    }
}

/* List */
.faq-list {
    display: flex;
    flex-direction: column;
}

/* Item */
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.dark .faq-item {
    border-bottom-color: rgba(255,255,255,0.06);
}
.faq-item:first-child {
    border-top: 1px solid rgba(0,0,0,0.08);
}
.dark .faq-item:first-child {
    border-top-color: rgba(255,255,255,0.06);
}

/* Question button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    text-align: right;
    transition: color 0.2s;
    line-height: 1.5;
}
.faq-question:hover {
    color: #e4021d;
}
.dark .faq-question {
    color: #fefeff;
}
.dark .faq-question:hover {
    color: #e4021d;
}
@media (min-width: 640px) {
    .faq-question {
        font-size: 1.05rem;
        padding: 1.25rem 0;
    }
}

/* Toggle icon + / × */
.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(228,2,29,0.08);
    color: #e4021d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.35s ease, background 0.25s, color 0.25s;
    line-height: 1;
    user-select: none;
}
.faq-item-open .faq-toggle {
    transform: rotate(45deg);
    background: #e4021d;
    color: #fff;
}

/* Answer wrapper */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
    padding: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.8;
    opacity: 0.75;
}
.dark .faq-answer-inner {
    opacity: 0.6;
}
@media (min-width: 640px) {
    .faq-answer-inner {
        font-size: 0.95rem;
        padding-bottom: 1.5rem;
    }
}

/* ===== Contact Page ===== */
.contact-input {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111;
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color .15s;
}
.contact-input::placeholder { color: #9ca3af; }
.contact-input:focus {
    outline: none;
    border-color: #e4021d;
    box-shadow: 0 0 0 3px rgba(228,2,29,0.08);
}
.dark .contact-input {
    background: #1d1d1d;
    border-color: #333;
    color: #fefeff;
}
.dark .contact-input:focus {
    border-color: #e4021d;
    box-shadow: 0 0 0 3px rgba(228,2,29,0.15);
}
textarea.contact-input { resize: vertical; min-height: 100px; }

/* Contact page animations */
.contact-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: contactFadeUp .7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.contact-reveal-delay {
    opacity: 0;
    transform: translateY(24px);
    animation: contactFadeUp .7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.contact-info-reveal > div {
    opacity: 0;
    transform: translateY(24px);
}
.contact-info-reveal > div:first-child {
    animation: contactFadeUp .7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
.contact-info-reveal > div:last-child {
    animation: contactFadeUp .7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
@keyframes contactFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-reveal,
    .contact-reveal-delay,
    .contact-info-reveal > div {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .testimonials-section > .max-w-7xl,
    .faq-section > .max-w-7xl {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
