/**
 * GetBiz.Credit Custom Styles
 * Brand overrides and site-specific components
 * 
 * @version 1.1.0 - Phase 1.5 Visual Pass
 */

/* ==========================================================================
   Brand Colors (BAE Standard Compliant)
   Ref: BAE_UI_STANDARD_GBC.md Section 2.2
   ========================================================================== */
:root {
    /* Primary: Indigo (brand) */
    --gbc-primary: #303E8B;
    --gbc-primary-dark: #252f6b;
    /* Secondary: Teal */
    --gbc-secondary: #156888;
    /* Accent: Green (success/verified) - mapped to theme base */
    --gbc-accent: #2CC207;
    --gbc-accent-dark: #239c06;
    /* Neutrals */
    --gbc-dark: #1a202c;
    --gbc-light: #f7fafc;
    --gbc-text: #4a5568;
    --gbc-heading: #2d3748;
    /* Semantic: Orange for upgrade locks only */
    --gbc-upgrade: #FF8A00;
    
    /* Override Pylon theme colors to use GBC brand */
    --thm-base: #2CC207; /* Green accent for buttons/highlights */
    --thm-base-rgb: 44, 194, 7;
    --thm-primary: #303E8B; /* Indigo for primary elements */
    --thm-primary-rgb: 48, 62, 139;
    
    /* Consistent spacing */
    --section-padding: 100px;
    --section-padding-sm: 60px;
    --container-max: 1200px;
    --card-radius: 12px;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   PHASE 1.5 - CTA/Footer Overlap Fix (CRITICAL)
   ========================================================================== */
   
/* Remove the negative margin that causes overlap */
.cta-one {
    margin-bottom: 0 !important;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* Ensure CTA section has proper background */
.cta-one__content {
    background: linear-gradient(135deg, var(--gbc-secondary) 0%, var(--gbc-dark) 100%);
    border-radius: var(--card-radius);
    padding: 60px 40px;
    text-align: center;
}

.cta-one__content .block-title__tagline,
.cta-one__content .block-title p {
    color: var(--gbc-primary);
}

.cta-one__content .block-title__title,
.cta-one__content .block-title h2 {
    color: #fff;
}

.cta-one__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-one__btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer proper separation */
.site-footer {
    position: relative;
    z-index: 0;
    margin-top: 0;
}

/* Ensure no z-index fighting */
.page-wrapper {
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   PHASE 1.5 - Visual Consistency System
   ========================================================================== */

/* Standard section spacing */
.gbc-section {
    padding: var(--section-padding) 0;
}

.gbc-section--sm {
    padding: var(--section-padding-sm) 0;
}

.gbc-section--alt {
    background-color: var(--gbc-light);
}

.gbc-section--dark {
    background-color: var(--gbc-secondary);
    color: #fff;
}

.gbc-section--dark h1,
.gbc-section--dark h2,
.gbc-section--dark h3,
.gbc-section--dark h4,
.gbc-section--dark p {
    color: #fff;
}

.gbc-section--dark .block-title p {
    color: var(--gbc-primary);
}

/* Section transitions - clean borders */
.gbc-section-border-top {
    border-top: 1px solid #e2e8f0;
}

.gbc-section-border-bottom {
    border-bottom: 1px solid #e2e8f0;
}

/* ==========================================================================
   Typography Enhancements
   ========================================================================== */
.block-title__tagline {
    color: var(--gbc-primary);
}

/* ==========================================================================
   Button Variants
   ========================================================================== */
.thm-btn.thm-btn--dark {
    background-color: var(--gbc-secondary);
}

.thm-btn.thm-btn--dark:hover {
    background-color: var(--gbc-dark);
}

.thm-btn.thm-btn--outline {
    background-color: transparent;
    border: 2px solid var(--gbc-primary);
    color: var(--gbc-primary);
}

.thm-btn.thm-btn--outline:hover {
    background-color: var(--gbc-primary);
    color: #fff;
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card--featured {
    border: 3px solid var(--gbc-primary);
}

.pricing-card--featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gbc-primary);
    color: #fff;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.pricing-card__name {
    font-size: 24px;
    font-weight: 700;
    color: var(--gbc-heading);
    margin-bottom: 10px;
}

.pricing-card__price {
    font-size: 48px;
    font-weight: 800;
    color: var(--gbc-primary);
    line-height: 1;
}

.pricing-card__price span {
    font-size: 20px;
    font-weight: 400;
    color: var(--gbc-text);
}

.pricing-card__period {
    font-size: 14px;
    color: var(--gbc-text);
    margin-bottom: 25px;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.pricing-card__features li {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    position: relative;
    padding-left: 30px;
}

.pricing-card__features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gbc-accent);
}

/* ==========================================================================
   Phase Cards (How It Works)
   ========================================================================== */
.phase-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.phase-card:hover {
    border-left-color: var(--gbc-primary);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.phase-card__number {
    width: 60px;
    height: 60px;
    background: var(--gbc-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.phase-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gbc-secondary) 0%, var(--gbc-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.phase-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gbc-heading);
    margin-bottom: 15px;
}

.phase-card__desc {
    color: var(--gbc-text);
    margin-bottom: 0;
    flex-grow: 1;
    line-height: 1.6;
}

/* CTA variant phase cards */
.phase-card--cta {
    border-left-color: var(--gbc-secondary);
    text-align: center;
}

.phase-card--cta .phase-card__icon {
    margin-left: auto;
    margin-right: auto;
}

.phase-card--cta .phase-card__desc {
    margin-bottom: 20px;
}

.phase-card--cta .thm-btn {
    margin-top: auto;
}

.phase-card--featured {
    border-left-color: var(--gbc-primary);
    background: linear-gradient(180deg, #fff 0%, #fff7f5 100%);
}

.phase-card--featured .phase-card__icon {
    background: linear-gradient(135deg, var(--gbc-primary) 0%, var(--gbc-primary-dark) 100%);
}

/* Small button variant */
.thm-btn--sm {
    padding: 12px 25px;
    font-size: 14px;
}

/* Phases grid proper spacing */
.gbc-phases-grid {
    margin-top: 40px;
}

.gbc-phases-grid > [class*="col-"] {
    margin-bottom: 0;
}

/* ==========================================================================
   FAQ Accordion Enhancements
   ========================================================================== */
.faq-one__single {
    margin-bottom: 15px;
}

.faq-one__btn {
    font-weight: 600;
}

/* Fix accordion contrast and styling */
.accrodion-grp .accrodion {
    background: #fff;
    border-radius: var(--card-radius);
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.accrodion-grp .accrodion-title {
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
}

.accrodion-grp .accrodion-title h4 {
    color: var(--gbc-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding-right: 30px;
}

.accrodion-grp .accrodion-title::after {
    content: '\f067';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gbc-primary);
    transition: transform 0.3s ease;
}

.accrodion-grp .accrodion.active .accrodion-title::after {
    content: '\f068';
}

.accrodion-grp .accrodion-content {
    padding: 0 25px 20px;
}

.accrodion-grp .accrodion-content .inner p {
    color: var(--gbc-text);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   PHASE 1.5 - How It Works Phase Images Fix
   ========================================================================== */

/* Fix blurry hero images used in phase sections */
.phase-image-wrapper {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: var(--gbc-light);
}

.phase-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Remove any blur filter that might be applied */
    -webkit-filter: none !important;
    filter: none !important;
}

/* For hero images used in phase sections, constrain max height */
.phase-image-wrapper img[src*="heroes/"] {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    max-height: 400px;
}

/* Phase section layout consistency */
.phase-section {
    padding: 80px 0;
}

.phase-section .phase-content {
    padding-right: 30px;
}

.phase-section .col-lg-6:last-child .phase-content,
.phase-section .flex-row-reverse .phase-content {
    padding-right: 0;
    padding-left: 30px;
}

@media (max-width: 991px) {
    .phase-section .phase-content {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 40px;
    }
    
    .phase-image-wrapper img[src*="heroes/"] {
        max-height: 300px;
    }
}

/* ==========================================================================
   Contact Form Enhancements
   ========================================================================== */
.contact-form .form-control {
    height: 55px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--gbc-primary);
    box-shadow: 0 0 0 3px rgba(48, 62, 139, 0.1);
}

.contact-form textarea.form-control {
    height: 150px;
    resize: none;
}

/* Honeypot field (hidden from real users) */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   Feature Boxes
   ========================================================================== */
.feature-box {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-box__icon {
    width: 80px;
    height: 80px;
    background: rgba(48, 62, 139, 0.1);
    color: var(--gbc-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
}

.feature-box__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gbc-heading);
    margin-bottom: 15px;
}

.feature-box__text {
    color: var(--gbc-text);
    margin-bottom: 0;
}

/* ==========================================================================
   Testimonial Cards
   ========================================================================== */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    font-size: 40px;
    color: rgba(48, 62, 139, 0.15);
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ==========================================================================
   Stat Counters
   ========================================================================== */
.stat-counter {
    text-align: center;
    padding: 30px;
}

.stat-counter__number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gbc-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-counter__text {
    font-size: 16px;
    color: var(--gbc-text);
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__content {
    padding: 25px;
}

.blog-card__meta {
    font-size: 13px;
    color: var(--gbc-text);
    margin-bottom: 10px;
}

.blog-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-card__title a {
    color: var(--gbc-heading);
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: var(--gbc-primary);
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gbc-heading);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gbc-heading);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    color: var(--gbc-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-content ul,
.legal-content ol {
    color: var(--gbc-text);
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* ==========================================================================
   Bottom Footer Enhancement
   ========================================================================== */
.bottom-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bottom-footer__links {
    display: flex;
    gap: 20px;
}

.bottom-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.bottom-footer__links a:hover {
    color: #fff;
}

/* ==========================================================================
   Guarantee Badge
   ========================================================================== */
.guarantee-badge {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.guarantee-badge__icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.guarantee-badge__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.guarantee-badge__text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .bottom-footer__inner {
        justify-content: center;
        text-align: center;
    }
    
    .pricing-card__price {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .bottom-footer__links {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-counter__number {
        font-size: 36px;
    }
}

/* ==========================================================================
   BAE Visual Refresh - Image Components
   ========================================================================== */

/* Reusable Media Block Pattern */
.gbc-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: var(--gbc-light);
}

.gbc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gbc-media:hover img {
    transform: scale(1.03);
}

.gbc-media--rounded {
    border-radius: 16px;
}

.gbc-media--shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.gbc-media--aspect-hero {
    aspect-ratio: 1920 / 900;
}

.gbc-media--aspect-card {
    aspect-ratio: 570 / 500;
}

.gbc-media--aspect-blog {
    aspect-ratio: 370 / 250;
}

.gbc-media--aspect-square {
    aspect-ratio: 1 / 1;
}

.gbc-media--aspect-portrait {
    aspect-ratio: 570 / 600;
}

/* Hero Section with Background Image */
.gbc-hero-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gbc-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(26, 32, 44, 0.75) 100%);
    z-index: 1;
}

.gbc-hero-bg > * {
    position: relative;
    z-index: 2;
}

/* Section with Background Image */
.gbc-section-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gbc-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.95) 0%, rgba(247, 250, 252, 0.9) 100%);
    z-index: 1;
}

.gbc-section-bg > * {
    position: relative;
    z-index: 2;
}

.gbc-section-bg--dark::before {
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.92) 0%, rgba(26, 32, 44, 0.88) 100%);
}

