/*
 * ChangeFluent Academy, landing page styles.
 *
 * Brand palette (from your guidelines):
 *   Pale blue   #e6f3f8  , section backgrounds, subtle surfaces
 *   Brand blue  #0082ba  , primary CTAs, headlines, accents
 *   Brand orange #e0741b , secondary accents, emphasis
 *
 * Typography: Pontiac (body/headings) with Outfit as fallback until
 * the brand font files are available. The font stack is centralised
 * in --cfa-font-body so swapping in the real Pontiac woff2 is one line.
 *
 * Class naming follows BEM (block__element--modifier) under a single
 * `cfa-` root, scoped to the .cfa-landing template so this CSS never
 * leaks into the rest of the site.
 */

/* -------------------------------------------------------------------------- */
/* 1. Brand custom properties                                                 */
/* -------------------------------------------------------------------------- */
:root {
    --cfa-color-blue:         #0082ba;
    --cfa-color-blue-dark:    #006a9a;
    --cfa-color-blue-pale:    #e6f3f8;
    --cfa-color-orange:       #e0741b;
    --cfa-color-orange-dark:  #b85e15;
    --cfa-color-orange-pale:  rgba(224, 116, 27, 0.10);
    --cfa-color-navy:         #0e2238;
    --cfa-color-text:         #1a2c4a;
    --cfa-color-text-muted:   #5a6b80;
    --cfa-color-border:       #d8e4ed;
    --cfa-color-white:        #ffffff;
    --cfa-color-success:      #1d6b2c;
    --cfa-color-error:        #c0392b;

    --cfa-font-body: 'Pontiac', 'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --cfa-radius-sm: 6px;
    --cfa-radius-md: 12px;
    --cfa-radius-lg: 20px;

    --cfa-shadow-sm: 0 1px 3px rgba(14, 34, 56, 0.06), 0 1px 2px rgba(14, 34, 56, 0.04);
    --cfa-shadow-md: 0 4px 16px rgba(14, 34, 56, 0.08), 0 2px 4px rgba(14, 34, 56, 0.04);
    --cfa-shadow-lg: 0 12px 32px rgba(14, 34, 56, 0.10), 0 4px 12px rgba(14, 34, 56, 0.06);
}

/* When the real Pontiac WOFF2 files arrive, drop them into
   assets/fonts/ and uncomment this block, that's the only
   change needed to switch from the Outfit fallback. */
/*
@font-face {
    font-family: 'Pontiac';
    src: url('../fonts/pontiac-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pontiac';
    src: url('../fonts/pontiac-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
*/

