/* ============================================
   شركة وادي أثل - لاندينج احترافي متجاوب
   ============================================ */

:root {
    /* ألوان احترافية من التصميم المرجعي */
    --color-primary:#2b62ab;
    --color-primary-light: #2d8a6e;
    --color-primary-dark: #0f3d32;
    --color-accent: #2563eb;
    --color-accent-light: #3b82f6;
    /* لون الفوتر (للزر والعناوين المتناسقة) */
    --color-footer: #2b62ab;
    --color-footer-dark: #0f172a;
    --color-text: #2b62ab;
    --color-text-muted: #6b7280;
    --color-bg: #fafafa;
    --color-white: #ffffff;
    --color-wheat: #e8d5a3;
    --color-sky: #7dd3fc;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Tajawal', sans-serif;
    --header-height: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ========== الهيدر والتنقل ========== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* عند السكرول: خلفية بيضاء وظل خفيف */
.header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 1rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-footer);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--color-footer);
}

.nav-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(180deg, var(--color-footer) 0%, var(--color-footer-dark) 100%);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

/* ========== الهيرو ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* خلفية الهيرو: صورة من assets/header.png مع تدرج خفيف لقراءة النص */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(186, 230, 253, 0.25) 0%, rgba(125, 211, 252, 0.15) 35%, rgba(232, 213, 163, 0.2) 60%, rgba(212, 168, 75, 0.35) 100%),
                url('../assets/header.png') center center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0 3rem;
    max-width: 100%;
    /* في RTL: مسافة من أقصى اليمين عشان النص والأزرار ما يلتصقوا بالحافة */
    padding-inline-start: 2.5rem;
    padding-inline-end: 1.25rem;
}

.hero-label {
    display: inline-block;
    background: var(--color-footer);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--color-footer);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-footer);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: min(480px, 100%);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(180deg, var(--color-footer) 0%, var(--color-footer-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.45);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.55);
}

.btn-secondary {
    background: transparent;
    color: var(--color-footer);
    border: 2px solid var(--color-footer);
}

.btn-secondary:hover {
    background: rgba(43, 98, 171, 0.08);
    box-shadow: none;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
}

.btn-secondary .btn-icon {
    background: rgba(43, 98, 171, 0.15);
    color: var(--color-footer);
}

/* ========== عناوين الأقسام ========== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header--left {
    text-align: right;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-header--left .section-desc {
    margin: 0;
    margin-right: 0;
}

/* ========== من نحن ========== */
.about {
    padding: 4rem 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.about-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.about-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ========== خدماتنا ========== */
.services {
    padding: 4rem 0;
    background: var(--color-bg);
}

/* 3 كروت في الصف على الديسكتوب، 2 على التابلت، 1 على الموبايل */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(43, 98, 171, 0.08);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    box-shadow: 0 12px 32px rgba(43, 98, 171, 0.15);
    transform: translateY(-6px);
    border-color: rgba(43, 98, 171, 0.2);
}

.service-img {
    height: 200px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon {
    width: 72px;
    height: 72px;
    color: rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.service-honey { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.service-oil { background: linear-gradient(135deg, #d9f99d 0%, #84cc16 100%); }
.service-grains { background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%); }
.service-pickles { background: linear-gradient(135deg, #bbf7d0 0%, #22c55e 100%); }
.service-meat { background: linear-gradient(135deg, #fecaca 0%, #dc2626 100%); }

.service-meat .service-icon {
    color: rgba(255, 255, 255, 0.9);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    padding: 1.25rem 1.25rem 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    padding: 0 1.25rem 1.25rem;
}

/* ========== تواصل معنا + تفاصيل الشركة ========== */
.contact-section {
    padding: 0;
    background: var(--color-white);
}

.contact-section-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.contact-section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--color-footer);
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 3rem;
}

/* شبكة: كارت يمين (1) + خريطة يسار أوسع (1.5) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    align-items: stretch;
    min-height: 480px;
}

/* الخريطة تملأ العمود */
.contact-map-wrap {
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.map-wrap--hero {
    flex: 1;
    height: 100%;
    min-height: 480px;
    margin: 0;
    border-radius: 0;
}

/* كارت التفاصيل — أبيض، زوايا دائرية، أيقونات حمراء */
.company-details {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.contact-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem 1.5rem;
    width: 100%;
    max-width: 380px;
}

.contact-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f0f0f0;
    flex-direction: row-reverse;
}

.contact-card-row:last-of-type {
    border-bottom: none;
}

.contact-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-card-text strong {
    font-size: 0.9rem;
    color: var(--color-text);
}

.contact-card-text span,
.contact-card-text a {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.contact-card-text a {
    text-decoration: none;
}

.contact-card-text a:hover {
    color: var(--color-footer);
    text-decoration: underline;
}

.contact-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-footer);
    border-radius: 10px;
    color: var(--color-white);
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-social {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.contact-card-social-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.contact-card-social-links {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.social-btn--wa {
    background: #25d366;
}

.social-btn--ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn--fb {
    background: #1877f2;
}

.map-wrap {
    overflow: hidden;
    background: #e5e7eb;
}

.map-wrap:not(.map-wrap--hero) {
    margin-top: 1.25rem;
    border-radius: var(--radius);
    height: 200px;
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
}


/* نموذج التواصل (محفوظ للاستخدام لاحقاً إن لزم) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: var(--color-white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ========== الفوتر (3 أقسام) ========== */
.footer {
    position: relative;
    background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
    overflow: hidden;
}

/* موجة بيضاء فوق الفوتر فقط — حجم ثابت لتفادي ظهور قوس أزرق ضخم */
.footer-wave {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 60px;
    max-height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' fill='none'%3E%3Cpath d='M0 60V20C240 0 480 40 720 20s480-40 720-20v40H0z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center top;
    background-size: 100% 60px;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 0.5rem;
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-company-name {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.footer-registration {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-registration strong {
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s, padding-right 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-right: 4px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    opacity: 0.95;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* زر واتساب عائم */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
    width: 30px;
    height: 30px;
}

/* ========== ريسبونسيف ========== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .company-details {
        order: 1;
        padding: 2rem 1.25rem;
    }

    .contact-map-wrap {
        order: 2;
        min-height: 320px;
    }

    .map-wrap--hero {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .nav {
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
        order: 999;
        margin-inline-start: auto;
    }

    .logo {
        order: -1;
    }

    .nav-center {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s;
        z-index: 999;
        flex: none;
    }

    .nav-center.is-open {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 70vh;
        padding-bottom: 3rem;
    }

    /* إرجاع مسافات الهيرو متوازنة على التابلت والموبايل عشان الريسبونسيف ما يبوظ */
    .hero-content {
        padding-inline-start: 1.25rem;
        padding-inline-end: 1.25rem;
    }

    .section-header--left {
        text-align: center;
    }

    .section-header--left .section-desc {
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding-inline-start: 1rem;
        padding-inline-end: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .wa-float {
        bottom: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }

    .wa-float svg {
        width: 26px;
        height: 26px;
    }

    .services-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
