/* --- משתני צבעים ועיצוב --- */
:root {
    --primary-black: #1a1a1a;
    --gold: #C5A059;
    --gold-gradient: linear-gradient(135deg, #C5A059 0%, #a68444 100%);
    --light-bg: #d4d4d4;
    --white: #ffffff;
    --text-gray: #3d4750;
    --accent-green: #1a8a6a;
    --accent-teal: #0d7d6a;
    --accent-blue: #2563a0;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 15px 35px rgba(0,0,0,0.12);
    --border-radius: 16px;
}

/* --- הגדרות בסיס --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Heebo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    background-image: radial-gradient(#c8c8c8 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--primary-black);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* --- Skip Navigation (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent-green);
    color: var(--white);
    padding: 12px 24px;
    z-index: 10000;
    font-weight: 700;
    border-radius: 0 0 8px 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle at center, #e0e0e0 0%, #d4d4d4 100%);
    padding: 100px 8% 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--gold);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.hero-logo img {
    width: 130px;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--primary-black);
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--accent-green);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(26, 138, 106, 0.15);
    z-index: -1;
    transform: skewX(-15deg);
}

.cta-button {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--white);
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.5);
}

.cta-button:focus-visible {
    outline: 3px solid var(--accent-green);
    outline-offset: 3px;
}

.cta-button--large {
    padding: 20px 60px;
    font-size: 1.3rem;
}

.cta-button--large i {
    margin-right: 10px;
}

.sub-text {
    display: block;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #c0392b;
    letter-spacing: 0.5px;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Services Grid --- */
.services {
    padding: 100px 8%;
    background-color: transparent;
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    margin: 20px auto 0;
    border-radius: 2px;
}

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

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-teal) 100%);
    opacity: 0;
    transition: 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-15px);
}

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

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(26, 138, 106, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: 0.3s;
}

.card i {
    font-size: 2.2rem;
    color: var(--accent-green);
    transition: 0.3s;
}

.card:hover .icon-wrapper {
    background: var(--accent-green);
}

.card:hover i {
    color: var(--white);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-teal);
}

.card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* --- Why Choose Us (Split Section) --- */
.why-section {
    padding: 40px 8% 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.why-box {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(26, 138, 106, 0.2);
}

.why-box h3 {
    color: var(--primary-black);
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.why-box h3 span {
    color: var(--accent-green);
}

.why-list {
    list-style: none;
}

.why-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.why-list li i {
    color: var(--accent-green);
    font-size: 1.3rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.why-list li strong {
    color: var(--primary-black);
    display: block;
    margin-bottom: 3px;
}

/* --- Details & Target Audience --- */
.info-section {
    padding: 80px 8%;
    background: linear-gradient(45deg, var(--primary-black), #2a2a2a);
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius);
    margin: 0 8% 60px;
    box-shadow: var(--shadow-md);
}

.info-section h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #4dd9a8;
}

.info-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Contact Section (CRM Link) --- */
.contact {
    padding: 60px 8% 100px;
    text-align: center;
}

.contact p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-black);
    color: #aaa;
    text-align: center;
    padding: 30px;
    font-size: 0.95rem;
}

footer strong {
    color: var(--accent-green);
}

/* --- Focus Styles (Accessibility) --- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-green);
    outline-offset: 2px;
}

/* --- Top Bar / Language Switcher --- */
.top-bar {
    background: var(--primary-black);
    padding: 8px 8%;
    display: flex;
    justify-content: flex-end;
}

.lang-switcher {
    display: inline-flex;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    color: #ddd;
    border: none;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.is-active {
    background: var(--gold-gradient);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(197,160,89,0.4);
}

/* RTL/LTR-aware arrow inside CTA */
[dir="ltr"] .arrow-rtl {
    transform: rotate(180deg);
}

/* Footer extra links */
.footer-links {
    margin-top: 8px;
    font-size: 0.9rem;
}
.footer-links a {
    color: var(--accent-green);
    text-decoration: underline;
}
.footer-links a:hover { color: #4dd9a8; }

/* --- Accessibility Widget Toggle Button --- */
.a11y-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563a0 0%, #1e4d80 100%);
    color: var(--white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 18px rgba(37,99,160,0.45);
    z-index: 9998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.a11y-toggle:hover { transform: scale(1.1); }
.a11y-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* --- Accessibility Panel --- */
.a11y-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 9999;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    direction: inherit;
}

.a11y-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563a0 0%, #1e4d80 100%);
    color: var(--white);
    border-radius: 14px 14px 0 0;
}

.a11y-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.a11y-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.a11y-close:hover { background: rgba(255,255,255,0.15); }

.a11y-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
}

