/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* Hero */
.st-hero {
    height: 100vh;
    min-height: 500px;
    position: relative;
    margin-top: calc(-1 * var(--st-header-height-mobile));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slideshow layers */
.st-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}
.st-hero__slide--active {
    opacity: 1;
}

.st-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}
.st-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    padding: 0 var(--st-gutter-mobile, 16px);
}

/* Features */
.st-features {
    padding: 48px var(--st-gutter-mobile);
}
.st-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: var(--st-max-width);
    margin: 0 auto;
}
.st-features__item {
    text-align: center;
    padding: 16px 8px;
}
.st-features__icon {
    color: var(--st-mid-teal);
    margin-bottom: 12px;
}
.st-features__title {
    font-family: var(--st-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--st-charcoal);
    margin-bottom: 8px;
}
.st-features__text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Highlights */
.st-highlights {
    padding: 48px var(--st-gutter-mobile);
    text-align: center;
}
.st-highlights__cta {
    margin-top: 24px;
}

/* Logos — infinite scrolling carousel */
.st-logos {
    padding: 24px 0;
    overflow: hidden;
    width: 100%;
}
.st-logos__track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: st-logo-scroll 20s linear infinite;
}
.st-logos__track:hover {
    animation-play-state: paused;
}
.st-logos__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.st-logos__img {
    height: 90px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.65;
    transition: opacity 0.3s;
}
@media (min-width: 768px) {
    .st-logos__img {
        height: 90px;
        max-width: 180px;
    }
    .st-logos__track { gap: 60px; }
}
@media (min-width: 1024px) {
    .st-logos__img {
        height: 120px;
        max-width: 220px;
    }
    .st-logos__track { gap: 80px; }
}
.st-logos__item:hover .st-logos__img {
    opacity: 1;
}
@keyframes st-logo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* Services */
.st-services {
    padding: 48px var(--st-gutter-mobile);
    background: var(--st-white);
}
.st-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: var(--st-max-width);
    margin: 0 auto;
}
.st-services__item {
    text-align: center;
    padding: 16px;
}
.st-services__icon {
    color: var(--st-coral);
    margin-bottom: 12px;
}
.st-services__title {
    font-family: var(--st-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--st-charcoal);
    margin-bottom: 8px;
}
.st-services__text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Stats */
.st-stats {
    position: relative;
    padding: 64px var(--st-gutter-mobile);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.st-stats__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 76, 81, 0.85);
}
.st-stats__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: var(--st-max-width);
    margin: 0 auto;
    text-align: center;
}
.st-stats__number {
    display: block;
    font-family: var(--st-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--st-coral);
    line-height: 1;
    margin-bottom: 4px;
}
.st-stats__label {
    display: block;
    font-size: 0.85rem;
    color: var(--st-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.page-id-42347 .st-page { padding-top: 0; }.page-id-42348 .st-page { padding-top: 0; padding-bottom: 0; }.page-id-42348 .st-footer { margin-top: 0; }

/* Map */
.st-map {
    padding: 12px var(--st-gutter-mobile);
    text-align: center;
}
@media (min-width: 768px) {
    .st-map { padding: 48px var(--st-gutter-mobile); }
}
.st-map__container {
    position: relative;
    max-width: var(--st-max-width);
    margin: 0 auto;
    border-radius: var(--st-radius);
    overflow: hidden;
    box-shadow: var(--st-shadow);
    height: 500px;
}
.st-map__iframe {
    width: 100%;
    height: calc(100% + 100px);
    margin-top: -100px;
    border: 0;
}

/* Reviews */
.st-reviews {
    padding: 48px var(--st-gutter-mobile);
    max-width: var(--st-max-width);
    margin: 0 auto;
    text-align: center;
}

/*
 * TrustIndex review widgets — override third-party plugin sizing.
 * !important required here to beat inline TrustIndex CSS specificity.
 */
.st-reviews .ti-widget {
    margin-bottom: 48px;
}
.st-reviews .ti-widget > .ti-widget-container,
.st-reviews .ti-widget > .ti-widget-container.ti-col-1,
.st-reviews .ti-widget > .ti-widget-container.ti-col-2,
.st-reviews .ti-widget > .ti-widget-container.ti-col-3 {
    width: 100% !important;
    max-width: 100% !important;
}
.st-reviews .ti-fade-container,
.st-reviews .ti-reviews-container-wrapper,
.st-reviews .ti-reviews-container {
    width: 100% !important;
    max-width: 100% !important;
}
.st-reviews .ti-review-item {
    min-width: 300px !important;
    max-width: 360px !important;
    flex: 1 1 300px !important;
}

/* Instagram */
.st-instagram {
    padding: 48px var(--st-gutter-mobile);
    max-width: var(--st-max-width);
    margin: 0 auto;
    text-align: center;
}
.st-instagram__placeholder {
    font-family: var(--st-font-body);
    font-size: 1rem;
    color: var(--st-charcoal);
}

@media (min-width: 1024px) {
    .st-instagram {
        padding: 64px var(--st-gutter);
    }
}
