/**
 * Copyright (c) 2026 Estait Group LLC
 * All rights reserved.
 *
 * Front Page Template Styles
 * Homepage sections: hero, features, stats, CTA, content cards
 */

/* Hero Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section {
    position: relative;
    z-index: 2;
}

/* Video in content */
.content-card video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.content-card .wp-block-video {
    margin: 2rem 0;
}

.content-card .wp-block-embed iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* Full Page Background */
.full-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Adjust content sections for full-page background */
body.has-full-page-background .site-main {
    background: transparent;
}

body.has-full-page-background .hero-section,
body.has-full-page-background .features-section,
body.has-full-page-background .stats-section,
body.has-full-page-background .cta-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    padding: 3rem 2rem;
    border-radius: 12px;
    max-width: 1200px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

body.has-full-page-background .hero-section {
    background: rgba(0, 0, 0, 0.7) !important;
    color: white;
}

body.has-full-page-background .hero-section h1,
body.has-full-page-background .hero-section p {
    color: white;
}

/* Material Design Image Components */
.page-content-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.content-card {
    margin-bottom: 2rem;
}

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

/* Material Design Image List */
.content-card .wp-block-gallery,
.content-card .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
}

.content-card .wp-block-image figure,
.content-card .gallery-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-card .wp-block-image figure:hover,
.content-card .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Material Card Media for inline images */
.content-card .mdc-card__media {
    background-size: cover;
    background-position: center;
    padding-top: 56.25%; /* 16:9 */
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    .hero-section p {
        font-size: 1.1rem !important;
    }
    .features-section h2,
    .cta-section h2 {
        font-size: 2rem !important;
    }
}
