/* ============================================
   AS Pre-Call Landing Page Styles
   Colors: Gold #D1AE53 | Black #181a1c
   ============================================ */

/* CSS Variables */
:root {
    --as-gold: #D1AE53;
    --as-black: #181a1c;
    --as-gold-light: rgba(209, 174, 83, 0.1);
    --transition-smooth: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: gravesend-sans, sans-serif !important;
    background-color: var(--as-black);
    color: var(--as-gold);
    line-height: 1.6;
    position: relative;
}

/* Background Watermark Text */
body::before {
    content: 'AMERICAN STALLION';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: 90vw;
    text-align: center;
}

/* Main Container */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    min-height: 0;
    gap: 6px;
}

/* Video Header - Headline & Subheadline */
.video-header {
    text-align: center;
    max-width: 900px;
    flex-shrink: 0;
}

.headline {
    font-family: gravesend-sans, sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    line-height: 1.25;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.headline-prefix {
    color: var(--as-gold);
    display: block;
    font-size: 0.85em;
    margin-bottom: 2px;
}

.headline .highlight {
    color: var(--as-gold);
}

.subheadline {
    font-family: gravesend-sans, sans-serif;
    font-weight: 400;
    font-size: clamp(0.7rem, 1.3vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
}

/* Microcopy under video */
.microcopy {
    font-family: gravesend-sans, sans-serif;
    font-weight: 400;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    color: rgba(209, 174, 83, 0.6);
    text-align: center;
    letter-spacing: 0.04em;
    font-style: italic;
    flex-shrink: 0;
}

.video-wrapper {
    flex: 1;
    min-height: 0;
    max-height: calc(100vh - 220px);
    aspect-ratio: 9 / 16;
    border: 1px solid var(--as-gold);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(209, 174, 83, 0.15);
}

.video-wrapper wistia-player {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   Carousel Section
   ============================================ */
.carousel-section {
    flex-shrink: 0;
    height: 160px;
    padding: 20px 0;
    border-top: 1px solid rgba(209, 174, 83, 0.2);
    background: linear-gradient(to bottom, transparent, rgba(209, 174, 83, 0.03));
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 100%;
    padding: 15px 0;
    margin: -15px 0;
}

/* Gold gradient fade on edges */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--as-black) 0%, transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--as-black) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 15px;
    height: 100%;
    width: max-content;
    animation: carouselScroll 80s linear infinite;
}

/* Infinite scroll animation - single definition, uses CSS custom property for gap adjustment */
@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Individual Slides */
.carousel-slide {
    flex-shrink: 0;
    height: 100%;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.carousel-slide img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    filter: grayscale(100%);
    transition: filter var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid rgba(209, 174, 83, 0.3);
}

/* Desktop: Hover to reveal color and scale */
@media (hover: hover) {
    .carousel-slide:hover img {
        filter: grayscale(0%);
        transform: scale(1.12);
        box-shadow: 0 8px 35px rgba(209, 174, 83, 0.4);
        border-color: var(--as-gold);
        z-index: 10;
    }
}

/* Mobile: Click/touch to reveal color */
.carousel-slide img.active {
    filter: grayscale(0%);
    transform: scale(1.12);
    box-shadow: 0 8px 35px rgba(209, 174, 83, 0.4);
    border-color: var(--as-gold);
    z-index: 10;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .video-section {
        padding: 8px 20px;
        gap: 6px;
    }
    
    .video-wrapper {
        max-height: calc(100vh - 210px);
    }
    
    .carousel-section {
        height: 120px;
        padding: 8px 0;
    }
    
    .carousel-track {
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Stack watermark text on mobile - centered and elegant */
    body::before {
        content: 'AMERICAN\ASTALLION';
        white-space: pre-line;
        text-align: center;
        line-height: 0.75;
        font-size: clamp(3.5rem, 16vw, 6rem);
        width: 100%;
        letter-spacing: 0.02em;
        top: 45%;
    }
    
    html, body {
        overflow: auto;
        overflow-x: hidden;
    }
    
    .container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    
    .video-section {
        flex: none;
        padding: 15px 15px 10px;
        gap: 10px;
    }
    
    .video-header {
        max-width: 100%;
    }
    
    .headline {
        font-size: clamp(0.85rem, 4vw, 1.1rem);
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .headline br {
        display: none;
    }
    
    .subheadline {
        font-size: clamp(0.7rem, 2.8vw, 0.85rem);
    }
    
    .microcopy {
        font-size: 0.65rem;
    }
    
    .video-wrapper {
        flex: none;
        height: auto;
        max-height: none;
        width: 65%;
        max-width: 300px;
        aspect-ratio: 9 / 16;
        border-radius: 3px;
    }
    
    .carousel-section {
        height: 160px;
        padding: 20px 0;
    }
    
    .carousel-track {
        gap: 10px;
        animation-name: carouselScroll;
        animation-duration: 60s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }
    
    .carousel-slide img {
        border-radius: 3px;
    }
    
    .carousel-container::before,
    .carousel-container::after {
        width: 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .video-section {
        padding: 12px 10px 8px;
        gap: 8px;
    }
    
    .headline {
        font-size: 0.8rem;
        margin-bottom: 4px;
        line-height: 1.25;
    }
    
    .headline-prefix {
        margin-bottom: 2px;
    }
    
    .subheadline {
        font-size: 0.65rem;
    }
    
    .microcopy {
        font-size: 0.6rem;
    }
    
    .video-wrapper {
        width: 70%;
        max-width: 280px;
    }
    
    .carousel-section {
        height: 140px;
        padding: 18px 0;
    }
    
    .carousel-track {
        gap: 8px;
        animation-duration: 50s;
    }
    
    .carousel-container::before,
    .carousel-container::after {
        width: 20px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (max-width: 768px) {
    html, body {
        overflow: auto;
        overflow-x: hidden;
    }
    
    .container {
        height: auto;
        min-height: 100vh;
    }
    
    .video-section {
        padding: 8px 15px;
        gap: 5px;
    }
    
    .video-header {
        display: block;
    }
    
    .headline {
        font-size: 0.7rem;
    }
    
    .subheadline {
        font-size: 0.55rem;
    }
    
    .microcopy {
        display: block;
        font-size: 0.5rem;
    }
    
    .video-wrapper {
        width: 50%;
        max-width: 280px;
    }
    
    .carousel-section {
        height: 80px;
        padding: 6px 0;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation-duration: 120s;
    }
    
    .carousel-slide img {
        transition: filter var(--transition-smooth);
    }
}

