/* CSS Variable Design System */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #8E2D22;
    --primary-dark: #5A1918;
    --accent: #C5A028;
    --gold-light: #F1D18A;
    --bg: #FFFFFF;
    --bg-light: #FBF9F8;
    --text: #333333;
    --text-muted: #777777;
    --white: #FFFFFF;
    --black: #121212;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --gold-gradient: linear-gradient(135deg, #C5A028 0%, #F1D18A 50%, #C5A028 100%);
    --container-width: 1280px;
}

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

html {
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
    font-family: 'Assistant', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text,
.main-quote,
.nav-links a {
    font-family: 'Playfair Display', serif;
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 3rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

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

.items-center {
    align-items: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

img.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: var(--shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(142, 45, 34, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Header */
#main-header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

#main-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.container .header-actions {
    order: 3;
}

nav.container .menu-toggle {
    order: 4;
}

.logo-img {
    height: 55px;
    /* Adjust based on logo proportions */
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo.light .logo-img {
    filter: brightness(0) invert(1);
    /* If the logo needs to be white in footer */
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Hero */
.hero {
    height: 100vh;
    background: url('hero_abstract_pattern.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.3));
}

[dir="rtl"] .hero-overlay {
    background: linear-gradient(to left, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 1;
    font-weight: 300;
    max-width: 700px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Sections */
.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 1.5rem 0;
}

.text-center .section-title::after {
    margin: 1.5rem auto;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.8;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--black);
}

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

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: var(--white);
    padding: 120px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.footer .logo.light .logo-text {
    filter: brightness(0) invert(1);
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-inline-start: 5px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism for Header */
#main-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* RTL Adjustment */
[dir="rtl"] .nav-links {
    margin-left: 0;
}

/* Quote Section */
.section-quote {
    padding: 80px 0;
    background: linear-gradient(rgba(249, 247, 246, 0.9), rgba(249, 247, 246, 0.9)), url('hero_abstract_pattern.png');
    background-size: cover;
    background-attachment: fixed;
}


.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 0.3;
}

.main-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.quote-author {
    font-family: 'Assistant', sans-serif;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="ltr"] .hero-content {
    text-align: left;
}

[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

/* Benefit Items */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.gold-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1rem;
    color: var(--primary-dark);
}

/* Process Timeline */
.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

.process-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.process-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

/* FAQ Accordion */
.faq-accordion {
    text-align: right;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h4 {
    margin: 0;
    color: var(--primary-dark);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    border-top: 0 solid rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
    border-top-width: 1px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .process-timeline {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-actions .btn {
        display: none;
    }
}

/* Hide WhatsApp button in desktop header */
.header-actions .btn {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile styles already defined above */

    .header-actions #lang-switch {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .header-actions #lang-switch i {
        font-size: 0.9rem;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active li {
        margin: 0;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links.active li:last-child {
        border-bottom: none;
    }

    .nav-links.active .mobile-whatsapp {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid var(--gold-light);
    }

    .nav-links.active .mobile-whatsapp a {
        display: inline-block;
        background: var(--gold-gradient);
        color: var(--black);
        padding: 0.8rem 2rem;
        border-radius: 8px;
        font-weight: 700;
        text-decoration: none;
    }

    .nav-links.active .mobile-whatsapp a::after {
        display: none;
    }

    .mobile-whatsapp {
        display: none;
    }
}

/* Hide mobile WhatsApp in desktop navigation */
.nav-links .mobile-whatsapp {
    display: none;
}

@media (max-width: 768px) {

    /* Show WhatsApp in mobile menu when active */
    .nav-links.active .mobile-whatsapp {
        display: block !important;
    }
}

/* Page Hero */
.page-hero {
    padding: 200px 0 100px;
    background: linear-gradient(rgba(251, 249, 248, 0.95), rgba(251, 249, 248, 0.95)), url('vision_raw_materials.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold-gradient);
}

.page-hero h1 {
    font-size: 4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.form-control {
    padding: 0.8rem 1rem;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(158, 62, 50, 0.1);
}

/* Course Detail Cards */
.course-detail-card {
    background: var(--white);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.course-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.course-info {
    padding: 4rem;
}

.course-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Page specific layouts */
.course-detail-card.reverse {
    direction: ltr;
}

[dir="rtl"] .course-detail-card.reverse {
    direction: rtl;
}

@media (min-width: 993px) {
    .course-detail-card.reverse .course-info {
        order: 1;
    }

    .course-detail-card.reverse .course-image {
        order: 2;
    }
}

.course-meta {
    font-size: 1.1rem;
    color: var(--primary);
}

.course-features {
    list-style: none;
}

.course-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Contact Page */
.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    transition: var(--transition);
}

.sticky-cta .btn {
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(158, 62, 50, 0.4);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
}

[dir="rtl"] .sticky-cta {
    right: auto;
    left: 2rem;
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
    }

    [dir="rtl"] .sticky-cta {
        left: 1rem;
        right: auto;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }
}