/**
 * Hero Section Styles
 *
 * Styles for the homepage hero banner.
 * Image scales with width, height follows naturally (like About page).
 */

/* ========================================
   Hero Container
   ======================================== */

.hero {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    margin-top: -2px;
}

/* Picture element support for responsive images */
.hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero image - fills container, covers minimum height */
.hero-image,
.hero-picture img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ========================================
   Hero Overlay
   ======================================== */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* ========================================
   Hero Content - Centered on image
   ======================================== */

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    max-width: 900px;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

/* ========================================
   Hero Button
   ======================================== */

.hero-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    background: var(--primary-hover-color, var(--primary-comliment-color));
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Responsive - Tablet
   ======================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */

@media (max-width: 768px) {
    /* Allow hero to use natural height based on mobile image */
    .hero {
        min-height: auto;
    }

    .hero-image,
    .hero-picture img {
        min-height: 200px; /* Reduced minimum for mobile */
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
