/* SMSK public homepage */
:root {
    --home-primary: #038c25;
    --home-primary-dark: #026b1d;
    --home-primary-light: #ecfdf5;
    --home-text: #0f172a;
    --home-muted: #64748b;
    --home-border: #e2e8f0;
    --home-bg: #f8fafc;
    --home-surface: #ffffff;
    --home-radius: 16px;
    --home-radius-sm: 10px;
    --home-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --home-max: 1200px;
}

.home-page {
    background: var(--home-bg);
}

.home-container {
    width: 100%;
    max-width: var(--home-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Quick links ── */
.home-quicklinks {
    margin-top: -3rem;
    position: relative;
    z-index: 5;
    padding-bottom: 2.5rem;
}

.home-quicklinks__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-quicklink {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1.35rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-quicklink:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(3, 140, 37, 0.12);
    border-color: rgba(3, 140, 37, 0.35);
    color: inherit;
}

.home-quicklink__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: var(--home-primary-light);
    color: var(--home-primary);
    font-size: 1.35rem;
}

.home-quicklink__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--home-text);
    margin: 0;
    line-height: 1.3;
}

.home-quicklink__text {
    font-size: 0.8125rem;
    color: var(--home-muted);
    margin: 0;
    line-height: 1.45;
}

/* ── Split sections (about, feature) ── */
.home-section {
    padding: 4rem 0;
}

.home-section--surface {
    background: var(--home-surface);
}

.home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.home-split--reverse .home-split__media {
    order: 2;
}

.home-split--reverse .home-split__content {
    order: 1;
}

.home-overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-primary);
    margin-bottom: 0.75rem;
}

.home-title {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    font-weight: 700;
    color: var(--home-text);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.home-title .home-title__accent {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--home-primary);
    margin-top: 0.35rem;
}

.home-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--home-muted);
    margin: 0 0 1rem;
}

.home-lead:last-of-type {
    margin-bottom: 1.5rem;
}

.home-caption {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-text);
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--home-border);
}

.home-media {
    position: relative;
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    min-height: 320px;
}

.home-media img,
.home-media__bg {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.home-media__bg {
    background-size: cover;
    background-position: center top;
}

#about .home-media__bg {
    background-image: url(../webp/mobile/medical-assistant-helping-patient-with-physiotherapy-exercises-1.webp);
}

@media (min-width: 768px) {
    #about .home-media__bg {
        background-image: url(../webp/desktop/medical-assistant-helping-patient-with-physiotherapy-exercises.webp);
    }
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--home-primary);
    background: var(--home-primary-light);
    border: 2px solid var(--home-primary);
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.home-btn:hover {
    background: var(--home-primary);
    color: #fff;
    transform: translateY(-1px);
}

.home-btn--solid {
    background: var(--home-primary);
    color: #fff;
}

.home-btn--solid:hover {
    background: var(--home-primary-dark);
    border-color: var(--home-primary-dark);
    color: #fff;
}

.home-split__content .home-btn {
    margin-top: 0.5rem;
}

/* ── CTA band ── */
.home-cta {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
    color: #fff;
}

.home-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.home-cta__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.home-cta__text {
    margin: 0;
    opacity: 0.92;
    font-size: 1rem;
    max-width: 36rem;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-cta .home-btn {
    background: #fff;
    color: var(--home-primary);
    border-color: #fff;
}

.home-cta .home-btn:hover {
    background: var(--home-primary-light);
    color: var(--home-primary-dark);
}

.home-cta .home-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.home-cta .home-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ── Hero tweaks (RevSlider wrapper) ── */
.home-page .gdlr-core-pbf-wrapper:first-of-type {
    margin-bottom: 0;
}

.home-page rs-layer {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.home-page .rev-btn a,
.home-page .rev-btn a p {
    color: var(--home-primary) !important;
    text-decoration: none;
}

/* Footer spacing on home */
.home-page + footer,
.container-wrapper:has(.home-page) footer {
    margin-top: 0 !important;
}

@media (max-width: 991.98px) {
    .home-quicklinks {
        margin-top: -1.5rem;
    }

    .home-quicklinks__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-split--reverse .home-split__media,
    .home-split--reverse .home-split__content {
        order: unset;
    }

    .home-section {
        padding: 2.75rem 0;
    }

    .home-media {
        min-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .home-quicklinks__grid {
        grid-template-columns: 1fr;
    }

    .home-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-cta__actions {
        width: 100%;
    }

    .home-cta .home-btn {
        flex: 1;
        justify-content: center;
    }
}
