/* ==========================================================================
   Yellow Finance Styles (Loaded only when Yellow Finance design is active)
   ========================================================================== */

:root {
    --yf-yellow: #f4c125;
    --yf-yellow-hover: #dbae20;
    --yf-dark: #121212;
    --yf-dark-secondary: #1e1e1e;
    --yf-light: #ffffff;
    --yf-gray: #f5f6f8;
    --yf-text-dark: #2a2a2a;
    --yf-text-light: #ffffff;
    --yf-text-muted: #666666;
    
    --yf-font-heading: 'Manrope', sans-serif;
    --yf-font-body: 'Inter', sans-serif;
}

/* Base resets & overrides when yellow-finance-design is active */
body.yellow-finance-design {
    font-family: var(--yf-font-body);
    color: var(--yf-text-dark);
    background-color: var(--yf-light);
}
body.yellow-finance-design h1, 
body.yellow-finance-design h2, 
body.yellow-finance-design h3, 
body.yellow-finance-design h4 {
    font-family: var(--yf-font-heading);
    font-weight: 700;
}

/* ==========================================================================
   Top Header Banner
   ========================================================================== */
.yf-top-banner {
    background-color: var(--yf-yellow);
    color: var(--yf-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1001;
}
.yf-top-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.yf-top-contact, .yf-top-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.yf-top-contact span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.yf-top-contact svg, .yf-top-social svg {
    width: 14px;
    height: 14px;
}
.yf-top-social a {
    color: var(--yf-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.yf-top-social a:hover {
    opacity: 0.7;
}
@media (max-width: 768px) {
    .yf-top-banner { display: none; }
}

/* ==========================================================================
   Header Overrides
   ========================================================================== */
body.yellow-finance-design .nt-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 40px; /* Adjusted by JS based on banner height */
    z-index: 1000;
    transition: top 0.3s ease;
}
@media (max-width: 768px) {
    body.yellow-finance-design .nt-header {
        top: 0 !important;
    }
}

/* Buttons */
.yf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.yf-btn-primary {
    background-color: var(--yf-yellow);
    color: var(--yf-dark) !important;
}
.yf-btn-primary:hover {
    background-color: var(--yf-yellow-hover);
}
.yf-btn-white {
    background-color: var(--yf-light);
    color: var(--yf-dark) !important;
    border: 1px solid transparent;
}
.yf-btn-white:hover {
    background-color: #f1f1f1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.yf-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background-color: var(--yf-dark);
    color: var(--yf-text-light);
    overflow: hidden;
}
.yf-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/yf-hero.jpg') center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
}
.yf-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--yf-dark) 0%, rgba(18,18,18,0.7) 50%, transparent 100%);
}
.yf-hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.yf-hero-content {
    max-width: 600px;
}
.yf-hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--yf-light);
}
.yf-hero-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
}
.yf-hero-actions {
    display: flex;
    gap: 1rem;
}
@media (max-width: 768px) {
    .yf-hero-title { font-size: 2.5rem; }
    .yf-hero-actions { flex-direction: column; }
    .yf-hero-bg::after { background: rgba(18,18,18,0.8); }
}

/* Hero Marquee */
.yf-hero-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    padding: 0.75rem 0;
    overflow: hidden;
    z-index: 2;
}
.yf-marquee-track {
    display: flex;
    width: max-content;
    animation: yf-marquee 30s linear infinite;
}
.yf-marquee-track span {
    color: var(--yf-light);
    font-size: 1rem;
    padding: 0 2rem;
    white-space: nowrap;
}
@keyframes yf-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Requires repeating elements to loop */
}

/* ==========================================================================
   Steps Section
   ========================================================================== */
.yf-steps-section {
    padding: 0;
    transform: translateY(-2rem);
    position: relative;
    z-index: 10;
}
.yf-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.yf-step-card {
    padding: 2.5rem 2rem;
    border-right: 1px solid rgba(0,0,0,0.05);
}
.yf-step-card:last-child {
    border-right: none;
}
.yf-step-white {
    background: var(--yf-light);
}
.yf-step-yellow {
    background: var(--yf-yellow);
    color: var(--yf-dark);
}
.yf-step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.yf-step-desc {
    font-size: 0.95rem;
    opacity: 0.8;
}
@media (max-width: 900px) {
    .yf-steps-grid { grid-template-columns: 1fr; }
    .yf-steps-section { transform: translateY(0); margin-top: 2rem; }
    .yf-step-card { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); }
}

/* ==========================================================================
   Visionaries Section
   ========================================================================== */
