/**
 * Financial Planning Page Styles
 *
 * @package Potomac_Wealth
 * @since 1.0.0
 */

/* ==========================================================================
   Financial Planning Intro
   ========================================================================== */

.fp-intro-section {
    background: var(--white);
    padding: 80px 20px;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 20px;
    color: #555;
    line-height: 1.9;
}

/* ==========================================================================
   Three Pillars Section
   ========================================================================== */

.fp-pillars-section {
    background: var(--cream);
    padding: 100px 20px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.pillar-item {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    border: 2px solid transparent;
}

.pillar-item:hover {
    transform: translateY(-8px);
    border-color: var(--slate-light);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.pillar-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--navy-bright) 0%, var(--slate) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(70, 108, 222, 0.3);
}

.pillar-item h3 {
    font-size: 26px;
    color: var(--navy-dark);
    margin-bottom: 18px;
    font-weight: 700;
}

.pillar-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* ==========================================================================
   Tabbed Content Section
   ========================================================================== */

.fp-tabs-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #2d353c 100%);
    padding: 100px 20px;
    position: relative;
}

.fp-tabs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    opacity: 0.5;
}

.tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tab-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 16px 35px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Lato', sans-serif;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--slate-light);
}

.tab-button.active {
    background: var(--slate-light);
    border-color: var(--slate-light);
    color: var(--navy-dark);
}

.tab-content-wrapper {
    min-height: 400px;
}

.tab-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-inner {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 60px 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tab-text h3 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 700;
}

.tab-text p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    margin-bottom: 20px;
}

.tab-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.fp-cta-section {
    background: var(--white);
    padding: 100px 20px;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--navy-bright), var(--slate));
    border-radius: 8px;
    color: var(--white);
    box-shadow: 0 12px 40px rgba(70, 108, 222, 0.3);
}

.cta-box h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-box p {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-box .cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--white);
    color: var(--navy-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 25px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-box .cta-button:hover {
    background: var(--slate-light);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .tab-button {
        width: 100%;
    }

    .tab-content-inner {
        padding: 40px 30px;
    }

    .cta-box h2 {
        font-size: 32px;
    }
}

/* ==========================================================================
   Block Editor Compatibility
   ========================================================================== */

/* Page Banner - Cover block with overlay */
.financial-planning-blocks .wp-block-cover.page-banner {
    position: relative;
    min-height: 200px;
}

.financial-planning-blocks .wp-block-cover.page-banner > .wp-block-cover__background {
    background: linear-gradient(135deg, rgba(58, 65, 73, 0.85) 0%, rgba(70, 108, 222, 0.75) 100%) !important;
    opacity: 1 !important;
}

.financial-planning-blocks .wp-block-cover.page-banner .wp-block-cover__inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.financial-planning-blocks .wp-block-cover.page-banner h1 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 400;
    font-family: 'Merriweather', serif;
}

.financial-planning-blocks .wp-block-cover.page-banner .banner-subtitle {
    font-size: 22px;
    color: var(--slate-light);
    font-weight: 300;
    font-style: italic;
    margin: 0;
}

/* Reset block wrapper padding/margins for our custom sections */
.financial-planning-blocks .wp-block-group {
    margin: 0;
}

.financial-planning-blocks .wp-block-group.fp-intro-section,
.financial-planning-blocks .wp-block-group.fp-pillars-section,
.financial-planning-blocks .wp-block-group.fp-tabs-section,
.financial-planning-blocks .wp-block-group.fp-cta-section {
    padding-left: 20px;
    padding-right: 20px;
}

/* Intro section block compatibility */
.financial-planning-blocks .wp-block-group.fp-intro-section {
    background: var(--white);
    padding-top: 80px;
    padding-bottom: 80px;
}

