/* e:\Alan AI\agency-projects\proporsal\index.css */

/* Fonts & Base Customization */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap');

:root {
    --color-navy: #182F47;
    --color-sand: #E1DACF;
    --color-dust: #D6CCCD;
    --color-cream: #FAF6F1;
    --font-heading: 'Noto Sans Hebrew', 'Noto Sans', sans-serif;
    --font-body: 'Noto Sans Hebrew', 'Noto Sans', sans-serif;
    --font-logo: 'Cormorant Garamond', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-navy);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* RTL Number Reversal Protection */
.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;
}

/* Desktop Bottom-Left Fixed WhatsApp Widget */
.desktop-whatsapp-float {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 20px rgba(18, 140, 126, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.desktop-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(18, 140, 126, 0.5);
}

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

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

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

/* Mobile Floating Capsule Actions Dock */
.mobile-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    width: calc(100% - 32px);
    max-width: 320px;
    height: 64px;
    border-radius: 32px;
    display: none; /* Strictly hidden on desktop by default */
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(24, 47, 71, 0.15);
    background: rgba(250, 246, 241, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(225, 218, 207, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .mobile-action-bar {
        display: block; /* Visible ONLY on mobile/tablet viewports */
    }
    .mobile-action-bar.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }
    body {
        padding-bottom: 100px !important; /* Prevent overlay clipping */
    }
}

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

.action-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-navy);
    background: transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.action-item:active {
    transform: scale(0.92);
}

.action-item.highlight {
    background: var(--color-navy);
    color: var(--color-cream);
    box-shadow: 0 4px 12px rgba(24, 47, 71, 0.25);
}

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

/* Custom Header & Navigation styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-navy);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-light::after {
    background-color: var(--color-cream);
}

/* Hero Section */
.hero-overlay {
    background: linear-gradient(180deg, rgba(24, 47, 71, 0.45) 0%, rgba(24, 47, 71, 0.55) 70%, rgba(24, 47, 71, 0.65) 100%);
}

/* SVG Dome Curve Bottom Mask */
.hero-bottom-curve {
    position: absolute;
    bottom: -1px; /* Avoid subpixel gap */
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

.hero-bottom-curve svg {
    display: block;
    width: 100%;
    height: 100px; /* Controls curve depth on desktop */
}

@media (max-width: 768px) {
    .hero-bottom-curve svg {
        height: 50px; /* Shallower curve on mobile */
    }
}

/* Elegant logo font family classes */
.logo-font {
    font-family: var(--font-logo);
    text-transform: uppercase;
}

/* Page scroll header transition */
header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

header .nav-divider {
    border-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

header.scrolled {
    background: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(24, 47, 71, 0.05);
    border-bottom: 1px solid rgba(24, 47, 71, 0.1);
}

header.scrolled .nav-divider {
    border-color: rgba(24, 47, 71, 0.1);
}

header.scrolled .logo-font {
    color: var(--color-navy) !important;
}

header.scrolled .nav-link-light {
    color: var(--color-navy) !important;
}

header.scrolled .nav-link-light::after {
    background-color: var(--color-navy);
}

header.scrolled .header-phone-link {
    color: var(--color-navy) !important;
}

header.scrolled .header-whatsapp-link {
    color: var(--color-navy) !important;
}

header.scrolled .cta-btn-light {
    background-color: var(--color-navy) !important;
    color: var(--color-cream) !important;
    border-color: var(--color-navy) !important;
}

header.scrolled .cta-btn-light:hover {
    background-color: var(--color-sand) !important;
    color: var(--color-navy) !important;
}

/* Logo Styling */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    transition: all 0.5s ease;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    transition: all 0.5s ease;
}

/* Scrolled adjustments */
header.scrolled .logo-wrapper {
    background: transparent;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

header.scrolled .logo-img {
    height: 70px;
    width: auto;
    border-radius: 0;
}
