/* ===============================
   MEDAD – Corporate Industrial UI
   =============================== */

:root {
    --bg-main: #f4f6f8;
    --bg-card: #ffffff;
    --text-main: #1f2933;
    --text-muted: #6b7280;

    --cyan: #00bcd4;
    --magenta: #e91e63;
    --yellow: #ffeb3b;
    --dark: #111827;

    --border: #e5e7eb;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    background: linear-gradient(to bottom, #ffffff 0%, #f4f6f8 100%);
    color: var(--text-main);
    min-height: 100vh;
}

/* ===== CMYK Top Line ===== */
.cmyk-bar {
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--cyan),
        var(--magenta),
        var(--yellow),
        var(--dark)
    );
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* ===== Header ===== */
.header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 18px 40px;
    position: relative;
}

/* CMYK accent under header */
.header::after {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    margin-top: 14px;
    background: linear-gradient(
        90deg,
        var(--cyan),
        var(--magenta),
        var(--yellow),
        var(--dark)
    );
    border-radius: 2px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ===== Logo (with animation) ===== */
.logo {
    width: 78px;
    height: auto;
    background: transparent;
    box-shadow: none;
    animation: logoFade 1.2s ease-out forwards;
}

@keyframes logoFade {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo:hover {
    transform: scale(1.04);
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.brand-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Navigation ===== */
.nav {
    display: flex;
    gap: 16px;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.nav a:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.nav a.lang {
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 700;
}

/* ===== Hero Section ===== */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.hero-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.hero-card h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-card p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ===== Under Construction ===== */
.construction {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 6px solid var(--cyan);
    background: #f8fafc;
    font-weight: 700;
    color: var(--dark);
}

/* ===== Buttons ===== */
.hero-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.btn {
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn.primary {
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    color: #fff;
    border: none;
}

/* ===== Ink Visual Box ===== */
.ink-blob {
    background: linear-gradient(
        135deg,
        rgba(0,188,212,0.12),
        rgba(233,30,99,0.12),
        rgba(255,235,59,0.15)
    );
    border-radius: var(--radius);
    height: 100%;
    min-height: 260px;
    box-shadow: var(--shadow);
}

/* ===== Vision & Mission ===== */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border-top: 6px solid var(--cyan);
}

.card:nth-child(2) {
    border-top-color: var(--magenta);
}

.card h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    line-height: 1.9;
    color: var(--text-muted);
}

/* ===== Contact Section ===== */
.contact {
    margin-top: 60px;
}

.contact-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--cyan);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.contact-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.label {
    font-weight: 700;
    margin-bottom: 6px;
}

.value a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
}

/* ===== Footer ===== */
.footer {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===== Hero Logo Size Fix ===== */
.hero-logo {
    max-width: 420px;   /* الحجم المناسب */
    width: 100%;
    height: auto;
    object-fit: contain;
}
