/* 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-icon {
    width: 38%;
    max-width: 150px;
    height: auto;
    color: var(--summerfit-purple);
}

.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);
}

/* ============================================================
   Responsive YouTube embed.
   Used in video posts where the original Drupal Flash <object>
   has been replaced by a YouTube iframe.
   ============================================================ */
.sf-video-embed {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin: 32px 0;
    background: #000;
}
.sf-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ============================================================
   Certification blocks on the /about/ page.
   Logo on the left, content (h3/h4/p) on the right.
   ============================================================ */
.sf-cert {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    margin: 56px 0;
    align-items: start;
}
.sf-cert-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    background: #fff;
    margin: 0;
    padding: 0;
    border-radius: 4px;
}
.sf-cert-body > :first-child {
    margin-top: 0;
}
.sf-cert-body h3 {
    margin-top: 0 !important;
}
.sf-cert-body h4 {
    margin-top: 1.5em;
}

/* ============================================================
   Contact form.
   ============================================================ */
.sf-contact-form {
    max-width: 640px;
    margin: 8px 0 0;
}
.sf-field {
    margin-bottom: 24px;
}
.sf-field label {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #15171a;
    margin-bottom: 8px;
}
.sf-field select,
.sf-field input,
.sf-field textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 1.7rem;
    line-height: 1.4;
    color: #15171a;
    background: #fff;
    border: 1px solid #d5d0dd;
    border-radius: 6px;
    padding: 12px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sf-field select:focus,
.sf-field input:focus,
.sf-field textarea:focus {
    outline: none;
    border-color: var(--summerfit-purple);
    box-shadow: 0 0 0 3px rgba(99, 63, 171, 0.15);
}
.sf-field textarea {
    resize: vertical;
    min-height: 140px;
}

.sf-contact-submit {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    background: var(--summerfit-purple);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 13px 32px;
    border-radius: 6px;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
.sf-contact-submit:hover {
    background: var(--summerfit-purple-dark);
}
.sf-contact-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.sf-contact-status {
    margin: 16px 0 0;
    font-size: 1.5rem;
    min-height: 1.5rem;
}
.sf-contact-status.is-sending { color: #6b6b6b; }
.sf-contact-status.is-success { color: #1a7f37; font-weight: 600; }
.sf-contact-status.is-error   { color: #b3261e; font-weight: 600; }

.sf-recaptcha-note {
    margin: 20px 0 0;
    font-size: 1.2rem;
    color: #8a8a8a;
}
.sf-recaptcha-note a {
    color: #8a8a8a;
    text-decoration: underline;
}

/* ============================================================
   Success toast (after contact-form submission → home).
   ============================================================ */
.sf-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    z-index: 3000;
    max-width: calc(100vw - 32px);
    background: #1a7f37;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 14px 26px;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.sf-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ============================================================
   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;
    }
    .sf-cert {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 40px 0;
    }
    .sf-cert-logo {
        max-width: 140px;
    }
}
