/* Summer-Fit marketing-page styles. Loaded after Casper's screen.css
   from default.hbs. Used by the home page calling-card layout and by
   the dedicated service pages (personal-training, specialty-training,
   training-the-trainer, contact). */

:root {
    --summerfit-purple: #633fab;
    --summerfit-purple-dark: #31006c;
    --summerfit-purple-soft: #f4eff8;
}

/* ============================================================
   Calling-card purple block.

   Used directly under the hero on the home page and as a closing
   CTA at the bottom of each service detail page. Full-bleed
   horizontally; centered prose inside.
   ============================================================ */
.sf-callingcard {
    width: 100%;
    background: var(--summerfit-purple);
    color: #fff;
    padding: 96px 24px;
    margin: 0;
    box-sizing: border-box;
}

.sf-callingcard-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.sf-callingcard p {
    color: #fff;
    font-size: 2rem;          /* matches Casper's .gh-content > p baseline */
    line-height: 1.6em;
    margin: 0 0 24px;
}
.sf-callingcard p:last-child {
    margin-bottom: 0;
}

.sf-tagline {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 1.3rem;        /* small kicker label, scaled up with the body */
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px !important;
    font-weight: 600;
}

/* High-contrast link inside the purple block. */
.sf-link-light {
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.15s ease;
}
.sf-link-light:hover {
    border-bottom-color: #fff;
}

/* ============================================================
   Feature/callout sections (2-column on desktop, stacked on mobile).
   Used on the home page to introduce each service area.
   ============================================================ */
.sf-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1100px;
    margin: 96px auto;
    padding: 0 24px;
    align-items: center;
}
.sf-feature-reverse .sf-feature-image {
    order: 2;
}

.sf-feature-image {
    aspect-ratio: 4 / 3;
    background: var(--summerfit-purple-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d6fb0;
    font-style: italic;
    text-align: center;
    padding: 24px;
    overflow: hidden;
}
.sf-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.sf-feature-content h2 {
    font-size: 2.8rem;        /* matches Casper's prose h2 */
    line-height: 1.2em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #15171a;
}
.sf-feature-content p {
    font-size: 2rem;          /* matches Casper's .gh-content > p baseline */
    line-height: 1.6em;
    color: #404040;
    margin: 0 0 20px;
}

.sf-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}
.sf-feature-list li {
    padding: 4px 0 4px 18px;
    font-size: 1.6rem;        /* tags-style — slightly smaller than body */
    color: var(--summerfit-purple);
    font-weight: 600;
    position: relative;
}
.sf-feature-list li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--summerfit-purple);
}

/* ============================================================
   Service-detail page elements.
   ============================================================ */

/* Lede paragraph at the top of a detail page — a touch larger than
   Casper's 2rem prose baseline so it reads as the intro. Note: on the
   detail pages this rule competes with Casper's `.gh-content > p`
   (specificity 0,1,1). The body class selector below outranks it. */
.sf-lede,
.gh-content > .sf-lede {
    font-size: 2.4rem;
    line-height: 1.5em;
    color: #2d2d2d;
    margin: 0 0 32px;
    font-weight: 400;
}

/* Inline image placeholder for spots where Summer will swap in a
   real image later. Styled to look obviously like a placeholder. */
.sf-image-placeholder {
    background: var(--summerfit-purple-soft);
    border: 2px dashed #c9b5e0;
    border-radius: 8px;
    padding: 64px 24px;
    margin: 32px 0;
    text-align: center;
    color: #8d6fb0;
    font-style: italic;
    font-size: 0.95rem;
}

/* Call-to-action link with a brand-purple underline. */
.sf-cta {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--summerfit-purple) !important;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--summerfit-purple);
    padding-bottom: 2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.sf-cta:hover {
    color: var(--summerfit-purple-dark) !important;
    border-bottom-color: var(--summerfit-purple-dark);
}

/* ============================================================
   Mobile responsiveness.
   ============================================================ */
@media (max-width: 720px) {
    .sf-callingcard {
        padding: 64px 24px;
    }
    .sf-callingcard p {
        font-size: 1.7rem;            /* matches Casper's mobile prose scale */
    }
    .sf-feature {
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 56px auto;
    }
    .sf-feature-reverse .sf-feature-image {
        order: 0;
    }
    .sf-feature-list {
        grid-template-columns: 1fr;
    }
    .sf-feature-content h2 {
        font-size: 2.3rem;            /* matches Casper's mobile h2 */
    }
    .sf-feature-content p {
        font-size: 1.7rem;
    }
    .sf-lede,
    .gh-content > .sf-lede {
        font-size: 1.9rem;
    }
}
