/* ========================================
   נעם בר-מימון - קלינאית תקשורת
   Watercolor Theme Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-sky-light: #e8f4f8;
    --color-sky: #c5e4ed;
    --color-sky-medium: #a8d4e3;
    --color-sky-deep: #7bbfd4;
    --color-coral: #c4735c;
    --color-coral-light: #d49380;
    --color-coral-dark: #a85d48;
    --color-text: #3a4a5c;
    --color-text-light: #5a6a7c;
    --color-white: #ffffff;
    --color-cream: #faf8f5;
    
    /* Rainbow Colors */
    --rainbow-red: #e74c3c;
    --rainbow-orange: #f39c12;
    --rainbow-yellow: #f1c40f;
    --rainbow-green: #2ecc71;
    --rainbow-blue: #3498db;
    --rainbow-purple: #9b59b6;
    
    /* WhatsApp */
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    
    /* Fonts */
    --font-display: 'Amatic SC', cursive;
    --font-heading: 'Secular One', sans-serif;
    --font-body: 'Heebo', sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-sky-light);
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(232, 244, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-coral);
    transition: var(--transition-fast);
}

.nav-logo:hover {
    color: var(--color-coral-dark);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-coral);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-coral);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-coral);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(200, 230, 245, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(180, 220, 240, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 212, 227, 0.4) 0%, transparent 70%),
        linear-gradient(180deg, var(--color-sky-light) 0%, var(--color-sky) 50%, var(--color-sky-medium) 100%);
    z-index: 0;
}

/* Watercolor texture overlay */
.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
}

/* Rainbow decoration */
.rainbow-decoration {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: 
        conic-gradient(
            from 180deg at 50% 100%,
            var(--rainbow-red) 0deg,
            var(--rainbow-orange) 25deg,
            var(--rainbow-yellow) 50deg,
            var(--rainbow-green) 75deg,
            var(--rainbow-blue) 100deg,
            var(--rainbow-purple) 125deg,
            transparent 150deg
        );
    border-radius: 50% 50% 0 0;
    opacity: 0.3;
    filter: blur(20px);
    transform: scaleY(0.5);
    animation: rainbowPulse 8s ease-in-out infinite;
}

@keyframes rainbowPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5) scale(1); }
    50% { opacity: 0.4; transform: scaleY(0.5) scale(1.05); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--color-coral);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-sky-deep);
    margin-bottom: 30px;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-coral-dark) 100%);
    color: var(--color-white);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(196, 115, 92, 0.3);
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 115, 92, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-icon {
    font-size: 1.4rem;
}

/* ========================================
   Section Styles
   ======================================== */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-coral);
    text-align: center;
    margin-bottom: 15px;
}

.section-intro {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* ========================================
   About / Therapy Areas Section
   ======================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--color-cream);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--color-sky-light) 0%, var(--color-cream) 100%);
}

.therapy-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.therapy-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.therapy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--rainbow-red),
        var(--rainbow-orange),
        var(--rainbow-yellow),
        var(--rainbow-green),
        var(--rainbow-blue),
        var(--rainbow-purple)
    );
    opacity: 0;
    transition: var(--transition-smooth);
}

.therapy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.therapy-card:hover::before {
    opacity: 1;
}

.therapy-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.therapy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-coral);
    margin-bottom: 15px;
}

.therapy-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: var(--section-padding) 0;
    background: 
        linear-gradient(180deg, var(--color-cream) 0%, var(--color-sky-light) 30%, var(--color-sky) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: rgba(196, 115, 92, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    left: 20px;
    right: auto;
}

.lightbox-prev {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--color-sky) 0%, var(--color-sky-deep) 100%);
    padding: var(--section-padding) 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-coral-dark);
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.contact-item:hover {
    color: var(--color-coral);
}

.contact-icon {
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text);
    transition: var(--transition-fast);
    position: relative;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-coral);
    padding-right: 10px;
}

.footer-map {
    min-width: 300px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    transition: var(--transition-smooth);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

.whatsapp-float:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.1);
    animation: none;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(232, 244, 248, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero-subtitle br {
        display: none;
    }
    
    .rainbow-decoration {
        width: 200px;
        height: 200px;
        bottom: 5%;
        left: -5%;
    }
    
    .therapy-areas {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .therapy-card {
        padding: 25px 20px;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-coral);
    outline-offset: 3px;
}
