/* ============================================
   FENERO FINANCIAL ADVISORS THEME
   ============================================ */

/* --- Navigation --- */
.fenero-nav-inner {
    padding-left: 0;
    padding-right: 4rem;
}

.fenero-nav {
    background-color: var(--corp-primary-deep) !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1030;
    height: 72px;
    min-height: 72px;
    transition: height 0.3s ease, min-height 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, position 0.3s ease;
    margin-right: 2rem;
    border-radius: 0 0 45px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 2rem;
    width: auto;
}

/* Scrolled / shrunk state */
.fenero-nav.nav-scrolled {
    height: 60px;
    position: fixed;
    top: 0;
    min-height: 60px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25) !important;
}

.fenero-brand {
    background-color: var(--corp-primary-deep);
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 160px;
    width: auto;
    min-width: 160px;
    max-width: 240px;
    position: absolute;
    top: 0;
    left: max(var(--corp-container-px), calc((100vw - var(--corp-container-max-width)) / 2 + var(--corp-container-px)));
    z-index: 1031;
    transition: all 0.3s ease;
    border-radius: 0 0 18px 18px;
    box-shadow: 8px 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.fenero-nav.nav-scrolled .fenero-brand {
    height: 80px;
}

.fenero-brand img,
.fenero-brand .navbar-logo {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    top: 0;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.fenero-nav.nav-scrolled .fenero-brand img,
.fenero-nav.nav-scrolled .fenero-brand .navbar-logo {
    height: 100%;
    width: auto;
}

.fenero-brand .navbar-logo-custom {
    height: auto;
    max-height: 80px;
}

.fenero-nav.nav-scrolled .fenero-brand .navbar-logo-custom {
    height: auto;
    max-height: 60px;
}

/* Text-based logo fallback */
.brand-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fenero-nav .nav-link {
    color: var(--corp-white) !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease, padding 0.3s ease, font-size 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.fenero-nav.nav-scrolled .nav-link {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.875rem;
}

.fenero-nav .nav-link:hover,
.fenero-nav .nav-link.active {
    color: rgba(255,255,255,0.7) !important;
}

.btn-contact-us {
    background-color: var(--corp-cta-green) !important;
    color: var(--corp-primary-deep) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.5rem 1.75rem !important;
    font-weight: 800 !important;
    font-size: 0.9375rem !important;
    white-space: nowrap;
    transition: background-color 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    letter-spacing: 0.02em;
}

.fenero-nav.nav-scrolled .btn-contact-us {
    padding: 0.4rem 1.4rem !important;
    font-size: 0.875rem !important;
}

.btn-contact-us:hover {
    background-color: var(--corp-cta-green-hover) !important;
    color: var(--corp-primary-deep) !important;
}

.nav-search-btn {
    color: var(--corp-white) !important;
    font-size: 1.75rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.nav-search-btn i {
    font-weight: 900;
}

.nav-search-btn:hover {
    color: rgba(255,255,255,0.7) !important;
}

/* Mobile toggler */
.fenero-nav .navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    margin-right: 1rem;
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

@media (max-width: 991px) {
    .fenero-nav .navbar-toggler {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

.fenero-nav .navbar-toggler:focus {
    outline: 2px solid rgba(255,255,255,0.3);
    outline-offset: 2px;
    box-shadow: none;
}

.fenero-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 24px;
    height: 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.fenero-hero {
    background: #1b3e71;
    position: relative;
    min-height: var(--corp-hero-min-height);
    overflow-x: clip;
    overflow-y: visible;
    display: flex;
    align-items: center;
    padding-top: var(--corp-hero-pt);
    padding-bottom: var(--corp-hero-pb);
    width: 100%;
    margin-bottom: 60px;
}


.fenero-hero .container-fluid {
    max-width: 100vw;
    overflow: hidden;
}

/* Hero padding-top and min-height are governed entirely by --corp-hero-pt and
   --corp-hero-min-height in corporate-tokens.css. The defaults are sized to
   clear the 160px absolutely-positioned .fenero-brand logo and to match the
   image-side hero's natural height, so every hero renders the same height
   regardless of copy length. */


/* --- Geometric Background Shapes (hidden - using bg image) --- */
.hero-geometric,
.hero-accent-line {
    display: none;
}

.hero-geometric .shape-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 1px;
    height: 141%;
    background: rgba(255,255,255,0.04);
    transform: rotate(15deg);
    transform-origin: top left;
}

.hero-geometric .shape-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 55%;
    width: 1px;
    height: 141%;
    background: rgba(255,255,255,0.03);
    transform: rotate(15deg);
    transform-origin: top left;
}

/* Hero image area — styling now in corporate-components.css base */



/* Desktop navigation positioning */
@media (min-width: 992px) {
    .fenero-nav .navbar-nav {
        margin-left: 230px !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .fenero-nav .nav-link {
        padding: 1.5rem 0.7rem !important;
        font-size: 0.875rem;
    }

    /* Reduce left margin on smaller screens */
    .fenero-nav .navbar-nav {
        margin-left: 180px !important;
    }
}

@media (max-width: 991px) {
    .fenero-nav {
        min-height: 70px;
        margin-right: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }

    .fenero-brand {
        padding: 0 !important;
        height: 100px;
        width: auto;
        min-width: 100px;
        max-width: 150px;
        margin-left: 15px !important;
        margin-right: 1rem !important;
        border-radius: 0 0 12px 12px;
    }

    .fenero-brand img,
    .fenero-brand .navbar-logo {
        height: 100%;
        width: auto;
        max-width: 100%;
    }

    .fenero-nav .navbar-collapse {
        background-color: var(--corp-primary-deep);
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1029;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .fenero-nav .navbar-nav,
    #feneroNavbar .navbar-nav {
        padding: 1rem 1.5rem;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .fenero-nav .navbar-nav .nav-item {
        margin: 0;
        width: 100%;
        text-align: left;
    }

    .fenero-nav .nav-link {
        padding: 0.875rem 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 1rem !important;
        font-weight: 600 !important;
        display: block;
        width: 100%;
        text-align: left !important;
        color: var(--corp-white) !important;
    }

    .fenero-nav .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .fenero-nav .d-flex.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        padding: 0.75rem 1.5rem 1.25rem;
        gap: 0.875rem;
        border-top: 1px solid rgba(255,255,255,0.12);
        margin: 0;
        width: 100%;
    }

    .fenero-nav .btn-contact-us {
        width: 100%;
        text-align: center;
        margin: 0 !important;
        padding: 0.75rem 1.5rem !important;
    }

    .fenero-nav .nav-search-btn {
        width: 100%;
        padding: 0.75rem !important;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        text-align: center;
        margin: 0 !important;
    }

    .hero-geometric .shape-green,
    .hero-geometric .shape-navy-1 {
        opacity: 0.35;
    }
}



/* ============================================
   FOOTER SECTION
   ============================================ */
.fenero-footer {
    background: var(--corp-primary-deep);
    padding: 3rem 0 1.5rem;
    color: var(--corp-white);
}

.footer-logo-section {
    margin-bottom: 2rem;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    max-width: 350px;
}

.footer-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #AFCE67;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--corp-lime);
    color: var(--corp-primary-deep);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #AFCE67;
}

/* Footer Logo Styles */
.ftr-logos {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ftr-logo-item {
    display: flex;
    align-items: center;
}

.ftr-logo-main {
    max-width: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.ftr-partner-logo img {
    max-width: 150px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.ftr-broker-text img {
    max-width: 140px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.ftr-badge-mobile img {
    max-width: 80px;
    height: auto;
    object-fit: contain;
}

/* Footer Responsive */
@media (max-width: 991px) {
    .fenero-footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-section-title {
        margin-top: 1.5rem;
    }

    .ftr-logo-main {
        max-width: 160px;
        max-height: 70px;
    }

    .ftr-partner-logo img {
        max-width: 130px;
        max-height: 50px;
    }

    .ftr-broker-text img {
        max-width: 120px;
        max-height: 45px;
    }

    .ftr-logos {
        align-items: center;
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .fenero-footer {
        padding: 2rem 0 1rem;
    }

    .ftr-main .container {
        padding-top: 2rem;
    }

    .ftr-main .row {
        display: flex;
        flex-wrap: wrap;
    }

    /* Mobile footer logo layout - 2x2 grid */
    .ftr-main .col-lg-2:first-child {
        width: 100%;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .ftr-logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1rem;
        align-items: center;
        width: 100%;
    }

    .ftr-logo-item {
        width: 100%;
    }

    .ftr-logo-main {
        max-width: 130px;
        max-height: 60px;
        border-radius: 12px;
    }

    .ftr-partner-logo img {
        max-width: 110px;
        max-height: 45px;
    }

    .ftr-broker-text img {
        max-width: 105px;
        max-height: 40px;
    }

    /* Mobile logo 2x2 grid ordering:
       Row 1: Logo1 (left) | Logo2 (right)
       Row 2: Logo3 (left) | Logo4 (right)
       DOM order: badge-mobile(Logo2), logo-main-wrap(Logo1), partner-logo(Logo3), broker-text(Logo4) */
    .ftr-logo-main-wrap {
        order: 1;
        justify-self: start;
        justify-content: flex-start;
    }

    .ftr-badge-mobile {
        order: 2;
        justify-self: end;
        justify-content: flex-end;
    }

    .ftr-partner-logo {
        order: 3;
        justify-self: start;
        justify-content: flex-start;
    }

    .ftr-broker-text {
        order: 4;
        justify-self: end;
        justify-content: flex-end;
    }

    .ftr-badge-mobile img {
        max-width: 80px;
    }

    /* Link sections in two columns - 2x2 grid */
    /* Row 2: Our Solutions | Resources */
    .ftr-main .col-lg-2:nth-child(2) {
        width: 50%;
        text-align: left;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
        order: 2;
    }

    .ftr-main .col-lg-2:nth-child(3) {
        width: 50%;
        text-align: left;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
        order: 3;
    }

    /* Row 3: Our Info | Get in touch */
    .ftr-main .col-lg-2:nth-child(4) {
        width: 50%;
        text-align: left;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
        order: 4;
    }

    .ftr-main .col-lg-3:nth-child(5) {
        width: 50%;
        text-align: left;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
        order: 5;
    }

    .ftr-heading {
        text-align: left;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .ftr-subheading {
        text-align: left;
        font-size: 0.8rem;
    }

    .ftr-links {
        text-align: left;
    }

    .ftr-contact,
    .ftr-address {
        text-align: left;
    }

    /* Social icons - full width centered */
    .ftr-main .col-lg-3:has(.ftr-social),
    .ftr-main .col-lg-3:has(.ftr-subheading) {
        width: 100%;
        text-align: center;
        order: 10;
        margin-top: 1rem;
    }

    .ftr-main .col-lg-3 .ftr-subheading {
        text-align: center;
    }

    .ftr-social {
        justify-content: center;
        gap: 1rem;
    }

    /* Badge column */
    .ftr-main .col-lg-1 {
        width: 100%;
        text-align: center;
        margin-top: 1.5rem;
        order: 11;
    }

    .ftr-badge {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .ftr-badge img {
        max-width: 80px;
        height: auto;
    }
}

/* ============================================
   ENHANCED MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Tablet devices (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    /* Navigation adjustments */
    .fenero-nav {
        margin-right: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }

    .fenero-brand {
        margin-left: 2rem !important;
        padding: 0 !important;
        height: 110px;
        width: auto;
        min-width: 110px;
        max-width: 160px;
    }

    /* Hero section */
    .fenero-hero .corp-hero-content {
        padding-left: 2rem;
    }

    .fenero-hero .corp-hero-title {
        font-size: 3rem;
    }

    .fenero-hero .corp-hero-subtitle {
        font-size: 2.25rem;
    }

}

/* Small tablets and large phones (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    /* Navigation */
    .fenero-nav {
        height: 60px;
        min-height: 60px;
        margin-right: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }

    .fenero-brand {
        height: 100px;
        width: auto;
        min-width: 100px;
        max-width: 140px;
        margin-left: 2rem !important;
        padding: 0 !important;
        border-radius: 0 0 12px 12px;
    }

    /* Hero section — tokens govern padding and min-height */
    .fenero-hero .corp-hero-content {
        padding-left: 4%;
        padding-right: 4%;
    }

}

/* Mobile devices (up to 575px) */
@media (max-width: 575px) {
    /* General spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile menu specific fixes */
    .fenero-nav .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
        background-color: var(--corp-primary-deep) !important;
    }

    .fenero-nav .navbar-nav {
        padding: 1rem 1.25rem !important;
        margin-left: 0 !important;
        display: block !important;
    }

    .fenero-nav .navbar-nav .nav-item {
        width: 100%;
        display: block;
        text-align: left !important;
    }

    .fenero-nav .nav-link {
        padding: 1rem 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left !important;
        display: block !important;
    }

    .fenero-nav .d-flex.align-items-center {
        padding: 1rem 1.25rem 1.5rem !important;
    }

    .fenero-nav .nav-search-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    /* Navigation */
    .fenero-nav {
        height: 56px;
        min-height: 56px;
        margin-right: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }

    .fenero-brand {
        height: 85px;
        width: auto;
        min-width: 85px;
        max-width: 120px;
        margin-left: 0.75rem !important;
        margin-right: 0.75rem !important;
        padding: 0 !important;
        border-radius: 0 0 10px 10px;
    }

    .fenero-brand img,
    .fenero-brand .navbar-logo {
        height: 100%;
        width: auto;
        max-width: 100%;
    }

    /* Hero section - tokens govern padding and min-height */
    .fenero-hero .corp-hero-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .fenero-hero .corp-hero-title {
        font-size: 1.65rem;
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }

    .fenero-hero .corp-hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .fenero-hero .corp-hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 100%;
    }
}



/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .fenero-brand {
        height: 70px;
        width: auto;
        min-width: 70px;
        max-width: 100px;
        padding: 0 !important;
    }

    .fenero-brand img,
    .fenero-brand .navbar-logo {
        height: 100%;
        width: auto;
        max-width: 100%;
    }

    .corp-categories-strip {
        position: relative;
        bottom: 0;
        margin-top: 2rem;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .fenero-hero {
        margin-bottom: 2rem;
    }
}

/* ============================================
   AESTHETIC SCROLLING & HOVER EFFECTS
   ============================================ */

/* Scroll-triggered fade-in animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-in-delay-1 {
    transition-delay: 0.1s;
}

.scroll-fade-in-delay-2 {
    transition-delay: 0.2s;
}

.scroll-fade-in-delay-3 {
    transition-delay: 0.3s;
}

.scroll-fade-in-delay-4 {
    transition-delay: 0.4s;
}

/* Parallax scroll effect for background elements */
.parallax-bg {
    transition: transform 0.1s ease-out;
}

/* Enhanced button hover effects */
.btn-contact-us {
    position: relative;
    overflow: hidden;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}

.btn-contact-us::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-contact-us:hover::before {
    width: 300px;
    height: 300px;
}

.btn-contact-us:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(134, 165, 103, 0.4);
}

.btn-contact-us:active {
    transform: translateY(0);
}

/* Hero image — static (no float animation) */

/* Smooth nav link hover */
.fenero-nav .nav-link {
    position: relative;
}

.fenero-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fenero-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Footer social link enhanced hover */
.footer-social-link {
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #AFCE67 0%, #95AF58 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.footer-social-link:hover::before {
    opacity: 1;
}

.footer-social-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social-link:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}


/* Smooth hover for footer links */
.footer-links a {
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    transform: translateX(4px);
    padding-left: 4px;
}


/* Reduce animations on mobile for performance */
@media (max-width: 767px) {
    .parallax-bg {
        transform: none !important;
    }

    .scroll-fade-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Tax & Accounting heading colors ── */
.fenero-hero--tax .corp-hero-title {
    color: #ffffff;
}

#why-fenero .corp-section-title {
    color: #00565c;
}

/* ============================================
   INNER-PAGE HERO (Reusable)
   ============================================ */
.inner-hero {
    background: #1b3e71;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.inner-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16px;
    background: linear-gradient(90deg, #0080c0, #1c223e);
    z-index: 1;
}

.inner-hero-geo-bg {
    position: absolute;
    right: -5%;
    top: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.inner-hero-geo-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    opacity: 0.5;
}

.inner-hero .container {
    position: relative;
    z-index: 3;
}

.inner-hero-content {
    padding-right: 40px;
}

.inner-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.inner-hero-description {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 580px;
}

.inner-hero-side-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    height: 100%;
    z-index: 2;
}

.inner-hero-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Inner Hero - Floating Categories Strip */
.inner-hero-categories-strip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 90%;
    max-width: 860px;
}

.inner-hero-categories-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 30px;
    gap: 40px;
}

.inner-hero-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.inner-hero-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eaf1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b3e71;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.inner-hero-category-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1b3e71;
}

/* ============================================
   INNER-PAGE CONTENT SECTION
   ============================================ */
.inner-page-content {
    padding: 80px 0 60px;
    background: #fff;
}

.inner-hero-categories-strip + .inner-page-content,
.inner-hero + .inner-page-content {
    padding-top: 80px;
}

section.inner-hero + section.inner-page-content {
    padding-top: 60px;
}

/* When hero has categories strip, add extra top padding for the overlap */
.inner-hero:has(.inner-hero-categories-strip) ~ .inner-page-content {
    padding-top: 100px;
}

.inner-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0d1f3c;
    margin-bottom: 16px;
}

.inner-section-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}

