/* Homepage rules loaded after the original minified template stylesheet. */
.hero-background {
    width: 100%;
    height: 100%;
    background-color: #121214;
    overflow: hidden;
}

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

.hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(18, 18, 20, .72) 0%,
        rgba(18, 18, 20, .52) 38%,
        rgba(18, 18, 20, .25) 66%,
        rgba(18, 18, 20, .14) 100%
    );
}

.hero-title,
.hero-subtitle,
.hero-age-note {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.section-padding {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 2.35rem;
}

#about .stats-row {
    margin-top: 1.25rem;
}

.footer {
    padding: 3rem 0 1.5rem;
}

#process {
    padding: 4rem 0;
}

#process .section-header {
    margin-bottom: 2.25rem;
}

#process .process-step {
    padding: 1rem .35rem;
}

#process .step-number {
    font-size: 2rem;
    margin-bottom: .75rem;
}

#process .process-step h4 {
    min-height: 2.4em;
    margin-bottom: .6rem;
    font-size: 1.15rem;
}

#process .process-step p {
    margin-bottom: 0;
    font-size: .9rem;
    line-height: 1.45;
}

#about .stats-row {
    display: flex;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 1rem;
}

#about .stat-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 1rem .25rem;
}

#about .stat-item h3 {
    margin-bottom: .4rem;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    white-space: nowrap;
}

#process .section-title,
#testimonials .section-title,
#blog .section-title {
    font-size: clamp(1.35rem, 3.6vw, 2.7rem);
    white-space: nowrap;
}

.home-guide-card {
    display: flex;
    flex-direction: column;
}

.home-guide-card .blog-image {
    height: 165px;
}

.home-guide-card .blog-content {
    display: flex;
    flex: 1;
    padding: 1.35rem;
    flex-direction: column;
}

.home-guide-card .blog-meta {
    gap: .4rem .65rem;
    margin-bottom: .65rem;
}

.home-guide-card .blog-content h3 {
    margin-bottom: .7rem;
    font-size: 1.18rem;
    line-height: 1.35;
}

.home-guide-card .blog-content h3 a {
    color: inherit;
    text-decoration: none;
}

.home-guide-card .blog-content h3 a:hover {
    color: var(--accent-color);
}

.home-guide-card .blog-content p {
    margin-bottom: 1rem;
    font-size: .92rem;
    line-height: 1.55;
}

.home-guide-card .blog-link {
    margin-top: auto;
    align-self: flex-start;
}

@media (min-width: 992px) and (min-aspect-ratio: 4 / 3) {
    .hero-background {
        /* Slightly zoom out and shift the full scene right to reveal more of the man. */
        transform: none !important;
    }

    .hero-background img {
        width: 96%;
        margin-left: 4%;
        object-position: right center;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 1.65rem;
    }

    #process {
        padding: 2.5rem 0;
    }

    #process .section-header {
        margin-bottom: 1.5rem;
    }

    .hero-background {
        /* Keep the woman's face in frame on narrow portrait screens. */
        transform: none !important;
    }

    .hero-background img { object-position: 68% center; }

    .home-guide-card .blog-image { height: 210px; }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(18, 18, 20, .76) 0%,
            rgba(18, 18, 20, .58) 62%,
            rgba(18, 18, 20, .30) 100%
        );
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background {
        transform: none !important;
    }
}
