/* ==========================================================
   YalaNext Homepage — Bold + Experimental
   ========================================================== */

/* ------- Scroll Reveal ------- */
.yxl-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.yxl-reveal.yxl-visible {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

/* ==========================================================
   HERO — Full-screen zoom parallax
   ========================================================== */
.yxl-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.yxl-hero-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    will-change: transform;
    transition: none;
    transform: scale(1.1);
}
.yxl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}
.yxl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}
.yxl-hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 25px;
}
.yxl-hero-heading {
    font-family: 'Space Grotesk', sans-serif !important;
    margin: 0 0 28px;
    overflow: hidden;
}
.yxl-split-line {
    display: block;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    color: #fff;
    line-height: 0.95;
    letter-spacing: -0.04em;
}
.yxl-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin: 0 auto 44px;
    line-height: 1.8;
    letter-spacing: 0.02em;
}
.yxl-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.yxl-btn-hero {
    display: inline-block;
    padding: 16px 44px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.yxl-btn-primary {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
}
.yxl-btn-primary:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}
.yxl-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.yxl-btn-outline:hover {
    border-color: #fff;
    color: #fff;
    transform: scale(1.05);
}

/* Scroll indicator */
.yxl-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.yxl-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.6) 100%);
    animation: yxlBounce 2.5s ease-in-out infinite;
}
@keyframes yxlBounce {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ==========================================================
   MARQUEE — Infinite scrolling text
   ========================================================== */
.yxl-marquee {
    overflow: hidden;
    background: #000;
    padding: 20px 0;
    white-space: nowrap;
}
.yxl-marquee-track {
    display: inline-flex;
    gap: 40px;
    animation: yxlMarquee 25s linear infinite;
}
.yxl-marquee-reverse .yxl-marquee-track {
    animation-direction: reverse;
    animation-duration: 30s;
}
.yxl-marquee-track span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}
@keyframes yxlMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================
   SECTIONS — Common
   ========================================================== */
.yxl-section {
    padding: 100px 24px;
}
@media (min-width: 768px) { .yxl-section { padding: 140px 48px; } }
@media (min-width: 1200px) { .yxl-section { padding: 160px 80px; } }

.yxl-section-header {
    text-align: center;
    margin-bottom: 56px;
}
.yxl-section-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #999;
    margin-bottom: 12px;
}
.yxl-section-heading {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: #000;
    letter-spacing: -0.03em;
    margin: 0;
}
.yxl-section-cta {
    text-align: center;
    margin-top: 56px;
}
.yxl-btn-pill {
    display: inline-block;
    padding: 16px 48px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 25px;
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.yxl-btn-pill:hover {
    background: transparent;
    color: #000;
    transform: scale(1.05);
}

/* ==========================================================
   FEATURED PRODUCTS
   ========================================================== */
.yxl-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .yxl-products-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

.yxl-product-card { position: relative; }

/* Tilt effect container */
.yxl-tilt {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.yxl-tilt:hover {
    transform: perspective(600px) rotateX(2deg) rotateY(-3deg) scale(1.02);
}

.yxl-product-img-wrap {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f4;
    border-radius: 6px;
    position: relative;
}
.yxl-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.yxl-product-card:hover .yxl-product-img-wrap img {
    transform: scale(1.08);
}
.yxl-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 5px 12px;
    border-radius: 2px;
    line-height: 1;
}
.yxl-product-info { padding-top: 14px; }
.yxl-product-cat {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 4px;
}
.yxl-product-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 1.4;
    transition: opacity 0.25s;
}
.yxl-product-name:hover { opacity: 0.5; color: #000; }
.yxl-product-price { font-size: 14px; color: #000; margin-top: 4px; }
.yxl-product-price del { color: #999; }
.yxl-product-price ins { text-decoration: none; font-weight: 600; color: #000; }

/* ==========================================================
   BRAND STORY — Centered immersive with bg image
   ========================================================== */
.yxl-story {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yxl-story-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    will-change: transform;
}
.yxl-story-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 100px 24px;
    margin: 0 auto;
}
@media (min-width: 768px) { .yxl-story-content { padding: 140px 40px; } }

.yxl-story-heading {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #000;
    letter-spacing: -0.03em;
    margin: 0 0 28px;
    line-height: 1.05;
}
.yxl-story-text {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
    margin: 0 0 20px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats — horizontal, centered, aligned */
.yxl-story-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
}
.yxl-stat {
    min-width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.yxl-stat .yxl-stat-top {
    display: flex;
    align-items: baseline;
}
.yxl-stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    min-height: 3.5rem;
}
.yxl-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
}
.yxl-stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
}
.yxl-stat-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-top: 10px;
}

