/* ─── Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@100..900&display=swap');

/* ─── Design Tokens ──────────────────────────────────── */
:root {
    --red:          #c42a2a;
    --red-bright:   #e03535;
    --red-dim:      rgba(196, 42, 42, 0.18);
    --red-glow:     rgba(196, 42, 42, 0.30);
    --orange:       #d4532a;

    --bg:           #07070a;
    --bg-card:      rgba(10, 10, 15, 0.80);
    --border:       rgba(255, 255, 255, 0.07);
    --border-red:   rgba(196, 42, 42, 0.38);

    --text:         #f0f0f2;
    --text-sub:     #8a8a9a;
    --text-muted:   #48485a;

    --nav-h:        68px;
    --max-w:        1100px;
    --radius:       12px;
    --font:         'Noto Sans Hebrew', system-ui, sans-serif;
}

/* ─── Utilities ──────────────────────────────────────── */
.text-center { text-align: center; }
.strikethrough { text-decoration: line-through !important; }

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font);
}

/* ─── Fixed Background ───────────────────────────────── */
#space { position: fixed; inset: 0; z-index: -1000; }

#planet {
    position: fixed;
    inset: 0;
    background: #000 url('../../images/background.jpg') 50% 0 / cover no-repeat;
    opacity: 0.30;
}

/* ─── Body ───────────────────────────────────────────── */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.i18n-ready {
    opacity: 1;
}

/* ─── Typography ─────────────────────────────────────── */
h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

p {
    color: var(--text-sub);
    line-height: 1.75;
    margin-bottom: 1rem;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--red-bright); }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

img { width: 100%; display: block; }

/* ─── Layout ─────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

main {
    flex-grow: 1;
    padding-top: var(--nav-h);
}

.section-padding { padding: 5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Red dot accent on section headings */
.section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
}

.section-header h2::after {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.section-header.align-right { text-align: right; }

/* ─── Navigation ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(7, 7, 10, 0.70);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s;
}

.navbar.scrolled { background: rgba(7, 7, 10, 0.97); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Small red dot after logo name */
.logo::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.logo:hover { color: var(--text); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
}

.nav-links li a {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-sub);
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links li a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links li a.active {
    color: var(--text);
    background: var(--red-dim);
}

/* ─── Custom Select ──────────────────────────────────── */
.custom-select {
    position: relative;
    user-select: none;
    margin: 0 0.5rem;
    z-index: 100;
}

.select-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    min-width: 60px;
    justify-content: space-between;
}

.select-trigger:hover {
    border-color: var(--border-red);
    background: rgba(255, 255, 255, 0.08);
}

.select-trigger .arrow {
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.custom-select.open .select-trigger .arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 80px;
}

.custom-select.open .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.option {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.option:hover {
    background: var(--red-dim);
    color: var(--text);
}

.option.selected {
    color: var(--red-bright);
    background: rgba(255, 255, 255, 0.03);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ─── Cards ──────────────────────────────────────────── */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-4px);
    border-color: var(--border-red);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px var(--border-red),
        0 0 30px var(--red-dim);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.7em 1.9em;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
    color: #fff;
    box-shadow: 0 4px 18px var(--red-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--red-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red-bright);
    background: var(--red-dim);
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
}

.hero-content {
    z-index: 2;
    animation: fadeUp 0.85s ease forwards;
    opacity: 0;
    transform: translateY(22px);
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--red-bright);
    margin-bottom: 1.25rem;
}

/* Short red bar before subtitle */
.hero-subtitle::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* ─── Media / Video ──────────────────────────────────── */
.media-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--red-bright);
    margin-bottom: 1.25rem;
}

/* Thin red bar accent before panel heading */
.panel-heading::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ─── Social Icon Bar ────────────────────────────────── */
.icon-bar {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 99;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

.icon-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 18px;
    color: #fff;
    font-weight: normal;
    text-decoration: none;
    transition: width 0.22s ease, opacity 0.22s ease;
    opacity: 0.85;
}

.icon-bar a:hover { width: 54px; opacity: 1; }

