﻿
/*-----------------------------------*\
          #CUSTOM PROPERTY
        \*-----------------------------------*/
:root {
    --gold-web-golden: hsl(50, 95%, 56%);
    --spanish-orange: hsl(24, 100%, 45%);
    --persian-green: hsl(175, 80%, 33%);
    --granite-gray: hsl(0, 0%, 40%);
    --spring-green: hsl(143, 85%, 58%);
    --ultramarine: hsl(260, 100%, 44%);
    --blue-violet: hsl(272, 76%, 53%);
    --smoky-black: hsl(0, 0%, 7%);
    --dark-orange: hsl(33, 100%, 50%);
    --winter-sky: #b50058; /* Adjusted to match pink from design */
    --primary-light: #ff709e;
    --cultured-1: hsl(0, 0%, 98%);
    --cultured-2: hsl(0, 0%, 95%);
    --cultured-3: hsl(0, 0%, 94%);
    --light-gray: hsl(0, 0%, 80%);
    --alice-blue: hsl(206, 89%, 93%);
    --white-1: hsl(0, 0%, 100%);
    --black: #2f2e2e;
    --ff-spartan: 'Plus Jakarta Sans', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --fs-1: 3rem;
    --fs-2: 2.7rem;
    --fs-3: 2.2rem;
    --fs-4: 1.8rem;
    --fs-5: 1.6rem;
    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;
    --fw-700: 700;
    --fw-900: 900;
    --section-padding: 60px;
    --shadow-1: 0 2px 25px hsla(0, 0%, 0%, 0.1);
    --shadow-2: 0 8px 14px hsla(0, 0%, 0%, 0.1);
    --shadow-3: 0 14px 30px hsla(0, 0%, 0%, 0.05);
    --radius-6: 6px;
    --radius-12: 12px;
    --radius-24: 24px;
    --gradient-1: linear-gradient(135deg, var(--winter-sky), var(--primary-light));
    --gradient-2: linear-gradient(to right, var(--ultramarine), var(--blue-violet));
    --transition-1: 0.25s ease;
    --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
}

/*-----------------------------------*\
          #RESET
        \*-----------------------------------*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    min-height: calc(100vh - 200px); /* subtract header + footer height */
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    height: auto;
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

html {
    font-family: var(--ff-body);
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    background-color: #f9f6f5;
    color: var(--black);
    font-size: 1.6rem;
    overflow-x: hidden;
    line-height: 1.5;
}

/*-----------------------------------*\
          #REUSED STYLE
        \*-----------------------------------*/
.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 20px;
}

.section {
    padding-block: var(--section-padding);
}

.h1, .h2, .h3 {
    font-family: var(--ff-spartan);
    color: var(--black);
    font-weight: var(--fw-900);
    line-height: 1.1;
}

.h1 {
    font-size: 4rem;
}

.h2 {
    font-size: 3.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding-inline: 30px;
    border-radius: var(--radius-12);
    font-weight: var(--fw-700);
    transition: var(--transition-1);
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white-1);
    box-shadow: 0 10px 20px -5px rgba(181, 0, 88, 0.3);
}

    .btn-primary:hover {
        transform: scale(1.02);
        opacity: 0.95;
    }

.btn-secondary {
    background-color: #eae7e7;
    color: var(--black);
}

    .btn-secondary:hover {
        background-color: #dfdcdc;
    }

/*-----------------------------------*\
          #HEADER
        \*-----------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 246, 245, 0.8);
    backdrop-filter: blur(20px);
    z-index: 100;
    padding-block: 15px;
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo {
    font-family: var(--ff-spartan);
    color: var(--winter-sky);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-toggle-btn {
    font-size: 32px;
    color: var(--winter-sky);
}

    .nav-toggle-btn .close-icon,
    .nav-toggle-btn.active .menu-icon {
        display: none;
    }

    .nav-toggle-btn.active .close-icon {
        display: block;
    }

.navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-1);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: 0.35s var(--cubic-out);
    box-shadow: var(--shadow-2);
}

    .navbar.active {
        max-height: 400px;
        visibility: visible;
    }

.navbar-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.navbar-link {
    font-family: var(--ff-spartan);
    font-weight: var(--fw-700);
    font-size: 1.8rem;
    transition: var(--transition-1);
}

    .navbar-link:hover, .navbar-link.active {
        color: var(--winter-sky);
    }

.header .btn-cta {
    display: none;
}

/*-----------------------------------*\
          #HERO
        \*-----------------------------------*/
.hero {
    padding-block-start: 120px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #d0cdff;
    color: #3723cb;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title .span {
    color: var(--winter-sky);
}

