/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Higuen:wght@400;500;600&family=Montserrat:wght@400;500;600&display=swap');

/* Global Styles */
:root {
    --primary-color: #102854;
    --secondary-color: #33547F;
    --accent-color: #748BAA;
    --light-color: #C2CCD9;
    --dark-color: #0A2D5F;
    --text-color: #333;
    --text-light: #5A6B82;
    --box-shadow: 0 5px 15px rgba(16, 40, 84, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-family: 'Higuen', serif;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    margin: 0;
}

.logo-text p {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    padding: 0.5rem 0;
    top: 100%;
    right: 0;
    z-index: 1;
}

.dropdown-content a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--text-color);
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(1.15) contrast(1.05) saturate(1.08);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more i {
    font-size: 0.8rem;
    margin: 0;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid #e1e6f0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 84, 176, 0.2);
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e6f0;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Why Choose Us */
.why-us {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature p {
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-left: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    overflow: visible;
}

.about-image img {
    width: 260px;
    height: 340px;
    object-fit: cover;
    border-radius: 50% / 60%;
    display: block;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 1.5rem;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    font-family: 'Higuen', serif;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-family: 'Montserrat', sans-serif;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ecf0f1;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-right: 5px;
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 9999;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: var(--transition);
}

.mobile-menu.active {
    display: block;
    right: 0;
}

/* Backdrop behind mobile menu */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9500;
}

.mobile-backdrop.active {
    display: block;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessibility Floating Button */
.a11y-button {
    position: fixed;
    left: 16px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 12000;
}

.a11y-button i { font-size: 22px; }

/* Accessibility Panel */
.a11y-panel {
    position: fixed;
    left: 16px;
    bottom: 84px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 14px;
    width: 260px;
    max-width: calc(100% - 32px);
    display: none;
    z-index: 12001;
}

.a11y-panel.active { display: block; }

.a11y-panel h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Accessibility Backdrop */
.a11y-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 11990;
}

.a11y-backdrop.active { display: block; }

.a11y-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-controls button {
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    cursor: pointer;
}
.a11y-controls button:hover { background: #eef2f7; }

/* High contrast mode already declared earlier; ensure text links readable */
body.high-contrast a { color: #00e5ff !important; }

/* Readable font */
body.readable-font { font-family: "Arial", "Heebo", "Rubik", "Noto Sans Hebrew", sans-serif; }

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    background: #ffffff;
    overflow-y: auto;
}

.mobile-menu-content a {
    color: var(--dark-color);
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu-content a:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

/* Accessibility Features */
.high-contrast {
    filter: contrast(150%) brightness(120%);
}

.high-contrast * {
    background: black !important;
    color: white !important;
    border-color: white !important;
}

.monochrome {
    filter: grayscale(100%);
}

.accessibility-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.accessibility-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Focus indicators for better accessibility */
*:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3498db;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        padding-left: 0;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* No scroll class for mobile menu */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Hide desktop nav on mobile - rely on mobile-menu */
    .nav-links { display: none; }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--dark-color);
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a:hover {
        background-color: #f8f9fa;
        color: var(--secondary-color);
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        padding-right: 1rem;
        background-color: #f8f9fa;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        border-bottom: none;
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }

    .logo {
        gap: 10px;
    }

    .logo-image {
        width: 65px;
        height: 65px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .logo {
        gap: 8px;
    }

    .logo-image {
        width: 55px;
        height: 55px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }
}
