/* =========================================
   2. LAYOUT (Header, Nav, Hero, Footer)
   ========================================= */

/* --- HEADER & NAV --- */
.header { 
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 10px 0; 
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(0,0,0,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    transition: var(--transition);
}
.header.scrolled { padding: 5px 0; }

.header-content { display: flex; justify-content: space-between; align-items: center; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-icon { height: 50px; width: auto; }
.brand-logo-text { height: 50px; width: auto; margin-top: 5px; }

.nav { display: flex; gap: 5px; align-items: center; }
.nav-item { position: relative; }

/* Nav Link */
.nav-link { 
    font-family: var(--f-body); font-weight: 700; color: var(--text-heading); 
    padding: 10px 18px; border-radius: 8px; font-size: 1.1rem; display: block; cursor: pointer; 
    transition: all 0.3s ease;
    display: flex; align-items: center; gap: 5px; 
}
.nav-link:hover { color: var(--primary); background-color: rgba(33, 93, 62, 0.08); }
.nav-link.active, .nav-item.dropdown-active > .nav-link, .dropdown-submenu.dropdown-active > .dropdown-item {
    background-color: var(--primary); color: #fff;
}
.nav-item.dropdown-active > .nav-link i, .dropdown-submenu.dropdown-active > .dropdown-item i {
    transform: rotate(180deg); transition: transform 0.3s ease;
}

/* Dropdown Level 1 */
.dropdown-menu { 
    display: none; position: absolute; top: 100%; 
    inset-inline-start: auto; inset-inline-end: 0; 
    background: #fff; min-width: 240px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    border-radius: 8px; padding: 10px 0; 
    z-index: 1100; border-top: 4px solid var(--primary); 
    margin-top: 10px;
}
.nav-item.dropdown-active > .dropdown-menu { display: block; animation: fadeInUp 0.3s forwards; }

.dropdown-item { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 12px 20px; font-size: 1.05rem; color: #333; font-weight: 600; text-align: start;
    transition: all 0.2s; cursor: pointer;
}
.dropdown-item:hover { background-color: #f4f7f6; color: var(--primary); padding-inline-start: 25px; }

/* Submenu Level 2 */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu { 
    top: 0; inset-inline-start: auto; inset-inline-end: 100%; margin-top: -10px; display: none; 
}
.dropdown-submenu.dropdown-active > .dropdown-menu { display: block; animation: fadeIn 0.3s; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Lang Switcher */
.lang-menu { position: relative; display: inline-block; }
.lang-btn {
    background: transparent; border: 2px solid var(--primary); color: var(--primary);
    padding: 8px 20px; border-radius: 50px; font-family: var(--f-body); font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; font-size: 1rem;
}
.lang-btn span { display: inline-block; }
.lang-btn:hover { background: var(--primary); color: #fff; box-shadow: 0 5px 15px rgba(33, 93, 62, 0.3); }

.lang-dropdown {
    display: none; position: absolute; top: 100%; inset-inline-start: 0; background: #fff;
    min-width: 160px; box-shadow: var(--shadow-card); border-radius: 10px;
    overflow: hidden; z-index: 1200; border: 1px solid #eee; text-align: start; margin-top: 5px;
}
.lang-menu.lang-active .lang-dropdown { display: block; animation: fadeIn 0.3s ease; }
.lang-link {
    display: block; padding: 10px 15px; color: var(--text-body); font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5; transition: 0.2s;
}
.lang-link:hover { background: var(--bg-alt); color: var(--primary); padding-inline-start: 20px; }
.lang-link:last-child { border-bottom: none; }
.lang-link.active { background: rgba(33, 93, 62, 0.05); color: var(--primary); font-weight: bold; }
.lang-menu.lang-active .lang-btn i.fa-chevron-down { transform: rotate(180deg); transition: transform 0.3s; }

.burger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* --- HERO SECTIONS --- */
.hero {
    position: relative; min-height: 100vh;
    background: url('../images/bg-hero.jpg') center/cover no-repeat;
    display: flex; align-items: flex-start; justify-content: center;
    text-align: center; color: #fff;
    margin-top: 0; padding-top: 115px; padding-bottom: 50px; 
}
.hero::before, .page-header::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10, 46, 39, 0.953) 0%, rgba(55, 66, 23, 0.854) 100%);
}
.hero-inner, .page-header-inner { position: relative; z-index: 1; padding: 0 20px; }

.hero-welcome { font-size: 2rem; color: var(--gold); letter-spacing: 2px; font-weight: 700; margin-bottom: 25px; display: block; }
.hero-khat { max-width: 650px; margin: 0 auto 30px; filter: drop-shadow(0 0 25px rgba(255,255,255,0.25)) brightness(0) invert(1); }
.hero-text { font-size: 1.5rem; color: rgba(255,255,255,0.95); margin-bottom: 50px; line-height: 1.8; max-width: 750px; margin-left: auto; margin-right: auto; text-align: center; }
.hero-btns-group { display: flex; justify-content: center; gap: 20px; }

.page-header {
    position: relative; height: 40vh; min-height: 250px;
    background: url('../images/bg-hero.jpg') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #fff; margin-top: 0; padding-top: 90px;
}
.page-title { font-size: 3rem; color: var(--gold); margin-bottom: 10px; font-weight: 700; }
.page-subtitle { color: rgba(255,255,255,0.95); font-size: 1.3rem; font-weight: 500; }

/* --- FOOTER --- */
.footer { background-color: var(--primary-dark); color: #bbb; padding: 80px 0 30px; margin-top: 50px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 70px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-title { color: #fff; font-size: 1.3rem; margin-bottom: 25px; font-family: var(--f-heading); position: relative; display: inline-block; }
.footer-title::after { content: ''; position: absolute; bottom: -10px; inset-inline-start: 0; width: 40px; height: 3px; background: var(--gold); }

.contact-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; font-size: 1.05rem; }
.contact-list i { color: var(--gold); margin-top: 5px; font-size: 1.1rem; }
.contact-list a { transition: 0.3s; }
.contact-list a:hover { color: #fff; text-decoration: underline; }

.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-btn { 
    width: 45px; height: 45px; background: rgba(255,255,255,0.1); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; transition: 0.3s; 
}
.social-btn:hover { background: var(--gold); transform: translateY(-3px); }
.copyright { margin-top: 30px; font-size: 0.95rem; opacity: 0.7; text-align: center; }