/* ========================================
   The Local Guy - Hero with photo slider
   ======================================== */

.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5vw;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

/* Slides: two full-bleed photos that crossfade */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
    will-change: opacity;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide.is-active {
    opacity: 1;
}

/* Dark gradient so the text stays readable over any photo */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(to right, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.25) 100%),
        linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 35%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 96px;
    height: 96px;
    display: block;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    transform: scale(1);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 400px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    border-radius: 4px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* Weather widget sits on top of the photo */
.hero .weather-widget {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 968px) {
    .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.95) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

@media (max-width: 968px) {
    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-tagline {
        max-width: 100%;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
