* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo a img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu[id="nav-menu"] {
    /* Ensure nav menu has ID for aria-controls */
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Sections */
.intro-section,
.philosophy-section {
    padding: 5rem 20px;
    background: var(--white);
}

.intro-content,
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2,
.philosophy-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.intro-content p,
.philosophy-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.philosophy-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.features-section {
    padding: 5rem 20px;
    background: var(--bg-light);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 20px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Pages */
.page-content {
    padding: 4rem 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.content-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    font-size: 1.1rem;
}

.content-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.team-member h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-member .role {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.team-member p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card-content {
    padding: 2rem;
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 20px 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100% !important;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active {
        left: 0 !important;
        z-index: 1000; /* Below language switch button */
        visibility: visible;
        opacity: 1;
    }
    
    /* Ensure language switch button doesn't interfere with mobile menu */
    .lang-switch {
        z-index: 1001;
        position: relative;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid,
    .team-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo a img {
        height: 60px;
    }
}

/* Accessibility Features */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators - Enhanced visibility for accessibility */
*:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px var(--secondary-color);
}

/* High contrast mode focus indicators */
body.high-contrast *:focus,
body.high-contrast button:focus,
body.high-contrast a:focus,
body.high-contrast input:focus,
body.high-contrast textarea:focus,
body.high-contrast select:focus {
    outline: 4px solid #0000ff;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #ffffff;
}

/* High contrast mode */
body.high-contrast {
    --primary-color: #000000;
    --text-color: #000000;
    --text-light: #000000;
    --bg-light: #ffffff;
    --white: #ffffff;
    --border-color: #000000;
    background: #ffffff;
    color: #000000;
}

body.high-contrast a {
    color: #0000ff;
    text-decoration: underline;
}

body.high-contrast .btn {
    border: 2px solid #000000;
}

/* Large text mode */
body.large-text {
    font-size: 125%;
}

body.large-text h1 { font-size: 3.125rem; }
body.large-text h2 { font-size: 2.5rem; }
body.large-text h3 { font-size: 2.1875rem; }
body.large-text p, body.large-text li { font-size: 1.25rem; }

/* Scale specific heading classes in large text mode */
body.large-text .page-header h1 { font-size: 3.75rem; }
body.large-text .page-header p { font-size: 1.5rem; }
body.large-text .section-title { font-size: 3.125rem; }
body.large-text .hero-title { font-size: 5rem; }
body.large-text .hero-subtitle { font-size: 1.125rem; }
body.large-text .hero-tagline { font-size: 1.5rem; }
body.large-text .intro-content h2,
body.large-text .philosophy-content h2 { font-size: 3.125rem; }
body.large-text .intro-content p,
body.large-text .philosophy-content p { font-size: 1.375rem; }
body.large-text .philosophy-content .lead { font-size: 1.625rem; }
body.large-text .content-section h2 { font-size: 2.5rem; }
body.large-text .content-section p { font-size: 1.375rem; }
body.large-text .content-section ul li { font-size: 1.375rem; }
body.large-text .feature-card h3 { font-size: 1.875rem; }
body.large-text .feature-card p { font-size: 1.25rem; }
body.large-text .team-member h3 { font-size: 1.875rem; }
body.large-text .team-member .role { font-size: 1.125rem; }
body.large-text .team-member p { font-size: 1.25rem; }
body.large-text .project-card h3 { font-size: 1.875rem; }
body.large-text .project-card p { font-size: 1.25rem; }

/* Text size options (can be combined with other options) */
body.text-size-smaller {
    font-size: 90%;
}

body.text-size-smaller h1 { font-size: 2rem; }
body.text-size-smaller h2 { font-size: 1.75rem; }
body.text-size-smaller h3 { font-size: 1.5rem; }

body.text-size-normal {
    font-size: 100%;
}

body.text-size-larger {
    font-size: 125%;
}

body.text-size-larger h1 { font-size: 2.5rem; }
body.text-size-larger h2 { font-size: 2rem; }
body.text-size-larger h3 { font-size: 1.75rem; }
body.text-size-larger p, body.text-size-larger li { font-size: 1.25rem; }

body.text-size-largest {
    font-size: 150%;
}

body.text-size-largest h1 { font-size: 3rem; }
body.text-size-largest h2 { font-size: 2.5rem; }
body.text-size-largest h3 { font-size: 2rem; }
body.text-size-largest p, body.text-size-largest li { font-size: 1.5rem; }

body.text-size-extra-large {
    font-size: 200%;
}

body.text-size-extra-large h1 { font-size: 4rem; }
body.text-size-extra-large h2 { font-size: 3.5rem; }
body.text-size-extra-large h3 { font-size: 3rem; }
body.text-size-extra-large p, body.text-size-extra-large li { font-size: 2rem; }
body.text-size-extra-large .hero-title { font-size: 6rem; }
body.text-size-extra-large .page-header h1 { font-size: 5rem; }
body.text-size-extra-large .section-title { font-size: 4.5rem; }

/* Underline links */
body.underline-links a {
    text-decoration: underline;
}

/* Accessibility widget */
.accessibility-widget {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 9999;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    min-width: 250px;
    max-width: 300px;
}

@media (max-width: 768px) {
    .accessibility-widget {
        left: 10px;
        right: 10px;
        bottom: 90px;
        min-width: auto;
        max-width: none;
    }
}

.accessibility-widget h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.accessibility-widget button,
.accessibility-widget .accessibility-option-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: left;
}

.accessibility-widget button:hover,
.accessibility-widget .accessibility-option-btn:hover {
    background: #2a2a2a;
}

.accessibility-widget button:last-child,
.accessibility-widget .accessibility-option-btn:last-child {
    margin-bottom: 0;
}

.accessibility-widget .accessibility-option-btn.active {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.accessibility-widget .accessibility-option-btn.active:hover {
    background: #c9a030;
}

.accessibility-widget select {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.accessibility-widget select:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.accessibility-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.accessibility-toggle:hover {
    background: #2a2a2a;
    transform: scale(1.1);
}

.accessibility-toggle:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ARIA live regions */
[role="alert"],
[role="status"] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Language Switch Button */
.lang-switch {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1001; /* Above mobile menu */
}

.lang-switch:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.lang-switch:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* RTL Support */
body.rtl,
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav-menu a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .accessibility-widget {
    left: auto;
    right: 80px;
}

html[dir="rtl"] .accessibility-toggle {
    left: 20px;
    right: auto;
}

html[dir="rtl"] .text-center {
    text-align: center;
}

/* Hebrew Font Support */
body.rtl,
html[dir="rtl"] {
    font-family: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'Heebo', 'Playfair Display', serif;
}

/* RTL arrow direction fix - ensure arrows display correctly */
html[dir="rtl"] span[dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block;
    text-align: left;
}

/* Ensure arrow sequences are always LTR even in RTL context */
/*
html[dir="rtl"] [data-i18n*="endToEndDesc"],
html[dir="rtl"] [data-i18n*="approachText2"] {
    text-align: center;
}

html[dir="rtl"] [data-i18n*="endToEndDesc"] span[dir="ltr"],
html[dir="rtl"] [data-i18n*="approachText2"] span[dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block;
}
*/
/* RTL adjustments for list bullets - arrows should be on the right */
html[dir="rtl"] .content-section ul {
    padding-right: 0;
    padding-left: 0;
}

html[dir="rtl"] .content-section ul li {
    padding-left: 0;
    padding-right: 2rem;
}

html[dir="rtl"] .content-section ul li::before {
    content: '←';
    left: auto;
    right: 0;
}

/* RTL adjustments for mobile */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-menu {
        right: -100% !important;
        left: auto !important;
    }
    
    html[dir="rtl"] .nav-menu.active {
        right: 0 !important;
        left: auto !important;
    }
    
    html[dir="rtl"] .lang-switch {
        margin-right: 0.5rem;
    }
}