.hero-text {
    color: var(--granite-gray);
    margin-block: 20px 30px;
    font-size: 1.8rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-banner {
    position: relative;
    margin-inline: auto;
    max-width: 500px;
    background-color: #f9f6f5; /* Match page background */
    border-radius: var(--radius-24);
    overflow: hidden;
}

.hero-img {
    mix-blend-mode: multiply; /* Helps blend if image has white edges */
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(181, 0, 88, 0.05);
    filter: blur(100px);
    z-index: -1;
}

.stats-float {
    position: absolute;
    top: 20px;
    right: -10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 16px;
    box-shadow: var(--shadow-3);
    display: none;
    align-items: center;
    gap: 12px;
    text-align: right;
    border: 1px solid rgba(255,255,255,0.3);
}

.stats-icon {
    background: #ffa504;
    color: #4f3000;
    padding: 8px;
    border-radius: 8px;
}

.stats-label {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--granite-gray);
}

.stats-val {
    font-size: 2rem;
    font-weight: 900;
}

/*-----------------------------------*\
          #TRUST
        \*-----------------------------------*/
.trust {
    background-color: rgba(234, 231, 231, 0.4);
    padding-block: 40px;
}

.trust-text {
    text-align: center;
    color: var(--granite-gray);
    font-weight: 700;
    margin-bottom: 30px;
    opacity: 0.6;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 60px;
    opacity: 0.4;
    filter: grayscale(1);
}

.trust-item {
    font-family: var(--ff-spartan);
    font-size: 2.4rem;
    font-weight: 700;
}

/*-----------------------------------*\
          #SOLUTIONS
        \*-----------------------------------*/
.solutions .section-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.title-wrapper {
    position: relative;
    display: inline-block;
}

.title-line {
    height: 6px;
    width: 80px;
    background: var(--gradient-1);
    border-radius: 50px;
    margin-top: 10px;
}

.solutions-list {
    display: grid;
    gap: 25px;
}

.categories-list {
    display: grid;
    gap: 25px;
}

.solution-card {
    background: var(--white-1);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(175, 172, 172, 0.1);
    transition: var(--transition-1);
}

    .solution-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-3);
    }

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .card-icon span {
        font-size: 32px;
    }

.card-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: var(--ff-spartan);
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--granite-gray);
}

    .card-list-item span {
        font-size: 18px;
    }

/* Specific Card Colors */
.card-finance .card-icon {
    background: rgba(181, 0, 88, 0.1);
    color: #b50058;
}

.card-finance .card-list-item span {
    color: #b50058;
}

.card-pro .card-icon {
    background: rgba(76, 64, 223, 0.1);
    color: #4c40df;
}

.card-pro .card-list-item span {
    color: #4c40df;
}

.card-realestate .card-icon {
    background: rgba(255, 165, 4, 0.1);
    color: #815100;
}

.card-realestate .card-list-item span {
    color: #815100;
}

.card-comm .card-icon {
    background: rgba(180, 19, 64, 0.1);
    color: #b41340;
}

.card-comm .card-list-item span {
    color: #b41340;
}

/*-----------------------------------*\
          #HOW IT WORKS
        \*-----------------------------------*/
.how-it-works {
    background-color: #eae7e7;
    position: relative;
    overflow: hidden;
}

    .how-it-works .section-header {
        text-align: center;
        margin-bottom: 60px;
    }

