/* ==========================================================================
   Home page (templates/home.php) — scoped styles.
   ========================================================================== */

/* --- Hero --- */

.sr-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 72vh;
    background-color: var(--sr-forest);
    background-size: cover;
    background-position: center;
    overflow: hidden; /* clips the ::after zoom layer */
}
.sr-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1; /* gradient above the ::after zoom layer */
    background: linear-gradient(100deg, rgba(21, 34, 24, .88) 0%, rgba(21, 34, 24, .58) 45%, rgba(21, 34, 24, .22) 100%);
}
/* Slow zoom layer — inherits the section's inline background image (same
   URL, no second download); transforming a pseudo never moves content. */
.sr-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    animation: sr-hero-zoom 22s ease-out both;
    pointer-events: none;
}
@keyframes sr-hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}
/* Load-time entrance for the hero copy (pure CSS — always ends visible) */
@keyframes sr-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.sr-home-hero-content > * {
    animation: sr-fade-up .6s ease both;
}
.sr-home-hero-content > .sr-eyebrow         { animation-delay: .05s; }
.sr-home-hero-content > .sr-home-hero-title { animation-delay: .17s; }
.sr-home-hero-content > .sr-home-hero-sub   { animation-delay: .29s; }
.sr-home-hero-content > .d-flex             { animation-delay: .41s; }
.sr-home-hero-content {
    max-width: 640px;
}
.sr-home-hero-title {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin: .5rem 0 1rem;
}
.sr-home-hero-sub {
    color: var(--sr-cream);
    opacity: .92;
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* --- Intro --- */

.sr-home-intro-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 12px 12px 0 rgba(99, 108, 63, .25);
}

/* --- Why band --- */

.sr-home-why-title {
    color: #fff;
}
.sr-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border: 1px solid rgba(131, 134, 87, .55);
    border-radius: 50%;
    color: var(--sr-sage);
    font-size: 1.5rem;
    transition: background-color .3s ease, border-color .3s ease;
}
.sr-why-item:hover .sr-why-icon {
    background: rgba(131, 134, 87, .18);
    border-color: var(--sr-sage);
}
.sr-why-title {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: .5rem;
}
.sr-why-text {
    color: var(--sr-cream);
    opacity: .85;
    font-size: .9375rem;
    margin-bottom: 0;
}

/* --- Testimonials --- */

.sr-testimonial {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 2.25rem 2rem 1.75rem;
    background: #fff;
    border: 1px solid rgba(21, 34, 24, .08);
    text-align: start;
}
.sr-testimonial-mark {
    position: absolute;
    top: .25rem;
    left: 1.25rem;
    font-family: var(--sr-font-header);
    font-size: 4rem;
    line-height: 1;
    color: var(--sr-sage);
    opacity: .5;
}
.sr-testimonial-quote {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #38423b;
}
.sr-testimonial-name {
    font-weight: 600;
    color: var(--sr-forest);
    font-size: .9375rem;
}
.sr-testimonial-sample {
    display: block;
    margin-top: .25rem;
    font-weight: 400;
    font-size: .75rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #8a8f8b;
}

/* --- Responsive --- */

@media (max-width: 991.98px) {
    .sr-home-hero {
        min-height: 60vh;
    }
}
@media (max-width: 767.98px) {
    .sr-home-hero {
        min-height: 0;
    }
}

/* --- Motion safety --- */

@media (prefers-reduced-motion: reduce) {
    .sr-home-hero-content > *,
    .sr-home-hero::after {
        animation: none;
    }
    .sr-why-icon {
        transition: none;
    }
}
