/* ===== SWISS BANK PROFESSIONAL STYLING ===== */

/* CSS Variables */
:root {

/* FORCE ALEF FONT - HIGH PRIORITY */
body, * {
    font-family: 'Alef', Arial, sans-serif !important;
}

/* Override for English content */
.en, [lang="en"] {
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-600: #525252;
    --gray-900: #171717;

    /* Typography */
    --font-hebrew: 'Alef', Arial, sans-serif;
    --font-english: 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Helvetica Neue', Consolas, monospace;

    /* Swiss Bank Grid System */
    --border-width: 2px;
    --grid-gap: 2px;
    --container-max: 1200px;
    --section-padding: 120px;
    --card-padding: 40px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.4;
}

body {
    font-family: var(--font-hebrew);
    background: var(--white);
    color: var(--black);
    font-weight: 400;
    direction: rtl;
    overflow-x: hidden;
}

/* Typography Scale */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }

/* English Content Direction */
.en, [lang="en"] {
    direction: ltr;
    font-family: var(--font-english);
}

/* ===== HEADER SYSTEM ===== */
.header {
    background: var(--white);
    border-bottom: var(--border-width) solid var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 24px 32px;
    gap: 40px;
}

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

.logo-type {
    font-family: var(--font-english);
    font-size: 32px;
    font-weight: 100;
    letter-spacing: -1px;
    color: var(--black);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 48px;
    justify-self: start;
}

.nav-item {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: var(--black);
    position: relative;
    transition: color 0.15s ease;
    padding: 8px 0;
    cursor: pointer;
    border: none;
    background: none;
}

.nav-item:hover {
    color: var(--gray-600);
}

.nav-item.active {
    color: var(--black);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -26px;
    left: 0;
    right: 0;
    height: var(--border-width);
    background: var(--black);
}

/* ===== MAIN LAYOUT ===== */
.main-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    display: none;
    padding: 80px 0 var(--section-padding);
}

.section.active {
    display: block;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 100;
    font-family: var(--font-english);
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 300;
    line-height: 1.4;
}

/* ===== SWISS BANK GRID SYSTEM ===== */

/* Hero Grid */
.hero {
    border-bottom: 1px solid var(--gray-200);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 100;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 32px;
    font-family: var(--font-english);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--gray-600);
    font-weight: 300;
    margin-bottom: 48px;
    line-height: 1.3;
}

/* Meta Information Grid */
.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

.meta-value {
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-english);
}

/* Stats Panel */
.stats-panel {
    background: var(--gray-50);
    padding: var(--card-padding);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.current-value {
    font-size: 64px;
    font-weight: 100;
    font-family: var(--font-english);
    letter-spacing: -2px;
    margin-bottom: 8px;
    line-height: 1;
}

.value-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.change-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
}

.change-positive {
    color: var(--black);
}

.change-arrow {
    font-size: 12px;
    font-family: var(--font-english);
}

/* ===== GEOMETRIC CARD SYSTEM ===== */

/* Data Grid with Black Borders */
.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    background: var(--black);
    margin-top: 60px;
}

.data-card {
    background: var(--white);
    padding: var(--card-padding) 32px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: default;
}

.data-card:hover {
    background: var(--black);
    color: var(--white);
}

.data-number {
    font-size: 36px;
    font-weight: 100;
    font-family: var(--font-english);
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1;
}

.data-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Forecast Grid */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    background: var(--black);
}

.forecast-item {
    background: var(--white);
    padding: var(--card-padding) 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.forecast-item:hover {
    background: var(--black);
    color: var(--white);
}

.forecast-period {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.forecast-item:hover .forecast-period {
    color: var(--gray-300);
}

.forecast-value {
    font-size: 42px;
    font-weight: 100;
    font-family: var(--font-english);
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1;
}

.forecast-change {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-english);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    background: var(--black);
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 60px var(--card-padding);
    transition: all 0.2s ease;
    cursor: default;
}

.service-card:hover {
    background: var(--black);
    color: var(--white);
}

.service-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    font-family: var(--font-english);
    line-height: 1.2;
}

.service-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 4px 0;
    font-size: 14px;
    opacity: 0.7;
    position: relative;
    padding-right: 20px;
}

.service-features li::before {
    content: '—';
    position: absolute;
    right: 0;
    font-weight: 500;
}

/* ===== CHART CONTAINERS ===== */
.chart-section {
    padding: var(--section-padding) 0;
}

.chart-container {
    background: var(--white);
    border: var(--border-width) solid var(--black);
    padding: var(--card-padding);
    margin-top: 40px;
    width: 100%;
    position: relative;
    height: 0;
    padding-bottom: 50%;  /* 2:1 aspect ratio for time series */
}

.chart-container > div {
    position: absolute;
    top: var(--card-padding);
    left: var(--card-padding);
    right: var(--card-padding);
    bottom: var(--card-padding);
}

.forecast-container {
    background: var(--gray-50);
    padding: 60px;
    margin: 60px 0;
    border: 1px solid var(--gray-200);
}

.forecast-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 40px;
    font-family: var(--font-english);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid var(--gray-200);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    margin-top: 60px;
}

.content-column h3 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 24px;
    font-family: var(--font-english);
    line-height: 1.2;
}

.content-column p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.info-list {
    list-style: none;
    margin-top: 32px;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-right: 20px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: '→';
    position: absolute;
    right: 0;
    color: var(--black);
    font-weight: bold;
}

/* ===== ABOUT SECTION ===== */
.about-intro {
    font-size: 24px;
    line-height: 1.5;
    color: var(--gray-600);
    margin-bottom: 80px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a,
.footer-column p {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    display: block;
    margin-bottom: 12px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.6;
}

/* ===== METHODOLOGY SPECIFIC ===== */
.methodology-section {
    max-width: 800px;
    margin: 0 auto 80px;
}

.methodology-section h3 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 24px;
    font-family: var(--font-english);
}

.methodology-section p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.formula-display {
    font-family: var(--font-mono);
    font-size: 24px;
    background: var(--gray-50);
    padding: 40px;
    margin: 32px 0;
    text-align: center;
    border: 1px solid var(--gray-200);
    letter-spacing: 0;
    direction: ltr;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error-state {
    color: var(--gray-600);
    font-style: italic;
    text-align: center;
    padding: 40px;
}

/* ===== RESPONSIVE (Minimal) ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Chart responsive behavior */
    .chart-container {
        padding: 20px;
        margin-top: 20px;
        min-height: 320px;
    }
    
    .chart-container > div {
        min-height: 280px;
    }
    
    .forecast-container {
        padding: 30px;
        margin: 30px 0;
    }
}

/* Mobile-specific chart adjustments */
@media (max-width: 768px) {
    .chart-container {
        padding: 16px;
        margin-top: 16px;
        border-width: 1px;
        min-height: 280px;
    }
    
    .chart-container > div {
        min-height: 240px;
    }
    
    .forecast-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .main-container {
        padding: 0 16px;
    }
}