/* ==========================================================================
   Trustyfy Funds — visual identity layer
   Loads after main.css and color.php. Restyles surfaces, depth and motion
   without altering page structure or layout.
   ========================================================================== */

:root {
    --tfy-teal: 172 66% 50%;          /* #2dd4bf */
    --tfy-sky: 199 89% 48%;           /* #0ea5e9 */
    --tfy-navy: 206 66% 17%;          /* #0f2f4a */

    --tfy-gradient: linear-gradient(135deg, hsl(var(--tfy-teal)) 0%, hsl(var(--tfy-sky)) 100%);
    --tfy-gradient-soft: linear-gradient(135deg, hsl(var(--tfy-teal) / .12) 0%, hsl(var(--tfy-sky) / .12) 100%);

    --tfy-radius: 14px;
    --tfy-radius-lg: 22px;

    --tfy-shadow-sm: 0 1px 2px hsl(var(--tfy-navy) / .06), 0 2px 8px hsl(var(--tfy-navy) / .04);
    --tfy-shadow-md: 0 4px 12px hsl(var(--tfy-navy) / .08), 0 12px 32px hsl(var(--tfy-navy) / .06);
    --tfy-shadow-lg: 0 8px 24px hsl(var(--tfy-navy) / .10), 0 24px 56px hsl(var(--tfy-navy) / .08);

    --tfy-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Typography: tighter, more editorial ---------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

h1, .h1 { letter-spacing: -0.035em; line-height: 1.12; }
h2, .h2 { letter-spacing: -0.03em;  line-height: 1.18; }

/* ---------- Buttons: softer geometry, gradient primary ---------- */
.btn {
    border-radius: var(--tfy-radius);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform .25s var(--tfy-ease),
                box-shadow .25s var(--tfy-ease),
                filter .25s var(--tfy-ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--base,
.btn.btn--base,
.btn-primary {
    background: var(--tfy-gradient);
    border: none;
    box-shadow: 0 4px 14px hsl(var(--tfy-sky) / .30);
}

.btn--base:hover,
.btn.btn--base:hover,
.btn-primary:hover {
    filter: saturate(1.12) brightness(1.04);
    box-shadow: 0 8px 24px hsl(var(--tfy-sky) / .40);
}

/* ---------- Cards & surfaces: lighter, more depth ---------- */
.card,
.custom--card,
.pricing-card,
.service-card,
.feature-card,
.blog-card,
.testimonial-card,
.process-card,
.plan-card {
    border-radius: var(--tfy-radius-lg);
    box-shadow: var(--tfy-shadow-sm);
    border: 1px solid hsl(var(--tfy-navy) / .07);
    transition: transform .3s var(--tfy-ease),
                box-shadow .3s var(--tfy-ease),
                border-color .3s var(--tfy-ease);
}

.card:hover,
.custom--card:hover,
.pricing-card:hover,
.service-card:hover,
.feature-card:hover,
.blog-card:hover,
.testimonial-card:hover,
.process-card:hover,
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tfy-shadow-lg);
    border-color: hsl(var(--tfy-sky) / .28);
}

/* ---------- Section headings: gradient accent rule ---------- */
.section-heading__subtitle,
.subtitle,
.section__subtitle {
    position: relative;
    display: inline-block;
    padding-left: 42px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--tfy-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading__subtitle::before,
.subtitle::before,
.section__subtitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 3px;
    border-radius: 3px;
    transform: translateY(-50%);
    background: var(--tfy-gradient);
}

/* ---------- Icon tiles: gradient wash instead of flat fill ---------- */
.icon,
.service-card__icon,
.feature-card__icon,
.process-card__icon,
.why-card__icon {
    border-radius: 16px;
    background: var(--tfy-gradient-soft);
    transition: transform .3s var(--tfy-ease), background .3s var(--tfy-ease);
}

.card:hover .icon,
.service-card:hover .service-card__icon,
.feature-card:hover .feature-card__icon,
.process-card:hover .process-card__icon {
    transform: scale(1.08) rotate(-4deg);
    background: var(--tfy-gradient);
}

/* ---------- Banner / hero: layered gradient glow ---------- */
.banner-section,
.hero-section,
.banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.banner-section::after,
.hero-section::after,
.banner::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -22%;
    right: -12%;
    width: 62vw;
    height: 62vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
                hsl(var(--tfy-teal) / .22) 0%,
                hsl(var(--tfy-sky) / .14) 42%,
                transparent 70%);
    filter: blur(20px);
}

.banner-section::before,
.hero-section::before,
.banner::before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -28%;
    left: -14%;
    width: 46vw;
    height: 46vw;
    max-width: 640px;
    max-height: 640px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
                hsl(var(--tfy-sky) / .16) 0%,
                transparent 68%);
    filter: blur(26px);
}

/* ---------- Header: translucent, blurred ---------- */
.header {
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid hsl(var(--tfy-navy) / .07);
}