.gbc-section-bg--dark {
    color: #fff;
}

.gbc-section-bg--dark .block-title h2,
.gbc-section-bg--dark .block-title p,
.gbc-section-bg--dark h2,
.gbc-section-bg--dark h3,
.gbc-section-bg--dark p {
    color: #fff;
}

.gbc-section-bg--dark .block-title p {
    color: var(--gbc-primary);
}

/* Phase Section Images */
.phase-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.phase-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Split Content Layout */
.gbc-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.gbc-split--reverse {
    flex-direction: row-reverse;
}

.gbc-split__content {
    flex: 1;
}

.gbc-split__media {
    flex: 1;
    max-width: 500px;
}

@media (max-width: 991px) {
    .gbc-split {
        flex-direction: column;
        gap: 40px;
    }
    
    .gbc-split--reverse {
        flex-direction: column;
    }
    
    .gbc-split__media {
        max-width: 100%;
        order: -1;
    }
}

/* Feature/Trust Section Visual */
.gbc-visual-accent {
    position: relative;
}

.gbc-visual-accent::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--gbc-primary);
    opacity: 0.1;
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    z-index: -1;
}

/* Consistent Section Spacing */
.gbc-section {
    padding: 100px 0;
}

.gbc-section--sm {
    padding: 60px 0;
}