.a11y-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    background: #f4f6f8;
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.a11y-btn i { font-size: 1.2rem; color: var(--accent-blue); }
.a11y-btn:hover { background: #e9eef4; }
.a11y-btn.is-active {
    background: rgba(26,138,106,0.12);
    border-color: var(--accent-green);
    color: var(--accent-teal);
}
.a11y-btn.is-active i { color: var(--accent-green); }

.a11y-btn.a11y-reset {
    grid-column: 1 / -1;
    background: #fff3f3;
    color: #a02525;
}
.a11y-btn.a11y-reset i { color: #a02525; }
.a11y-btn.a11y-reset:hover { background: #ffe5e5; }

.a11y-footer {
    padding: 10px 20px 16px;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
}
.a11y-footer a { color: var(--accent-blue); text-decoration: underline; }

/* --- Accessibility State Modes (applied on <html>) --- */

/* High contrast (yellow on black) */
html.a11y-contrast,
html.a11y-contrast body {
    background: #000 !important;
    background-image: none !important;
    color: #ffeb3b !important;
}
html.a11y-contrast *:not(.a11y-toggle):not(.a11y-toggle *):not(.a11y-panel):not(.a11y-panel *) {
    background-color: transparent !important;
    background-image: none !important;
    color: #ffeb3b !important;
    border-color: #ffeb3b !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html.a11y-contrast a,
html.a11y-contrast a * { color: #00e5ff !important; }
html.a11y-contrast .icon-wrapper { background: transparent !important; border: 2px solid #ffeb3b !important; }

/* Invert colors */
html.a11y-invert {
    filter: invert(1) hue-rotate(180deg);
}
html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert .a11y-toggle,
html.a11y-invert .a11y-panel {
    filter: invert(1) hue-rotate(180deg);
}

/* Grayscale */
html.a11y-grayscale { filter: grayscale(100%); }
html.a11y-invert.a11y-grayscale { filter: invert(1) hue-rotate(180deg) grayscale(100%); }

/* Highlight links */
html.a11y-links a:not(.lang-btn):not(.cta-button):not(.whatsapp-float):not(.a11y-toggle) {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    background: #fff59d !important;
    color: #0d47a1 !important;
    padding: 0 3px !important;
    border-radius: 3px !important;
}

/* Readable font */
html.a11y-readable,
html.a11y-readable * {
    font-family: Arial, Verdana, Tahoma, sans-serif !important;
    letter-spacing: 0.02em !important;
}

/* Increased text spacing */
html.a11y-spacing,
html.a11y-spacing * {
    line-height: 2 !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
}

/* Pause animations */
html.a11y-pause *,
html.a11y-pause *::before,
html.a11y-pause *::after {
    animation-play-state: paused !important;
    animation-duration: 0s !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
html.a11y-pause .fade-in {
    opacity: 1 !important;
    transform: none !important;
}

/* --- Accessibility Statement Page --- */
.a11y-statement {
    max-width: 900px;
    margin: 60px auto;
    padding: 50px 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.a11y-statement h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--primary-black);
}
.a11y-statement h2 {
    font-size: 1.4rem;
    margin: 30px 0 12px;
    color: var(--accent-teal);
}
.a11y-statement p { color: var(--text-gray); margin-bottom: 12px; }
.a11y-statement ul { margin: 10px 1.5em 20px; color: var(--text-gray); }
.a11y-statement li { margin-bottom: 8px; }
.a11y-statement .back-home {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-blue);
    text-decoration: underline;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .top-bar { padding: 8px 5%; }

    .hero { padding: 60px 5% 80px; }
    .hero-heading-row { flex-direction: column; gap: 15px; }
    .hero-logo img { width: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.1rem; }
    .cta-button { width: 100%; padding: 15px 20px; font-size: 1.1rem; display: block; text-align: center; box-sizing: border-box; }
    .cta-button--large { padding: 15px 20px; font-size: 1.1rem; }

    .services { padding: 60px 5%; margin-top: 0; }
    .grid { gap: 25px; }
    .card { padding: 30px 20px; }

    .why-section { padding: 20px 5% 60px; flex-direction: column; }
    .why-box { padding: 30px 20px; }

    .info-section { margin: 20px 5%; padding: 40px 20px; }
    .info-section h3 { font-size: 1.6rem; }
    .info-section p { font-size: 1.1rem; }

    .contact { padding: 40px 5% 80px; }

    .a11y-toggle { width: 52px; height: 52px; font-size: 24px; bottom: 20px; right: 20px; }
    .a11y-panel { right: 10px; left: 10px; bottom: 85px; width: auto; max-width: none; }

    .a11y-statement { margin: 20px 4%; padding: 30px 20px; }
    .a11y-statement h1 { font-size: 1.6rem; }
}
