/* =========================================
   HOME PAGE HERO
========================================= */

.hero {
    position: relative;
    padding: 7rem 0 10rem;
    text-align: center;

    /* Hero image support */
    background-image: var(--hero-image);
    background-color: var(--bg-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Navy gradient overlay tuned for bright sunrise image */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 27, 42, 0.85),   /* strong navy at top for readability */
        rgba(13, 27, 42, 0.45),   /* mid fade */
        rgba(13, 27, 42, 0.15)    /* soft at bottom to reveal landscape */
    );
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 70%; /* or 55% or 50% depending on taste */
    background: linear-gradient(to bottom, transparent, var(--bg-light));
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

/* Typography */
.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: var(--space-5);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-subtext {
    font-size: 1.3rem;
    color: var(--color-gray-200);
    margin-bottom: var(--space-5);
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.hero h1,
.hero p {
    color: var(--color-white);
}

/* CTA buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

.hero.section {
    padding: 7rem 0 16rem !important;
    padding-bottom: 14rem !important;
}

.section-alt.cta-final {
    padding-bottom: var(--space-7);
}

.chaplain-card img {
    width: 100%;
    height: 260px;      /* fixed height for uniform cards */
    object-fit: cover;  /* crops instead of distorting */
    border-radius: var(--radius-md);
}

.chaplain-card {
    max-width: 260px;
    margin: 0 auto;
}

.chaplain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
    justify-items: center;
    align-items: start;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1.15rem;
    }

    .hero-cta {
        flex-direction: column;
    }
}