.inner-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.inner-feature-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inner-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 62, 113, 0.1);
}

.inner-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #1b3e71;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.inner-feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d1f3c;
    margin-bottom: 8px;
}

.inner-feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.inner-cta-block {
    background: #1b3e71;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: #fff;
}

.inner-cta-block h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.inner-cta-block p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-inner-cta {
    background: #AFCE67;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-inner-cta:hover {
    background: #749956;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   INNER-PAGE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .inner-hero {
        min-height: 340px;
        padding: 100px 0 70px;
    }

    .inner-hero-title {
        font-size: 2.2rem;
    }

    .inner-hero-side-image {
        display: none;
    }

    .inner-hero-content {
        padding-right: 0;
    }

    .inner-hero-categories-strip {
        width: 95%;
    }

    .inner-hero-categories-inner {
        gap: 20px;
        padding: 14px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .inner-hero {
        min-height: auto;
        padding: 90px 0 60px;
    }

    .inner-hero-title {
        font-size: 1.8rem;
    }

    .inner-hero-description {
        font-size: 0.9rem;
    }

    .inner-hero-categories-strip {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 24px;
    }

    .inner-hero-categories-inner {
        border-radius: 12px;
        gap: 12px;
        padding: 16px;
    }

    .inner-hero-category-item {
        flex: 0 0 calc(50% - 6px);
    }

    .inner-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .inner-cta-block {
        padding: 28px 20px;
    }

    .inner-cta-block h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .inner-hero-title {
        font-size: 1.5rem;
    }

    .inner-hero-category-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .inner-hero-category-item span {
        font-size: 0.75rem;
    }
}