.yf-vision-section {
    padding: 6rem 0;
}
.yf-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.yf-section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}
.yf-vision-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
}
.yf-vision-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}
.yf-vision-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5rem;
    width: 6px; height: 6px;
    background: var(--yf-yellow);
    border-radius: 50%;
}
.yf-vision-stats {
    display: flex;
    gap: 3rem;
}
.yf-stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--yf-yellow);
    font-family: var(--yf-font-heading);
    line-height: 1;
}
.yf-stat-label {
    font-weight: 600;
    margin-top: 0.5rem;
}
.yf-vision-image {
    position: relative;
    padding-top: 100%;
}
.yf-vision-blob {
    position: absolute;
    inset: 10%;
    background: var(--yf-yellow);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-morph 8s ease-in-out infinite;
}
.yf-vision-photo {
    position: absolute;
    inset: 0;
    background: url('../images/yf-visionary.jpg') center/cover;
    border-radius: 50%;
    border: 8px solid var(--yf-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
@keyframes blob-morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}
@media (max-width: 900px) {
    .yf-vision-grid { grid-template-columns: 1fr; gap: 2rem; }
    .yf-vision-image { padding-top: 80%; width: 80%; margin: 0 auto; }
}

/* ==========================================================================
   Solutions Section
   ========================================================================== */
.yf-solutions-section {
    padding: 6rem 0;
    background: var(--yf-gray);
    text-align: center;
}
.yf-solutions-header {
    margin-bottom: 4rem;
}
.yf-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}
.yf-divider::before, .yf-divider::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 2px;
    background: var(--yf-yellow);
    margin: 0 1rem;
}
.yf-solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.yf-solution-card {
    background: var(--yf-light);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.yf-solution-top {
    background: var(--yf-yellow);
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yf-solution-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.5;
}
.yf-solution-icon {
    position: relative;
    z-index: 1;
    color: var(--yf-dark);
}
.yf-solution-inner {
    padding: 1.5rem;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.yf-solution-img-wrap {
    height: 140px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: height 0.3s ease;
}
.yf-solution-img {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.yf-img-solution-1 { background-image: url('../images/yf-solution-1.jpg'); }
.yf-img-solution-2 { background-image: url('../images/yf-solution-2.jpg'); }
.yf-img-solution-3 { background-image: url('../images/yf-solution-3.jpg'); }
.yf-img-solution-4 { background-image: url('../images/yf-solution-4.jpg'); }

.yf-solution-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}
.yf-solution-readmore {
    margin-top: auto;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}
.yf-solution-readmore a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--yf-dark);
    font-weight: 700;
    text-decoration: none;
}
.yf-solution-readmore a:hover {
    color: var(--yf-yellow-hover);
}

/* Hover Effects for Cards */
.yf-solution-card:hover .yf-solution-img-wrap {
    height: 100px;
}
.yf-solution-card:hover .yf-solution-img {
    transform: scale(1.1);
}
.yf-solution-card:hover .yf-solution-title {
    transform: translateY(-5px);
}
.yf-solution-card:hover .yf-solution-readmore {
    max-height: 50px;
    opacity: 1;
    margin-top: 1rem;
}

/* Focus interactions for keyboard accessibility */
.yf-solution-card:focus-within .yf-solution-img-wrap {
    height: 100px;
}
.yf-solution-card:focus-within .yf-solution-img {
    transform: scale(1.1);
}
.yf-solution-card:focus-within .yf-solution-title {
    transform: translateY(-5px);
}
.yf-solution-card:focus-within .yf-solution-readmore {
    max-height: 50px;
    opacity: 1;
    margin-top: 1rem;
}

/* Touch devices always visible */
@media (hover: none) {
    .yf-solution-img-wrap {
        height: 100px;
    }
    .yf-solution-readmore {
        max-height: 50px;
        opacity: 1;
        margin-top: 1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 900px) {
    .yf-solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .yf-solutions-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Values Section
   ========================================================================== */
.yf-values-section {
    padding: 6rem 0;
    position: relative;
    background: var(--yf-dark);
    color: var(--yf-light);
}
.yf-values-bg {
    position: absolute;
    inset: 0;
    background: url('../images/yf-hero.jpg') center/cover;
    opacity: 0.1;
}
.yf-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.yf-value-card {
    background: var(--yf-yellow);
    color: var(--yf-dark);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
}
.yf-value-icon {
    margin-bottom: 1.5rem;
}
.yf-value-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .yf-values-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Networks Section
   ========================================================================== */
.yf-networks-section {
    padding: 4rem 0;
    background: var(--yf-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}
.yf-networks-label {
    font-weight: 700;
    color: var(--yf-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}
.yf-networks-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.yf-networks-marquee::before, .yf-networks-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
}
.yf-networks-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--yf-light), transparent);
}
.yf-networks-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--yf-light), transparent);
}
.yf-networks-track {
    display: flex;
    width: max-content;
    animation: yf-marquee 40s linear infinite;
}
.yf-network-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 3rem;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.yf-network-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--yf-yellow);
}
.yf-network-logo span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   Floating Widgets
   ========================================================================== */
