/*
Theme Name: Kifco International Custom Theme
Theme URI: https://kifcointernational.com
Author: Abdelrahman
Author URI: https://kifcointernational.com
Description: Custom WordPress Theme built from scratch for Kifco International.
Version: 1.0.0
Text Domain: kifcointernational
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    font-family: 'Helvetica W01 Roman', 'Helvetica', 'Arial', sans-serif;
    color: #1A161E;
    background-color: #FFFFFF; /* خلفية الموقع العامة تظل بيضاء */
}

/* ==========================================
   Header & Sticky / Scroll-Hide Navigation
   ========================================== */
header.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #000000; /* شريط الهيدر أصبح باللون الأسود تماماً */
    padding: 0px 40px;
    margin: 0;
    border: none;
    box-shadow: none;
    z-index: 1000;
    transition: transform 0.4s ease-in-out !important;
}

header.site-header.hide-nav {
    transform: translateY(-100%) !important;
}

/* الهيدر في صفحة الهوم فقط: شفاف عند الوصول لأعلى الصفحة */
body.home header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    transition: background-color 0.4s ease, transform 0.4s ease-in-out;
}

body.home header.site-header.at-top {
    background-color: transparent;
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ==========================================
   Navigation Menu Styles
   ========================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #FFFFFF; /* النصوص داخل الهيدر أصبحت بيضاء لتناسب الخلفية السوداء */
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
    transition: color 0.3s ease;
}

/* الخط المتحرك تحت اللينكات باللون الأبيض أو الأحمر */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFFFFF;
    transition: width 0.4s ease-in-out;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: #FFFFFF;
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
    width: 100%;
}

/* زر الـ CONTACT (يعمل كباقي اللينكات تماماً بدون خلفية زر) */
.nav-menu li a.contact-btn {
    background-color: transparent;
    color: #FFFFFF;
    font-weight: 400;
    padding: 0;
    border-radius: 0;
}

.nav-menu li a.contact-btn:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: none;
}

/* ==========================================
   Logo & Alliance Link Styles
   ========================================== */
.site-logo {
    transform: translateX(-3cm); /* إزاحة اللوجو 3 سم جهة اليسار كما طلبت سابقاً */
    transition: transform 0.3s ease;
}

.site-logo img {
    height: 95px;
    object-fit: contain;
    display: block;
    filter: none; /* إزالة الـ invert ليعود اللوجو بلونه الأصلي (الأبيض) ليتطابق مع الخلفية السوداء للهيدر */
}

