/* ===== Fonts ===== */
@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/GoogleSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/GoogleSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/GoogleSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('../fonts/IBMPlexSansHebrew-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('../fonts/IBMPlexSansHebrew-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('../fonts/IBMPlexSansHebrew-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== Variables ===== */
:root {
    --blue: #195CFF;
    --blue-dark: #1249d6;
    --blue-light: #e8eeff;
    --red: #FC3D43;
    --dark: #343439;
    --dark-2: #555;
    --gray: #6a6a6a;
    --gray-light: #767676;
    --border: #e5e5e5;
    --bg: #ffffff;
    --bg-light: #f8f8f8;
    --green: #00b894;
    --gold: #f5d76e;
    --purple: #6c5ce7;
    --pink: #fd79a8;
    --radius: 28px;
    --radius-sm: 16px;
    --font: 'IBM Plex Sans Hebrew', 'Heebo', -apple-system, sans-serif;
    --font-sub: 'Google Sans', 'Heebo', sans-serif;
    --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* On mobile/touch devices, disable smooth scroll on the root element.
   It causes visible jank ("jumping") when dynamic content loads and the
   page height changes mid-scroll.  Smooth scrolling is still used
   explicitly where needed (e.g. TOC links via JS). */
@media (pointer: coarse) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-y: none; /* Prevent pull-to-refresh and overscroll bounce */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Accessibility baseline (WCAG 2.1 AA) =====
   Keyboard users MUST always see where focus is. Mouse users see nothing extra
   because we use :focus-visible, not :focus, so the outline only appears on
   keyboard navigation. Do not override this without replacing it with an
   equally-visible indicator. */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 2px;
}
/* For elements whose natural shape has rounded corners (buttons, pills,
   cards), a box-shadow ring tracks the shape better than an offset outline.
   Opt in by adding .a11y-ring. */
.a11y-ring:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue);
}

/* Accessible visually-hidden helper — used for semantic H1s / skip link /
   labels that must exist for AT but shouldn't render visibly. */
.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link — hidden off-screen until it receives focus, then slides
   into the top-right of the viewport (RTL). The first Tab press on any
   page lands here. */
.skip-link {
    position: fixed;
    top: -100px;
    right: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 16px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* WCAG 2.4.7 — every interactive element must have a visible focus state.
   These selectors backfill the few places the design previously killed
   outlines without replacement. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--blue);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    border-color: var(--dark);
    background: var(--bg-light);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    /* Single-line guarantee. The Hebrew brand "גיא רפאל יונה" must never
       wrap or be pushed outside the navbar box, regardless of viewport
       width. flex-shrink: 0 stops sibling flex children from squeezing it
       below its intrinsic single-line width. */
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.back-home-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* WCAG 2.5.5 target size — 44x44 minimum. Padding is responsible for
       the hitbox; the SVG stays at its intrinsic 20x20 inside. */
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    margin-left: 4px;
    color: var(--dark);
    opacity: 0.7;
    transition: opacity 0.2s;
}
.back-home-arrow:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--dark);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-links a.nav-link-accent {
    color: var(--blue);
    font-weight: 600;
}

/* Nav sub-label (e.g. "לחברי האקדמיה" under קהילה) */
.nav-sub {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--gray);
    line-height: 1;
    margin-top: 1px;
    letter-spacing: 0;
    opacity: 0.7;
}

/* Desktop: hide the enriched mobile-drawer chrome that is injected at runtime
   by script.js / academy.js. The authored <a> elements remain visible as the
   normal inline nav. */
.nav-drawer-header,
.nav-drawer-nav,
.nav-drawer-cta,
.nav-drawer-footer,
.nav-drawer-version {
    display: none;
}

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

.nav-user-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    font-size: 0.95rem;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 400 !important;
}

.nav-cta:hover {
    background: var(--blue-dark) !important;
}

/* ===== Nav User Dropdown Menu =====
   Popover that opens below the user icon when logged in. Positioned via JS
   (position: fixed + JS-computed top/left/right) so it works for both the
   desktop navbar (user on the left half) and mobile (user on the far left
   of nav-left). Style mirrors the shadcn/radix reference: rounded 12,
   subtle border, layered shadow, hover highlights, RTL-ready items. */
