@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Heebo:wght@400;600;700&display=swap');

:root {
    --concrete-gray: #4B5563;
    --engineering-blue: #1E40AF;
    --engineering-blue-dark: #1E3A8A;
    --safety-orange: #EA580C;
    --deep-gray: #111827;
    --muted-gray: #6B7280;
    --line-gray: #D1D5DB;
    --background: #F3F4F6;
    --surface: #FFFFFF;
    --soft-blue: #EFF6FF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

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

body {
    font-family: 'Roboto', 'Heebo', 'Arial', sans-serif;
    background: var(--background);
    color: var(--deep-gray);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

html[lang="he"] body {
    font-family: 'Heebo', 'Roboto', 'Arial', sans-serif;
}

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

a:hover {
    color: var(--engineering-blue);
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: var(--engineering-blue);
    color: #fff;
    border-radius: var(--radius-sm);
    z-index: 9999;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    background: var(--soft-blue);
    color: var(--engineering-blue);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--deep-gray);
    margin: 14px 0 10px 0;
}

.section-subtitle {
    color: var(--muted-gray);
    font-size: 16px;
}

.top-bar {
    background: var(--engineering-blue);
    color: #E5E7EB;
    font-size: 14px;
    padding: 10px 0;
}

.top-bar .bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.top-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-header {
    background: #0F172A;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--engineering-blue), var(--engineering-blue-dark));
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.brand h1 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 18px;
}

nav ul li a {
    color: #E5E7EB;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch,
.btn,
.btn-secondary,
.btn-ghost {
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lang-switch {
    background: var(--soft-blue);
    color: var(--engineering-blue);
}

.btn {
    background: linear-gradient(135deg, var(--engineering-blue), var(--engineering-blue-dark));
    color: #fff;
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.2);
}

.btn-secondary {
    background: #fff;
    color: var(--engineering-blue);
    border: 1px solid var(--line-gray);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.lang-switch:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero {
    position: relative;
    min-height: 68vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.82), rgba(30, 64, 175, 0.55));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    max-width: 760px;
    padding: 90px 0 70px;
}

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(239, 246, 255, 0.2);
    color: #E0E7FF;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: #E5E7EB;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--soft-blue);
    color: var(--engineering-blue);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

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

.metric-card {
    background: var(--surface);
    border: 1px solid var(--line-gray);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--engineering-blue);
    margin-bottom: 4px;
}

.metric-label {
    color: var(--muted-gray);
    font-weight: 600;
    font-size: 14px;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: center;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-gray);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 14px;
}

.card img.cover {
    border-radius: var(--radius-md);
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 20px;
    color: var(--deep-gray);
}

.card p {
    color: var(--muted-gray);
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.feature-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--deep-gray);
}

.feature-list li::before {
    content: '•';
    color: var(--engineering-blue);
    font-weight: 700;
}

.product-card,
.project-card,
.team-card,
.news-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-gray);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-rows: auto 1fr;
}

.product-media,
.project-media,
.news-media {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.product-media img,
.project-media img,
.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(30, 64, 175, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.card-body h3 {
    font-size: 18px;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    background: var(--soft-blue);
    color: var(--engineering-blue);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}

.spec-table th {
    background: var(--engineering-blue);
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 700;
}

.spec-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line-gray);
    color: var(--deep-gray);
}

.spec-table tr:nth-child(even) {
    background: #F9FAFB;
}

.highlight-panel {
    background: linear-gradient(135deg, #111827, #1E293B);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 26px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.contact-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-gray);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
}

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

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-gray);
    background: #fff;
    font-size: 15px;
    color: var(--deep-gray);
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--engineering-blue);
    border-color: var(--engineering-blue);
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    border-left: 3px solid var(--engineering-blue);
    padding-left: 16px;
}

.timeline-item h4 {
    margin-bottom: 6px;
}

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

.gallery img {
    border-radius: var(--radius-md);
    height: 200px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-gray);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.stat-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-pill {
    background: var(--surface);
    border: 1px solid var(--line-gray);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    font-weight: 700;
}

.footer {
    background: #0B1224;
    color: #E5E7EB;
    padding: 50px 0 30px;
    margin-top: 40px;
}

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

.footer h3 {
    margin-bottom: 12px;
    color: #fff;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer a {
    color: #E5E7EB;
}

.footer a:hover {
    color: #fff;
}

.subfooter {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9CA3AF;
}

@media (max-width: 960px) {
    nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar .bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* RTL adjustments */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] nav ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar,
[dir="rtl"] .top-bar .bar-content,
[dir="rtl"] .hero-content,
[dir="rtl"] .section-header {
    text-align: right;
}

[dir="rtl"] .timeline-item {
    border-left: none;
    border-right: 3px solid var(--engineering-blue);
    padding-left: 0;
    padding-right: 16px;
}

[dir="rtl"] .brand,
[dir="rtl"] .top-meta,
[dir="rtl"] .nav-actions,
[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}
