/**
 * Financial Strategy consulting page (post 4217)
 * Template: page-financial-strategy-consulting.php
 * Scope: everything lives under .roc-fs so nothing leaks site-wide.
 * Palette: blue/black/white only (#2563eb primary, #1e40af dark).
 */

/* Smooth in-page anchor scrolling, this page only */
html:has(body.page-template-page-financial-strategy-consulting) {
    scroll-behavior: smooth;
}

.roc-fs {
    --roc-fs-primary: #2563eb;
    --roc-fs-dark: #1e40af;
    --roc-fs-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --roc-fs-text: #1e293b;
    --roc-fs-body: #475569;
    --roc-fs-muted: #64748b;
    --roc-fs-light: #f8fafc;
    --roc-fs-border: #e2e8f0;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--roc-fs-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.roc-fs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.roc-fs-section {
    padding: 80px 0;
}

/* ---- Headings (element+class inside wrapper so Elementor kit rules lose) ---- */

.roc-fs h1.roc-fs-hero-title {
    font-family: inherit;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--roc-fs-text);
    margin: 14px 0 18px;
}

.roc-fs h1.roc-fs-hero-title strong {
    color: var(--roc-fs-primary);
    font-weight: 800;
}

.roc-fs h2.roc-fs-section-title {
    font-family: inherit;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--roc-fs-text);
    text-align: center;
    margin: 0 0 12px;
}

.roc-fs h2.roc-fs-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563eb, #1e40af);
}

.roc-fs .roc-fs-accent {
    color: var(--roc-fs-primary);
}

.roc-fs .roc-fs-section-sub {
    color: var(--roc-fs-muted);
    font-size: 17px;
    text-align: center;
    max-width: 660px;
    margin: 0 auto 48px;
}

/* ---- Buttons ---- */

.roc-fs a.roc-fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.roc-fs a.roc-fs-btn-primary {
    background: var(--roc-fs-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.roc-fs a.roc-fs-btn-primary:hover,
.roc-fs a.roc-fs-btn-primary:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.roc-fs a.roc-fs-btn-secondary {
    background: #ffffff;
    border: 2px solid var(--roc-fs-primary);
    color: var(--roc-fs-primary);
}

.roc-fs a.roc-fs-btn-secondary:hover,
.roc-fs a.roc-fs-btn-secondary:focus {
    background: var(--roc-fs-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.roc-fs a.roc-fs-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

/* ---- Hero ---- */

.roc-fs-hero {
    background: linear-gradient(180deg, #F1F5FF 0%, #FFFFFF 100%);
    padding: 88px 0 72px;
}

.roc-fs-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.roc-fs .roc-fs-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 700;
    color: var(--roc-fs-primary);
    margin: 0;
}

.roc-fs .roc-fs-hero-sub {
    font-size: 18px;
    color: var(--roc-fs-body);
    max-width: 560px;
    margin: 0 0 24px;
}

.roc-fs ul.roc-fs-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 28px;
}

.roc-fs ul.roc-fs-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: var(--roc-fs-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.roc-fs ul.roc-fs-chips li i {
    color: var(--roc-fs-primary);
    font-size: 13px;
}

.roc-fs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.roc-fs-hero-photo {
    display: flex;
    justify-content: center;
}

.roc-fs-hero-photo-disc {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    box-shadow: 0 0 0 8px #ffffff, 0 24px 48px rgba(37, 99, 235, 0.18);
}

.roc-fs-hero-photo-disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ---- Trust strip ---- */

.roc-fs-trust {
    background: #ffffff;
}

.roc-fs-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.roc-fs-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.roc-fs-trust-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--roc-fs-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.roc-fs-trust-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--roc-fs-text);
    margin-bottom: 4px;
}

.roc-fs-trust-item p {
    font-size: 14px;
    color: var(--roc-fs-muted);
    margin: 0;
    line-height: 1.55;
}

/* ---- Video ---- */

.roc-fs-video {
    background: var(--roc-fs-light);
    scroll-margin-top: 96px;
}

.roc-fs-video-frame {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--roc-fs-border);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    background: #000000;
}

/* Raw-iframe path (logged-in / WP Rocket lazy-embed off). When WP Rocket swaps
   the iframe for its .rll-youtube-player facade, the facade sizes itself 16:9
   and this direct-child rule no longer matches anything. */
.roc-fs .roc-fs-video-frame > iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* ---- Services ---- */

.roc-fs-services {
    background: #ffffff;
}

.roc-fs-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.roc-fs-card {
    background: #ffffff;
    border: 1px solid var(--roc-fs-border);
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.roc-fs-card:hover {
    transform: translateY(-4px);
    border-color: var(--roc-fs-primary);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.roc-fs-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--roc-fs-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.roc-fs h3.roc-fs-card-title {
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    color: var(--roc-fs-text);
    margin: 20px 0 14px;
    line-height: 1.3;
}

.roc-fs ul.roc-fs-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roc-fs ul.roc-fs-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--roc-fs-body);
    line-height: 1.55;
    margin-bottom: 12px;
}

.roc-fs ul.roc-fs-card-list li:last-child {
    margin-bottom: 0;
}

.roc-fs ul.roc-fs-card-list li i {
    color: var(--roc-fs-primary);
    font-size: 13px;
    margin-top: 5px;
}

/* ---- Pricing ---- */

.roc-fs-pricing {
    background: var(--roc-fs-light);
}

.roc-fs-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.roc-fs-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--roc-fs-border);
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roc-fs-tier:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.roc-fs h3.roc-fs-tier-name {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: var(--roc-fs-text);
    margin: 0 0 14px;
}