.nav-user-menu {
    position: fixed;
    min-width: 232px;
    max-width: 300px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 15, 30, 0.12),
                0 2px 6px rgba(15, 15, 30, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.18s ease,
                transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0.2s;
    z-index: 130;
    font-family: var(--font);
}
.nav-user-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.18s ease,
                transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0s;
}
.nav-user-menu-label {
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nav-user-menu-label-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.01em;
}
.nav-user-menu-label-email {
    font-size: 0.82rem;
    color: var(--dark);
    font-weight: 500;
    direction: ltr;
    text-align: right;
    word-break: break-all;
    line-height: 1.3;
}
.nav-user-menu-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 2px;
}
.nav-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    text-align: right;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-user-menu-item:hover {
    background: rgba(25, 92, 255, 0.08);
    color: var(--blue);
}
.nav-user-menu-item:focus-visible {
    background: rgba(25, 92, 255, 0.08);
    color: var(--blue);
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}
.nav-user-menu-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
    opacity: 0.85;
}
.nav-user-menu-item-danger {
    color: #dc2626;
}
.nav-user-menu-item-danger:hover,
.nav-user-menu-item-danger:focus-visible {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    /* WCAG 44px touch target on mobile */
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
}

/* ===== Menu Toggle Icon — morphing hamburger <-> X =====
   Two-path SVG that animates by (a) rotating the whole icon -45deg
   and (b) morphing the top/bottom bars (single connected path) via a
   stroke-dasharray shift, while the middle line stays put. Same timing
   and geometry as the React reference component. */
