:root {
    --brand-blue: #123d96;
    --brand-green: #2f8358;
    --ink-strong: #0f1d3b;
    --ink-mid: #355180;
    --surface-main: #f7f9fd;
    --surface-panel: #ffffff;
    --line-soft: rgba(18, 61, 150, 0.14);
    --ease-premium: cubic-bezier(0.32, 0.72, 0, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-strong);
    background:
        radial-gradient(circle at 12% 18%, rgba(18, 61, 150, 0.13), transparent 42%),
        linear-gradient(180deg, #fbfdff 0%, #f7f9fd 100%);
    font-family: "Plus Jakarta Sans", "Heebo", sans-serif;
    line-height: 1.55;
}

h1, h2, h3 {
    font-family: "Heebo", "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    background-image:
        radial-gradient(rgba(17, 53, 122, 0.09) 0.6px, transparent 0.6px),
        radial-gradient(rgba(17, 53, 122, 0.04) 0.6px, transparent 0.6px);
    background-size: 4px 4px, 6px 6px;
    background-position: 0 0, 2px 2px;
}

.floating-nav {
    position: sticky;
    top: 1rem;
    z-index: 50;
    padding: 0 0.75rem;
}

.nav-shell {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0.38rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 40px rgba(17, 45, 105, 0.14);
    backdrop-filter: blur(16px);
}

.nav-link {
    position: relative;
    padding: 0.3rem 0.05rem;
    color: #344d79;
    font-weight: 700;
    transition: color 0.24s var(--ease-premium);
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.05rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: width 0.26s var(--ease-premium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--brand-blue);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > button.nav-link {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    min-width: 15.5rem;
    padding: 0.7rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line-soft);
    box-shadow: 0 16px 32px rgba(12, 34, 84, 0.12);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease-premium), transform 0.22s var(--ease-premium);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* גשר בלתי-נראה שמכסה את הרווח בין הכפתור לתפריט, כדי שהתפריט לא ייסגר במעבר העכבר */
.nav-dropdown:hover::before,
.nav-dropdown:focus-within::before {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 15.5rem;
    height: 1rem;
}

.nav-dropdown-menu a {
    display: block;
    border-radius: 0.7rem;
    padding: 0.55rem 0.75rem;
    color: #304b78;
    font-size: 0.88rem;
    font-weight: 700;
}

.nav-dropdown-menu a:hover {
    background: #eef4ff;
    color: var(--brand-blue);
}

.cta-pill {
    border-radius: 999px;
    padding: 0.38rem 0.38rem 0.38rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.4s var(--ease-premium), box-shadow 0.35s var(--ease-premium), background-color 0.35s var(--ease-premium);
}

.cta-primary {
    color: #fff;
    background: linear-gradient(140deg, var(--brand-green), #276f4a);
    box-shadow: 0 18px 36px rgba(47, 131, 88, 0.28);
}

.cta-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    transition: transform 0.35s var(--ease-premium);
}

.cta-primary .cta-icon {
    background: rgba(255, 255, 255, 0.2);
}

.cta-pill:hover {
    transform: translateY(-2px);
}

.cta-pill:hover .cta-icon {
    transform: translateX(-4px) translateY(-1px) scale(1.08);
}

.cta-pill:active {
    transform: scale(0.98);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    height: 2.3rem;
    padding: 0 0.6rem;
    border-radius: 999px;
    border: 1px solid #d9e5fb;
    background: rgba(255, 255, 255, 0.9);
    color: #344d79;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.25s var(--ease-premium), border-color 0.25s var(--ease-premium);
}

.lang-switch:hover {
    color: var(--brand-blue);
    border-color: rgba(18, 61, 150, 0.4);
}

.menu-btn {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-line {
    display: block;
    width: 18px;
    height: 1.9px;
    border-radius: 3px;
    background: var(--ink-strong);
    transition: transform 0.35s var(--ease-premium), opacity 0.3s var(--ease-premium);
}

.menu-line + .menu-line {
    margin-top: 5px;
}

.menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6.9px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6.9px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(9, 20, 46, 0.68);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-premium);
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-overlay a {
    color: white;
    text-decoration: none;
}

.page-wrap {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
    padding: 3rem 1rem 5rem;
}

.page-hero {
    border-radius: 2rem;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 52px rgba(16, 39, 90, 0.12);
    padding: 2.4rem 1.5rem;
    margin-bottom: 1.5rem;
}

.kicker {
    color: var(--brand-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.88rem;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    grid-column: span 12;
    background: var(--surface-panel);
    border: 1px solid var(--line-soft);
    border-radius: 1.2rem;
    padding: 1.2rem;
}

.card h3 {
    margin: 0 0 0.5rem;
    color: var(--brand-blue);
}

.card p {
    margin: 0;
    color: var(--ink-mid);
}

.footer-inline {
    margin-top: 2rem;
    color: #60779f;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .page-wrap {
        padding: 3.2rem 1.2rem 5rem;
    }

    .page-hero {
        padding: 2.8rem;
    }

    .col-6 { grid-column: span 6; }
    .col-4 { grid-column: span 4; }
    .col-8 { grid-column: span 8; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