/* Divider line between story text and stats */
.yxl-story-divider {
    width: 40px;
    height: 2px;
    background: #000;
    margin: 40px auto;
    opacity: 0.2;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.yxl-testimonials {
    background: #f9f9f7;
}
.yxl-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .yxl-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}
.yxl-testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.yxl-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.yxl-testimonial-stars {
    color: #000;
    font-size: 16px;
    letter-spacing: 2px;
}
.yxl-testimonial-quote {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin: 0;
    flex: 1;
    font-style: italic;
}
.yxl-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.yxl-testimonial-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}
.yxl-testimonial-location {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================
   FULL-WIDTH IMAGE BREAK — Parallax
   ========================================================== */
.yxl-imgbreak {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.yxl-imgbreak-bg {
    position: absolute;
    inset: -50%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}
.yxl-imgbreak-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.yxl-imgbreak-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

/* ==========================================================
   TRUST BADGES — Why YalaNext
   ========================================================== */
.yxl-trust {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.yxl-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}
@media (max-width: 768px) {
    .yxl-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}
@media (max-width: 480px) {
    .yxl-trust-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
.yxl-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.yxl-trust-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f4;
    color: #000;
    margin-bottom: 4px;
}
.yxl-trust-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    margin: 0;
}
.yxl-trust-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
    max-width: 220px;
}

/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 768px) {
    .yxl-hero { min-height: 100svh; }
    .yxl-hero-bg {
        inset: 0 !important;
        transform: none !important;
        opacity: 0.45 !important;
    }
    .yxl-split-line { font-size: 2.8rem; }
    .yxl-hero-sub { font-size: 13px; }
    .yxl-btn-hero { padding: 14px 32px; font-size: 11px; }
    .yxl-hero-buttons { flex-direction: column; align-items: center; }
    .yxl-marquee-track span { font-size: 12px; letter-spacing: 0.2em; }
    .yxl-story-stats { gap: 24px; }
    .yxl-stat-number, .yxl-stat-suffix { font-size: 1.8rem; }
    .yxl-imgbreak { height: 50vh; min-height: 300px; }
    .yxl-imgbreak-bg { inset: 0; transform: none !important; }
}

/* Story section â€” added subheading "Wear better" + closing line "Better fabrics. Better feel." */
.yxl-story-subheading {
    font-family: 'Space Grotesk', 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #000;
    margin: 8px 0 24px;
    opacity: 0.85;
}
.yxl-story-closing {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #000;
    margin: 18px 0 0;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .yxl-story-subheading { font-size: 14px; margin: 6px 0 18px; }
    .yxl-story-closing { font-size: 12px; }
}

/* yxl-story color fix v3 â€” solid #555 background + white text */
.yxl-story { background: #555555 !important; }
.yxl-story .yxl-story-bg { opacity: 0.18 !important; mix-blend-mode: overlay; }
.yxl-story .yxl-section-label,
.yxl-story .yxl-story-heading,
.yxl-story .yxl-story-subheading,
.yxl-story .yxl-story-text,
.yxl-story .yxl-story-closing,
.yxl-story .yxl-stat-number,
.yxl-story .yxl-stat-label,
.yxl-story .yxl-stat-suffix { color: #ffffff !important; opacity: 1 !important; }
.yxl-story .yxl-section-label { opacity: 0.7 !important; }
.yxl-story .yxl-story-divider { background: rgba(255,255,255,0.25) !important; }

/* Mobile: image bg anchored center-left so the subject stays in frame */

/* Small-caps inline style for selected words inside the story section headings */
.yxl-story .yxl-smallcaps {
    text-transform: none !important;
    font-variant: small-caps !important;
    font-feature-settings: "smcp" 1, "c2sc" 1 !important;
    letter-spacing: 0.06em !important;
}

/* Mixed-case override for "BETTER fabrics. BETTER feel." â€” disable parent uppercase */
.yxl-story .yxl-mixedcase { text-transform: none !important; }

/* Philosophy bg â€” desktop shows the landscape, mobile shows a portrait shot */
.yxl-story .yxl-story-bg--desktop { display: block; }
.yxl-story .yxl-story-bg--mobile  { display: none; }
@media (max-width: 768px) {
    .yxl-story .yxl-story-bg--desktop { display: none; }
    .yxl-story .yxl-story-bg--mobile  { display: block; background-position: center center !important; background-size: cover !important; }
}