.menu-toggle-icon {
    width: 28px;
    height: 28px;
    display: block;
    transition: transform 500ms ease-in-out;
}
.menu-toggle-icon .menu-toggle-morph {
    stroke-dasharray: 12 63;
    stroke-dashoffset: 0;
    transition: stroke-dasharray 500ms ease-in-out,
                stroke-dashoffset 500ms ease-in-out;
}
.nav-toggle.active .menu-toggle-icon {
    transform: rotate(-45deg);
}
.nav-toggle.active .menu-toggle-icon .menu-toggle-morph {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42px;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 100px 32px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-card {
    background: var(--blue);
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
    min-height: 520px;
    position: relative;
}

.hero-image {
    flex: 0 0 45%;
    position: relative;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 20px;
    color: #fff;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-stat-label {
    display: block;
    font-family: var(--font-sub);
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
}

.hero-content {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--dark);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-label {
    font-family: var(--font-sub);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--blue);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.125rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-subtitle {
    font-family: var(--font-sub);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--dark);
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-card .btn-primary {
    background: var(--blue);
    color: #fff;
    align-self: flex-start;
}

.hero-card .btn-primary:hover {
    background: var(--blue-dark);
}

/* Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.social-proof-avatars {
    display: flex;
    flex-direction: row-reverse;
}

.sp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-sub);
    border: 3px solid #fff;
    margin-right: -12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.sp-avatar:last-child {
    margin-right: 0;
}

.social-proof-text {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    color: var(--gray);
}

.social-proof-text strong {
    color: var(--dark);
}

/* ===== Reveal Text Section ===== */
.reveal-section {
    padding: 120px 0;
}

.reveal-text-block .reveal-title {
    font-family: var(--font);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.reveal-text-block .reveal-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 28px;
}

.reveal-text-block .reveal-points {
    list-style: none;
    padding: 0;
}

.reveal-text-block .reveal-points li {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    color: var(--dark-2);
    margin-bottom: 14px;
    padding-right: 0;
}

.reveal-text-block .reveal-points li strong {
    color: var(--blue);
}

.reveal-text-block p {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.8;
    color: var(--gray-light);
    font-weight: 400;
}

.reveal-text-block p strong {
    color: var(--dark);
    font-weight: 700;
}

/* Reveal animation - characters become visible as you scroll */
.reveal-text-block.revealed p {
    color: var(--gray-light);
}

.reveal-text-block .char {
    transition: color 0.1s ease;
}

.reveal-text-block .char.visible {
    color: var(--dark);
}

/* ===== Services Section ===== */
.services-section {
    padding: 80px 0 120px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-item {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 40px 36px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-item:hover {
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--blue);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-item p {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== Big Text Section ===== */
.big-text-section {
    padding: 100px 0;
}

.big-text {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark);
}

.text-blue {
    color: var(--blue);
}

/* ===== About Section ===== */
.about-section {
    padding: 60px 0 120px;
}

.about-card {
    background: var(--dark);
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
    min-height: 450px;
}

.about-image {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #2a2a30, #3a3a42);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.3);
}

.about-image-placeholder svg {
    width: 80px;
    height: 80px;
}

.about-image-placeholder span {
    font-size: 0.85rem;
}

.about-content {
    flex: 1;
    padding: 60px 50px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-lead {
    font-family: var(--font-sub);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}

.about-content p {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 12px;
}

.about-content p strong {
    color: rgba(255,255,255,0.9);
}

/* ===== Workshop Section ===== */
.workshop-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.section-heading {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
}

.workshop-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workshop-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.workshop-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-color: var(--blue);
}

.workshop-check {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--blue);
    margin-top: 4px;
}

.workshop-check svg {
    width: 100%;
    height: 100%;
}

.workshop-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.workshop-item p {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 60px 0;
}

.testimonials-wrap {
    position: relative;
}

.testimonials-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.testimonials-carousel:active {
    cursor: grabbing;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    padding: 0 32px;
    direction: ltr;
    animation: scrollTestimonials 45s linear infinite;
    will-change: transform;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

/* Arrow buttons — hidden on desktop, visible on mobile */
.testi-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: var(--dark);
    padding: 0;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.testi-arrow:hover,
.testi-arrow:focus-visible {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    outline: none;
    transform: translateY(-50%) scale(1.05);
}

.testi-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.testi-arrow-prev { right: 8px; }
.testi-arrow-next { left: 8px; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 380px;
    max-width: 380px;
    flex-shrink: 0;
    direction: rtl;
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    color: var(--dark-2);
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== Pricing / CTA Section ===== */
.pricing-section {
    padding: 40px 0 120px;
}

.pricing-card {
    background: var(--blue);
    border-radius: var(--radius);
    padding: 80px 60px;
    text-align: center;
    color: #fff;
}

.pricing-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.pricing-card p {
    font-family: var(--font-sub);
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
}

.pricing-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card .btn-primary {
    background: #fff;
    color: var(--blue);
}

.pricing-card .btn-primary:hover {
    background: #f0f0f0;
}

.pricing-card .btn-outline-dark {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.pricing-card .btn-outline-dark:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--blue);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    text-align: right;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--gray);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 28px 24px;
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

.faq-sub-heading {
    margin-top: 48px;
    margin-bottom: 24px;
    font-family: var(--font);
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 700;
}

.faq-sub-heading:first-child {
    margin-top: 0;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 60px 0 120px;
}

.contact-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 60px 48px;
    text-align: center;
}

.contact-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.contact-card > p {
    color: var(--gray);
    margin-bottom: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 500px;
    margin: 0 auto;
    text-align: right;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--dark);
    background: #fff;
    transition: var(--transition);
}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(25, 92, 255, 0.2);
}
.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: var(--red);
}
.contact-form input[aria-invalid="true"]:focus-visible,
.contact-form select[aria-invalid="true"]:focus-visible,
.contact-form textarea[aria-invalid="true"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(252, 61, 67, 0.25);
}

.contact-form input[type="tel"] {
    direction: rtl;
    text-align: right;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 40px !important;
    cursor: pointer;
}

.custom-select-arrow {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(25, 92, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-light);
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color: var(--gray-light);
    /* Arrow is rendered by the <svg class="custom-select-arrow"> element
       inside .custom-select-wrapper, not via background-image, to avoid
       a double-arrow visual bug. */
    background-image: none;
}