.header.fixed-header,
.header.sticky {
    box-shadow: var(--tfy-shadow-md);
}

/* ---------- Nav links: animated gradient underline ---------- */
.nav-menu__link {
    position: relative;
    font-weight: 500;
}

.nav-menu__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--tfy-gradient);
    transition: width .3s var(--tfy-ease);
}

.nav-menu__link:hover::after,
.nav-menu__item.active .nav-menu__link::after {
    width: 100%;
}

/* ---------- Counters: gradient numerals ---------- */
.counter-item__number,
.counter__number,
.odometer {
    background: var(--tfy-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ---------- Forms: clearer focus state ---------- */
.form--control,
.form-control,
.form-select {
    border-radius: var(--tfy-radius);
    border: 1.5px solid hsl(var(--tfy-navy) / .12);
    transition: border-color .2s var(--tfy-ease), box-shadow .2s var(--tfy-ease);
}

.form--control:focus,
.form-control:focus,
.form-select:focus {
    border-color: hsl(var(--tfy-sky));
    box-shadow: 0 0 0 4px hsl(var(--tfy-sky) / .14);
    outline: none;
}

/* ---------- Footer: subtle gradient top edge ---------- */
.footer {
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--tfy-gradient);
}

/* ---------- Accordion / FAQ ---------- */
.accordion-item {
    border-radius: var(--tfy-radius) !important;
    overflow: hidden;
    border: 1px solid hsl(var(--tfy-navy) / .08);
    margin-bottom: 12px;
    box-shadow: var(--tfy-shadow-sm);
}

.accordion-button:not(.collapsed) {
    background: var(--tfy-gradient-soft);
    color: hsl(var(--tfy-navy));
    font-weight: 600;
    box-shadow: none;
}

/* ---------- Tables ---------- */
.table--responsive--md thead,
.custom--table thead {
    background: var(--tfy-gradient-soft);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: hsl(var(--tfy-navy) / .04); }
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--tfy-gradient);
}

/* ---------- Text selection ---------- */
::selection {
    background: hsl(var(--tfy-sky) / .22);
    color: hsl(var(--tfy-navy));
}

/* ---------- Logo sizing: larger, crisper ---------- */
.navbar-brand.logo img {
    max-width: 210px;
    max-height: 74px;
    width: auto;
    height: auto;
}

@media screen and (max-width: 991px) {
    .navbar-brand.logo img {
        max-width: 175px;
        max-height: 62px;
    }
}

@media screen and (max-width: 575px) {
    .navbar-brand.logo img {
        max-width: 150px;
        max-height: 54px;
    }
}

.footer-item__logo a img {
    max-width: 240px;
    max-height: 80px;
    width: auto;
    height: auto;
}

