/* 
 * Kova Premium - Stylesheet
 * Vibe: Ultra-minimalist luxury dark mode with crimson red accents
 * Layout: No-Scroll (strict viewport fitting)
 * RTL Localized
 */

/* 1. IMPORTS & CSS VARIABLE TOKENS */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

:root {
    /* Brand Colors */
    --color-bg-dark: #06070B;           /* Deep Black Background */
    --color-accent-cyan: #02b5d6;    /* Vibrant Crimson Red */
    --color-accent-dark-cyan: #008fa9; /* Muted Crimson Red */
    --color-accent-gold: #F59E0B;       /* Amber Gold for urgency/trust */
    
    /* Text Colors */
    --color-text-primary: #FFFFFF;      /* White */
    --color-text-secondary: #E2E8F0;    /* Slate-200 */
    --color-text-muted: #94A3B8;        /* Slate-400 */
    --color-text-dark: #475569;         /* Slate-600 */

    /* Typography */
    --font-primary: 'Google Sans', 'Google Sans Hebrew', sans-serif;
    
    /* Animation & Physics Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.3s var(--ease-out-expo);
    --transition-fast: all 0.15s var(--ease-out-expo);
}

/* 2. GENERAL RESET & BASE STYLES */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Strict no-scroll constraint */
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Helpers */
.ltr-dir {
    direction: ltr;
    display: inline-block;
}

/* Focus Outline for Keyboard Navigation (A11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-accent-cyan);
    outline-offset: 2px;
}

/* Skip Link for Keyboard Users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent-cyan);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* 3. AMBIENT GLOW EFFECTS */
.ambient-glow {
    position: absolute;
    top: -10%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 181, 214, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* 4. VIEWPORT WRAPPER */
.viewport-wrapper {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal layout overflow */
    position: relative;
    z-index: 1;
    /* Red-themed background positioned left, fading to deep black on the right (RTL layout) */
    background: linear-gradient(to left, 
        var(--color-bg-dark) 0%, 
        var(--color-bg-dark) 15%, 
        rgba(6, 7, 11, 0.6) 40%, 
        rgba(6, 7, 11, 0.2) 75%,
        rgba(6, 7, 11, 0) 100%), 
        url('hero_background3.webp') left center / cover no-repeat;
}

/* 5. SITE HEADER */
.site-header {
    height: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(6, 7, 11, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}
.header-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Design */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text-primary);
}
.brand-logo-svg {
    width: 40px;
    height: 40px;
    color: var(--color-text-primary);
    transition: transform 0.3s var(--ease-out-expo);
}
.brand-logo:hover .brand-logo-svg {
    transform: rotate(5deg) scale(1.05);
}
.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 5px;
}
.brand-name-part2 {
    color: var(--color-accent-cyan);
}

/* Header Infinite Marquee */
.header-marquee {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    width: 320px;
    direction: ltr !important; /* Force LTR alignment for seamless infinite loop */
    mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.marquee-track {
    display: flex;
    animation: marqueeScroll 15s linear infinite;
    width: max-content;
}
.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.marquee-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}
.marquee-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-accent-cyan);
    border-radius: 50%;
    margin: 0 16px;
    flex-shrink: 0;
}
@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Header Contact & CTA Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.header-phone-link:hover {
    color: var(--color-accent-cyan);
}
.header-phone-icon {
    width: 18px;
    height: 18px;
}