.gbc-section--lg {
    padding: 120px 0;
}

.gbc-section--alt {
    background-color: var(--gbc-light);
}

/* Card Image Treatment */
.gbc-card-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.gbc-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* Page Header Enhancement */
.page-header--enhanced {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-header--enhanced .page-header__bg {
    background-size: cover;
    background-position: center;
}

/* CTA Section with Image */
.gbc-cta-image {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--gbc-secondary);
    border-radius: 16px;
    padding: 60px;
    color: #fff;
}

.gbc-cta-image__content {
    flex: 1;
}

.gbc-cta-image__media {
    flex: 0 0 300px;
}

.gbc-cta-image__media img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
    .gbc-cta-image {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
    }
    
    .gbc-cta-image__media {
        flex: none;
        max-width: 280px;
    }
}

/* Contact Section Enhancement */
.contact-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.contact-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .contact-image-wrapper {
        min-height: 300px;
        margin-bottom: 40px;
    }
}

/* ==========================================================================
   PHASE 1.5 - Quick Links Cards (Contact Page)
   ========================================================================== */
.gbc-quick-links-grid {
    margin-top: 30px;
}

.gbc-quick-link-card {
    display: block;
    background: #fff;
    border-radius: var(--card-radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-decoration: none;
    height: calc(100% - 20px);
}

.gbc-quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    text-decoration: none;
}