.financial-planning-blocks .fp-intro-section .wp-block-heading {
    text-align: center;
    font-size: 36px;
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.financial-planning-blocks .fp-intro-section .wp-block-separator {
    width: 80px;
    height: 3px;
    background: var(--slate-light);
    border: none;
    margin: 0 auto 40px;
}

.financial-planning-blocks .fp-intro-section .intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.financial-planning-blocks .fp-intro-section .intro-content p,
.financial-planning-blocks .fp-intro-section .intro-content .wp-block-paragraph {
    font-size: 20px;
    color: #555;
    line-height: 1.9;
    text-align: center;
}

/* Pillars section block compatibility */
.financial-planning-blocks .wp-block-group.fp-pillars-section {
    background: var(--cream);
    padding-top: 100px;
    padding-bottom: 100px;
}

.financial-planning-blocks .fp-pillars-section > .wp-block-columns {
    max-width: 1100px;
    margin: 0 auto;
    gap: 50px;
}

.financial-planning-blocks .fp-pillars-section .wp-block-column {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    border: 2px solid transparent;
}

.financial-planning-blocks .fp-pillars-section .wp-block-column:hover {
    transform: translateY(-8px);
    border-color: var(--slate-light);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.financial-planning-blocks .fp-pillars-section .pillar-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--navy-bright) 0%, var(--slate) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(70, 108, 222, 0.3);
}

.financial-planning-blocks .fp-pillars-section .wp-block-heading {
    font-size: 26px;
    color: var(--navy-dark);
    margin-bottom: 18px;
    font-weight: 700;
}

.financial-planning-blocks .fp-pillars-section .wp-block-column > .wp-block-paragraph {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Tabs section block compatibility */
.financial-planning-blocks .wp-block-group.fp-tabs-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #2d353c 100%);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.financial-planning-blocks .fp-tabs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}

.financial-planning-blocks .fp-tabs-section > * {
    position: relative;
    z-index: 1;
}

.financial-planning-blocks .fp-tabs-section .tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.financial-planning-blocks .fp-tabs-section .tab-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.financial-planning-blocks .fp-tabs-section .tab-button {
    padding: 16px 35px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Lato', sans-serif;
}

.financial-planning-blocks .fp-tabs-section .tab-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--slate-light);
}

.financial-planning-blocks .fp-tabs-section .tab-button.active {
    background: var(--slate-light);
    border-color: var(--slate-light);
    color: var(--navy-dark);
}

.financial-planning-blocks .fp-tabs-section .tab-content-wrapper {
    min-height: 400px;
}

.financial-planning-blocks .fp-tabs-section .tab-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.financial-planning-blocks .fp-tabs-section .tab-content.active {
    display: block;
}

.financial-planning-blocks .fp-tabs-section .tab-content-inner {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 60px 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.financial-planning-blocks .fp-tabs-section .tab-content .wp-block-heading {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 700;
}

.financial-planning-blocks .fp-tabs-section .tab-content .wp-block-paragraph {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    margin-bottom: 20px;
}

.financial-planning-blocks .fp-tabs-section .tab-content .wp-block-paragraph:last-child {
    margin-bottom: 0;
}

/* CTA section block compatibility */
.financial-planning-blocks .wp-block-group.fp-cta-section {
    background: var(--white);
    padding-top: 100px;
    padding-bottom: 100px;
}

.financial-planning-blocks .fp-cta-section .cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--navy-bright), var(--slate));
    border-radius: 8px;
    color: var(--white);
    box-shadow: 0 12px 40px rgba(70, 108, 222, 0.3);
}

.financial-planning-blocks .fp-cta-section .cta-box .wp-block-heading {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--white);
}

.financial-planning-blocks .fp-cta-section .cta-box .wp-block-paragraph {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
}

.financial-planning-blocks .fp-cta-section .cta-box .wp-block-buttons {
    justify-content: center;
}

.financial-planning-blocks .fp-cta-section .cta-box .wp-block-button {
    margin: 0;
}

