/* Liran Communications & Maintenance - Custom Design System */

/* Google Sans */
@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 {
    --font-heading: 'Google Sans', 'Google Sans Hebrew', sans-serif;
    --font-body: 'Google Sans', 'Google Sans Hebrew', sans-serif;
    
    /* Brand Colors */
    --color-navy: #131b26;
    --color-gold: #b39561;
    --color-gold-hover: #d2b380;
    --color-white: #ffffff;
    --color-muted: #8a99ad;
    --color-whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-navy);
    color: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
}

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

.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-scrolled {
    background: rgba(19, 27, 38, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(179, 149, 97, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Show navigation when header is scrolled */
.header-scrolled #main-nav {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Logo Sizing & Scroll Transition */
#logo-img {
    height: 5.5rem; /* 88px initial */
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-scrolled #logo-img {
    height: 3rem; /* 48px scrolled */
}

#logo-img-mobile {
    height: 3.25rem; /* 52px initial */
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-scrolled #logo-img-mobile {
    height: 2.25rem; /* 36px scrolled */
}

/* Hide scrollbars for overflow-x lists */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Custom Buttons & Hover States */
.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, #ecd0a5 100%);
    color: var(--color-navy) !important;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(179, 149, 97, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 149, 97, 0.4);
    opacity: 0.95;
}

.btn-outline-gold {
    border: 2px solid var(--color-gold);
    color: var(--color-white) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: rgba(179, 149, 97, 0.1);
    border-color: var(--color-gold-hover);
}

/* Background Video Overlay & Styling */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradients to blend video and text */
.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(19, 27, 38, 0.5) 0%, rgba(19, 27, 38, 0.9) 80%);
    z-index: -9;
}

.hero-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--color-navy) 0%, transparent 100%);
    z-index: -9;
}

/* Floating WhatsApp Widget */
.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 ease;
}

.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-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 0);
    width: calc(100% - 32px);
    max-width: 320px;
    height: 64px;
    border-radius: 32px;
    display: none;
    z-index: 9999;
    background: rgba(19, 27, 38, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

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

.action-item {
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.action-item.highlight {
    background: linear-gradient(135deg, var(--color-gold) 0%, #ecd0a5 100%);
    color: var(--color-navy);
    box-shadow: 0 4px 12px rgba(179, 149, 97, 0.4);
}

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

@media (max-width: 768px) {
    .mobile-action-bar {
        display: block; /* Visible ONLY on mobile/tablet */
    }
}

/* Premium Gold Text Gradient */
.text-gold-gradient {
    background: linear-gradient(135deg, #ecd0a5 0%, var(--color-gold) 50%, #b39561 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Floating contact cluster items */
.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-whatsapp-link {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.header-whatsapp-link:hover {
    color: var(--color-whatsapp);
}

.header-phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-phone-link:hover {
    color: var(--color-gold);
}

.header-phone-icon {
    width: 16px;
    height: 16px;
}

/* Logo Marquee Animation */
.logo-marquee-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent 100%);
}

.logo-marquee-track {
    animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
