:root {
    --bg: #f4f8fb;
    --surface: #ffffff;
    --surface-2: #eef5fa;
    --text: #1a2b3b;
    --muted: #678198;
    --border: rgba(18, 65, 104, 0.12);
    --primary: #236a8c;
    --primary-2: #62b4d8;
    --accent: #8fd3c9;
    --shadow: 0 18px 45px rgba(22, 61, 94, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Heebo', sans-serif;
    background: linear-gradient(180deg, #f8fbfd 0%, var(--bg) 100%);
    color: var(--text);
}

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

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

.app-nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 800;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary);
}

.btn-brand {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border: 0;
    padding: 0.85rem 1.35rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(22, 61, 94, 0.16);
}

.btn-outline-brand {
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 16px;
    padding: 0.85rem 1.35rem;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--primary);
    color: #fff;
}

.hero {
    padding: 5rem 0 3rem;
}

.hero-card,
.card-soft,
.admin-card,
.form-shell {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 2rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(143, 211, 201, 0.18);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.display-he {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 1rem 0;
}

.text-muted-soft {
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stat {
    padding: 1rem;
    border-radius: 20px;
    background: var(--surface-2);
    text-align: center;
    font-size: 0.98rem;
}

.hero-stat strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.section {
    padding: 1.5rem 0 4.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--muted);
    max-width: 720px;
    margin-bottom: 2rem;
}

.service-card,
.article-card,
.testimonial-card,
.faq-card,
.contact-card,
.admin-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-card,
.article-card,
.testimonial-card,
.contact-card {
    padding: 1.5rem;
    height: 100%;
}

.icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #236a8c, #62b4d8);
    color: #ffffff;

    font-size: 1.6rem;

    box-shadow: 0 12px 30px rgba(35, 106, 140, 0.25);

    margin-bottom: 1rem;

    transition: all 0.3s ease;
}

/* אפקט hover */
.service-card:hover .icon-badge {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 16px 40px rgba(35, 106, 140, 0.35);
}

/* האייקון עצמו */
.icon-badge i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4;
}

.card-copy {
    color: var(--muted);
    line-height: 1.9;
}

.list-check {
    padding-right: 1.2rem;
    margin: 0;
}

.list-check li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.page-hero {
    padding: 3rem 0 2rem;
}

.page-panel {
    padding: 2rem;
}

.rich-content p {
    line-height: 1.95;
    margin-bottom: 1rem;
}

.rich-content ul {
    padding-right: 1.25rem;
}

.contact-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-pill {
    padding: 1rem;
    background: var(--surface-2);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.site-footer {
    padding: 3rem 0 1.5rem;
    background: #0f2433;
    color: #e8f1f5;
    margin-top: 3rem;
}

.footer-title {
    font-weight: 800;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-text,
.footer-contact,
.footer-links {
    color: #b7c7d3;
    padding: 0;
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: #dbe8ef;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-contact a:hover,
.footer-contact a:focus {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 0.9rem 1rem;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(35, 106, 140, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(35, 106, 140, 0.12);
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.form-shell {
    padding: 1.8rem;
}

/* ============================= */
/* WhatsApp Floating Button */
/* ============================= */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px; /* RTL */
    z-index: 9999;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

/* האייקון */
.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;

    transition: transform 0.2s ease, filter 0.2s ease;
}

/* hover */
.whatsapp-float:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

.admin-layout {
    background: #f3f7fa;
    min-height: 100vh;
}

.admin-sidebar {
    min-height: 100vh;
    background: #10273a;
    color: #fff;
    padding: 1.5rem;
    position: sticky;
    top: 0;
}

.admin-sidebar a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.45rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-card {
    padding: 1.35rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
}

.metric-label {
    color: var(--muted);
}

.admin-table-wrap {
    overflow: auto;
}

.table-modern {
    margin: 0;
}

.table-modern th,
.table-modern td {
    vertical-align: middle;
    white-space: nowrap;
}

.badge-soft {
    background: rgba(35, 106, 140, 0.12);
    color: var(--primary);
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
}

a.badge-soft.slot-status-action {
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

a.badge-soft.slot-status-action:hover {
    background: rgba(35, 106, 140, 0.22);
    color: var(--primary);
    box-shadow: 0 0 0 2px rgba(35, 106, 140, 0.25);
}

a.badge-soft.slot-status-action.slot-status-busy {
    background: rgba(220, 53, 69, 0.14);
    color: #842029;
}

a.badge-soft.slot-status-action.slot-status-busy:hover {
    background: rgba(220, 53, 69, 0.26);
    color: #63171f;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.alert-custom {
    border-radius: 18px;
    border: 0;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

@media (max-width: 991px) {
    .hero-stats,
    .contact-strip {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0 2.5rem;
    }

    .hero-card,
    .page-panel,
    .form-shell,
    .service-card,
    .article-card,
    .testimonial-card,
    .contact-card {
        padding: 1.25rem;
    }

    .wa-icon {
        width: 80px;
        height: 80px;
    }

    .whatsapp-float {
        width: 70px;
        height: 70px;
        bottom: 15px;
        left: 15px;
    }
}