.icon-bar .soundcloud { background: #f50; }
.icon-bar .spotify { background: #1DB954; }

.icon-bar a img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    display: block;
}

/* ─── Scroll-to-top Button ───────────────────────────── */
#topBtn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 105;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-red);
    outline: none;
    background: rgba(7, 7, 10, 0.88);
    cursor: pointer;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.22s;
}

#topBtn img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    display: block;
    transition: filter 0.22s;
}

#topBtn.visible {
    display: flex;
}

#topBtn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
    background: rgba(5, 5, 8, 0.98);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-disclaimer p {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.8;
    text-align: right;
    white-space: nowrap;
}

.footer-disclaimer {
    width: auto;
    border-bottom: none;
    padding-bottom: 0;
    flex: 1;
}

/* Language specific wrapping */
html[lang="en"] .footer-disclaimer p,
html[lang="ru"] .footer-disclaimer p {
    white-space: normal;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

html[lang="he"] .footer-disclaimer p {
    white-space: nowrap;
}

.footer-main {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
}

.footer-container > div {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-main .logo {
    justify-content: flex-start;
}

.social-links { 
    display: flex;
    justify-content: flex-end; 
    gap: 0.75rem; 
}

.social-links a {
    color: var(--text-sub);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    transition: all 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--red-bright);
    border-color: var(--border-red);
    background: var(--red-dim);
}

.social-links a img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(0.6);
    display: block;
    transition: filter 0.2s;
}

.social-links a:hover img {
    filter: brightness(0) invert(0.75) sepia(1) saturate(4) hue-rotate(320deg);
}

.footer-bottom {
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding-top: 0;
    border-top: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.heart-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
    /* White filter for black SVG */
    filter: brightness(0) invert(1);
}

/* ─── Industry Page ──────────────────────────────────── */
.industry-hero {
    padding: 6rem 0 5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* On small screens, stack the footer */
@media (max-width: 768px) {
    .footer-main {
        gap: 1.25rem;
    }
    
    .footer-disclaimer p {
        white-space: normal;
        text-align: center;
        font-size: 0.7rem;
    }

    .footer-brand-row {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-main .logo, .social-links {
        justify-content: center;
    }
}

.industry-hero p {
    max-width: 520px;
    margin: 1rem auto 0;
    font-size: 1rem;
}

/* Year headings inside the article card */
article.glass-panel h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    border-inline-start: 3px solid var(--red);
    padding-inline-start: 0.85rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

/* ─── Legal Page ─────────────────────────────────────── */
.legal-hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 5rem 0;
}

.legal-hero .container { text-align: center; }

.legal-hero p {
    max-width: 520px;
    margin: 1rem auto 0;
}

.legal-about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content-grid .glass-panel h3 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--red-bright);
    margin-bottom: 1.5rem;
}

.practice-areas {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.practice-areas li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.93rem;
    transition: all 0.2s;
}

/* Dot accent */
.practice-areas li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.practice-areas li:hover {
    background: var(--red-dim);
    border-color: var(--border-red);
    transform: translateX(-4px);
}

.legal-contact-action { margin-top: 2rem; }

/* ─── News Page ──────────────────────────────────────── */
.news-main { padding-top: var(--nav-h); }

.news-section { padding-top: 2rem; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Top accent stripe on news cards */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 2px solid var(--red);
}

.news-date {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--red-bright);
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.news-content {
    flex-grow: 1;
    font-size: 0.93rem;
    margin-bottom: 1.5rem;
}

.btn-read-more { align-self: flex-start; }

/* ─── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.no-scroll { overflow: hidden; }

.fade-in-up-start {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up-end {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-h));
        background: rgba(7, 7, 10, 0.98);
        border-top: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .lang-select {
        margin: 0 0.5rem;
        order: -1; 
    }

    .nav-right {
        order: 1;
    }

    .nav-links li a {
        font-size: 0.95rem;
        padding: 0.65rem 1.5rem;
    }

    .nav-links.active { right: 0; }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

    .hero { min-height: 70vh; padding: 4rem 0 3rem; }

    .hero-actions { flex-direction: column; }

    .glass-panel { padding: 1.5rem; }

    .icon-bar { display: none; }

    #topBtn { right: 16px; bottom: 16px; }

    .news-grid { grid-template-columns: 1fr; }
}
