/**
 * DGC Components CSS
 * 
 * Component-specific styles for DGC landing page with updated BEM naming
 */ 

/* Typography Utilities */

.dgc-text-md {
    font-size: 0.8rem;
}

.dgc-text-lg {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* =========================================
   SPACING UTILITIES
   ========================================= */

.full-height {
    min-height: 100svh;
    margin: 0;
    justify-content: center;
}

.full-height .right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Margin Bottom */
.dgc-mb-0  { margin-bottom: 0; }
.dgc-mb-xs { margin-bottom: 0.5rem; }   /* 8px */
.dgc-mb-sm { margin-bottom: 1rem; }     /* 16px */
.dgc-mb-md { margin-bottom: 1.5rem; }   /* 24px */
.dgc-mb-lg { margin-bottom: 3rem; }     /* 48px */
.dgc-mb-xl { margin-bottom: 6rem; }     /* 96px */
.dgc-mb-xxl{ margin-bottom: 10rem; }    /* 160px */

/* Margin Top */
.dgc-mt-0  { margin-top: 0; }
.dgc-mt-xs { margin-top: 0.5rem; }
.dgc-mt-sm { margin-top: 1rem; }
.dgc-mt-md { margin-top: 1.5rem; }
.dgc-mt-lg { margin-top: 3rem; }
.dgc-mt-xl { margin-top: 6rem; }
.dgc-mt-xxl{ margin-top: 12rem; }


.dgc-small--hide {
    display: none;
}

@media screen and (min-width: 768px) {

    .dgc-small--hide {
        display: block;
    }

    .dgc-large--hide {
        display: none;    
    }

}



/* Hero Component */

.dgc-hero {
    position: relative;
	height: calc(80svh);
}

.dgc-hero__video {
    width: 100%;
	height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
}


.dgc-hero__caption {
    position: absolute;
    left: 1rem;
    padding: 2rem 0;
    bottom: 2rem;
    z-index: 2;
}

.dgc-hero__caption h1 {
    font-size: clamp(3rem, 5dvw, 4.5rem);
    line-height: 1;
}



/* Navigation Component */

.dgc-nav {
    display: none;
}

.dgc-nav .container {
    display: flex;
    align-items: center;
    height: 45px;
}

.dgc-nav__logo {
    display: flex;
    flex: 1;
    justify-content: flex-start;
}

.dgc-nav__logo img {
    width: 110px;
}

.dgc-nav ul {
    display: flex;
    flex: 1;
    gap: 1rem;
    list-style: none;
    margin: 0;
    justify-content: center;
}

.dgc-nav__item--visible {
    text-decoration: underline;
}

.dgc-nav__title {
    display: flex;
    flex: 1;
    font-size: 1rem;
    margin-bottom: 0px;
    justify-content: flex-end;
}

/* Content Sections */


.dgc-section {
    padding: 50px 0;
    background: #1a1a1a;
}

.dgc-section:nth-of-type(3) {
    padding-bottom: 0;
}

.dgc-section--image {
    padding: 0;
}


.dgc-section-header h2 {
    font-size: clamp(2.5rem, 4vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dgc-section-header p {
    max-width: 800px;
    margin: 0 auto;
    /* opacity: 0.9; */
}

.dgc-service-wrapper {
    /* border-bottom: 1px solid #363636; */
    margin-bottom: 12rem;
}


.dgc-section__split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-bottom: none;
}

.dgc-section__split-quote {
    line-height: 1.5;
    font-size: clamp(1.5rem, 1.5vw, 2rem);
}

.dgc-section__split .right {
    position: relative;
}



/* Before/After Component */

.dgc-before-after {
    height: 500px;
    position: relative;
}

.dgc-before-after__reveal-line {
    position: absolute;
    top: 15%;
    left: 0;
    width: 2px;
    height: 100%;
    background: white;
    z-index: 10;
    opacity: 0;
    transition: none;
    /* Will be positioned by JavaScript */
}

.dgc-before-after__before,
.dgc-before-after__after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.dgc-before-after__before {
    display: block; /* show the base layer */
    z-index: 1;
}

.dgc-before-after__before img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dgc-before-after__after {
    overflow: hidden;
    z-index: 2;
    /* Initial state - controlled by JavaScript */
    /* Clip from right to create left-to-right reveal */
    clip-path: inset(0 100% 0 0);
}


.dgc-before-after__after img {
    width: 100%;
    height: 500px; /* Match parent container height */
    object-fit: contain;
    position: absolute;
    bottom: 0;
}

/* Skip Hint Overlay */
.dgc-before-after__skip-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dgc-before-after__skip-hint--visible {
    opacity: 1;
}

.dgc-before-after__skip-hint span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0 0.125rem;
    font-weight: 600;
}

/* Image Carousel Component */

.dgc-image-carousel {
    margin-top: 30px;
}

.dgc-image-carousel__landscape,
.dgc-image-carousel__portrait {
    margin-top: 30px;
}

.dgc-image-carousel__container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
    max-width: 100%;
}

.dgc-image-carousel__container::-webkit-scrollbar {
    display: none;
}

.dgc-image-carousel__item {
    flex: none;
    scroll-snap-align: start;
}

/* Default mobile sizing for carousel items */
.dgc-image-carousel__item {
    width: 75%;
    height: auto;
}

/* Portrait sizing when in right-small container */
.right-small .dgc-image-carousel__item {
    width: 150px;
    height: 280px;
}

.dgc-image-carousel__image,
.dgc-image-carousel__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.dgc-image-carousel__placeholder {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #666;
    font-size: 0.875rem;
    text-align: center;
}

