:root {
    --font-display: "Bebas Neue", sans-serif;
    --font-body: "Nunito", sans-serif;
    --red: #6F1F2B;
    --red-dark: #580900;
    --gold: #C9A84C;
    --bg-start: #F9F6F0;
    --bg-end: #E6D5B8;
    --text-dark: #1a1008;
    --text-muted: #5a4a3a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
    background-color: var(--red);
    padding: 1.5rem 1rem;
    border-bottom: 4px solid var(--red-dark);
    position: sticky !important;
    top: 0 !important;
    z-index: 1002;
}

.logo {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 7rem;
    height: 4.5rem;
    display: block;
}

.textlogo {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.text-en {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.2rem;
    line-height: 0.9;
    display: block;
}

.text-ar {
    color: #fff;
    font-size: 0.76rem;
    opacity: 0.8;
    line-height: 1;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: #fff;
    transition: left 0.3s ease-out, width 0.3s ease-out;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 1003;
}

.nav-close {
    display: none;
}

.navbar a,
.navbar a:visited {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    opacity: 0.6;
    padding-bottom: 0.3rem;
    transition: opacity 0.2s;
    display: inline-block;
}

.navbar a:hover,
.navbar a.active {
    opacity: 1;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer {
    width: 100%;
    background-color: #141414;
    padding: 4rem 2rem 1.5rem;
    border-top: 5px solid rgba(201, 168, 76, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    margin: 0;
}

.gold-line {
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 1.5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3rem;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.4), transparent);
    margin: 4rem 0;
}

@media (max-width: 900px) {
    .navbar {
        padding: 1rem;
    }

    .logo{
        bottom: 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-indicator {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: #1a0a0d;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 3rem 2rem;
        gap: 0;
        transition: right 0.35s cubic-bezier(.77, 0, .18, 1);
        z-index: 1003;
        overflow-y: auto;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
        opacity: 0.75;
    }

    .nav-links a:hover,
    .nav-links a.active {
        opacity: 1 !important;
        color: #ffffff !important;
    }

    .nav-links a:first-of-type {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        background: transparent;
        border: none;
        color: #ffffff !important;
        font-size: 1.4rem;
        cursor: pointer;
    }

    .navbar.nav-open .nav-links {
        right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body.nav-is-open .dark-toggle,
    body.nav-is-open #chat-bubble {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem;
    }

    .logo {
        left: 1rem;
    }
}

@media (max-height: 500px) {
    .nav-links {
        justify-content: flex-start;
        padding-top: 4rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}