.member-logo {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.alliance-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alliance-top {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF; /* النصوص باللون الأبيض */
    letter-spacing: 0.5px;
}

.alliance-brand {
    font-size: 20px;
    font-weight: 400;
    color: #FFFFFF;
}

.alliance-domain {
    font-size: 20px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.alliance-link:hover .alliance-domain {
    color: #DDDDDD;
}

/* ==========================================
   Slow Mask Reveal Animation
   ========================================== */
@media screen and (min-width: 1201px) {
    .site-logo.header-anim,
    .main-navigation.header-anim {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        animation: revealFromLeft 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .site-logo.header-anim {
        animation-delay: 0.2s;
    }

    .main-navigation.header-anim {
        animation-delay: 0.6s;
    }
}

.member-logo {
    opacity: 0;
    animation: fadeInMemberLogo 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.0s;
}

@keyframes revealFromLeft {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes fadeInMemberLogo {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   Mobile Menu Button Base Styles
   ========================================== */
.menu-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1002;
    box-sizing: border-box;
}

.menu-toggle-btn span {
    display: block;
    width: 24px;
    height: 2px;
    min-height: 2px;
    max-height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
}

/* ==========================================
   Mobile Header & Drawer (Max-Width: 1200px)
   ========================================== */
@media screen and (max-width: 1200px) {
    header.site-header {
        position: sticky;
        top: 0;
        width: 100%;
        min-height: 64px;
        background-color: #000000;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        z-index: 1000;
        box-sizing: border-box;
    }

    body.home header.site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #000000;
    }

    body.home header.site-header.at-top {
        background-color: transparent;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    /* 1. الهامبرجر يسار */
    .menu-toggle-btn {
        display: flex;
        order: 1;
        flex-shrink: 0;
    }

    /* تثبيت زر الإغلاق (×) في أعلى يسار الدروج عند فتح القائمة */
    .menu-toggle-btn.is-active {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1003;
    }

    /* 2. نص التحالف يمين (قبل اللوجو مباشرة) */
    .member-logo {
        order: 2;
        margin-left: auto;
        text-align: right;
        opacity: 1;
        animation: none;
        min-width: 0;
    }

    .alliance-link {
        gap: 1px;
    }

    .alliance-top,
    .alliance-brand,
    .alliance-domain {
        font-size: 11px;
        line-height: 1.25;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    /* 3. لوجو KIFCO في أقصى اليمين */
    .site-logo {
        order: 3;
        transform: none;
        flex-shrink: 0;
    }

    .site-logo img {
        height: 44px;
        width: auto;
    }

    /* القائمة الجانبية المتدرجة تملأ الشاشة من اليسار */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, #000000 0%, #05060f 52%, #232860 85%, #4450B3 100%);
        box-shadow: none;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        display: block;
        padding-top: 84px;
        box-sizing: border-box;
    }

    .main-navigation.active {
        left: 0;
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 32px;
        gap: 26px;
    }

    .nav-menu li a {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 1.5px;
        line-height: 1.3;
        text-transform: uppercase;
    }

    .nav-menu li.current-menu-item a {
        color: #6C7EF8;
    }

    .nav-menu li.current-menu-item a::after {
        width: 0;
    }

    .menu-toggle-btn.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle-btn.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-btn.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media screen and (max-width: 480px) {
    header.site-header {
        padding: 8px 12px;
        min-height: 56px;
    }

    .alliance-top,
    .alliance-brand,
    .alliance-domain {
        font-size: 9.5px;
    }

    .site-logo img {
        height: 38px;
    }

    .nav-menu {
        padding: 24px 24px;
        gap: 22px;
    }

    .nav-menu li a {
        font-size: 18px;
        letter-spacing: 1.3px;
    }
}

/* ==========================================
   Footer Styles (Kifco International)
   ========================================== */
.site-footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 50px 60px 50px;
    font-family: 'Helvetica W01 Roman', 'Helvetica', 'Arial', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

/* 1. الصف العلوي */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 35px;
    text-decoration: none;
}

.footer-logo-img {
    height: 185px;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    display: flex;
    flex-direction: column;
    font-family: 'K2D', sans-serif;
    font-size: 76px;
    font-weight: 900;
    line-height: 1.15;
    color: #FFFFFF;
    letter-spacing: -1px;
}

.footer-iso img {
    height: 100px;
    object-fit: contain;
    display: block;
}

/* 2. الصف الأوسط */
.footer-middle-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px;
    margin-bottom: 90px;
    width: 100%;
}

.footer-left-col {
    display: flex;
    flex-direction: column;
    gap: 45px;
    flex-shrink: 0;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 0;
    margin: 0;
}

.footer-nav-list li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.footer-nav-list li a:hover {
    opacity: 0.7;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-email {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 17px;
}

.footer-email:hover {
    text-decoration: underline;
}

.footer-address {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.6;
}

/* العمود الأيمن (النشرة البريدية مفرودة بالكامل) */
.footer-right-col {
    flex: 1;
    width: 100%;
    max-width: 1000px;
}

.footer-newsletter-title {
    font-size: 64px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.footer-newsletter-form {
    width: 100%;
}

.footer-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.footer-input-group label {
    font-size: 13px;
    color: #FFFFFF;
}

.footer-input-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #868686;
    padding: 10px 0;
    color: #FFFFFF;
    font-size: 16px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.footer-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 30px;
    width: 100%;
}

.footer-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
}

.footer-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 18px;
    height: 18px;
    background-color: #000000;
    border: 1.5px solid #FFFFFF;
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-checkbox-label input[type="checkbox"]:checked {
    background-color: #000000;
    border-color: #FFFFFF;
}

.footer-checkbox-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1.5px;
    width: 5px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.footer-submit-btn {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    padding: 12px 270px;
    min-width: 420px;
    border-radius: 30px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-submit-btn:hover {
    background-color: #FFFFFF;
    color: #000000;
}

.footer-iraq-cta {
    margin-top: 55px;
}

.footer-iraq-cta a {
    font-size: 55px;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-iraq-cta a:hover {
    opacity: 0.7;
}

/* 3. الصف السفلي */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer-policy-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.footer-policy-links li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-policy-links li a:hover {
    opacity: 0.7;
}

.footer-copyright {
    font-size: 14px;
    color: #FFFFFF;
}

/* ==========================================
   Responsive Design (الموبايل والتابلت)
   ========================================== */
@media screen and (max-width: 1350px) {
    .footer-tagline {
        font-size: 52px;
    }
    .footer-logo-img {
        height: 130px;
    }
    .footer-middle-row {
        gap: 60px;
    }
    .footer-submit-btn {
        min-width: 260px;
    }
}

@media screen and (max-width: 1024px) {
    .footer-tagline {
        font-size: 36px;
    }
    .footer-logo-img {
        height: 95px;
    }
    .footer-iso img {
        height: 70px;
    }
    .footer-newsletter-title,
    .footer-iraq-cta a {
        font-size: 42px;
    }
}

@media screen and (max-width: 900px) {
    .site-footer {
        padding: 50px 25px 30px 25px;
    }
    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .footer-logo-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .footer-middle-row {
        flex-direction: column;
        gap: 50px;
    }
    .footer-newsletter-title,
    .footer-iraq-cta a {
        font-size: 32px;
    }
    .footer-form-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-submit-btn {
        width: 100%;
        min-width: unset;
        padding: 12px 20px;
    }
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-policy-links {
        flex-wrap: wrap;
    }
}