/* ================ CSS Reset ================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ================ المتغيرات ================ */
:root {
  --primary: #C4161C;      /* الأحمر – الهوية */
  --secondary: #1E1E1E;    /* الأسود الصناعي */
  --background: #F6F6F6;   /* خلفية مريحة */
  --text: #111111;         /* نص أساسي */
  --text-muted: #6B6B6B;   /* نص ثانوي */
  --border: #E0E0E0;       /* حدود خفيفة */
  --accent: #2F5D8C;       /* اختياري */
  --white: #FFFFFF;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --radius: 8px;
  --header-height: 80px;
}

/* ================ الأنماط الأساسية ================ */
body {
    font-family: 'Segoe UI', 'Noto Sans Arabic', Tahoma, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ================ التايبوغرافي ================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary);
}


/* ================ LOGO ================ */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    padding-inline-end: 1rem;        /* حجم مناسب للهيدر */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Hover خفيف */
.logo:hover img {
    transform: scale(1.05);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

strong {
    font-weight: 700;
}

/* ================ الهيدر ================ */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 3.5rem;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


@media (min-width: 1200px) {
    header {
        padding: 0 4.5rem;
    }
}



header > div:first-child {
    flex: 0 0 auto;
}

header > nav {
    flex: 1;
    margin: 0 2rem;
}

header > div:last-child {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* الشعار */
header a[aria-label="Industry Wealth Home"] {
    font-size: 1.8rem;
    color: var(--primary);
    display: inline-block;
    padding: 0.5rem 0;
}

header a[aria-label="Industry Wealth Home"] strong {
    color: var(--secondary);
}

/* التنقل */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
    background-color: rgba(196, 22, 28, 0.05);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0.75rem;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: calc(100% - 1.5rem);
}

/* تبديل اللغة */
header > div:last-child > div:first-child {
    display: flex;
    gap: 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

header > div:last-child > div:first-child button {
    background-color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

header > div:last-child > div:first-child button:hover {
    background-color: var(--background);
}

header > div:last-child > div:first-child button.active {
    background-color: var(--primary);
    color: var(--white);
}

/* زر طلب عرض سعر */
header > div:last-child > a {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow);
}

header > div:last-child > a:hover {
    background-color: #a81217;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--white);
}

/* ================ المحتوى الرئيسي ================ */
main {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ================ الفوتر ================ */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

    .cr-group {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0.75rem;
    align-items: center;
}

footer section:first-child {
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

footer h3, footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h3::after, footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}


.lang-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: 0.25s ease;
}

.lang-btn:hover {
    background: #f3f3f3;
}

/* الزر النشط */
.lang-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}


footer address p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer address p:before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
}

footer address p:nth-child(1):before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C4161C'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

footer address p:nth-child(2):before,
footer address p:nth-child(3):before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C4161C'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

footer address p:nth-child(4):before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C4161C'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z'/%3E%3C/svg%3E");
}

footer section:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

footer section:last-child p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ================ التجاوب ================ */
@media (max-width: 1200px) {
    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    header {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
    }
    
    header > nav {
        order: 3;
        flex-basis: 100%;
        margin: 1rem 0 0;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    footer section:first-child {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    header > div:last-child {
        gap: 1rem;
    }
    
    header > div:last-child > a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    footer section:first-child {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer h3::after, footer h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    footer ul li a:hover {
        transform: translateX(0);
    }
    
    footer section:last-child {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    main {
        padding: 2rem 1rem;
    }
    
    footer {
        padding: 2rem 1rem 1rem;
    }
    
    header > div:last-child > div:first-child button {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    nav ul li a {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }


    
}
/* ================ ANIMATION OVERRIDES ================ */
@media (max-width: 768px) {
    .hero,
    .about,
    .vision-mission,
    .why-wealth,
    .sectors,
    .partners,
    .cta {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }



}
