/* ============================ */
/* 1. Global Settings & Variables */
/* ============================ */
:root {
    --color-background: #FAFAF9;
    --color-primary: #6D28D9;
    --color-lavender: #E9D5FF;
    --color-mint: #34D399;
    --color-text: #111827;
    --color-border: #E5E7EB;
    --color-white: #FFFFFF;

    --font-heading: 'Secular One', sans-serif;
    --font-body: 'Noto Sans Hebrew', sans-serif;

    --border-radius: 16px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
    
    --transition-fast: 0.2s ease-in-out;
}

/* Reset and Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings and Text */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 400; /* Secular One is bold by default */
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: #5b21b6; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================ */
/* 2. Layout & Helpers */
/* ============================ */
.container {
    width: 100%;
    max-width: 1140px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.section-padding {
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { font-size: 1.125rem; color: #4b5563; }

.bg-light-lavender { background-color: #F5F3FF; }

/* ============================ */
/* 3. Buttons */
/* ============================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px; /* Pill shape */
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: #5b21b6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-lavender);
    transform: translateY(-2px);
}

.btn-link {
    padding: 0;
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 700;
}
.btn-link:hover { color: #5b21b6; }

/* ============================ */
/* 4. Accessibility */
/* ============================ */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    z-index: 9999;
    transition: top 0.3s;
}
.skip-to-content:focus {
    top: 0;
}

/* Focus outline for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--color-mint);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================ */
/* 5. Header & Navigation */
/* ============================ */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.main-header.scrolled {
    background-color: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    padding: 0.75rem 0;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-text);
}
.logo:hover { color: var(--color-primary); }

.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-menu a {
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}
.nav-menu a:hover::after { width: 100%; }

.nav-cta { display: block; }
.mobile-menu-toggle { display: none; }

/* ============================ */
/* 6. Hero Section */
/* ============================ */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 3rem;
    overflow: hidden;
}
.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}
.hero-content { max-width: 750px; }
.hero-content h1 { margin-bottom: 1rem; }
.hero-content .lead {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.hero-bg-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.7;
}
.hero-portrait {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 0 0 10px var(--color-white), var(--shadow-medium);
}

/* ============================ */
/* 7. Promo Sections */
/* ============================ */
.promo-section {
    padding: 1.5rem 0;
    text-align: center;
}
.promo-section p { margin: 0; font-weight: 700; }
.promo-section a { text-decoration: underline; }
.promo-light { background-color: var(--color-lavender); }
.promo-dark { background-color: var(--color-primary); color: var(--color-white); }
.promo-dark a { color: var(--color-white); }

