/* The Same Day - Dental Clinic - Design System */

/* Google Sans and Google Sans Hebrew */
@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;
    
    /* Colors */
    --color-dark: #231f20;
    --color-gold: #b49264;
    --color-cream: #ecdfc9;
    --color-light: #faf8f4;
    --color-gold-hover: #9c7b4f;
    --color-whatsapp: #25D366;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: white;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

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

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

.ltr-dir {
    direction: ltr;
    display: inline-block;
}

/* Failsafe SVG Fills */
.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;
}

/* Navigation & Header */
.glass-nav {
    background: rgba(35, 31, 32, 0.25);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#main-header {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-header.scrolled {
    background: rgba(35, 31, 32, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(236, 223, 201, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Header Logo Hanging Tab Wrapper (nofal style) */
.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 10px 18px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    margin-top: -16px;
    margin-bottom: -10px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 60;
}

@media (min-width: 1024px) {
    .logo-wrapper {
        padding: 16px 28px;
        margin-top: -24px;
        margin-bottom: -16px;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    }
}

/* Logo Image Prominent Default State */
.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    filter: none;
}

@media (min-width: 1024px) {
    .logo-img {
        height: 84px; /* Big & prominent before scroll */
    }
}

/* Scrolled Header Logo State */
#main-header.scrolled .logo-wrapper {
    background-color: transparent !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#main-header.scrolled .logo-img {
    height: 36px;
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.5));
}

@media (min-width: 1024px) {
    #main-header.scrolled .logo-img {
        height: 48px;
    }
}

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

/* Gold Gradient Background */
.gold-gradient-bg {
    background: linear-gradient(135deg, #160c09 0%, #2f1d16 100%);
}

.btn-gold-gradient {
    background: linear-gradient(135deg, var(--color-gold) 0%, #ecd0a5 100%);
    color: var(--color-dark) !important;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(180, 146, 100, 0.25);
    border: 1px solid rgba(236, 223, 201, 0.3);
}

.btn-gold-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 146, 100, 0.4);
    opacity: 0.95;
}

/* 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;
    }
}

/* Mobile Floating Capsule Actions Dock */
.mobile-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 40px); /* Start shifted down */
    opacity: 0;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 320px;
    height: 64px;
    border-radius: 32px;
    display: none;
    z-index: 9999;
    background: rgba(22, 12, 9, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(236, 223, 201, 0.2);
    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;
}

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

.action-item {
    color: var(--color-cream);
    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-dark);
    box-shadow: 0 4px 12px rgba(180, 146, 100, 0.4);
}

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

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

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

/* Glassmorphism Cards & Modals */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-modal {
    background: rgba(35, 31, 32, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(180, 146, 100, 0.2);
}

.form-input-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(180, 146, 100, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.form-input-dark:focus {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(180, 146, 100, 0.25);
    outline: none;
}

/* Slow Star Rotation */
@keyframes rotateStarSlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.rotate-star {
    animation: rotateStarSlow 12s linear infinite;
    transform-origin: center;
}

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

/* Technology Text Fade effect */
.fade-text-gradient {
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark) 55%, rgba(35, 31, 32, 0.35) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