.account__top .logo img {
    max-width: 200px;
    max-height: 70px;
    width: auto;
    height: auto;
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn:hover,
    .card:hover,
    .custom--card:hover,
    .service-card:hover,
    .feature-card:hover {
        transform: none;
    }
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* === Trustyfy Pro Homepage Refresh v2 === */
.hero-pro {
    position: relative;
    overflow: hidden;
    padding: 120px 0 82px;
    background:
        radial-gradient(1100px 520px at 8% -8%, rgba(45,212,191,.18), transparent 62%),
        radial-gradient(900px 460px at 96% 8%, rgba(14,165,233,.16), transparent 60%),
        linear-gradient(180deg, #f4fbff 0%, #ffffff 72%);
}
.hero-pro::before {
    content: "";
    position: absolute;
    inset: auto -8% -120px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,.22) 0%, rgba(14,165,233,0) 70%);
    pointer-events: none;
}
.hero-pro__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15,47,74,.06);
    border: 1px solid rgba(15,47,74,.10);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f2f4a;
    margin-bottom: 14px;
}
.hero-pro__title {
    font-size: clamp(2rem, 3.2vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 14px;
    color: #0b2236;
}
.hero-pro__desc {
    font-size: 1.04rem;
    color: #4a647a;
    max-width: 620px;
    margin-bottom: 26px;
}
.hero-pro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-pro__card {
    padding: 28px 24px;
    border-radius: 20px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(15,47,74,.08);
    box-shadow: 0 16px 48px rgba(15,47,74,.10);
    backdrop-filter: blur(6px);
}
.hero-pro__card h5 { margin-bottom: 14px; }
.hero-pro__card ul { margin: 0; padding: 0; list-style: none; }
.hero-pro__card li {
    display: flex;
    gap: 9px;
    color: #35516a;
    margin: 10px 0;
}
.hero-pro__card li i { color: #0ea5e9; margin-top: 3px; }

.trust-bar { margin-top: -28px; position: relative; z-index: 2; }
.trust-item {
    padding: 18px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15,47,74,.08);
    box-shadow: 0 12px 28px rgba(15,47,74,.07);
    text-align: center;
}
.trust-item strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1;
    color: #0f2f4a;
}
.trust-item span { font-size: .9rem; color: #59728a; }

.tfy-head__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 700;
    color: #0ea5e9;
    font-size: .76rem;
}
.tfy-head__title { color: #0c2a44; margin-bottom: 10px; }
.tfy-head__desc { color: #557087; }

.tfy-accounts, .tfy-security, .tfy-steps { padding: 92px 0; }
.tfy-security { background: linear-gradient(180deg, #f7fcff 0%, #ffffff 100%); }

.tfy-account {
    height: 100%;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15,47,74,.08);
    box-shadow: 0 12px 30px rgba(15,47,74,.08);
    padding: 28px 24px;
    transition: all .28s ease;
}
.tfy-account:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15,47,74,.14);
    border-color: rgba(14,165,233,.28);
}
.tfy-account__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(45,212,191,.16), rgba(14,165,233,.16));
    color: #0f2f4a;
    font-size: 1.35rem;
    margin-bottom: 14px;
}
.tfy-account h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tfy-account p { color: #587187; margin-bottom: 14px; }
.tfy-account ul { list-style: none; margin: 0; padding: 0; }
.tfy-account li { margin: 8px 0; color: #35516a; }
.tfy-account li i { color: #14b8a6; margin-right: 6px; }
.tfy-account--featured {
    border-color: rgba(14,165,233,.32);
    box-shadow: 0 18px 46px rgba(14,165,233,.18);
}
.tfy-account__tag {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.tfy-security__title { margin-bottom: 12px; color: #0c2a44; }
.tfy-security__desc { color: #567188; margin-bottom: 20px; }
.tfy-security__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.tfy-security__item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(15,47,74,.08);
    background: #fff;
}
.tfy-security__item i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #0ea5e9;
    background: rgba(14,165,233,.12);
}
.tfy-security__item h5 { margin-bottom: 4px; font-size: .96rem; }
.tfy-security__item p { margin: 0; color: #607a91; font-size: .9rem; }

.tfy-security__panel {
    border-radius: 18px;
    border: 1px solid rgba(15,47,74,.08);
    background: #fff;
    box-shadow: 0 14px 42px rgba(15,47,74,.12);
    overflow: hidden;
}
.tfy-security__panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15,47,74,.08);
    background: #f7fbfe;
}
.tfy-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c4d5e4;
}
.tfy-dot:nth-child(1) { background: #f97373; }
.tfy-dot:nth-child(2) { background: #facc15; }
.tfy-dot:nth-child(3) { background: #4ade80; }
.tfy-security__panel-head strong {
    margin-left: 6px;
    color: #17324a;
    font-size: .92rem;
}
.tfy-activity { padding: 14px 16px; }
.tfy-activity__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(15,47,74,.12);
}
.tfy-activity__row:last-child { border-bottom: 0; }
.tfy-activity__ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #eef6fb;
    color: #1e4c6e;
}
.tfy-activity__meta strong { display: block; font-size: .92rem; color: #153147; }
.tfy-activity__meta small { color: #7089a0; }
.tfy-activity__amt { font-weight: 700; color: #0f2f4a; font-size: .92rem; }
.tfy-activity__amt--in { color: #0f9f80; }
.tfy-security__panel-foot {
    padding: 12px 16px;
    border-top: 1px solid rgba(15,47,74,.08);
    background: #f8fcff;
    color: #517189;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tfy-security__panel-foot i { color: #0ea5e9; }

.tfy-step {
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(15,47,74,.08);
    background: #fff;
    padding: 22px 18px;
    box-shadow: 0 10px 26px rgba(15,47,74,.07);
}
.tfy-step__num {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #0ea5e9;
    margin-bottom: 10px;
}
.tfy-step h4 { font-size: 1.03rem; margin-bottom: 8px; }
.tfy-step p { margin: 0; color: #607a91; }

.tfy-cta { padding: 18px 0 94px; }
.tfy-cta__inner {
    border-radius: 20px;
    background: linear-gradient(135deg, #0f2f4a 0%, #0d4668 48%, #0ea5e9 100%);
    color: #fff;
    padding: 34px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 18px 54px rgba(13,70,104,.34);
}
.tfy-cta__text h2 { color: #fff; margin-bottom: 8px; }
.tfy-cta__text p { margin: 0; color: rgba(255,255,255,.88); }
.tfy-cta .btn-outline--light {
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
}
.tfy-cta .btn-outline--light:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

@media (max-width: 991px) {
    .hero-pro { padding: 102px 0 72px; }
    .trust-bar { margin-top: 14px; }
    .tfy-security__grid { grid-template-columns: 1fr; }
    .tfy-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px) {
    .hero-pro__actions { width: 100%; }
    .hero-pro__actions .btn { width: 100%; justify-content: center; }
    .tfy-accounts, .tfy-security, .tfy-steps { padding: 74px 0; }
}
