/* -------------------------
   Global Styles
-------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #f3f4f6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
}

/* Links & Buttons */
a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn.primary {
    background: #111827;
    color: #f9fafb;
}

.btn.primary:hover {
    background: #020617;
}

.btn.secondary {
    background: #f9fafb;
    color: #111827;
    border-color: #d1d5db;
}

.btn.secondary:hover {
    background: #e5e7eb;
}

/* -------------------------
   Header & Navigation
-------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 244, 246, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.75rem;
    color: #6b7280;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.nav a {
    position: relative;
    padding-bottom: 0.2rem;
    color: #374151;
}

.nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #111827;
}

.btn-nav {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid #111827;
}

/* -------------------------
   Hero Section
-------------------------- */
.hero {
    padding: 3.5rem 0 3rem;
    background: radial-gradient(circle at top left, #e5e7eb, #f3f4f6 50%, #ffffff);
    border-bottom: 1px solid #e5e7eb;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #020617;
}

.hero-lead {
    font-size: 1.02rem;
    color: #374151;
    margin-bottom: 0.7rem;
}

.hero-sub {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-highlight {
    background: #111827;
    color: #f9fafb;
    border-radius: 1.2rem;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.hero-highlight h2 {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: #e5e7eb;
}

.hero-highlight ul {
    list-style: disc inside;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.hero-highlight li + li {
    margin-top: 0.4rem;
}

/* -------------------------
   Sections
-------------------------- */
.section {
    padding: 3.5rem 0;
    background: #f9fafb;
}

.section.alt {
    background: #ffffff;
}

.section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 0.3rem;
    color: #111827;
}

.section-intro {
    font-size: 0.95rem;
    color: #6b7280;
    max-width: 640px;
    margin-bottom: 1.8rem;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
}

/* Card */
.card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.4rem 1.3rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: #111827;
}

.card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.7rem;
}

.card ul {
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: #6b7280;
}

.card li + li {
    margin-top: 0.3rem;
}

/* Lists */
.list-check {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.list-check li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.45rem;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
    color: #16a34a;
}

.list-steps {
    list-style: decimal;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.list-steps li + li {
    margin-top: 0.35rem;
}

/* -------------------------
   Forms
-------------------------- */
.form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form input,
.form textarea,
.form select {
    border-radius: 0.7rem;
    border: 1px solid #d1d5db;
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: #111827;
    box-shadow: 0 0 0 1px #11182711;
    background: #ffffff;
}

.form textarea {
    resize: vertical;
}

/* Wide form */
.form-wide {
    margin-top: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.form button {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* -------------------------
   Footer
-------------------------- */
.footer {
    padding: 1.4rem 0 1.6rem;
    background: #111827;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

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

    .hero {
        padding-top: 2.4rem;
    }

    .nav {
        display: none; /* تبسيط: إخفاء القائمة في الشاشات الصغيرة (يمكن لاحقاً عمل منيو أيقونة) */
    }

    .logo-main {
        font-size: 0.9rem;
    }
}

@media (max-width: 800px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 2.8rem 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .container {
        width: 92%;
    }

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

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-highlight {
        padding: 1.3rem 1.1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }
}