/* -------------------------------------------------------------------------- */
/* 2. Layout primitives                                                       */
/* -------------------------------------------------------------------------- */
.cfa-landing {
    font-family: var(--cfa-font-body);
    color: var(--cfa-color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cfa-landing *,
.cfa-landing *::before,
.cfa-landing *::after {
    box-sizing: border-box;
}

.cfa-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* 3. Hero                                                                    */
/* -------------------------------------------------------------------------- */
.cfa-hero {
    background: var(--cfa-color-blue-pale);
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
    text-align: center;
}

.cfa-hero__headline {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--cfa-color-navy);
    margin: 0 0 1.25rem;
    letter-spacing: -0.025em;
}

.cfa-hero__headline-accent {
    color: var(--cfa-color-orange);
}

.cfa-hero__lede {
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    color: var(--cfa-color-text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* 4. Buttons                                                                 */
/* -------------------------------------------------------------------------- */
.cfa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--cfa-radius-md);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cfa-btn--primary {
    background: var(--cfa-color-blue);
    color: var(--cfa-color-white);
    box-shadow: 0 4px 12px rgba(0, 130, 186, 0.25);
}

.cfa-btn--primary:hover,
.cfa-btn--primary:focus-visible {
    background: var(--cfa-color-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 130, 186, 0.30);
}

.cfa-btn--primary:focus-visible {
    outline: 3px solid rgba(0, 130, 186, 0.35);
    outline-offset: 2px;
}

.cfa-btn--primary:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

/* -------------------------------------------------------------------------- */
/* 5. Section headings                                                        */
/* -------------------------------------------------------------------------- */
.cfa-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.cfa-section__heading {
    text-align: center;
    margin: 0 0 0.75rem;
    font-size: clamp(1.875rem, 3.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cfa-color-navy);
    letter-spacing: -0.015em;
}

.cfa-section__lede {
    text-align: center;
    color: var(--cfa-color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* 6. Features grid                                                           */
/* -------------------------------------------------------------------------- */
.cfa-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.cfa-feature-card {
    background: var(--cfa-color-white);
    padding: 2rem;
    border-radius: var(--cfa-radius-lg);
    border: 1px solid var(--cfa-color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cfa-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cfa-shadow-md);
    border-color: transparent;
}

.cfa-feature-card__icon {
    width: 56px;
    height: 56px;
    background: var(--cfa-color-blue-pale);
    color: var(--cfa-color-blue);
    border-radius: var(--cfa-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cfa-feature-card__icon--orange {
    background: var(--cfa-color-orange-pale);
    color: var(--cfa-color-orange);
}

.cfa-feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.cfa-feature-card__title {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--cfa-color-navy);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.cfa-feature-card__copy {
    color: var(--cfa-color-text-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9875rem;
}

/* -------------------------------------------------------------------------- */
/* 7. Lead capture section                                                    */
/* -------------------------------------------------------------------------- */
.cfa-form-section {
    background: var(--cfa-color-blue-pale);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.cfa-lead-form {
    max-width: 540px;
    margin: 2.75rem auto 0;
    background: var(--cfa-color-white);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--cfa-radius-lg);
    box-shadow: var(--cfa-shadow-lg);
}

.cfa-lead-form__row {
    margin-bottom: 1.125rem;
}

.cfa-lead-form__row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    font-size: 0.9375rem;
    color: var(--cfa-color-navy);
}

.cfa-lead-form__row input[type="text"],
.cfa-lead-form__row input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--cfa-color-border);
    border-radius: var(--cfa-radius-sm);
    font: inherit;
    color: var(--cfa-color-text);
    background: var(--cfa-color-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cfa-lead-form__row input[type="text"]:focus,
.cfa-lead-form__row input[type="email"]:focus {
    outline: none;
    border-color: var(--cfa-color-blue);
    box-shadow: 0 0 0 3px rgba(0, 130, 186, 0.15);
}

.cfa-lead-form__required {
    color: var(--cfa-color-orange);
}

.cfa-lead-form__row--checkbox label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--cfa-color-text);
    cursor: pointer;
}

.cfa-lead-form__row--checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--cfa-color-blue);
    cursor: pointer;
}

.cfa-lead-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cfa-lead-form__submit {
    width: 100%;
    margin-top: 0.5rem;
}

.cfa-lead-form__message {
    margin: 1rem 0 0;
    min-height: 1.4em;
    font-size: 0.9375rem;
    text-align: center;
}

.cfa-lead-form__message--success {
    color: var(--cfa-color-success);
    font-weight: 600;
}

.cfa-lead-form__message--error {
    color: var(--cfa-color-error);
}

/* -------------------------------------------------------------------------- */
/* 8. Admin-only version tag                                                  */
/* (shown above the theme footer, only when a manage_options user is logged   */
/* in, never to public visitors)                                              */
/* -------------------------------------------------------------------------- */
.cfa-admin-version-tag {
    margin: 0;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--cfa-color-text-muted);
    background: #f3f5f7;
    border-top: 1px solid var(--cfa-color-border);
}

/* -------------------------------------------------------------------------- */
/* 9. Reduced motion preferences                                              */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .cfa-landing *,
    .cfa-landing *::before,
    .cfa-landing *::after {
        transition: none !important;
        animation: none !important;
    }
}