.contact-form select:valid {
    color: var(--dark);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Contact form checkboxes */
.contact-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 8px;
}
.contact-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--gray);
    font-family: var(--font-sub);
    min-height: 44px;
}
.contact-checkbox-label a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-checkbox-label a:hover { text-decoration: none; }
.contact-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.contact-checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-top: 1px;
    background: #fff;
    cursor: pointer;
}
.contact-checkbox-label input:checked + .contact-checkbox-custom {
    background: var(--blue);
    border-color: var(--blue);
}
.contact-checkbox-label input:checked + .contact-checkbox-custom::after {
    content: '';
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}
.contact-checkbox-label input:focus-visible + .contact-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(25, 92, 255, 0.15);
}
.required-star {
    color: var(--red, #e53e3e);
    font-weight: 700;
}
/* Privacy checkbox validation error */
.contact-checkbox-privacy.invalid .contact-checkbox-custom {
    border-color: var(--red, #e53e3e);
    animation: shake 0.3s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.contact-form-status {
    margin-top: 8px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
}

.contact-form-status--success {
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.contact-form-status--error {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.contact-alt {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact-alt p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-alt-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.contact-alt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.contact-alt-whatsapp {
    background: #e8f8ee;
    color: #128c7e;
    border: 1px solid #c6f0d4;
}

.contact-alt-whatsapp:hover {
    background: #d0f0db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.contact-alt-email {
    background: var(--bg-light);
    color: var(--dark-2);
    border: 1px solid var(--border);
}

.contact-alt-email:hover {
    background: #fff;
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 92, 255, 0.1);
}

.contact-alt-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ===== Clients Marquee ===== */
.clients-section {
    padding: 60px 0;
    overflow: hidden;
}

.clients-section .section-heading {
    text-align: center;
    padding: 0 32px;
    margin-bottom: 40px;
}

.clients-marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to left, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: clients-scroll 45s linear infinite;
    width: max-content;
    will-change: transform;
    padding-right: 60px;
}

.clients-track:hover {
    animation-play-state: paused;
}

.clients-track img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.clients-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes clients-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(50% + 30px)); }
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 40px;
    justify-content: center;
    text-align: right;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--gray);
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray);
}
.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
}

/* Mobile minimalist footer */
@media (max-width: 768px) {
    .footer {
        padding: 24px 0 16px;
    }
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }
    .footer-section h4 {
        display: none;
    }
    /* Hide contact section on mobile */
    .footer-section:first-child {
        display: none;
    }
    /* Legal links inline */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 16px;
    }
    .footer-links li {
        margin-bottom: 0;
    }
    .footer-links a {
        min-height: 36px;
        font-size: 0.8rem;
    }
    /* Social links compact */
    .footer-social {
        justify-content: center;
        gap: 10px;
    }
    .footer-social-link {
        width: 38px;
        height: 38px;
    }
    .footer-bottom {
        padding-top: 12px;
    }
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 120px 0 60px;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--dark-2);
    margin-bottom: 12px;
}

.legal-page ul {
    padding-right: 24px;
    margin-bottom: 12px;
}

.legal-page li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--dark-2);
    margin-bottom: 4px;
}