.financial-planning-blocks .fp-cta-section .cta-box .wp-block-button__link,
.financial-planning-blocks .fp-cta-section .cta-box .wp-block-button__link:visited {
    display: inline-block;
    padding: 18px 45px !important;
    background: var(--white) !important;
    color: var(--navy-dark) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    border-radius: 25px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.financial-planning-blocks .fp-cta-section .cta-box .wp-block-button__link:hover {
    background: var(--slate-light) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Investment & Wealth Management Page Sections
   ========================================================================== */

/* Two Column Content Section */
.financial-planning-blocks .iwm-two-column-section {
    background: var(--white);
    padding: 80px 20px;
}

.financial-planning-blocks .iwm-two-column-section .wp-block-columns {
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
    align-items: center;
}

.financial-planning-blocks .iwm-two-column-section h2 {
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.financial-planning-blocks .iwm-two-column-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.financial-planning-blocks .iwm-two-column-section .wp-block-list {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 20px;
}

.financial-planning-blocks .iwm-two-column-section .wp-block-list li {
    margin-bottom: 8px;
}

.financial-planning-blocks .iwm-placeholder-image img {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Tools Section */
.financial-planning-blocks .iwm-tools-section {
    background: var(--cream);
    padding: 80px 20px;
}

.financial-planning-blocks .iwm-tools-section > .wp-block-heading {
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.financial-planning-blocks .iwm-tools-section > .wp-block-paragraph {
    max-width: 700px;
    margin: 20px auto 50px;
    color: #555;
    line-height: 1.8;
}

.financial-planning-blocks .iwm-tools-grid {
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}

.financial-planning-blocks .iwm-tools-grid .wp-block-column {
    flex-basis: 0 !important;
    flex-grow: 1;
}

.financial-planning-blocks .tool-card {
    background: var(--white);
    padding: 30px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.financial-planning-blocks .tool-card i {
    font-size: 32px;
    color: var(--navy-bright);
    margin-bottom: 12px;
    display: block;
}

.financial-planning-blocks .tool-card h4 {
    font-size: 14px;
    color: var(--navy-dark);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* Location Section */
.financial-planning-blocks .iwm-location-section {
    background: var(--white);
    padding: 80px 20px;
}

.financial-planning-blocks .iwm-location-columns {
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
    align-items: center;
}

.financial-planning-blocks .iwm-location-section h2 {
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.financial-planning-blocks .iwm-location-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.financial-planning-blocks .map-placeholder {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #2d353c 100%);
    border-radius: 8px;
    padding: 80px 40px;
    text-align: center;
    color: var(--white);
}

.financial-planning-blocks .map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--slate-light);
}

.financial-planning-blocks .map-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Google Maps embed */
.financial-planning-blocks .google-map-embed {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.financial-planning-blocks .google-map-embed iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

/* FAQ Section */
.financial-planning-blocks .iwm-faq-section {
    background: var(--cream);
    padding: 80px 20px;
}

.financial-planning-blocks .iwm-faq-section > .wp-block-heading {
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.financial-planning-blocks .iwm-faq-section > .wp-block-separator {
    max-width: 80px;
    margin: 0 auto 50px;
}

.financial-planning-blocks .faq-item {
    max-width: 900px;
    margin: 0 auto 30px;
    background: var(--white);
    padding: 30px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.financial-planning-blocks .faq-item:last-child {
    margin-bottom: 0;
}

.financial-planning-blocks .faq-item h4 {
    color: var(--navy-dark);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.financial-planning-blocks .faq-item p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Block responsive */
@media (max-width: 768px) {
    .financial-planning-blocks .wp-block-cover.page-banner h1 {
        font-size: 36px;
    }

    .financial-planning-blocks .fp-pillars-section > .wp-block-columns {
        flex-direction: column;
    }

    .financial-planning-blocks .fp-tabs-section .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .financial-planning-blocks .fp-tabs-section .tab-button {
        width: 100%;
    }

    .financial-planning-blocks .fp-tabs-section .tab-content-inner {
        padding: 40px 30px;
    }

    .financial-planning-blocks .fp-cta-section .cta-box .wp-block-heading {
        font-size: 32px;
    }

    /* IWM Page responsive */
    .financial-planning-blocks .iwm-two-column-section .wp-block-columns,
    .financial-planning-blocks .iwm-location-columns {
        flex-direction: column;
    }

    .financial-planning-blocks .iwm-tools-grid {
        flex-wrap: wrap;
    }

    .financial-planning-blocks .iwm-tools-grid .wp-block-column {
        flex-basis: calc(50% - 10px) !important;
        flex-grow: 0 !important;
    }

    .financial-planning-blocks .tool-card {
        padding: 20px 10px;
        min-height: 120px;
    }

    .financial-planning-blocks .tool-card i {
        font-size: 26px;
    }

    .financial-planning-blocks .tool-card h4 {
        font-size: 13px;
    }

    .financial-planning-blocks .google-map-embed iframe {
        height: 250px;
    }
}