/* ============================ */
/* 8. Signature Program */
/* ============================ */
.program-cards-grid {
    display: grid;
    gap: 1.5rem;
}
.program-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: var(--color-primary);
}
.card-icon svg { width: 100%; height: 100%; }
.program-card h3 { margin-bottom: 0.5rem; }
.program-card p { color: #4b5563; }
.card-deliverables {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: #4b5563;
}

/* ============================ */
/* 9. Quiz Section */
/* ============================ */
.quiz-section .section-header { margin-bottom: 2rem; }
.quiz-cta { text-align: center; }
.quiz-cta p { margin-bottom: 1.5rem; font-weight: 700; }

/* ============================ */
/* 10. Case Studies Timeline */
/* ============================ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1.5rem;
    width: 2px;
    background-color: var(--color-lavender);
}
.timeline-item {
    position: relative;
    padding-right: 4rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: calc(1.5rem - 7px);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 3px solid var(--color-lavender);
}
.timeline-content {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}
.timeline-kpi {
    display: inline-block;
    background-color: #D1FAE5; /* Mint light */
    color: #065F46; /* Mint dark */
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.timeline-content h3 { margin-bottom: 0.5rem; }

/* ============================ */
/* 11. Framework Visual Section */
/* ============================ */
.orbit-model-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}
.orbit-model {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--color-lavender);
    display: flex;
    justify-content: center;
    align-items: center;
}
.orbit-1 { width: 100%; height: 100%; }
.orbit-2 { width: 75%; height: 75%; border-style: dashed; }
.orbit-3 { width: 50%; height: 50%; }
.orbit-4 { width: 25%; height: 25%; border-style: dashed; }
.orbit-label {
    background-color: var(--color-background);
    padding: 0 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
    transform: translateY(-50%);
}
.orbit-core {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
}
.orbit-core svg { width: 24px; height: 24px; }
.orbit-descriptions {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}
.orbit-desc-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}
.learn-more {
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================ */
/* 12. Packages Section */
/* ============================ */
.packages-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}
.package-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
}
.package-card.featured {
    border-color: var(--color-primary);
    border-width: 2px;
    transform: scale(1.05);
}
.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}
.package-header { margin-bottom: 1.5rem; }
.package-header p { color: #4b5563; margin: 0; }
.package-features {
    text-align: right;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.package-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================ */
/* 13. Resources Section */
/* ============================ */
.resources-grid { display: grid; gap: 1.5rem; }
.resource-card {
    background-color: #F5F3FF; /* Light Lavender */
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}
.resource-card .card-icon { color: var(--color-primary); }
.resource-card h3 { margin-bottom: 0.5rem; }
.resource-card p { color: #4b5563; margin-bottom: 1.5rem; }

/* ============================ */
/* 14. Testimonials Section */
/* ============================ */
.testimonial-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-icon {
    width: 48px;
    height: 48px;
    color: var(--color-lavender);
    margin: 0 auto 1rem;
}

.testimonial-slide blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.testimonial-slide footer { font-style: normal; }
.testimonial-slide footer strong { display: block; }
.testimonial-slide footer span { font-size: 0.9rem; color: #4b5563; }

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.testimonial-nav-btn {
    background-color: transparent;
    border: 2px solid var(--color-lavender);
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all var(--transition-fast);
}
.testimonial-nav-btn:hover {
    background-color: var(--color-lavender);
    border-color: var(--color-primary);
}

/* ============================ */
/* 15. FAQ Section */
/* ============================ */
.faq-accordion {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
}
.faq-icon {
    width: 1.5em;
    height: 1.5em;
    transition: transform var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%236D28D9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15' /%3E%3C/svg%3E");
    background-size: contain;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.faq-answer > div, .faq-answer > p { overflow: hidden; }
.faq-question[aria-expanded="true"] + .faq-answer {
    grid-template-rows: 1fr;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #4b5563;
}

/* ============================ */
/* 16. Contact Section */
/* ============================ */
.contact-wrapper {
    display: grid;
    gap: 3rem;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-lavender);
    outline: none;
}
.contact-form .btn { width: 100%; }

/* ============================ */
/* 17. Footer */
/* ============================ */
.main-footer { background-color: var(--color-background); }
.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col h4 { margin-bottom: 1rem; }
.footer-about p { font-size: 0.9rem; color: #4b5563; }
.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-socials a { color: #4b5563; }
.footer-socials a:hover { color: var(--color-primary); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #4b5563; font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}
.footer-bottom a { color: #6b7280; font-weight: 700; }
.footer-bottom a:hover { color: var(--color-primary); }

/* ============================ */
/* 18. Animations */
/* ============================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* Apply initial state only if JS is enabled */
.js-ready .reveal-up,
.js-ready .reveal-fade-in,
.js-ready .reveal-zoom-in {
    opacity: 0; /* Start hidden */
}

.is-visible.reveal-up { animation: fadeUp 0.8s ease-out forwards; }
.is-visible.reveal-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.is-visible.reveal-zoom-in { animation: zoomIn 0.8s ease-out forwards; }

/* ============================ */
/* 19. Media Queries (Mobile First) */
/* ============================ */

/* Tablet */
@media (min-width: 768px) {
    .program-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .timeline { gap: 0; }
    .timeline-item:nth-child(even) { align-self: flex-end; }
    .timeline-item:nth-child(even) .timeline-content { text-align: left; }
    .orbit-model-container { flex-direction: row; align-items: flex-start; gap: 4rem; }
    .orbit-descriptions { grid-template-columns: repeat(2, 1fr); }
    .packages-grid { grid-template-columns: repeat(3, 1fr); }
    .package-card.featured { transform: scale(1.1); }
    .resources-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr 1fr; align-items: center; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-section .container { flex-direction: row; text-align: right; }
    .hero-content { text-align: right; }
    .cta-group { justify-content: flex-start; }
    .hero-image-container { order: -1; }
}

/* Mobile Menu */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 1.25rem; }
    .nav-cta { display: none; }
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .mobile-menu-toggle span {
        width: 30px;
        height: 3px;
        background-color: var(--color-text);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }
}