.steps-container {
    display: grid;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.step-card {
    background: var(--white-1);
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.step-1 .step-number {
    background: var(--gradient-1);
}

.step-2 .step-number {
    background: #4c40df;
}

.step-3 .step-number {
    background: #815100;
}

.step-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.step-text {
    color: var(--granite-gray);
    line-height: 1.6;
}

/*-----------------------------------*\
          #CTA
        \*-----------------------------------*/
.cta {
    padding-block: 80px;
}

.cta-banner {
    background: var(--gradient-1);
    border-radius: 40px;
    padding: 60px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .cta-banner::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 250px;
        height: 250px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        transform: translate(30%, -30%);
        filter: blur(50px);
    }

.cta-title {
    font-size: 3.6rem;
    margin-bottom: 25px;
    color: white;
}

.cta-text {
    font-size: 1.8rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-inline: auto;
}

.cta-btn {
    background: white;
    color: var(--winter-sky);
    font-size: 2rem;
    padding-inline: 40px;
    height: 64px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

    .cta-btn:hover {
        background: #f9f6f5;
        transform: scale(1.05);
    }

/*-----------------------------------*\
          #FOOTER
        \*-----------------------------------*/
.footer {
    background-color: #f3f0ef;
    padding-block: 60px 30px;
    border-top: 1px solid rgba(175, 172, 172, 0.2);
}

    .footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-link {
    font-size: 1.4rem;
    font-weight: 600;
    transition: var(--transition-1);
}

    .footer-link:hover {
        color: var(--winter-sky);
        text-decoration: underline;
        text-underline-offset: 5px;
    }

.copyright {
    font-size: 1.4rem;
    color: var(--granite-gray);
}

/*-----------------------------------*\
          #LOAN SECTION STYLES
        \*-----------------------------------*/
.loan-section {
    padding-block: var(--section-padding);
    background-color: #f9f6f5;
}

.loan-grid {
    display: grid;
    gap: 40px;
    align-items: stretch; /* Aligns items to match height */
}

.loan-form-card {
    background: var(--white-1);
    padding: 30px;
    border-radius: var(--radius-24);
    box-shadow: var(--shadow-3);
    display: flex;
    flex-direction: column;
}

.loan-title {
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1.1;
    text-align: right;
}

    .loan-title .highlight {
        color: var(--winter-sky);
    }

.loan-desc {
    color: var(--granite-gray);
    margin-bottom: 30px;
    font-size: 1.6rem;
    text-align: right;
    max-width: 650px;
}
/* Info Blocks Styles */
.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-block {
    background: var(--white-1);
    padding: 25px;
    border-radius: var(--radius-24);
    box-shadow: var(--shadow-3);
    border-right: 5px solid var(--winter-sky);
}

.info-block-title {
    font-size: 2.2rem;
    font-family: var(--ff-spartan);
    margin-bottom: 12px;
    color: var(--black);
}

.info-block-content {
    font-size: 1.5rem;
    color: var(--granite-gray);
    line-height: 1.6;
}

    .info-block-content ul {
        padding-top: 10px;
    }

    .info-block-content li {
        margin-bottom: 8px;
        display: flex;
        gap: 8px;
    }

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: var(--fw-700);
    margin-bottom: 8px;
    font-size: 1.4rem;
    text-align: right;
}

.help-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.help-type-btn {
    background-color: #f3f0ef;
    padding: 15px 5px;
    border-radius: var(--radius-12);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

    .help-type-btn.active {
        border-color: var(--winter-sky);
        background-color: var(--white-1);
        color: var(--winter-sky);
    }

    .help-type-btn .material-symbols-outlined {
        font-size: 24px;
        color: var(--winter-sky);
    }

    .help-type-btn span:last-child {
        font-size: 1.3rem;
        font-weight: 600;
    }

.input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--granite-gray);
    font-weight: 700;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: #f3f0ef;
    border: none;
    border-radius: var(--radius-12);
    padding: 15px;
    font-size: 1.5rem;
    color: var(--black);
    font-family: inherit;
}

.form-input {
    padding-right: 35px;
}

.btn-large {
    width: 100%;
    margin-top: auto; /* Pushes button to bottom */
    height: 60px;
    font-size: 1.8rem;
}

.quick-cotact-expert-box {
    margin-top: 30px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffeef2 100%);
    padding: 40px 30px;
    border-radius: var(--radius-24);
    text-align: center;
    border: 1px solid #cccccc;
}

.quick-loan-box {
    margin-top: 50px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffeef2 100%);
    padding: 40px 30px;
    border-radius: var(--radius-24);
    text-align: center;
    border: 1px solid #ffe1d1;
}

    .quick-loan-box h3 {
        font-size: 2.8rem;
        margin-bottom: 10px;
        font-family: var(--ff-spartan);
    }

    .quick-loan-box p {
        color: var(--granite-gray);
        margin-bottom: 30px;
        font-size: 1.5rem;
    }

.quick-form {
    display: grid;
    gap: 15px;
    max-width: 500px;
    margin-inline: auto;
}

    .quick-form input {
        background: rgba(255,255,255,0.8);
        border: 1px solid rgba(0,0,0,0.05);
        padding: 15px;
        border-radius: var(--radius-12);
        font-size: 1.5rem;
    }

.btn-contact {
    background-color: var(--winter-sky);
    color: white;
    padding-block: 15px;
    border-radius: var(--radius-12);
    font-weight: 800;
    font-size: 1.8rem;
    margin-top: 10px;
}

/*-----------------------------------*\
          #CONTACT SECTION STYLES
        \*-----------------------------------*/
.contact-section {
    background-color: #eae7e7;
}

.contact-card {
    background: var(--white-1);
    padding: 40px 30px;
    border-radius: var(--radius-24);
    box-shadow: var(--shadow-3);
    max-width: 800px;
    margin-inline: auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    margin-bottom: 10px;
}

