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

:root {
    --white: #FFFFFF;
    --sand: #F7F4EF;
    --sand-deep: #EFEAE1;
    --light-gray: #F1F4F3;
    --dark-gray: #1F2A2E;
    --medium-gray: #5C6B6E;
    --accent: #2E8B82;
    --accent-dark: #1F6B63;
    --accent-soft: #DCEDEA;
    --border: #E2E0DA;
    --shadow-sm: 0 2px 10px rgba(31, 42, 46, 0.06);
    --shadow-md: 0 12px 30px rgba(31, 42, 46, 0.10);
    --radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
}

[lang="he"] body,
[dir="rtl"] body {
    font-family: 'Heebo', 'Segoe UI', Tahoma, sans-serif;
}

h1, h2, h3, .hero-title, .section-title {
    font-family: 'Fraunces', 'Inter', Georgia, serif;
}

[lang="he"] h1, [lang="he"] h2, [lang="he"] h3,
[lang="he"] .hero-title, [lang="he"] .section-title {
    font-family: 'Heebo', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.lang-switch {
    background-color: var(--accent-soft);
    border: 2px solid var(--accent);
    color: var(--accent-dark);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Navigation */
.nav {
    padding: 0.5rem 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-dark);
}

.nav-menu a.active {
    border-bottom: 2px solid var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(160deg, var(--accent-soft) 0%, var(--sand) 60%, var(--white) 100%);
    padding: 5.5rem 0;
    text-align: center;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--dark-gray);
    max-width: 900px;
    margin-inline: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 760px;
    margin: 0 auto 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Stat band */
.stat-band {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2.5rem 0;
}

.stat-band-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--accent-soft);
    margin-bottom: 0.4rem;
}

.stat-label {
    display: block;
    font-size: 0.98rem;
    color: #C9D4D3;
    max-width: 320px;
    margin: 0 auto;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--sand);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--dark-gray);
    text-align: center;
}

.subsection-title {
    font-size: 1.5rem;
    text-align: center;
    margin: 3rem 0 0.8rem;
    color: var(--accent-dark);
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 2.2rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.note {
    max-width: 820px;
    margin: 2.2rem auto 0;
    padding: 1rem 1.25rem;
    background-color: var(--accent-soft);
    border-inline-start: 4px solid var(--accent);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--medium-gray);
    font-size: 0.98rem;
}

.card-accent {
    border-top: 4px solid var(--accent);
}

.card-accent h3 {
    color: var(--accent-dark);
}

.fit-grid {
    margin-top: 1rem;
}

/* Medication cards */
.med-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.med-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.med-card h3 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.med-class {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-dark);
    margin-bottom: 0.6rem;
}

.med-card p:not(.med-class) {
    color: var(--medium-gray);
    font-size: 0.96rem;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    padding: 1rem 1.25rem;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--dark-gray);
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.link-card {
    background-color: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.25s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.link-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}

.link-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* Disclaimer */
.disclaimer {
    background-color: var(--sand-deep);
    padding: 1.75rem 0;
}

.disclaimer p {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.88rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-soft);
}

.copyright {
    color: #9DA9AB;
    font-size: 0.9rem;
}

/* RTL Support */
[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row;
}

[dir="rtl"] .nav-menu a {
    text-align: right;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

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

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

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

    .stat-band-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fit-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 1rem;
    }

    .header-content {
        flex-wrap: wrap;
    }
}

/* RTL Mobile Navigation */
[dir="rtl"] .nav-menu {
    left: auto;
    right: 0;
}

/* Active hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
