:root {
    --primary-color: #e67e22; /* Desert orange/sand */
    --primary-rgb: 230, 126, 34;
    --primary-dark: #d35400;
    --secondary-color: #2c3e50; /* Deep blue/grey */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; /* Adjust height based on actual image proportions */
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes logo white for dark footer if it has transparent bg. Remove if it's a solid block */
    background: white; /* Added in case the user's logo is dark with transparent background, it will have a white background block or can be removed */
    padding: 5px;
    border-radius: 5px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-links li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

@media (min-width: 769px) {
    .nav-links li a.active {
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 4px;
    }
}

.btn {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Language Selector */
.lang-selector select {
    padding: 8px 15px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.lang-selector select:hover {
    border-color: var(--primary-color);
}

/* --- Sidebar & Mobile Menu --- */
.sidebar-overlay {
    display: none;
}
.sidebar-header {
    display: none;
}
.sidebar-footer {
    display: none;
}
.mobile-icon {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .hidden-mobile {
        display: none;
    }
    
    /* Elegant Sidebar Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255, 255, 255, 0.5);
        z-index: 2000;
        transition: right 0.5s cubic-bezier(0.82, 0.085, 0.395, 0.895);
        display: flex;
        flex-direction: column;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        right: 0;
    }
    
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Light border */
    }
    
    .sidebar-logo {
        height: 40px;
        width: auto;
        object-fit: contain;
    }
    
    .close-sidebar {
        color: var(--secondary-color);
        font-size: 26px;
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s ease;
    }
    
    .close-sidebar:hover {
        color: var(--primary-color);
        transform: rotate(90deg) scale(1.1);
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        padding: 30px 20px;
        gap: 15px;
        flex: 1;
        margin: 0;
    }
    
    .mobile-icon {
        display: inline-block;
        width: 35px;
        font-size: 20px;
        color: var(--primary-color);
        opacity: 0.8;
        transition: var(--transition);
    }
    
    .nav-links li {
        list-style: none; /* Just to ensure no dots */
    }
    
    .nav-links li a {
        color: var(--secondary-color);
        font-size: 18px;
        font-weight: 600;
        display: flex;
        align-items: center;
        padding: 12px 15px;
        border-radius: 12px;
        transition: all 0.3s ease;
        transform: translateX(0);
        background: rgba(0,0,0,0.02);
        text-decoration: none;
    }
    
    .nav-links li a:hover {
        background: rgba(230, 126, 34, 0.08); /* Light orange background */
        color: var(--primary-color);
        transform: translateX(8px);
    }

    .nav-links li a.active {
        background: rgba(230, 126, 34, 0.12);
        color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
        padding-left: 12px;
        transform: none;
    }
    
    .nav-links li a:hover .mobile-icon {
        opacity: 1;
        transform: scale(1.1);
    }
    
    .sidebar-footer {
        display: block;
        padding: 25px 20px;
        border-top: 1px solid rgba(0,0,0,0.05);
        color: #777;
        text-align: center;
        background: rgba(0,0,0,0.01);
    }
    
    .sidebar-footer p {
        margin-bottom: 15px;
        font-weight: 700;
        color: var(--secondary-color);
        font-size: 16px;
    }
    
    .social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: #fff;
        color: var(--secondary-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        transition: var(--transition);
        font-size: 18px;
        text-decoration: none;
    }
    
    .social-links a:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(230, 126, 34, 0.3);
    }
    
    /* Blurred Dark Overlay */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(5px);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    color: #ccc;
    font-size: 14px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #ccc;
    transition: var(--transition);
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- Utilities & Animations --- */
.bg-light { background-color: var(--white); }
section { padding: 100px 0; }

.flex-row {
    display: flex;
    align-items: center;
    gap: 50px;
}
@media (max-width: 768px) {
    .flex-row { flex-direction: column; }
}

/* Animations */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* Intersection Observer hidden states */
.hidden-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.hidden-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.hidden-bottom { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }

.show-element {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Responsive Global Adjustments */
@media (max-width: 768px) {
    .site-header {
        padding-top: env(safe-area-inset-top);
    }
    .site-header .navbar {
        padding: 8px max(15px, env(safe-area-inset-right)) 8px max(15px, env(safe-area-inset-left)) !important;
        position: relative;
    }
    .logo-img {
        height: 38px !important;
        margin-left: 5px;
    }
    .lang-selector {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .lang-selector select {
        padding: 4px 12px;
        font-size: 13px;
        text-align: center;
        text-align-last: center;
        height: auto;
    }
    .header-action {
        gap: 8px !important;
    }
    .mobile-menu-btn {
        width: 36px !important; 
        height: 36px !important;
        margin-right: 5px !important;
    }
}


/* Responsive Global Adjustments */
@media (max-width: 768px) {
    .site-header {
        padding-top: env(safe-area-inset-top);
    }
    .site-header .navbar {
        padding: 5px max(15px, env(safe-area-inset-right)) 5px max(15px, env(safe-area-inset-left)) !important;
        position: relative;
    }
    .logo-img {
        height: 38px !important;
        margin-left: 5px;
    }
    .lang-selector {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .lang-selector select {
        padding: 4px 10px;
        font-size: 13px;
        text-align: center;
        text-align-last: center;
        height: auto;
    }
    .header-action {
        gap: 8px !important;
    }
    .mobile-menu-btn {
        width: 38px !important; 
        height: 38px !important;
        margin-right: 5px !important;
        border-color: #eee !important;
    }
}

/* Currency Selector in Sidebar */
.sidebar-currency-selector {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-currency-selector {
        display: block;
        padding: 15px;
        border-top: 1px solid rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .sidebar-currency-selector label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 13px;
        color: #333;
    }

    .sidebar-currency-selector select {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 13px;
        background: #f9f7f4;
        color: #333;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        transition: all 0.3s ease;
    }

    .sidebar-currency-selector select:hover,
    .sidebar-currency-selector select:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.1);
    }
}
