/* Hero Block Styles
 * Description: Styles for the Hero block with version switcher, video/image support, and distinct version layouts.
 * Used in: Hero block with version-1 (light, parallax, left-aligned) and version-2 (dark, video, centered).
 */

/* Root variables for theming */
:root {
    --primary-color: #041581; /* Dark blue */
    --secondary-color: #f7fb85; /* Bright yellow */
    --accent-color: #00a3e0; /* Light blue for hover effects */
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --background-light: #f5f7fa;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --overlay-dark: rgba(4, 21, 129, 0.65); /* Darker overlay for contrast */
    --container-max-width: 1400px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --font-primary: 'Greycliff CF', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --border-radius: 15px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Base container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Hero section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background (image or video) */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__image,
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 2;
}

/* Content */
.hero__content {
    position: relative;
    z-index: 3;
    padding: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards 0.2s;
}

.hero__content h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    margin: 0 0 var(--spacing-sm);
}

.hero__content .hero__subtitle {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.3;
    margin: 0 0 var(--spacing-md);
    opacity: 0.85;
}

.hero__content p {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    margin: 0 0 var(--spacing-lg);
}

/* Buttons */
.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Version 1: Light, modern with parallax, left-aligned content */
.hero--version1 {
    background: var(--background-gradient);
}

.hero--version1 .hero__image {
    transform: scale(1.1);
    /* animation: parallax 20s linear infinite; */
}

.hero--version1 .hero__content {
    max-width: 70%;
    text-align: left;
}
.hero--version1 .hero__buttons {
    flex-direction: row;
    justify-content: flex-start;
}

.hero--version1 .btn--primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.hero--version1 .btn--primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
}

.hero--version1 .btn--secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
}

.hero--version1 .btn--secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Version 2: Bold, video background, centered content */
.hero--version-2 {
    background: var(--primary-color);
}

.hero--version-2 .hero__video {
    filter: brightness(0.7);
}

.hero--version-2 .hero__content {
    max-width: 70%;
    text-align: center;
    margin: 0 auto;
}

.hero--version-2 .hero__buttons {
    flex-direction: column;
    align-items: center;
}

.hero--version-2 .btn--primary {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
}

.hero--version-2 .btn--primary:hover {
    background: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

.hero--version-2 .btn--secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.hero--version-2 .btn--secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

/* Font color variations */
.hero--light h1,
.hero--light .hero__subtitle,
.hero--light p {
    color: var(--text-light);
}

.hero--dark h1,
.hero--dark .hero__subtitle,
.hero--dark p {
    color: var(--text-dark);
}

/* Animations */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes parallax {
    0% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        transform: scale(1.1) translateY(-10%);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero--version1 .hero__content,
    .hero--version-2 .hero__content {
        max-width: 80%;
    }

    .hero__content h1 {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }

    .hero__content .hero__subtitle {
        font-size: clamp(1rem, 1.8vw, 1.3rem);
    }

    .hero__content p {
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero--version1 .hero__content,
    .hero--version-2 .hero__content {
        max-width: 100%;
        text-align: center;
        padding: var(--spacing-md);
    }

    .hero--version1 .hero__buttons,
    .hero--version-2 .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__content h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .hero__content .hero__subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .hero__content p {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}