.gbc-quick-link-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(48, 62, 139, 0.1);
    color: var(--gbc-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.gbc-quick-link-card:hover .gbc-quick-link-card__icon {
    background: var(--gbc-primary);
    color: #fff;
}

.gbc-quick-link-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gbc-heading);
    margin-bottom: 8px;
}

.gbc-quick-link-card__text {
    color: var(--gbc-text);
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

.gbc-quick-link-card--cta {
    background: var(--gbc-secondary);
}

.gbc-quick-link-card--cta .gbc-quick-link-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.gbc-quick-link-card--cta:hover .gbc-quick-link-card__icon {
    background: var(--gbc-primary);
}

.gbc-quick-link-card--cta .gbc-quick-link-card__title,
.gbc-quick-link-card--cta .gbc-quick-link-card__text {
    color: #fff;
}

.gbc-quick-link-card--cta .gbc-quick-link-card__text {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   PHASE 2.0 - Homepage BAE Polish Fixes
   ========================================================================== */

/* Fix horizontal overflow on all pages - use careful approach */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

.page-wrapper {
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Calculator Card Overlap Effect (Homepage) - Demo-Grade Layout
   The card "floats" above the section boundary like the demo loan calculator
   Uses stable positioning approach (no fragile negative margin hacks)
   ========================================================================== */

/* The about-one section container for layered layout */
.about-one {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Calculator card wrapper - positioned to create layered overlap effect */
.gbc-calc-card-wrapper {
    position: relative;
    z-index: 10;
    max-width: 420px;
    margin: 0 auto;
}

/* On desktop, pull the card up to create overlap with hero feature boxes */
@media (min-width: 1200px) {
    .gbc-calc-card-wrapper {
        margin-top: -80px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gbc-calc-card-wrapper {
        margin-top: -40px;
    }
}

/* On tablet/mobile, stack normally without overlap */
@media (max-width: 991px) {
    .about-one {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .gbc-calc-card-wrapper {
        margin-top: 40px;
        max-width: 100%;
    }
}

/* The next section (7 phases) should NOT need extra padding since overlap goes UP */
.about-one + .service-one {
    padding-top: 80px;
}

/* ==========================================================================
   "Why Entrepreneurs Choose Us" Section Fix
   ========================================================================== */
.feature-one.gbc-section.gbc-section-bg {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

/* Dark overlay for text readability */
.feature-one.gbc-section.gbc-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.9) 0%, rgba(48, 62, 139, 0.85) 100%);
    z-index: 0;
}

.feature-one.gbc-section.gbc-section-bg .container {
    position: relative;
    z-index: 2;
}

/* Ensure text is visible on dark overlay */
.feature-one.gbc-section.gbc-section-bg .block-title p {
    color: var(--gbc-accent);
}

.feature-one.gbc-section.gbc-section-bg .block-title h2,
.feature-one.gbc-section.gbc-section-bg .block-text,
.feature-one.gbc-section.gbc-section-bg p {
    color: #fff;
}

/* Feature boxes styling for this section */
.feature-one.gbc-section.gbc-section-bg .feature-one__box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--card-radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-one.gbc-section.gbc-section-bg .feature-one__box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-one.gbc-section.gbc-section-bg .feature-one__box i {
    font-size: 48px;
    color: var(--gbc-accent);
    margin-bottom: 15px;
    display: block;
}

.feature-one.gbc-section.gbc-section-bg .feature-one__box p {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

/* Feature box row spacing */
.feature-one.gbc-section.gbc-section-bg .row:last-child {
    margin-top: 40px;
}

.feature-one.gbc-section.gbc-section-bg .row:last-child [class*="col-"] {
    margin-bottom: 20px;
}

/* ==========================================================================
   7 Phases Section - Grid Fix
   ========================================================================== */
.gbc-phases-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 40px -15px 0;
}

.gbc-phases-grid > [class*="col-"] {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Fix phase card number using semantic tokens */
.phase-card__number {
    background: var(--gbc-primary, #303E8B);
}

/* ==========================================================================
   Complete System Section - Numbered Circles Fix
   Change bright green to BAE blue token (--gbc-primary)
   ========================================================================== */
.trusted-company__box > span {
    background-color: var(--gbc-primary, #303E8B);
}

.trusted-company__box:hover {
    background-color: var(--gbc-primary, #303E8B);
}

.trusted-company__box:hover > span {
    background-color: #fff;
    color: var(--gbc-primary, #303E8B);
}

/* Fix the blue background behind the numbered boxes */
.trusted-company__box-wrap:before {
    background-color: var(--gbc-primary, #303E8B);
}

/* Trusted company list check icons */
.trusted-company__list-item i {
    color: var(--gbc-accent, #2CC207);
}

/* ==========================================================================
   FAQ Section Fixes
   ========================================================================== */

/* FAQ header contrast fix */
.faq-one .block-title h2 {
    color: var(--gbc-heading, #2d3748);
}

.faq-one .block-title p {
    color: var(--gbc-primary, #303E8B);
}

/* FAQ accordion icon fix - ensure icons render */
.accrodion-grp .accrodion-title::after {
    content: '\f067';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    color: var(--gbc-primary, #303E8B);
}

.accrodion-grp .accrodion.active .accrodion-title::after {
    content: '\f068';
}

/* FAQ card styling */
.faq-one .accrodion {
    background: #fff;
    border-radius: var(--card-radius, 12px);
    margin-bottom: 15px;
    box-shadow: var(--card-shadow, 0 4px 20px rgba(0, 0, 0, 0.08));
    border: none;
}

.faq-one .accrodion-title h4 {
    color: var(--gbc-heading, #2d3748);
    font-size: 18px;
    font-weight: 600;
}

/* ==========================================================================
   Complete System Section - Image Fixes
   ========================================================================== */

/* Image resilience - prevent layout collapse */
.trusted-company__image img,
.gbc-media img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Graceful fallback for missing images */
.trusted-company__image img,
.gbc-media img {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    min-height: 100px;
}

/* Prevent CLS with aspect ratio */
.gbc-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius, 12px);
}

.gbc-media img {
    aspect-ratio: 740 / 500;
    object-fit: cover;
    width: 100%;
}

/* ==========================================================================
   Feature Box Icon Fixes + Global Font Awesome Enforcement
   ========================================================================== */

/* Global Font Awesome classes - ensure proper font-family is used */
.fa, .fas, .far, .fal, .fab {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fas {
    font-family: 'Font Awesome 5 Pro' !important;
    font-weight: 900 !important;
}

.far {
    font-family: 'Font Awesome 5 Pro' !important;
    font-weight: 400 !important;
}

.fal {
    font-family: 'Font Awesome 5 Pro' !important;
    font-weight: 300 !important;
}

.fab {
    font-family: 'Font Awesome 5 Brands' !important;
    font-weight: 400 !important;
}

/* Ensure feature icons use correct FontAwesome */
.feature-four__box-icon i,
.feature-one__box i,
.feature-two__box i {
    font-family: 'Font Awesome 5 Pro', 'pylon-icons' !important;
}

/* Fix feature box icons that show boxes */
.feature-four__box-icon i.flaticon::before,
.feature-one__box i.flaticon::before {
    font-family: 'flaticon' !important;
}

/* ==========================================================================
   Guarantee Badge Styling
   ========================================================================== */
.guarantee-badge {
    background: #fff;
    border-radius: var(--card-radius, 12px);
    padding: 40px;
    text-align: center;
    box-shadow: var(--card-shadow-hover, 0 12px 40px rgba(0, 0, 0, 0.12));
    border: 3px solid var(--gbc-accent, #2CC207);
}

.guarantee-badge__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gbc-accent, #2CC207) 0%, var(--gbc-accent-dark, #239c06) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 36px;
}

.guarantee-badge__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gbc-heading, #2d3748);
    margin-bottom: 12px;
}

.guarantee-badge__text {
    color: var(--gbc-text, #4a5568);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Trust Section Background Fix
   ========================================================================== */
.trusted-company {
    position: relative;
    overflow: hidden;
}

.trusted-company__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.trusted-company .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Section Background with Image
   ========================================================================== */
.gbc-section-bg {
    position: relative;
    background-size: cover;
    background-position: center;
}

.gbc-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.9);
    z-index: 0;
}

.gbc-section-bg .container {
    position: relative;
    z-index: 1;
}

.gbc-section-bg,
.gbc-section-bg h1,
.gbc-section-bg h2,
.gbc-section-bg h3,
.gbc-section-bg p {
    color: #fff;
}

.gbc-section-bg .block-title p {
    color: var(--gbc-accent);
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .wow {
        animation: none !important;
        visibility: visible !important;
    }
    
    .phase-card,
    .feature-one__box,
    .feature-two__box,
    .pricing-card,
    .thm-btn {
        transition: none !important;
    }
}
