/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff; /* כחול רפואי */
    --secondary-color: #17a2b8; /* טורקיז */
    --dark-color: #343a40; /* אפור כהה לטקסט */
    --light-color: #f8f9fa; /* אפור בהיר לרקעים */
    --white-color: #ffffff;
    --success-color: #28a745;
    --font-family: 'Heebo', sans-serif; /* פונט נקי ומודרני */
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    direction: rtl;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 1rem; }

p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }
ul { list-style: none; }

section {
    padding: 60px 0;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #6c757d;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.btn-secondary:hover {
    background-color: #117a8b;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Top Bar */
#top-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--light-color);
    transition: all 0.4s ease;
}
.site-header.scrolled #top-bar {
    background-color: var(--primary-color);
    padding: 5px 0;
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-info-top, .opening-hours-top {
    display: flex;
    gap: 20px;
}
.contact-info-top a {
    color: var(--white-color);
    transition: color 0.3s;
}
.contact-info-top a:hover {
    color: #dddddd;
}
.contact-info-top i, .opening-hours-top i {
    margin-left: 5px;
}
.opening-hours-top {
    display: none; /* Hide on mobile */
}

/* Main Header */
#main-header {
    height: var(--header-height);
    transition: height 0.4s ease;
}
.site-header.scrolled #main-header {
    height: 65px;
}
.site-header.transparent .logo a,
.site-header.transparent .main-nav a,
.site-header.transparent .nav-toggle {
    color: var(--white-color);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    transition: color 0.4s ease;
}

.main-nav {
    display: none; /* Hidden on mobile */
}

.btn-header {
    display: none; /* Hidden on mobile */
}

.nav-toggle {
    display: block; /* Visible on mobile */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    transition: color 0.4s ease;
}

/* Mobile Nav Styles */
.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below the entire header */
    right: 0;
    background: var(--white-color);
    width: 100%;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.main-nav.active a {
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid var(--light-color);
    color: var(--dark-color) !important; /* Ensure text is dark on white bg */
}

/* --- Main Content Sections --- */
main {
    /* No padding-top needed as header is transparent initially */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.7)), url('../img/clinic-hero.webp') no-repeat center center/cover;
    color: var(--white-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.hero-section .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Demo Banners */
.demo-banner {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px 0;
    text-align: center;
}
.demo-banner a {
    color: #856404;
    font-weight: 700;
    text-decoration: underline;
}

.demo-cta {
    background-color: var(--dark-color);
    background-image: linear-gradient(rgba(52, 58, 64, 0.95), rgba(52, 58, 64, 0.95)), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--white-color);
}
.demo-cta h2 {
    color: var(--white-color);
    text-align: right;
}
.demo-cta-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.demo-cta-content p {
    color: #e9ecef;
    margin: 1rem 0 1.5rem 0;
}
.demo-cta .btn {
    font-size: 1.1rem;
}
.demo-cta-features h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
}
.demo-cta-features ul {
    list-style: none;
    margin-bottom: 1.5rem;
}
.demo-cta-features ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e9ecef;
}
.demo-cta-features ul li i {
    color: var(--success-color);
}
.price-tag {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    display: inline-block;
    font-weight: 500;
}
.price-tag span {
    font-weight: 700;
    font-size: 1.3rem;
}

/* About Section */
.about-section { background-color: var(--light-color); }
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.about-text ul { margin-top: 1rem; }
.about-text ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.about-text ul li i {
    color: var(--success-color);
    margin-left: 10px;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.service-card {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Why Us Section */
.why-us-section { background-color: var(--light-color); }
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}
.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-color);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.testimonial-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '\f10d'; /* Font Awesome quote-left icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.08;
}
.testimonial-rating {
    margin-bottom: 1rem;
    color: #ffc107; /* Gold color for stars */
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0;
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}
.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}
.faq-question::before {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::before {
    transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}
.faq-answer p {
    padding-top: 15px;
    color: #6c757d;
}

/* Contact Section */
.contact-section { background-color: var(--light-color); }
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}
.contact-form-container h3, .contact-details h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-details .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}
.contact-details .detail-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 25px;
    text-align: center;
    margin-top: 5px;
}
.contact-details .detail-item strong {
    color: var(--dark-color);
}
.contact-details .detail-item a {
    color: var(--dark-color);
    transition: color 0.3s;
}
.contact-details .detail-item a:hover {
    color: var(--primary-color);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 0; /* Fix extra space under iframe */
}

/* --- Animation on Scroll --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.services-grid .fade-in-element:nth-child(2),
.features-grid .fade-in-element:nth-child(2),
.testimonial-grid .fade-in-element:nth-child(2) {
    transition-delay: 0.2s;
}
.services-grid .fade-in-element:nth-child(3),
.features-grid .fade-in-element:nth-child(3) {
    transition-delay: 0.4s;
}
.services-grid .fade-in-element:nth-child(4) {
    transition-delay: 0.6s;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white-color);
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: var(--light-color);
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--primary-color);
}
.social-links a {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 20px;
    font-size: 0.9rem;
}
.footer-bottom a {
    font-weight: 600;
}

/* --- Media Queries (Desktop First) --- */

/* Tablet and small desktops */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    .hero-section h1 { font-size: 4rem; }

    .nav-toggle { display: none; }
    .main-nav {
        display: flex;
        gap: 25px;
    }
    .main-nav a {
        color: var(--dark-color);
        font-weight: 500;
        position: relative;
    }
    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s;
    }
    .main-nav a:hover::after {
        width: 100%;
    }

    .btn-header { display: inline-block; }

    .site-header.transparent .btn-header {
        background-color: var(--white-color);
        color: var(--primary-color);
    }

    .about-content {
        flex-direction: row;
        align-items: center;
    }
    .about-text, .about-image { flex: 1; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { flex-direction: row; align-items: flex-start; }
    .contact-info { flex: 3; }
    .contact-details { flex: 2; padding-right: 30px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    
    .opening-hours-top { display: flex; }

    .demo-cta-grid {
        flex-direction: row;
        align-items: center;
    }
    .demo-cta-content, .demo-cta-features { flex: 1; }
}

/* Large desktops */
@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}