.roc-fs .roc-fs-tier-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--roc-fs-text);
    line-height: 1.1;
    margin-bottom: 4px;
}

.roc-fs .roc-fs-tier-unit {
    font-size: 15px;
    font-weight: 600;
    color: var(--roc-fs-muted);
    margin-bottom: 18px;
}

.roc-fs .roc-fs-tier-desc {
    font-size: 15px;
    color: var(--roc-fs-body);
    line-height: 1.6;
    margin: 0 0 26px;
    flex-grow: 1;
}

.roc-fs-tier--featured {
    border: 2px solid var(--roc-fs-primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
}

.roc-fs-tier--featured:hover {
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.22);
}

.roc-fs .roc-fs-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--roc-fs-gradient);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
}

/* ---- How it works ---- */

.roc-fs-steps {
    background: #ffffff;
}

.roc-fs-steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.roc-fs-steps-grid::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 14%;
    right: 14%;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0.12));
}

.roc-fs-step {
    text-align: center;
    position: relative;
}

.roc-fs-step-num {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto;
    background: var(--roc-fs-gradient);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px #ffffff, 0 8px 20px rgba(37, 99, 235, 0.25);
}

.roc-fs h3.roc-fs-step-title {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: var(--roc-fs-text);
    margin: 22px 0 10px;
}