.contact-subtitle {
    color: var(--granite-gray);
    font-size: 1.6rem;
    max-width: 500px;
    margin-inline: auto;
}

.contact-form {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .loan-grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .loan-content {
        text-align: right;
    }

    .loan-title {
        text-align: center;
    }

    .loan-desc {
        text-align: center;
        margin-inline: auto;
    }


    .quick-form {
        /*grid-template-columns: 1fr 1fr;*/
    }

        .quick-form button {
            grid-column: span 2;
            max-width: 200px;
            margin-inline: auto;
            width: 100%;
        }

    .contact-form {
        grid-template-columns: 1fr 1fr;
    }

        .contact-form .form-group:nth-child(3),
        .contact-form .form-group:nth-child(4),
        .contact-form .btn-large {
            grid-column: span 2;
        }
}

/*-----------------------------------*\
    #thinking animation styles     
\*-----------------------------------*/

.thinking-container {
    text-align: center;
}

.dots {
    display: inline-flex;
    gap: 6px;
    margin-top: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #38bdf8;
    opacity: 0.2;
    animation: bounce 1s infinite ease-in-out;
}

    .dot:nth-child(2) {
        animation-delay: 0.15s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.3s;
    }

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.2;
    }

    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.thinking-message {
    font-size: 1.8rem;
    letter-spacing: 0.03em;
}

/*-----------------------------------*\
    #Typing animation styles     
\*-----------------------------------*/
#cursor {
    display: inline-block;
    font-weight: bold;
    margin-right: 3px;
    color: #4a4a4a;
}

.blink {
    animation: blink 0.8s steps(1) infinite;
    direction: rtl;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

#airesponse {
    direction: rtl;
    text-align: right;
    font-family: "Assistant", sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    white-space: normal; /* חשוב! */
}

    /* פסקאות */
    #airesponse p {
        margin: 0 0 8px 0; /* ChatGPT משתמש ב־8px */
        padding: 0;
        font-size: 1.8rem;
        color: #202020;
    }

    /* ביטול רווחים מיותרים בין אלמנטים */
    #airesponse * {
        line-height: 1.6;
        margin-top: 0 !important;
    }

    /* ביטול רווחים שנוצרים בגלל שורות ריקות שהמודל מחזיר */
    #airesponse p:empty,
    #airesponse li:empty {
        display: none;
    }

    /* רשימות */
    #airesponse ul {
        margin: 0 0 8px 0;
        padding-right: 20px; /* RTL */
        font-size: 1.8rem;
        list-style-type: disc;
        list-style-position: outside;
    }

    #airesponse li {
        margin: 0 0 4px 0;
        padding: 0;
        list-style: disc;
    }

/*-----------------------------------*\
          #MEDIA QUERIES
        \*-----------------------------------*/
@media (min-width: 575px) {
    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    :root {
        --fs-1: 5rem;
        --fs-2: 4rem;
    }

    .hero {
        text-align: right;
    }

        .hero .container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            gap: 40px;
        }

    .hero-btns {
        justify-content: flex-start;
    }

    .hero-text {
        margin-inline: 0;
    }

    .hero-banner {
        order: 2;
    }

    .hero-content {
        order: 1;
    }

    .stats-float {
        display: flex;
    }

    .solutions-list {
        grid-template-columns: 1fr 1fr;
    }

    .categories-list {
        grid-template-columns: 1fr 1fr;
    }

    .how-it-works .container {
        padding-inline: 40px;
    }
}

@media (min-width: 992px) {
    .header .container {
        padding-inline: 40px;
    }

    .nav-toggle-btn {
        display: none;
    }

    .navbar {
        all: unset;
        display: block;
    }

    .navbar-list {
        flex-direction: row-reverse;
        padding: 0;
        gap: 35px;
    }

    .header .btn-cta {
        display: flex;
        height: 44px;
        padding-inline: 20px;
        font-size: 1.4rem;
    }

    .solutions-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

        .steps-container::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background: rgba(175, 172, 172, 0.3);
            z-index: -1;
        }

    .cta-banner {
        padding: 80px;
    }

    .cta-title {
        font-size: 5rem;
    }

    .footer .container {
        flex-direction: row-reverse;
        justify-content: space-between;
        text-align: right;
    }
}

@media (min-width: 1200px) {
    :root {
        --fs-1: 6rem;
    }

    .container {
        max-width: 1200px;
    }

    .solutions .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

        .solutions .section-header p {
            max-width: 350px;
            text-align: right;
            margin-bottom: 5px;
        }
}