.right img {
    border-radius: .5rem;
    /* box-shadow: 0px 7px 9px -8px #000; */
    width: 100%;
}

/* Layout & Theme Overrides */

.dgc-2025 .container {
    position: relative;
    max-width: 1440px !important;
}

.dgc-full-size-image {
    width: 100%;
}

.dgc-full-size-image img {
    width: 100%;
}

.site#page {
    position: relative;
}

/* Desktop Styles */

@media screen and (min-width: 768px) {
    .dgc-text-md {
        font-size: 1rem;
    }

    .dgc-text-lg {
        font-size: 1.25rem;
    }

    .dgc-intro {
        max-width: 80%;
        /* margin-bottom: 100px; */
    }
	
	.dgc-hero__caption {
    	max-width: 60dvw;
	}

    .dgc-hero {
        height: calc(100svh - 2rem);
    }

    .dgc-nav {
        display: block;
        position: sticky !important;
        z-index: 999999;
        background: #000;
        top: 0;
    }

    .dgc-section__split {
        flex-direction: row;
    }

    .dgc-section__split-quote {
        width: 80%;
        max-width: 500px;
    }

    .dgc-section__split .left {
        width: 45%;
        margin-right: 3.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .dgc-section__split .left-big {
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* margin-right: 2.5rem; */
    }

    .dgc-section__split .right-small {
        width: 40%;
        /* margin-right: 2.5rem; */
    }

    .dgc-section__split .right {
        position: relative;
        width: 55%;
    }

    /* Desktop Image Carousel - Stack Layout */
    .dgc-image-carousel__container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }

    .big-spacing {
        display: flex;
        flex-direction: column;
        margin: 100px 0 200px;
    }

    .dgc-image-carousel__container.flex-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: none;
        padding-bottom: 0;
    }

    /* Default desktop sizing for landscape carousels (in left-big) */
    .left-big .dgc-image-carousel__item {
        width: 100%;
        height: auto;
    }

    /* Portrait sizing for right-small container */
    .right-small .dgc-image-carousel__item {
        width: 100%;
        height: auto;
    }

    /* First portrait item should be taller */
    .right-small .dgc-image-carousel__item:first-child {
        height: 400px;
    }

    .flex-row .dgc-image-carousel__item {
        width: 40%;
        height: auto;
        aspect-ratio: 12/9;
    }
    .flex-row.portrait .dgc-image-carousel__item {
        width: 32%;
        aspect-ratio: 9/12;
    }
}

/* EA Skate Showcase */

.dgc-ea-skate-showcase {
    margin: 12rem auto 6rem;
    max-width: 1100px;
}

.dgc-showcase-header {
    /* text-align: center; */
    margin-bottom: 4rem;
}

.dgc-showcase-header h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.dgc-showcase-header p {
    max-width: 700px;
    margin: 0 auto;
}

.dgc-showcase-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dgc-showcase-media video,
.dgc-showcase-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.dgc-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #666;
    font-size: 1rem;
}

/* Custom Video Player */
.dgc-video-wrapper {
    position: relative;
    cursor: pointer;
}

.dgc-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    z-index: 10;
    padding: 0;
}

.dgc-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.dgc-video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.dgc-video-wrapper video {
    cursor: pointer;
}

/* Before/After Comparison Component */

#dgc-compare {
    margin: 0 auto;
    max-width: 1100px;
}

#dgc-compare * {
    box-sizing: border-box;
}

.dgc-compare-header {
    margin-bottom: 3rem;
    text-align: center;
}

.dgc-compare-header h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.dgc-compare-header p {
    max-width: 700px;
    margin: 0 auto;
    /* opacity: 0.9; */
}

.dgc-comparison {
    position: relative;
    aspect-ratio: 16 / 9;
    /* gives it real height for ScrollTrigger */
    background: #000;
    overflow: hidden;
}

.dgc-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.dgc-img img {
    width: 100%;
    height: 100%;
}

/* Start AFTER image fully hidden to the right */
.dgc-after {
    position: absolute;
    overflow: hidden;
    top: 0;
    border-left: 3px solid #fff;
    transform: translateX(100%, 0);
}

.dgc-after img {
    transform: translateX(-100%, 0);
}

/* Credits Section */

.dgc-credits-section {
    padding: 0 0 100px;
}

.dgc-credits-header {
    text-align: center;
    margin-bottom: 6rem;
}

.dgc-credits-header h2 {
    font-size: clamp(3rem, 4vw, 5rem);
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dgc-credits-content {
    max-width: 1200px;
    margin: 0 auto;
}

.dgc-credits-group {
    margin-bottom: 6rem;
}

.dgc-credits-group:last-child {
    margin-bottom: 0;
}

.dgc-credits-group h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 3rem;
    font-weight: 500;
    text-align: center;
}

.dgc-credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Brand Logos Grid */
.dgc-credits-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.dgc-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 0 2rem;
}

.dgc-logo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.dgc-logo-placeholder:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.dgc-credits-columns {
    display: grid;
    grid-template-columns: 1fr;
    /* gap: 2rem; */
}

.dgc-credits-columns .dgc-credits-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

@media screen and (min-width: 768px) {
    .dgc-credits-logos {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem 4rem;
    }

    .dgc-logo-item {
        padding: 0;
    }

    .dgc-credits-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* Helpers */

.no-border {
    border: none;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
}

.no-margin-top {
    margin-top: 0;
}

.no-margin-bottom {
    margin-bottom: 0;
}

.margin-bottom-large {
    margin-bottom: 100px;
}