/* fm-hero-slider — image rotation behind static page content. */

.fm-hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    color: #fff;
    isolation: isolate;
}
.fm-hero-slider--small { min-height: 280px; }
.fm-hero-slider--tall  { min-height: 460px; }

.fm-hero-bg { position: absolute; inset: 0; z-index: -2; }
.fm-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    transform: scale(1.04);
    will-change: opacity, transform;
}
.fm-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.4s ease-in-out, transform 8s ease-out;
}

/* Text-legibility overlay — earth-toned gradient */
.fm-hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(43, 36, 25, 0.65) 0%, rgba(54, 80, 42, 0.45) 100%),
        linear-gradient(180deg, transparent 30%, rgba(43, 36, 25, 0.55) 100%);
}

.fm-hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0 3.5rem;
}
.fm-hero-slider--small .fm-hero-content { padding: 2.25rem 0 2rem; }
.fm-hero-slider--tall  .fm-hero-content { padding: 6rem 0 5rem; }

.fm-hero-content .fm-section-eyebrow { color: #f5f1e8; opacity: 0.8; margin-bottom: 0.6rem; }
.fm-hero-content h1 {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
    max-width: 18ch;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.fm-hero-content h1 em {
    font-style: normal;
    color: #f5e4d4;
    font-weight: inherit;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.fm-hero-content p.lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    margin-top: 1rem;
    max-width: 60ch;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.fm-hero-content .search-bar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

/* Dot indicators */
.fm-hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.fm-hero-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}
.fm-hero-dots button.is-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Optional photo credit (small text in bottom-right) */
.fm-hero-credit {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
}
.fm-hero-credit a { color: inherit; text-decoration: none; }
.fm-hero-credit a:hover { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 720px) {
    .fm-hero-slider          { min-height: 320px; }
    .fm-hero-slider--small   { min-height: 220px; }
    .fm-hero-content h1      { font-size: 2rem; }
    .fm-hero-content p.lead  { font-size: 1rem; }
    .fm-hero-content         { padding: 2.5rem 0 2.25rem; }
}
