/* Heebo font family for Hebrew and Latin */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap');

:root {
    --font-heading: 'Heebo', sans-serif;
    --font-body: 'Heebo', sans-serif;
    
    /* Brand Colors */
    --color-yellow: #ffd600;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-whatsapp: #25D366;
}

/* Global Zero Border Radius */
*, ::before, ::after {
    border-radius: 0 !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black); /* Dark theme for full-bleed background */
    color: var(--color-white);
    min-height: 100vh;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

h1, h2, h3 {
    text-wrap: balance;
}

/* RTL Number & Phone Protection helper */
.ltr-dir {
    direction: ltr;
    display: inline-block;
}

/* Failsafe SVG Fills: Guarantees solid-filled icons do not render as messy overlapping outlines */
.header-whatsapp-icon,
.header-whatsapp-icon path,
.desktop-whatsapp-float svg,
.desktop-whatsapp-float svg path,
.mobile-action-bar svg[fill="currentColor"],
.mobile-action-bar svg[fill="currentColor"] path,
.social-links svg,
.social-links svg path {
    fill: currentColor !important;
    stroke: none !important;
}

/* Header Base and Padding Transition */
#main-header {
    padding-top: 16px;
    padding-bottom: 16px;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 1024px) {
    #main-header {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

#main-header.scrolled {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07) !important;
}

#main-header.scrolled nav a {
    color: rgba(0, 0, 0, 0.7) !important;
}

#main-header.scrolled nav a:hover {
    color: #000000 !important;
}

#main-header.scrolled .header-phone-link {
    color: rgba(0, 0, 0, 0.7) !important;
}

#main-header.scrolled .header-phone-link:hover {
    color: #000000 !important;
}

#main-header.scrolled .header-cta {
    background-color: #000000 !important;
    color: #ffffff !important;
}

#main-header.scrolled .header-cta:hover {
    background-color: #ffd600 !important;
    color: #000000 !important;
}

#main-header.scrolled .mobile-cta {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

/* Header Logo Shrink Animation */
.header-logo {
    height: 48px; /* Default height for mobile */
    width: auto;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .header-logo {
        height: 56px; /* Medium screen height */
    }
}

@media (min-width: 1024px) {
    .header-logo {
        height: 64px; /* Large screen default height */
    }
}

#main-header.scrolled .header-logo {
    height: 36px; /* Shrunk height for mobile scroll */
}

@media (min-width: 768px) {
    #main-header.scrolled .header-logo {
        height: 40px; /* Shrunk height for medium scroll */
    }
}

@media (min-width: 1024px) {
    #main-header.scrolled .header-logo {
        height: 44px; /* Shrunk height for desktop scroll */
    }
}

/* Layout: Content Column Spacing (No extra left/right padding to prevent doubling) */
@media (min-width: 1024px) {
    .hero-content-col {
        padding-top: 50px; /* 50px padding from top */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content-col {
        padding-top: 112px !important; /* Header (88px) + 24px = 112px */
        padding-bottom: 70px;
    }
}



/* Floating WhatsApp Widget (Desktop Only) */
.desktop-whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.75;
    z-index: -1;
    animation: whatsappRipple 2s infinite ease-in-out;
}

.desktop-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappRipple {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .desktop-whatsapp-float {
        display: none !important; /* Hidden on mobile */
    }
}

/* Mobile Floating Capsule Actions Dock (Mobile/Tablet Only) */
.mobile-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 40px); /* Start hidden/shifted down */
    opacity: 0;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 320px;
    height: 64px;
    border-radius: 32px;
    display: none; /* Hidden by default, toggled via JS */
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Force hidden strictly on desktop screens (wider than 768px) */
@media (min-width: 769px) {
    .mobile-action-bar {
        display: none !important;
    }
}

.mobile-action-bar.visible {
    transform: translate(-50%, 0); /* Visible state */
    opacity: 1;
    pointer-events: auto;
}

.mobile-action-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 16px;
}