.legal-page a {
    color: var(--blue);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .hero-card {
        flex-direction: column;
    }
    .hero-image {
        height: auto;
        min-height: 200px;
        flex: none !important;
    }
    .about-card {
        flex-direction: column;
    }
    .about-image {
        height: 320px;
        flex: none !important;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .testimonial-card {
        min-width: 320px;
        max-width: 320px;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
    /* --- Nav: hamburger menu ---
       In RTL, hamburger lives on the visual RIGHT (logical start). We use
       flex-start + order to anchor the toggle to the RTL start, the logo
       just inside it, and push the user/CTA cluster to the opposite (left)
       edge with margin-inline-start: auto. */
    .nav-container {
        padding: 0 16px;
        height: 60px;
        justify-content: flex-start;
        gap: 12px;
    }
    .nav-logo {
        font-size: 1.05rem;
    }
    .nav-right {
        gap: 12px;
    }
    .nav-left {
        margin-inline-start: auto;
    }
    /* Hide the legal-pages back-home-arrow on mobile. The mobile drawer
       already exposes a "home" link, so the arrow is redundant navigation
       that steals horizontal space from the CTA at narrow widths. */
    .back-home-arrow {
        display: none;
    }
    /* ===== Mobile nav: right-side slide-in drawer =====
       Elegant floating panel, not a "heavy side menu". Anchored to the
       right edge in RTL, starts slightly off-screen, slides in smoothly
       with a soft backdrop blur. Drawer is narrower than full-width so
       it feels like a floating layer, not a page replacement. */
    .nav-links {
        display: flex;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(78vw, 300px);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 14px 16px;
        background:
            radial-gradient(120% 60% at 100% 0%, rgba(25, 92, 255, 0.08), transparent 60%),
            linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
        box-shadow: -16px 0 48px rgba(20, 20, 40, 0.18);
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        transform: translateX(12%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.22s ease,
                    visibility 0s linear 0.32s;
        z-index: 110;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.22s ease,
                    visibility 0s linear 0s;
    }

    /* On mobile, hide the raw authored <a> links inside the drawer — they are
       replicated as styled .nav-drawer-link items inside the enriched chrome. */
    .nav-links > a.nav-authored-link,
    .nav-links > a {
        display: none;
    }

    /* Drawer header — brand + tagline */
    .nav-drawer-header {
        display: block;
        padding: 40px 6px 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        margin-bottom: 10px;
    }
    .nav-drawer-brand {
        font-size: 1.02rem;
        font-weight: 700;
        color: var(--dark);
        letter-spacing: -0.01em;
    }
    .nav-drawer-tagline {
        font-size: 0.72rem;
        color: #6b7280;
        margin-top: 3px;
    }

    /* Drawer nav groups */
    .nav-drawer-nav {
        display: flex !important;
        flex-direction: column;
        gap: 2px;
    }
    .nav-drawer-nav-secondary {
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    /* Drawer nav link */
    .nav-drawer-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 10px;
        border-radius: 10px;
        color: var(--dark);
        font-size: 0.88rem;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }
    .nav-drawer-link:hover,
    .nav-drawer-link:active {
        background: rgba(25, 92, 255, 0.08);
        color: var(--blue);
    }
    .nav-drawer-link.is-active {
        background: rgba(25, 92, 255, 0.1);
        color: var(--blue);
    }
    .nav-drawer-link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: rgba(25, 92, 255, 0.08);
        color: var(--blue);
        flex-shrink: 0;
        transition: background 0.18s ease, color 0.18s ease;
    }
    .nav-drawer-link-icon svg {
        width: 15px;
        height: 15px;
    }
    .nav-drawer-link:hover .nav-drawer-link-icon,
    .nav-drawer-link.is-active .nav-drawer-link-icon {
        background: var(--blue);
        color: #ffffff;
    }
    .nav-drawer-link-label {
        flex: 1;
        text-align: right;
    }
    .nav-drawer-link-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        color: #b8bcc7;
        transition: color 0.18s ease, transform 0.18s ease;
    }
    .nav-drawer-link-chevron svg {
        width: 16px;
        height: 16px;
    }
    .nav-drawer-link:hover .nav-drawer-link-chevron {
        color: var(--blue);
        transform: translateX(-2px); /* RTL: nudge toward the label direction */
    }

    /* Drawer sub-label (e.g. "לחברי האקדמיה") */
    .nav-drawer-link-sub {
        font-size: 0.68rem;
        font-weight: 400;
        color: var(--gray);
        opacity: 0.7;
        margin-right: auto;
        margin-left: 8px;
    }

    /* Drawer CTA — outlined contact button at the bottom */
    .nav-drawer-cta {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: auto;
        padding: 14px 20px;
        border-radius: 50px;
        background: #fff;
        color: var(--blue);
        border: 2px solid var(--blue);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.18s ease;
    }
    .nav-drawer-cta:hover,
    .nav-drawer-cta:active {
        background: var(--blue);
        color: #fff !important;
        border-color: var(--blue);
        transform: translateY(-1px);
    }
    .nav-drawer-cta:hover svg,
    .nav-drawer-cta:active svg {
        stroke: #fff;
    }
    .nav-drawer-cta svg {
        width: 18px;
        height: 18px;
    }

    /* Drawer footer — social + copy */
    .nav-drawer-footer {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 12px 6px 4px;
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
    /* Version label — tiny muted text at the very bottom */
    .nav-drawer-version {
        display: block !important;
        margin-top: 8px;
        padding: 4px 6px 2px;
        font-size: 0.68rem;
        color: #b8bcc7;
        text-align: center;
        letter-spacing: 0.02em;
    }
    .nav-drawer-social {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: rgba(15, 15, 30, 0.04);
        color: #5b6170;
        transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }
    .nav-drawer-social:hover {
        background: var(--blue);
        color: #ffffff;
        transform: translateY(-1px);
    }
    .nav-drawer-social svg {
        width: 16px;
        height: 16px;
    }
    .nav-drawer-copy {
        margin-inline-start: auto;
        font-size: 0.72rem;
        color: #9ca3af;
    }
    /* Backdrop scrim behind the drawer — flat dark, no blur.
       Must sit BELOW the navbar (z:100) so the drawer (which lives inside
       the navbar's stacking context) renders on top of the scrim. */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 15, 30, 0.42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0s linear 0.28s;
        z-index: 95;
    }
    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.28s ease, visibility 0s linear 0s;
    }
    body.nav-open {
        overflow: hidden;
    }
    /* When drawer is open: hide everything in the navbar except the toggle
       (which has now become an X close button). Keeps the visual focus on
       the drawer + scrim, no stray CTAs poking through. */
    body.nav-open .nav-right,
    body.nav-open .nav-left {
        visibility: hidden;
    }
    body.nav-open .nav-links {
        visibility: visible; /* drawer itself stays visible */
    }
    body.nav-open .navbar {
        background: transparent;
        box-shadow: none;
    }
    .nav-toggle {
        display: flex;
        z-index: 120;
        position: relative;
        order: -1; /* in RTL flex this anchors the toggle to the visual right */
    }
    .nav-cta {
        display: none;
    }
    .nav-left {
        gap: 8px;
    }
    .nav-user-link {
        font-size: 0.85rem;
        /* WCAG 44px square hitbox. When the label is hidden below 375
           (see small-mobile media query), the icon sits in a 44x44
           centered box — this rule pre-emptively guarantees the floor. */
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        gap: 6px;
    }

    /* --- Hero --- */
    .hero-section {
        padding: 64px 16px 20px;
    }
    .hero-card {
        border-radius: var(--radius-sm);
        flex-direction: column;
        min-height: auto;
    }
    .hero-image {
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        height: auto;
        min-height: 160px;
        order: 2;
    }
    .hero-content {
        order: 1;
    }
    /* ===== Mobile hero stats =====
       On mobile the 3 stats go vertical as 3 clean, symmetric cards
       stacked with generous spacing. Each card is a self-contained unit
       with a big number and a short, readable label — easy to scan at a
       glance, no cramped horizontal layout. */
    .hero-stats {
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px;
        align-items: stretch;
    }
    .hero-stat-item {
        flex: none;
        display: flex;
        align-items: center;
        gap: 0;
        padding: 14px 20px;
        background: rgba(255,255,255,0.10);
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 14px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .hero-stat-number {
        font-size: 1.85rem;
        line-height: 1;
        flex-shrink: 0;
        min-width: 90px;
        text-align: right;
    }
    .hero-stat-label {
        font-size: 0.8rem;
        line-height: 1.35;
        opacity: 0.92;
        margin-top: 0;
        text-align: right;
        flex: 1;
    }
    .btn-secondary-hero {
        display: none !important;
    }
    .hero-content {
        padding: 28px 20px;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }
    .hero-label {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    .hero-title {
        font-size: 1.35rem;
        line-height: 1.5;
        font-weight: 700;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .hero-content .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* --- Social Proof --- */
    .hero-social-proof {
        padding: 16px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .social-proof-avatars {
        justify-content: center;
    }
    .social-proof-text {
        font-size: 0.82rem;
    }

    /* --- Reveal --- */
    .reveal-section {
        padding: 60px 0;
    }
    .container-narrow {
        padding: 0 20px;
    }
    .reveal-text-block .reveal-title {
        font-size: 1.2rem;
    }
    .reveal-text-block .reveal-subtitle {
        font-size: 0.95rem;
    }
    .reveal-text-block .reveal-points li {
        font-size: 0.9rem;
    }

    /* --- Services --- */
    .services-section {
        padding: 48px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    .service-item {
        padding: 28px 24px;
    }
    .service-item h3 {
        font-size: 1.1rem;
    }
    .service-item p {
        font-size: 0.88rem;
    }

    /* --- Big Text --- */
    .big-text {
        font-size: 1.4rem;
        line-height: 1.6;
        padding: 0 16px;
    }
    .big-text-section {
        padding: 48px 0;
    }

    /* --- About --- */
    .about-section {
        padding: 48px 16px;
    }
    .about-image {
        height: 280px;
    }
    .about-photo {
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .about-content {
        padding: 28px 20px;
    }
    .about-content h2 {
        font-size: 1.4rem;
    }
    .about-lead {
        font-size: 0.95rem;
    }
    .about-content p {
        font-size: 0.88rem;
    }

    /* --- Workshop --- */
    .workshop-section {
        padding: 48px 16px;
    }
    .workshop-item {
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px;
    }
    .workshop-check {
        width: 28px;
        height: 28px;
    }
    .workshop-item h4 {
        font-size: 1rem;
    }
    .workshop-item p {
        font-size: 0.88rem;
    }

    /* --- Clients --- */
    .clients-section {
        padding: 32px 0;
    }

    /* --- Testimonials --- */
    .testimonials-section {
        padding: 48px 0;
    }
    .testimonials-carousel {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: default;
        touch-action: pan-x;
        direction: rtl;
    }
    .testimonials-carousel::-webkit-scrollbar { display: none; }
    .testimonials-track {
        animation: none !important;
        padding: 0 16px;
        gap: 16px;
        direction: rtl;
        width: max-content;
    }
    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 28px 24px;
        scroll-snap-align: center;
    }
    .testimonial-card p {
        font-size: 0.88rem;
    }
    .testi-arrow {
        display: flex;
    }

    /* --- Academy Promo --- */
    .academy-promo-section {
        padding: 48px 0;
    }
    .academy-promo-subtitle {
        font-size: 0.95rem;
        padding: 0 16px;
    }
    .academy-promo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 20px 16px;
    }
    .academy-promo-lock {
        padding: 28px 20px;
    }
    .academy-promo-lock h3 {
        font-size: 1.1rem;
    }
    .academy-promo-stats {
        gap: 12px;
    }
    .academy-promo-stats span {
        font-size: 0.82rem;
    }

    /* --- Pricing --- */
    .pricing-section {
        padding: 48px 16px;
    }
    .pricing-card {
        padding: 36px 24px;
    }
    .pricing-card h2 {
        font-size: 1.3rem;
    }
    .pricing-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .pricing-cta .btn-primary,
    .pricing-cta .btn-outline-dark {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* --- FAQ --- */
    .faq-section {
        padding: 48px 0;
    }
    .faq-question span {
        font-size: 0.95rem;
    }
    .faq-answer p {
        font-size: 0.88rem;
        padding: 0 20px 20px;
    }
    .faq-sub-heading {
        font-size: 1.1rem;
        padding: 0 4px;
    }

    /* --- Contact --- */
    .contact-section {
        padding: 48px 0 80px;
    }
    .contact-card {
        padding: 32px 20px;
        margin: 0 16px;
    }
    .contact-card h2 {
        font-size: 1.5rem;
    }
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    .contact-alt-links {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-alt-btn {
        justify-content: center;
    }

    /* --- Section headings --- */
    .section-heading {
        font-size: 1.5rem;
        padding: 0 16px;
    }

    /* --- General spacing --- */
    .container {
        padding: 0 16px;
    }
}

/* ===== Responsive: Small Mobile (320-375px) ===== */
@media (max-width: 375px) {
    .hero-stat-item {
        padding: 14px 16px;
    }
    .hero-stat-number {
        font-size: 1.6rem;
    }
    .hero-stat-label {
        font-size: 0.75rem;
    }
    .hero-title {
        font-size: 1.2rem;
    }
    .big-text {
        font-size: 1.2rem;
    }
    .academy-promo-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        min-width: 260px;
        max-width: 260px;
    }
    /* ===== Nav at very narrow widths (≤ 375) =====
       At 320–375 the nav has 5 competing children (toggle + logo + user
       link + CTA + implicit drawer). To guarantee the logo never wraps,
       we (a) shrink the logo slightly, (b) drop the label text inside
       nav-user-link to a pure 44x44 icon target, (c) tighten the CTA
       and the nav-container gap. No HTML changes required — the text
       span is already present as .nav-user-text in every page. */
    .nav-container {
        padding: 0 12px;
        gap: 8px;
    }
    .nav-right {
        gap: 8px;
    }
    .nav-logo {
        font-size: 0.9rem;
    }
    .nav-user-link {
        /* Icon-only button at this width */
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
        gap: 0;
    }
    .nav-user-text {
        display: none;
    }
    .nav-cta {
        display: none;
    }
}