/* 6. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 10px; /* Separates the WhatsApp icon and text by exactly 10px */
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-dark-cyan) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(2, 181, 214, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(2, 181, 214, 0.45), 0 0 15px rgba(2, 181, 214, 0.2);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-header {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* 7. HERO SECTION */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 8%;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.hero-content {
    width: 52%;
    max-width: 680px;
    z-index: 2;
    animation: fadeInRight 1s var(--ease-out-expo);
}
.content-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* H1 Title */
.hero-title {
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
}
.title-line {
    display: block;
}
.highlighted-text {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--color-accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(2, 181, 214, 0.1);
}

/* Subheadline */
.hero-subheadline {
    color: var(--color-text-secondary);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.6;
    font-weight: 400;
    max-width: 600px;
    text-wrap: balance;
}

/* Urgency Timer Banner */
.urgency-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: flex-start;
    background: rgba(2, 181, 214, 0.06);
    border: 1px solid rgba(2, 181, 214, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.timer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent-cyan);
    letter-spacing: 0.05em;
    border-inline-end: 1px solid rgba(2, 181, 214, 0.2);
    padding-inline-end: 12px;
}
.timer-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent-cyan);
    animation: timerPulse 1.5s infinite;
}
.timer-display-box {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}
.timer-icon {
    width: 16px;
    height: 16px;
    color: var(--color-accent-cyan);
}
.timer-label {
    color: var(--color-text-muted);
}
.timer-countdown {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    letter-spacing: 0.02em;
    min-width: 50px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}
.timer-suffix {
    color: var(--color-accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

/* CTA Actions Area */
.cta-actions-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: flex-start;
}
.btn-cta {
    padding: 16px 36px;
    font-size: 1.15rem;
    border-radius: 50px;
}
.btn-whatsapp-icon {
    transition: transform 0.3s var(--ease-out-expo);
}
.btn-cta:hover .btn-whatsapp-icon {
    transform: scale(1.1) rotate(-5deg);
}
.cta-notice {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding-right: 16px;
}

/* Empty column to keep text to the right on desktop */
.hero-visual-placeholder {
    flex: 1;
    height: 100%;
}

/* 8. FOOTER INFO BAR */
.footer-info-bar {
    height: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(6, 7, 11, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 0 8%;
    z-index: 10;
}
.footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Trust Card */
.trust-proof-card {
    display: flex;
    align-items: center;
    gap: 16px;
}
.trust-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(2, 181, 214, 0.1);
    border: 1px solid rgba(2, 181, 214, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-cyan);
}
.trust-card-icon svg {
    width: 22px;
    height: 22px;
}
.trust-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trust-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}
.trust-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Benefit Tags */
.benefit-tags-container {
    display: flex;
    gap: 12px;
}
.benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}
.benefit-tag:hover {
    background-color: rgba(2, 181, 214, 0.05);
    border-color: rgba(2, 181, 214, 0.2);
    transform: translateY(-1px);
}
.tag-bullet {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent-cyan);
    border-radius: 50%;
}

/* 9. FLOATING WIDGETS (Bottom-Left WhatsApp & Bottom-Right Call) */
.floating-whatsapp,
.floating-phone {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    z-index: 999;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.floating-whatsapp {
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.floating-phone {
    right: 30px;
    background: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-dark-cyan) 100%);
    box-shadow: 0 6px 20px rgba(2, 181, 214, 0.4);
}
.floating-whatsapp:hover,
.floating-phone:hover {
    transform: scale(1.08) translateY(-2px);
}
.floating-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}
.floating-phone:hover {
    box-shadow: 0 8px 25px rgba(2, 181, 214, 0.6);
}

.float-ripple,
.phone-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    pointer-events: none;
}
.float-ripple {
    border: 2px solid #25D366;
    animation: whatsappRipple 2s infinite;
}
.phone-ripple {
    border: 2px solid var(--color-accent-cyan);
    animation: whatsappRipple 2s infinite 1s;
}

/* Failsafe SVG Fills */
.floating-whatsapp svg,
.floating-whatsapp svg path,
.btn-whatsapp-icon,
.btn-whatsapp-icon path {
    fill: currentColor !important;
    stroke: none !important;
}

/* 12. RESPONSIVENESS AND VIEWPORT SCALING */
@media (max-width: 1024px) {
    .site-header {
        padding: 0 4%;
    }
    .hero-section {
        padding: 0 6%;
    }
    .hero-content {
        width: 60%;
    }
    .footer-info-bar {
        padding: 0 6%;
    }
}

