/* ===================================
   CS55 Page Specific Styles
   =================================== */

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    min-height: min(50vw, 560px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            transparent 100%);
    z-index: 1;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
}

.cs55-logo {
    max-width: min(90%, 500px);
    height: auto;
}

.hero-video-actions {
    margin-top: var(--spacing-md);
}

/* Color Selector Section */
.color-selector-section {
    padding-top: var(--spacing-xl);
}

.color-showcase {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.color-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.color-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.color-img.active {
    opacity: 1;
    z-index: 1;
}

.color-selector {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.color-btn {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.color-btn.active {
    border-color: var(--color-accent);
    transform: scale(1.25);
}

.color-btn:hover:not(.active) {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-primary);
}

.feature-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.feature-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (min-width: 640px) {
    .feature-actions {
        flex-direction: row;
    }
}

.reservation-column {
    display: flex;
    flex-direction: column;
}

.reservation-title {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

/* Design Section */
.full-width-image {
    width: 100%;
    margin-bottom: var(--spacing-xl);
}

.design-hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.design-lead {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-foreground);
    max-width: 960px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

.design-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .design-content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.design-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.design-subtitle {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-primary);
}

.design-description {
    color: var(--color-muted);
    line-height: 1.7;
}

.design-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.design-img {
    width: 100%;
    height: auto;
    display: block;
}

.design-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .design-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .design-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.design-feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.design-feature-card:hover {
    transform: translateY(-0.25rem);
}

.design-feature-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.design-feature-text {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Technology Tabs */
.tech-tabs {
    width: 100%;
}

.tech-tabs-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
    background-color: hsl(220, 13%, 91%);
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 640px) {
    .tech-tabs-header {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-tabs-header {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tech-tab-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    background-color: transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: center;
}

.tech-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.tech-tab-btn.active {
    background-color: var(--color-background);
    box-shadow: var(--shadow-sm);
}

.tech-tabs-content {
    position: relative;
}

.tech-tab-panel {
    display: none;
}

.tech-tab-panel.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.tech-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.tech-text {
    text-align: center;
    max-width: 960px;
}

.tech-title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.tech-description {
    color: var(--color-muted);
    line-height: 1.7;
}

/* Safety Slider */
.safety-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.safety-track {
    display: flex;
    width: 100%;
}

.safety-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity var(--transition-base);
}

.safety-slide.active {
    opacity: 1;
    position: relative;
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .safety-content {
        grid-template-columns: 1fr 1fr;
    }
}

.safety-text {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.safety-title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.safety-description {
    color: var(--color-muted);
    line-height: 1.7;
}

.safety-image {
    width: 100%;
}

.safety-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Gallery Section */
.gallery-tabs {
    width: 100%;
}

.gallery-tabs-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
    background-color: hsl(220, 13%, 91%);
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    margin: 0 auto var(--spacing-xl);
    max-width: 400px;
}

.gallery-tab-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    background-color: transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: center;
}

.gallery-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.gallery-tab-btn.active {
    background-color: var(--color-background);
    box-shadow: var(--shadow-sm);
}

.gallery-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.gallery-grid.active {
    display: grid;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-md);
}

.cta-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header .section-title {
    margin-bottom: var(--spacing-md);
}

.section-header .section-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}