/* شركة مسار التفوق - أنماط الموقع */
:root {
    --color-primary: #1a5f4a;
    --color-primary-dark: #0f4435;
    --color-accent: #d4a853;
    --color-accent-light: #e8c97a;
    --color-bg: #f8f9fa;
    --color-bg-dark: #1a1a1a;
    --color-text: #2c3e50;
    --color-text-muted: #5a6c7d;
    --font-main: 'Tajawal', sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,.12);
    --radius: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* الهيدر */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--color-primary);
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .logo-name {
        font-size: 1rem;
    }
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: .35rem 0;
    transition: color .2s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }
    .nav.is-open {
        display: block;
    }
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    .nav a {
        display: block;
        padding: .6rem 0;
        border-bottom: 1px solid #eee;
    }
    .nav-toggle {
        display: flex;
    }
}

/* زر واتساب عائم */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .5);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, .6);
}

.whatsapp-float span {
    position: absolute;
    left: 100%;
    margin-left: 10px;
    white-space: nowrap;
    background: #25d366;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.whatsapp-float:hover span {
    opacity: 1;
}

/* الهيرو */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #2d7a62 100%);
    background-image: url("../img/cover.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 6rem 1.5rem 4rem;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 68, 53, .75) 0%, rgba(26, 95, 74, .7) 50%, rgba(45, 122, 98, .65) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 .5rem;
    letter-spacing: -.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    opacity: .95;
    margin: 0 0 .25rem;
}

.hero-sub {
    font-size: 1rem;
    opacity: .9;
    margin: 0 0 1rem;
}

.agent-badge {
    display: inline-block;
    background: rgba(0,0,0,.45);
    padding: .65rem 1.35rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.agent-badge strong {
    color: var(--color-accent-light);
    font-weight: 700;
}

/* الأقسام */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 2rem;
    text-align: center;
}

/* حول الشركة */
.about-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 720px;
    margin: 0 auto;
}

.about-facts {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.about-facts li {
    padding: .4rem 0;
    border-bottom: 1px solid #eee;
}

.about-facts li:last-child {
    border-bottom: none;
}

/* الرؤية والرسالة والهدف */
.vision-section {
    background: #fff;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vision-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}

.vision-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.vision-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.vision-card h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin: 0 0 .75rem;
}

.vision-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: .95rem;
}

/* شريط الشركاء CBM و MT */
.partners-bar {
    padding: 2.25rem 0;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
}

.partners-text {
    text-align: center;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.partners-text strong {
    color: var(--color-accent-light);
    font-weight: 800;
    font-size: 1.1em;
}

/* المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-img-wrap {
    aspect-ratio: 4/3;
    background: var(--color-bg);
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem 1.25rem 0;
    margin: 0;
    color: var(--color-primary);
    font-size: 1.15rem;
}

.product-card p {
    padding: .5rem 1.25rem 1.25rem;
    margin: 0;
    color: var(--color-text-muted);
    font-size: .9rem;
}

.gallery-cta {
    text-align: center;
    margin: 2rem 0 0;
}

.btn-gallery {
    display: inline-block;
    padding: .75rem 1.75rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background .2s, transform .2s;
}

.btn-gallery:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* اتصل بنا */
.contact {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--color-bg);
    padding: 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
}

.contact-card h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 0 0 .75rem;
}

.contact-card a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    margin: .25rem 0;
    word-break: break-all;
}

.contact-card a:hover {
    color: var(--color-primary);
}

.contact-whatsapp a {
    color: #25d366;
}

.contact-whatsapp a:hover {
    color: #1da851;
}

/* الفوتر */
.footer {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo img {
    height: 44px;
    width: auto;
    opacity: .9;
    margin-bottom: 1rem;
}

.footer p {
    margin: .35rem 0;
    font-size: .9rem;
    opacity: .9;
}

.footer-partners {
    margin-top: .75rem !important;
    color: var(--color-accent-light);
    font-weight: 700;
    font-size: 1rem;
}