.action-item {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-item.highlight {
    background: var(--color-yellow);
    color: #000000;
    border: 1px solid var(--color-black);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.action-icon {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 100px; /* Spacing rule to prevent overlap clipping */
    }
}

/* Custom micro-animations and micro-interactions */
.btn-primary-transition {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary-transition:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.15);
}
.btn-primary-transition:active {
    transform: translateY(0);
}

/* Premium Entrance Animations (Staggered fade in & slide up) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 150ms;
}

.delay-200 {
    animation-delay: 300ms;
}

.delay-300 {
    animation-delay: 450ms;
}

/* Scroll-triggered Entrance Animations (Intersection Observer) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Scrollbar Hide Utility class */
.scrollbar-none {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-none::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Infinite Marquee animations */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    direction: ltr; /* Force LTR direction for consistent scroll coordinates */
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 3.5rem; /* ~56px gap between logos */
    animation: marqueePlay 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueePlay {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Graphic Square/Grid Background Decoration inside cards (Dark theme) */
.card-grid-bg {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
}

/* Graphic Square/Grid Background Decoration inside cards (Light theme + Radial mask) */
.card-grid-bg-light {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    
    /* Radial gradient mask to fade grid lines towards the edges */
    mask-image: radial-gradient(circle, black 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle, black 35%, transparent 75%);
}

/* Masonry Gallery Structure */
@media (max-width: 767px) {
    .masonry-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
    }

    .masonry-item {
        margin-bottom: 0;
        width: 100%;
        display: block;
    }

    .masonry-item img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
}

@media (min-width: 768px) {
    .masonry-gallery {
        column-count: 3; /* 3 columns on desktop and tablets */
        column-gap: 1.5rem;
        width: 100%;
    }

    .masonry-item {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        display: inline-block;
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Mobile Hero Infinite Marquee Ticker */
.mobile-marquee-track {
    display: flex;
    width: max-content;
    animation: mobileMarqueePlay 20s linear infinite;
    direction: ltr; /* Keeps translation direction uniform */
}

.mobile-marquee-track img {
    flex-shrink: 0;
}

@keyframes mobileMarqueePlay {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Looping translation of duplicate set */
    }
}

/* Custom Minimalist Checkbox Appearance */
input[type="checkbox"].appearance-none {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    vertical-align: middle;
}

input[type="checkbox"].appearance-none:checked::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ─── WhatsApp Lead Capture Modal ──────────────────────────────────────────── */
.wa-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wa-modal.active {
    opacity: 1;
    visibility: visible;
}

.wa-modal-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 36px 32px 32px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-modal.active .wa-modal-card {
    transform: translateY(0) scale(1);
}

.wa-modal-close {
    position: absolute;
    top: 12px;
    left: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.wa-modal-close:hover { color: #000; }

.wa-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    color: #fff;
}

.wa-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.wa-modal-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 22px;
    line-height: 1.55;
}

.wa-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.wa-modal-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wa-modal-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #222;
}

.wa-modal-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 1rem;
    color: #111;
    background-color: #f7f8fa;
    border: 1.5px solid #e2e6ec;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.wa-modal-input::placeholder { color: #aaa; }

.wa-modal-input:focus {
    border-color: #000;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.07);
}

.wa-modal-input.wa-error {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.wa-modal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    color: #fff;
    background-color: #25d366;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.wa-modal-submit:hover {
    background-color: #1dbb5a;
    transform: translateY(-2px);
}

.wa-modal-submit:active { transform: translateY(0); }



/* Right-align phone input fields */
input[type="tel"] {
    direction: rtl;
    text-align: right;
}

/* Custom Video Player Accent & Hover Controls Styling */
.hastudio-testimonial-video {
    accent-color: var(--color-yellow);
}

/* Hide native controls state by default when playing unless hovered */
.video-card video::-webkit-media-controls {
    transition: opacity 0.3s ease;
}

.video-card:not(:hover) video:not(.paused-manually)::-webkit-media-controls {
    opacity: 0 !important;
}

.video-card:hover video::-webkit-media-controls {
    opacity: 1 !important;
}


