:root {
    --primary-dark: #1a1a2e;
    --primary-blue: #0f4c81;
    --accent-gold: #d4a574;
    --accent-emerald: #2d5f5d;
    --text-dark: #2c2c2c;
    --text-light: #f8f8f8;
    --cream: #f5f3ef;
    --shadow: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-light);
    text-decoration: none;
}

body.rtl .logo {
    font-family: 'Heebo', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.lang-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

body.rtl .hero {
    direction: rtl;
}

.hero-content {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

body.rtl .hero-content {
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

body.rtl .hero-title {
    font-family: 'Heebo', sans-serif;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--primary-blue);
    display: block;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-emerald);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.5;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

body.rtl .hero-image {
    animation: fadeInLeft 1s ease-out 0.5s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-emerald));
    z-index: -1;
    border-radius: 8px;
}

body.rtl .hero-image::before {
    left: 20px;
    right: -20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px var(--shadow);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-emerald));
    color: var(--text-light);
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(15, 76, 129, 0.3);
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(15, 76, 129, 0.4);
}

/* Mentors Section */
.mentors {
    padding: 7rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.mentors-grid {
    display: grid;
    gap: 4rem;
    margin-top: 3rem;
}

.mentor-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--accent-gold);
}

body.rtl .mentor-card {
    direction: rtl;
}

.mentor-image {
    position: relative;
}

.mentor-image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-emerald));
    z-index: -1;
    border-radius: 8px;
}

body.rtl .mentor-image::before {
    left: 12px;
    right: -12px;
}

.mentor-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 16px 40px var(--shadow);
    aspect-ratio: 3/4;
    object-fit: cover;
}

.mentor-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

body.rtl .mentor-name {
    font-family: 'Heebo', sans-serif;
}

.mentor-bio {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.mentor-content .cta-button {
    margin-top: 0;
}

@media (max-width: 900px) {
    .mentor-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mentor-image {
        max-width: 300px;
        margin: 0 auto;
    }
    body.rtl .mentor-card {
        text-align: center;
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

body.rtl .section-title {
    font-family: 'Heebo', sans-serif;
}

/* Services Section */
.services {
    padding: 7rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 4px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

body.rtl .service-card {
    text-align: right;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

body.rtl .service-card h3 {
    font-family: 'Heebo', sans-serif;
}

.service-card p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Workshops Section */
.workshops {
    padding: 7rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-cream, #faf7f2);
}

.workshops .section-intro {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.workshops .audience-line {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.workshops .workshops-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.service-card .card-tag {
    display: inline-block;
    background: rgba(212, 165, 116, 0.18);
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* Carousels (workshops, testimonials) — keeps cards on one scrollable row instead of wrapping */
.carousel-wrapper {
    position: relative;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track > * {
    scroll-snap-align: start;
}

#workshops .service-card {
    flex: 0 0 300px;
}

@media (min-width: 640px) {
    #workshops .service-card {
        flex: 0 0 340px;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: var(--primary-blue);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: #fff;
}

.carousel-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.carousel-btn.left {
    left: -8px;
}

.carousel-btn.right {
    right: -8px;
}

@media (max-width: 900px) {
    .carousel-btn {
        display: none;
    }
}

/* Who Section */
.who-section {
    background: linear-gradient(135deg, var(--accent-emerald), var(--primary-blue));
    color: var(--text-light);
    padding: 7rem 5%;
}

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

.who-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    list-style: none;
}

.who-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.who-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.who-item p {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials {
    padding: 7rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-grid {
    gap: 2.5rem;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--accent-gold);
    position: relative;
    flex: 0 0 100%;
}

body.rtl .testimonial-card {
    text-align: right;
}

.testimonial-card::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--accent-gold);
    opacity: 0.35;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

body.rtl .testimonial-card::before {
    left: auto;
    right: 1.5rem;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--shadow);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.05rem;
}

/* Contact Section */
.contact {
    padding: 7rem 5%;
    background: var(--cream);
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.method {
    text-align: center;
}

.method h4 {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.method a {
    color: var(--primary-dark);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.method a:hover {
    color: var(--primary-blue);
}

footer {
    padding: 3rem 5%;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 0.75rem;
}

.footer-links a,
.footer-links button {
    color: #888;
    text-decoration: underline;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

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

/* Disclaimer */
.disclaimer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #777;
    text-align: left;
}

body.rtl .disclaimer {
    text-align: right;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 88px;
        right: 16px;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-200%);
    background: var(--primary-blue);
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 2000;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Accessibility Widget */
.access-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1300;
}

.access-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 2px solid #ffffff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.access-toggle:hover,
.access-toggle:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.access-toggle svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.access-panel {
    display: none;
    position: absolute;
    bottom: 64px;
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    width: 250px;
    max-height: 75vh;
    overflow-y: auto;
}

.access-panel.open {
    display: block;
}

.access-panel h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

body.rtl .access-panel h3 {
    font-family: 'Heebo', sans-serif;
}

.access-panel button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    background: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: background 0.2s ease;
    font-family: inherit;
}

body.rtl .access-panel button {
    text-align: right;
}

.access-panel button:hover,
.access-panel button:focus {
    background: rgba(15, 76, 129, 0.1);
}

.access-panel button.active {
    background: var(--primary-blue);
    color: #fff;
}

@media (max-width: 600px) {
    .access-widget {
        bottom: 88px;
        left: 16px;
    }
}

/* Accessibility states */
html.access-contrast {
    filter: invert(1) hue-rotate(180deg);
    background: #000;
}

html.access-contrast img,
html.access-contrast .hero-image::before,
html.access-contrast .mentor-image::before {
    filter: invert(1) hue-rotate(180deg);
}

html.access-grayscale {
    filter: grayscale(1);
}

html.access-underline a {
    text-decoration: underline !important;
}

html.access-readable-font body,
html.access-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Accessibility statement modal */
.access-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1400;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.access-modal-overlay.open {
    display: flex;
}

.access-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 620px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    text-align: left;
}

body.rtl .access-modal {
    text-align: right;
}

.access-modal h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

body.rtl .access-modal h2 {
    font-family: 'Heebo', sans-serif;
}

.access-modal p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.access-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
}

body.rtl .access-modal-close {
    right: auto;
    left: 1rem;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 4rem 5% 3rem;
        text-align: center;
        gap: 2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-image {
        display: none;
    }
    .mentors {
        /* Extra top clearance so the heading doesn't land under the fixed
           accessibility/WhatsApp buttons on initial mobile load. */
        padding-top: 6.5rem;
        padding-bottom: 4rem;
    }
    .services,
    .workshops,
    .who-section,
    .testimonials,
    .contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 5%;
        left: 5%;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem 2rem;
        background: rgba(10, 14, 32, 0.98);
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(12px);
    }
    body.rtl .nav-links {
        right: 5%;
        left: 5%;
    }
    .nav-links.mobile-open {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
}