@media (max-width: 768px) {
    /* Hide ambient glow on mobile to prevent horizontal viewport stretching */
    .ambient-glow {
        display: none !important;
    }

    /* Let body scroll slightly on mobile if viewport overflows, but lock horizontal axis */
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
    }
    
    .viewport-wrapper {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden; /* Force horizontal overflow clipping on mobile container */
        /* Mobile background: top center, fading from transparent at the top to dark black at the bottom */
        background: linear-gradient(to bottom, 
            rgba(6, 7, 11, 0) 0%, 
            rgba(6, 7, 11, 0.3) 30%, 
            rgba(6, 7, 11, 0.75) 65%, 
            var(--color-bg-dark) 100%), 
            url('hero_mobile3.webp') top center / cover no-repeat;
        padding-bottom: 100px; /* Mandatory padding rule for mobile action bar */
    }

    .site-header {
        height: 64px;
        padding: 0 20px;
    }
    .header-marquee {
        display: flex !important; /* Show marquee on mobile left */
        width: 140px;
        mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
    }
    .header-marquee .marquee-content span {
        font-size: 0.78rem;
    }
    .header-marquee .marquee-dot {
        margin: 0 10px;
    }
    .header-actions {
        display: none; /* Hide desktop contact cluster */
    }

    /* Stacked Logo on Mobile */
    .brand-name {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 0.95;
        font-size: 1.2rem;
    }
    .brand-name-part2 {
        margin-top: -1px;
    }
    .brand-logo-svg {
        width: 32px;
        height: 32px;
    }
    .brand-logo {
        gap: 8px;
    }

    /* Mobile Widgets Positioning (Bigger WhatsApp and Call Button) */
    .floating-whatsapp,
    .floating-phone {
        bottom: 24px;
        width: 58px;
        height: 58px;
    }
    .floating-whatsapp {
        left: 20px;
    }
    .floating-phone {
        right: 20px;
    }
    .floating-whatsapp svg {
        width: 28px !important;
        height: 28px !important;
    }
    .floating-phone svg {
        width: 25px !important;
        height: 25px !important;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px 20px;
        text-align: center;
    }
    .hero-content {
        width: 100%;
        max-width: 500px;
        animation: fadeInUp 0.8s var(--ease-out-expo);
    }
    .content-inner {
        align-items: center;
        gap: 16px;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8.5vw, 2.9rem);
        line-height: 1.15;
        align-items: center;
    }
    .hero-subheadline {
        font-size: 1.05rem;
        line-height: 1.5;
        color: var(--color-text-secondary);
        max-width: 100%;
        padding: 0 8px;
    }

    .urgency-banner {
        align-self: center;
        padding: 6px 6px;
        gap: 6px;
    }
    .timer-badge {
        padding-inline-end: 6px;
        gap: 6px;
        font-size: 0.75rem;
    }
    .timer-display-box {
        font-size: 0.8rem;
        gap: 4px;
    }
    .timer-countdown {
        font-size: 0.95rem;
    }

    .cta-actions-area {
        align-self: center;
        width: 100%;
        max-width: 320px;
        gap: 8px;
        margin-top: 12px; /* Push the whatsapp button down slightly */
    }
    .btn-cta {
        width: 100%;
        padding: 14px 28px;
        font-size: 1rem;
    }
    .cta-notice {
        padding-right: 0;
        font-size: 0.8rem;
    }

    .hero-visual-placeholder {
        display: none;
    }

    /* Footer Info Bar Mobile adjustment */
    .footer-info-bar {
        height: auto;
        padding: 20px 16px;
        background-color: var(--color-bg-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .footer-container {
        flex-direction: column-reverse;
        gap: 12px;
        align-items: center;
    }
    .benefit-tags-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }
    .benefit-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 50px;
    }
    .trust-proof-card {
        display: none !important; /* Hide trust card on mobile to optimize space */
    }


}

/* 13. ANIMATIONS */
@keyframes timerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes whatsappRipple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
