/* =========================================================
   SDPAMZ - ملف التنسيق الرئيسي
   الهوية البصرية: السماوي (المستخرج من الشعار) + الأبيض
   ========================================================= */

:root {
    --brand: #58c8e0;
    --brand-dark: #2fa9c4;
    --brand-darker: #1c7f96;
    --brand-light: #eafaff;
    --ink: #0f2a33;
    --muted: #5c7580;
    --bg: #ffffff;
    --bg-soft: #f4fcfe;
    --border: #dcf0f5;
    --success: #2e9b57;
    --danger: #d64545;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 42, 51, 0.08);
    --shadow-hover: 0 16px 36px rgba(15, 42, 51, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    direction: rtl;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.eyebrow {
    display: inline-block;
    color: var(--brand-darker);
    background: var(--brand-light);
    padding: 6px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 12px;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

/* ---------- الأزرار ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(88, 200, 224, .4);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(88, 200, 224, .5);
}

.btn-outline {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .15);
}

.btn-block {
    width: 100%;
}

/* ---------- الهيدر ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
}

.brand img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-weight: 600;
    color: var(--ink);
    font-size: .95rem;
}

.main-nav a:hover {
    color: var(--brand-darker);
}

.nav-toggle {
    display: none;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--brand-darker), var(--brand) 55%, #7fe1f2);
    color: #ffffff;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin: 0 0 18px;
    line-height: 1.35;
}

.hero p {
    font-size: 1.05rem;
    opacity: .95;
    margin: 0 0 30px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 26px;
    margin-top: 46px;
    flex-wrap: wrap;
}

.hero-stats div strong {
    display: block;
    font-size: 1.6rem;
}

.hero-stats div span {
    font-size: .85rem;
    opacity: .85;
}

.hero-visual {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(6px);
}

.hero-visual ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-visual li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .14);
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.hero-visual li .icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ffffff;
    color: var(--brand-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* ---------- من نحن ---------- */
.about {
    background: var(--bg);
}

.about .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow .15s ease, transform .15s ease;
}

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

.about-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: var(--brand-light);
    color: var(--brand-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.about-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.about-card p {
    color: var(--muted);
    margin: 0;
    font-size: .93rem;
}

/* ---------- الخدمات ---------- */
.services {
    background: var(--bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
}

.service-card .icon {
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.service-card p {
    color: var(--muted);
    font-size: .88rem;
    margin: 0;
}

/* ---------- الباقات ---------- */
.packages {
    background: var(--bg);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

.package-card {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}

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

.package-card.featured {
    background: linear-gradient(160deg, var(--brand-darker), var(--brand));
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-hover);
}

.package-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffb703;
    color: #3a2600;
    font-weight: 800;
    font-size: .8rem;
    padding: 6px 18px;
    border-radius: 999px;
}

.package-card h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.package-price {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0 4px;
}

.package-price small {
    font-size: .9rem;
    font-weight: 600;
    opacity: .8;
}

.package-duration {
    font-size: .85rem;
    opacity: .8;
    margin-bottom: 20px;
}

.package-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .93rem;
}

.package-card li::before {
    content: "\2713";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    margin-top: 2px;
}

.package-card.featured li::before {
    background: rgba(255, 255, 255, .25);
    color: #ffffff;
}

.package-card .btn {
    width: 100%;
}

.package-card.featured .btn-primary {
    background: #ffffff;
    color: var(--brand-darker);
    box-shadow: none;
}

.package-card.featured .btn-primary:hover {
    background: #eafaff;
}

/* ---------- أعمالنا ---------- */
.works {
    background: var(--bg-soft);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}

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

.work-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--brand-light);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 42, 51, .75);
    color: #ffffff;
    font-size: .78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}

.work-body {
    padding: 20px 22px;
}

.work-body h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.work-body p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

/* ---------- آراء العملاء ---------- */
.testimonials {
    background: var(--bg);
}

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

.testimonial-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-card .stars {
    color: #ffb703;
    letter-spacing: 3px;
    font-size: 1.1rem;
}

.testimonial-comment {
    margin: 0;
    color: var(--ink);
    font-size: .96rem;
    line-height: 1.8;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img,
.author-avatar-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-avatar-placeholder {
    background: var(--brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.testimonial-author strong {
    display: block;
    font-size: .95rem;
}

.testimonial-author span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}

/* ---------- نموذج الطلب ---------- */
.order {
    background: var(--brand-light);
}

.order .container {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
    align-items: flex-start;
}

.order-info h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 0;
}

.order-info p {
    color: var(--muted);
}

.order-contacts {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-contacts a {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    transition: box-shadow .15s ease;
}

.order-contacts a:hover {
    box-shadow: var(--shadow);
}

.order-contacts .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: .93rem;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: .95rem;
    font-family: inherit;
    background: var(--bg-soft);
    transition: border-color .15s ease, background .15s ease;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--brand);
    background: #ffffff;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 140px;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px 10px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    transition: all .15s ease;
}

.radio-option input:checked + label {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.form-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 600;
    font-size: .92rem;
}

.form-alert.success {
    background: #e8f8ee;
    color: var(--success);
    border: 1px solid #bfe9cd;
}

.form-alert.error {
    background: #fdecec;
    color: var(--danger);
    border: 1px solid #f6c6c6;
}

.field-error {
    color: var(--danger);
    font-size: .82rem;
    margin-top: 6px;
    display: block;
}

/* ---------- الفوتر ---------- */
.site-footer {
    background: var(--ink);
    color: #d5eef3;
    padding: 50px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-top .brand {
    color: #ffffff;
}

.footer-top p {
    color: #9fc4cc;
    font-size: .9rem;
    margin-top: 12px;
    max-width: 320px;
}

.footer-col h4 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: .9rem;
}

.footer-col a:hover {
    color: var(--brand);
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    font-size: .85rem;
    color: #7fa5ad;
}

.footer-bottom a {
    color: #7fa5ad;
}

/* ---------- استجابة الشاشات الصغيرة ---------- */
@media (max-width: 900px) {
    .hero .container,
    .order .container {
        grid-template-columns: 1fr;
    }

    .about .container,
    .services-grid,
    .packages-grid,
    .works-grid,
    .testimonials-grid,
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    section {
        padding: 56px 0;
    }

    .main-nav {
        display: none;
    }

    .about .container,
    .services-grid,
    .packages-grid,
    .works-grid,
    .testimonials-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 70px;
    }

    .order-form {
        padding: 24px;
    }
}