.yf-floating-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.yf-floating-wa:hover {
    transform: scale(1.1);
}
.yf-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--yf-yellow);
    color: var(--yf-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: none;
}
.yf-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.yf-scroll-top:hover {
    background-color: var(--yf-dark);
    color: var(--yf-yellow);
}

/* Remove inner pages top spacing override */
body.yellow-finance-design:not(.home) .nt-main {
    padding-top: 0;
}

/* Shared palette must also override the Recovery layout's inherited tokens. */
body.yellow-finance-design {
    --recovery-burgundy: #171717;
    --recovery-burgundy-light: #303030;
    --recovery-brass: #f4c125;
    --recovery-brass-dark: #dbae20;
    --recovery-cream: #fff;
    --recovery-cream-dark: #f5f6f8;
    --recovery-tint: #fff8db;
    --recovery-mint: #f4c125;
    --recovery-charcoal: #171717;
    --recovery-charcoal-soft: #343434;
    --recovery-text: #262626;
    --recovery-text-soft: #626262;
}
body.yellow-finance-design .nt-btn-primary,
body.yellow-finance-design .nt-btn-holo {
    background: #f4c125;
    border-color: #f4c125;
    color: #171717;
}
body.yellow-finance-design .nt-mobile-toggle span { background: #171717 !important; }
body.yellow-finance-design .nt-header .nt-logo-icon { color: #171717; background: #fff4c7; }
.yf-hero { padding: 8rem 0 7rem; min-height: 670px; }
.yf-hero-bg { opacity: 1; }
.yf-hero-bg::after { background: linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.35)); }
.yf-hero-container { gap: 4rem; align-items: flex-end; }
.yf-hero-content { flex: 1; }
.yf-hero-cards { width: 320px; flex: 0 0 320px; }
.yf-hero-img-overlay {
    height: 180px;
    border-radius: 0 0 160px 160px;
    background: url('../images/yf-solution-1.jpg') center/cover;
    position: relative;
    margin-bottom: 175px;
}
.yf-hero-img-inner {
    position: absolute;
    top: 192px;
    width: 100%;
    height: 170px;
    border-radius: 160px 160px 0 0;
    background: url('../images/yf-hero.jpg') center/cover;
}
.yf-steps-section { transform: none; padding-top: 3rem; }
.yf-network-group { display: flex; flex-shrink: 0; align-items: center; gap: 24px; padding-right: 24px; }
.yf-network-tile { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #171717; width: 210px; padding: 18px; font-weight: 700; }
.yf-networks-section { background: #f4c125; padding: 32px 0; }
.yf-networks-marquee::before, .yf-networks-marquee::after { display: none; }
.yf-networks-track:hover, .yf-hero-marquee:hover .yf-marquee-track { animation-play-state: paused; }
.yf-team-section, .yf-faq-section { padding: 65px 0; }
.yf-section-header { text-align: center; margin-bottom: 36px; }
.yf-subtitle { color: #987400; text-transform: uppercase; font-size: 12px; letter-spacing: .15em; }
.yf-team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.yf-team-card { text-align: center; padding: 28px; background: #fff8db; }
.yf-team-img { padding: 20px; background: #f4c125; margin-bottom: 22px; }
.yf-faq-list { max-width: 760px; margin: auto; }
.yf-faq-item { border-bottom: 1px solid #ddd; }
.yf-faq-item summary { padding: 22px; cursor: pointer; font-weight: 700; }
.yf-faq-item[open] summary { background: #f4c125; }
.yf-faq-content { padding: 22px; line-height: 1.75; }
@media (hover: none) {
    .yf-solution-readmore { opacity: 1; visibility: visible; max-height: none; transform: none; margin-top: 1rem; }
}
@media (max-width: 768px) {
    .yf-hero { padding: 65px 0 90px; min-height: 0; }
    .yf-hero-container { display: block; }
    .yf-hero-cards { display: none; }
    .yf-hero-bg::after { background: rgba(0,0,0,.65); }
    .yf-team-grid { grid-template-columns: 1fr; }
    .yf-floating-wa { left: 16px; bottom: 20px; width: 48px; height: 48px; }
    .yf-scroll-top { right: 16px; bottom: 20px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .yf-marquee-track, .yf-networks-track { animation: none; }
    .yf-solution-card * { transition: none !important; }
}
