/* Explain: Base reset, typography, thematic background, and decorative styles. */
[x-cloak] { display: none !important; }

* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: #fdfbf7;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E"),
        radial-gradient(circle at 12% 8%, rgba(212, 175, 55, 0.15), transparent 28rem),
        radial-gradient(circle at 90% 20%, rgba(114, 47, 55, 0.08), transparent 30rem),
        linear-gradient(180deg, #fdfbf7 0%, var(--background-color) 42%, #f1e6d0 100%);
}

body::before {
    content: "אשמנו גזלנו השיבנו והחזירנו בתשובה שלמה לפניך";
    position: fixed;
    inset: 6rem auto auto -4rem;
    z-index: -1;
    width: 18rem;
    color: rgba(114, 47, 55, 0.04);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    transform: rotate(-8deg);
    pointer-events: none;
}

.paper-bg {
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.95), transparent 22rem),
        radial-gradient(circle at 80% 0%, rgba(212, 175, 55, 0.12), transparent 20rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 238, 223, 0.8));
    border: 1px solid var(--border-color);
    box-shadow: var(--paper-shadow);
    transition: all 0.4s ease;
}

/* אנימציות גלילה (Scroll Reveal) */
.reveal-on-scroll {
    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);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* אפקטים ל-Hero (Ken Burns וחלקיקים) */
@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}
.ken-burns-bg {
    animation: ken-burns 30s ease-in-out infinite alternate;
}
@keyframes float-up {
    0% { transform: translateY(10vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-30vh) rotate(360deg); opacity: 0; }
}
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(212,175,55,0.8) 0%, rgba(212,175,55,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-up 15s linear infinite;
}

/* אפקטים יוקרתיים במעבר עכבר */
.btn {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(212, 175, 55, 0.4), 0 4px 8px -4px rgba(114, 47, 55, 0.3);
}
.card, .collapse {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.card:hover, .collapse:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(114, 47, 55, 0.12), 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.gold-text {
    background: linear-gradient(90deg, #f9f1d8, #d4af37, #fdeab8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
}

.campaign-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff8df;
    background:
        linear-gradient(135deg, #4a1f24, var(--primary-color) 52%, #2a1114),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.15), transparent 55%);
    border: 2px solid var(--accent-color);
    border-radius: 1.2rem 2.2rem 1.6rem 2.4rem;
    box-shadow: 0 8px 0 rgba(42, 17, 20, 0.85), 0 16px 35px rgba(42, 17, 20, 0.28);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.section-kicker {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.decor-line {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.decor-line::before,
.decor-line::after {
    content: "";
    width: 3rem;
    height: 1px;
    background: var(--accent-color);
}

.keyword-strip {
    color: rgba(47, 23, 16, 0.45);
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (max-width: 640px) {
    body::before {
        display: none;
    }

    .decor-line::before,
    .decor-line::after {
        width: 1.5rem;
    }
}

/* התאמת ווידג'טים צפים כשיש סרגל תחתי פעיל */
body.show-calc-bar .sec-46-widget,
body.show-calc-bar .chat-widget {
    transform: translateY(-115px);
}
@media (min-width: 768px) {
    body.show-calc-bar .sec-46-widget,
    body.show-calc-bar .chat-widget {
        transform: translateY(-120px);
    }
}