.roc-fs .roc-fs-step-desc {
    font-size: 15px;
    color: var(--roc-fs-muted);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ---- FAQ ---- */

.roc-fs-faq {
    background: var(--roc-fs-light);
}

.roc-fs-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.roc-fs details.roc-fs-faq-item {
    background: #ffffff;
    border: 1px solid var(--roc-fs-border);
    border-radius: 12px;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roc-fs details.roc-fs-faq-item[open] {
    border-color: var(--roc-fs-primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.roc-fs details.roc-fs-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

.roc-fs details.roc-fs-faq-item summary::-webkit-details-marker {
    display: none;
}

.roc-fs h3.roc-fs-faq-q {
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: var(--roc-fs-text);
    margin: 0;
    line-height: 1.4;
}

.roc-fs details.roc-fs-faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    color: var(--roc-fs-primary);
    transition: transform 0.2s ease;
}

.roc-fs details.roc-fs-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.roc-fs .roc-fs-faq-a {
    padding: 0 24px 22px;
    font-size: 15px;
    color: var(--roc-fs-body);
    line-height: 1.65;
}

.roc-fs .roc-fs-faq-a p {
    margin: 0;
}

/* ---- Application / form ---- */

.roc-fs-apply {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    scroll-margin-top: 96px;
}

.roc-fs-apply h2.roc-fs-section-title {
    color: #ffffff;
}

.roc-fs-apply h2.roc-fs-section-title::after {
    background: rgba(255, 255, 255, 0.85);
}

.roc-fs-apply .roc-fs-section-sub {
    color: rgba(255, 255, 255, 0.88);
}

.roc-fs-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 44px 40px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.roc-fs h3.roc-fs-form-title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    color: var(--roc-fs-text);
    margin: 0 0 8px;
    text-align: center;
}

.roc-fs .roc-fs-form-intro {
    font-size: 15px;
    color: var(--roc-fs-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 30px;
}

.roc-fs .roc-fs-form-note {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    max-width: 680px;
    margin: 26px auto 0;
    line-height: 1.6;
}

/* Fluent Form 7 restyle (scoped to this page) */

.roc-fs .fluentform .ff-el-group {
    margin-bottom: 22px;
}

.roc-fs .fluentform .ff-el-input--label label {
    color: var(--roc-fs-text);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.roc-fs .fluentform .ff-el-form-control {
    width: 100%;
    border: 1px solid var(--roc-fs-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--roc-fs-text);
    background-color: #ffffff;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.roc-fs .fluentform .ff-el-form-control:focus {
    border-color: var(--roc-fs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.roc-fs .fluentform .ff-el-form-control::placeholder {
    color: #94a3b8;
}

.roc-fs .fluentform textarea.ff-el-form-control {
    min-height: 120px;
}

.roc-fs .fluentform .ff-el-form-check-input {
    accent-color: var(--roc-fs-primary);
    width: 16px;
    height: 16px;
}

.roc-fs .fluentform .ff-el-form-check-label {
    color: #334155;
    font-size: 15px;
}

.roc-fs .fluentform .ff-btn-submit {
    background: var(--roc-fs-gradient) !important;
    background-color: var(--roc-fs-primary) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 15px 32px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.roc-fs .fluentform .ff-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.roc-fs .fluentform .ff-message-success {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
    border-radius: 12px;
    padding: 1.5rem;
}

.roc-fs .fluentform .ff-el-is-error .ff-el-form-control {
    border-color: #ef4444;
}

.roc-fs .fluentform .error.text-danger,
.roc-fs .fluentform .ff-el-is-error .error {
    color: #dc2626;
    font-size: 13px;
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
    .roc-fs-section {
        padding: 64px 0;
    }

    .roc-fs-hero {
        padding: 64px 0 56px;
    }

    .roc-fs-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .roc-fs .roc-fs-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .roc-fs ul.roc-fs-chips,
    .roc-fs-hero-actions {
        justify-content: center;
    }

    .roc-fs h1.roc-fs-hero-title {
        font-size: 34px;
    }

    .roc-fs h2.roc-fs-section-title {
        font-size: 28px;
    }

    .roc-fs-hero-photo-disc {
        width: 280px;
        height: 280px;
    }

    .roc-fs-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 36px;
    }

    .roc-fs-services-grid,
    .roc-fs-pricing-grid,
    .roc-fs-steps-grid {
        grid-template-columns: 1fr;
    }

    .roc-fs-pricing-grid {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .roc-fs-steps-grid {
        gap: 44px;
    }

    .roc-fs-steps-grid::before {
        display: none;
    }
}

@media (max-width: 575px) {
    .roc-fs-container {
        padding: 0 20px;
    }

    .roc-fs h1.roc-fs-hero-title {
        font-size: 30px;
    }

    .roc-fs .roc-fs-hero-sub {
        font-size: 16px;
    }

    .roc-fs-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .roc-fs-trust-grid {
        grid-template-columns: 1fr;
    }

    .roc-fs .roc-fs-tier-price {
        font-size: 34px;
    }

    .roc-fs-form-card {
        padding: 30px 20px;
    }
}
