/*
Theme Name: Astra Child
Template: astra
Description: Child theme for Al-Ahmadi Export - Agricultural Products
Version: 2.0
Text Domain: astra-child
*/

/* ========================================
   GLOBAL RESET & VARIABLES
======================================== */
:root {
    --primary: #1a5c2e;
    --primary-light: #2d8a47;
    --primary-dark: #0f3a1c;
    --accent: #e8a020;
    --accent-light: #f4b942;
    --white: #ffffff;
    --light-bg: #f7f9f5;
    --gray-100: #f1f5f1;
    --gray-200: #e2ead3;
    --gray-600: #6b7280;
    --gray-800: #1f2937;
    --text: #2c3e2d;
    --shadow-sm: 0 2px 8px rgba(26,92,46,0.08);
    --shadow-md: 0 8px 30px rgba(26,92,46,0.15);
    --shadow-lg: 0 20px 60px rgba(26,92,46,0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Tajawal', 'Cairo', -apple-system, sans-serif !important;
    color: var(--text) !important;
    background: var(--white) !important;
    direction: rtl !important;
}

/* ========================================
   TYPOGRAPHY - Google Fonts
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
}

/* ========================================
   HEADER - BASE
======================================== */
.site-header,
#masthead {
    background: var(--primary-dark) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

.ast-primary-header-bar,
.main-header-bar {
    min-height: 76px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: var(--primary-dark) !important;
}

.site-primary-header-wrap.ast-container,
.ast-primary-header-bar > .ast-container {
    padding-right: 32px !important;
    padding-left: 32px !important;
}

/* الـ grid row */
.ast-builder-grid-row {
    align-items: center !important;
    min-height: 76px !important;
}

/* إصلاح عمود الناف: auto 1fr يخلي المنيو يملا المساحة (RTL: col1=يمين=لوجو، col2=يسار=ناف) */
.ast-primary-header-bar .ast-builder-grid-row {
    grid-template-columns: auto 1fr !important;
}

/* ========================================
   LOGO
======================================== */
.site-header-primary-section-left {
    align-items: center !important;
}

.ast-site-identity {
    align-items: center !important;
}

/* حجم اللوجو */
.custom-logo,
img.custom-logo {
    width: 190px !important;
    max-width: 190px !important;
    height: auto !important;
    display: block !important;
}

/* خلفية بيضاء خلف اللوجو لإبرازه على الخلفية الداكنة */
.custom-logo-link {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: background 0.2s ease !important;
}

.custom-logo-link:hover {
    background: rgba(255, 255, 255, 1) !important;
}

.custom-logo-link:hover img {
    opacity: 1 !important;
}

/* إخفاء نص اسم الموقع — اللوجو يحتوي عليه */
.ast-site-title-wrap,
.site-title,
.site-description {
    display: none !important;
}

/* ========================================
   NAV SECTION
======================================== */
.site-header-primary-section-right {
    align-items: center !important;
}

/* مسافة بين اللوجو والمنيو */
.ast-builder-menu-1 {
    padding-right: 32px !important;
}

/* الـ ul الخاص بالناف */
#ast-hf-menu-1,
.main-header-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}

/* ========================================
   NAV LINKS
======================================== */
#ast-hf-menu-1 .menu-item,
.main-header-menu .menu-item {
    position: relative !important;
    margin: 0 !important;
    display: block !important;
    line-height: normal !important;
}

#ast-hf-menu-1 .menu-item > .menu-link,
.main-header-menu .menu-item > .menu-link {
    color: rgba(255,255,255,0.87) !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    position: relative !important;
}

/* Hover */
#ast-hf-menu-1 .menu-item > .menu-link:hover,
.main-header-menu .menu-item > .menu-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.45) !important;
}

/* الصفحة الحالية */
#ast-hf-menu-1 .current-menu-item > .menu-link,
.main-header-menu .current-menu-item > .menu-link {
    color: var(--accent-light) !important;
    background: rgba(232,160,32,0.12) !important;
    border-color: var(--accent) !important;
}

/* إزالة الخط التحتاني القديم */
#ast-hf-menu-1 .current-menu-item > .menu-link::after,
.main-header-menu .current-menu-item > .menu-link::after {
    display: none !important;
}

/* آخر عنصر "تواصل معنا" → زر CTA */
#ast-hf-menu-1 .menu-item-43 > .menu-link,
.main-header-menu .menu-item-43 > .menu-link {
    background: var(--accent) !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    border-color: var(--accent) !important;
    padding: 9px 22px !important;
    margin-right: 6px !important;
}

#ast-hf-menu-1 .menu-item-43 > .menu-link:hover,
.main-header-menu .menu-item-43 > .menu-link:hover {
    background: var(--accent-light) !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 14px rgba(232,160,32,0.45) !important;
}

#ast-hf-menu-1 .menu-item-43 > .menu-link::after,
.main-header-menu .menu-item-43 > .menu-link::after {
    display: none !important;
}

/* ========================================
   MOBILE TOGGLE
======================================== */
.ast-button-wrap .menu-toggle,
button.menu-toggle {
    color: white !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* ========================================
   LOGO RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .ast-builder-menu-1 { padding-right: 24px !important; }
    .custom-logo, img.custom-logo {
        width: 165px !important;
        max-width: 165px !important;
    }
}

@media (max-width: 768px) {
    /* Header height */
    .ast-primary-header-bar,
    .main-header-bar { min-height: 62px !important; }

    /* Header padding */
    .site-primary-header-wrap.ast-container,
    .ast-mobile-header-wrap .ast-container {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    /* Logo size */
    .custom-logo, img.custom-logo {
        width: 145px !important;
        max-width: 145px !important;
    }

    /* Logo container - compact on mobile */
    .custom-logo-link {
        padding: 5px 10px !important;
        border-radius: 8px !important;
    }

    /* Center logo vertically in mobile header */
    .ast-site-identity {
        display: flex !important;
        align-items: center !important;
        height: 62px !important;
    }
}

@media (max-width: 480px) {
    .ast-primary-header-bar,
    .main-header-bar { min-height: 58px !important; }

    .custom-logo, img.custom-logo {
        width: 125px !important;
        max-width: 125px !important;
    }

    .custom-logo-link {
        padding: 4px 8px !important;
        border-radius: 7px !important;
    }

    .ast-site-identity {
        height: 58px !important;
    }
}

/* ========================================
   REMOVE FOOTER COPYRIGHT
======================================== */
.ast-footer-copyright,
.ast-footer-credit,
.ast-footer-bar,
#colophon .ast-footer-credit,
.site-footer .ast-footer-credit,
footer .ast-footer-credit,
.ast-small-footer-credit {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

.ast-small-footer,
.ast-footer-bar {
    display: none !important;
}

/* ========================================
   FOOTER CUSTOM
======================================== */
.site-footer,
#colophon {
    background: var(--primary-dark) !important;
    color: rgba(255,255,255,0.8) !important;
    padding: 50px 0 0 !important;
}

.ast-footer-widget-area {
    padding: 40px 0 !important;
}

/* إضافة footer بسيط عبر CSS */
.site-footer::after {
    content: 'شركة الأحمدي للاستيراد والتصدير - جميع الحقوق محفوظة © 2026';
    display: block;
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d3318 0%, #1a5c2e 40%, #2d8a47 70%, #3da85a 100%);
}

.hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(232,160,32,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-wrap::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,120L1360,120C1280,120,1120,120,960,120C800,120,640,120,480,120C320,120,160,120,80,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem) !important;
    font-weight: 900 !important;
    color: white !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
}

.hero-title span {
    color: var(--accent-light);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    color: white !important;
    padding: 15px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(232,160,32,0.4);
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 180px;
}

.btn-primary-hero:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(232,160,32,0.5);
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white !important;
    padding: 15px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--transition);
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 180px;
}

.btn-secondary-hero:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-light);
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* ========================================
   SECTION UTILITIES
======================================== */
.section-pad { padding: 90px 20px; }
.section-pad-sm { padding: 60px 20px; }
.container-max { max-width: 1140px; margin: 0 auto; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    font-weight: 900 !important;
    color: var(--gray-800) !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
}

.section-title span { color: var(--primary); }

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 600px;
}

/* ========================================
   PRODUCTS GRID
======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,92,46,0.08);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card-header {
    padding: 30px 28px 20px;
    background: linear-gradient(135deg, var(--light-bg), var(--gray-100));
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.product-card-title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--primary-dark) !important;
    margin: 0 !important;
}

.product-card-subtitle {
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-top: 3px;
}

.product-card-body {
    padding: 20px 28px 24px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.product-tag {
    background: var(--light-bg);
    color: var(--primary);
    border: 1px solid var(--gray-200);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
}

.product-card-link:hover {
    color: var(--accent) !important;
    gap: 10px !important;
}

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

/* ========================================
   WHY US SECTION
======================================== */
.why-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 70c-16.5 0-30-13.5-30-30S23.5 10 40 10s30 13.5 30 30-13.5 30-30 30z'/%3E%3C/g%3E%3C/svg%3E");
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 50px;
    position: relative;
}

.why-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.why-icon {
    width: 72px;
    height: 72px;
    background: rgba(232,160,32,0.2);
    border: 2px solid rgba(232,160,32,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.why-card h3 {
    color: white !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

.why-card p {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ========================================
   PROCESS SECTION
======================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 50px;
    position: relative;
}

.process-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.process-num {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(26,92,46,0.35);
}

.process-card h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    margin-bottom: 8px !important;
}

.process-card p {
    font-size: 0.85rem !important;
    color: var(--gray-600) !important;
    line-height: 1.6 !important;
}

/* ========================================
   CONTACT CTA SECTION
======================================== */
.cta-section {
    background: linear-gradient(135deg, #fff9ee, #fff3d0);
    border-top: 4px solid var(--accent);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
    font-weight: 900 !important;
    color: var(--primary-dark) !important;
    margin-bottom: 12px !important;
}

.cta-text p {
    color: var(--gray-600) !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: white !important;
    padding: 15px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
    white-space: nowrap;
    width: fit-content;
    min-width: 220px;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37,211,102,0.45);
}

.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: white !important;
    padding: 15px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(26,92,46,0.3);
    white-space: nowrap;
    width: fit-content;
    min-width: 220px;
}

.btn-call:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ========================================
   WHATSAPP FLOATING BUTTON
======================================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 9999 !important;
    background: #25D366 !important;
    color: white !important;
    border-radius: 60px !important;
    padding: 14px 22px !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 25px rgba(37,211,102,0.5) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: var(--transition) !important;
    animation: wa-pulse 2.5s infinite !important;
}

.whatsapp-float:hover {
    background: #1da851 !important;
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(37,211,102,0.6) !important;
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========================================
   POSTS / ARTICLES CARDS
======================================== */
.post-card,
article.post {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid rgba(26,92,46,0.08) !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
}

.post-card:hover,
article.post:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-md) !important;
}

.ast-article-post .category-style-1 a {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
}

/* ========================================
   SINGLE POST
======================================== */
.entry-title {
    color: var(--primary-dark) !important;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
    line-height: 1.3 !important;
}

.entry-content h2 {
    color: var(--primary) !important;
    border-right: 4px solid var(--accent) !important;
    padding-right: 16px !important;
    margin: 32px 0 16px !important;
}

.entry-content h3 {
    color: var(--primary-dark) !important;
}

.entry-content ul li {
    position: relative !important;
    padding-right: 20px !important;
}

.entry-content ul li::before {
    content: '✓' !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    position: absolute !important;
    right: 0 !important;
}

/* ========================================
   BREADCRUMB
======================================== */
.ast-breadcrumbs-wrapper {
    background: var(--light-bg) !important;
    padding: 12px 0 !important;
}

/* ========================================
   RESPONSIVE
======================================== */
/* ========================================
   RESPONSIVE - TABLET (768px)
======================================== */
@media (max-width: 900px) {
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-buttons {
        align-items: center;
        width: 100%;
    }
    .btn-whatsapp,
    .btn-call {
        width: auto;
        min-width: 240px;
        max-width: 320px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (768px)
======================================== */
@media (max-width: 768px) {
    /* Hero */
    .hero-wrap { min-height: auto; padding: 40px 0 80px; }
    .hero-content { padding: 30px 16px; }

    /* Hero Buttons */
    .hero-buttons {
        gap: 12px;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 35px;
    }
    .btn-primary-hero,
    .btn-secondary-hero {
        padding: 13px 22px;
        font-size: 0.9rem;
        min-width: 0;
        flex: 0 1 auto;
        max-width: 48%;
    }

    /* Hero Stats */
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 1.7rem; }

    /* Products grid */
    .products-grid { grid-template-columns: 1fr; }

    /* Why grid */
    .why-grid { grid-template-columns: 1fr 1fr; }

    /* Process grid */
    .process-grid { grid-template-columns: 1fr 1fr; }

    /* CTA Section */
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-buttons {
        align-items: center;
        width: 100%;
    }
    .btn-whatsapp,
    .btn-call {
        width: auto;
        min-width: 220px;
        max-width: 300px;
        font-size: 0.95rem;
        padding: 14px 24px;
    }

    /* Section padding */
    .section-pad { padding: 55px 16px; }
    .section-pad-sm { padding: 40px 16px; }

    /* WhatsApp float - icon only */
    .whatsapp-float { padding: 14px 18px !important; }
    .whatsapp-float span { display: none !important; }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (480px)
======================================== */
@media (max-width: 480px) {
    /* Hero buttons - stacked on very small screens */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .btn-primary-hero,
    .btn-secondary-hero {
        max-width: 260px;
        width: 100%;
        padding: 13px 20px;
    }

    /* Why grid - single column */
    .why-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }

    /* CTA buttons */
    .btn-whatsapp,
    .btn-call {
        max-width: 280px;
        width: 100%;
    }

    .hero-stat-num { font-size: 1.5rem; }
    .section-pad { padding: 45px 14px; }
}

/* ========================================
   PAGE CONTENT (non-home)
======================================== */
.ast-page-builder-template .site-content,
.page-template-default .site-content {
    padding: 60px 0 !important;
}

.about-section h2,
.contact-section h2,
.products-overview h2 {
    color: var(--primary-dark) !important;
    font-size: 2rem !important;
    border-bottom: 3px solid var(--accent) !important;
    padding-bottom: 12px !important;
    margin-bottom: 24px !important;
}

.about-section h3,
.contact-section h3 {
    color: var(--primary) !important;
    margin-top: 28px !important;
}

.about-section ul,
.contact-section ul {
    list-style: none !important;
    padding: 0 !important;
}

.about-section ul li::before,
.contact-section ul li::before {
    content: '✅ ' !important;
}

/* إخفاء "Powered by" الكوبيرايت بجميع الطرق */
a[href*="wordpress.org"],
a[href*="astra"],
.powered-by,
.ast-footer-credit a {
    display: none !important;
}

/* ========================================
   FIX: إزالة الفراغ والعناصر الزائدة فوق الـ Hero
======================================== */

/* إخفاء Astra entry header / page title على الصفحة الرئيسية */
.home .entry-header,
.home .ast-single-post-title,
.home .ast-container > .entry-header,
.front-page .entry-header,
.page-id-37 .entry-header,
.page-id-37 .ast-page-builder-template .entry-header,
.page-id-37 .site-header-primary-section,
.page-id-37 .ast-breadcrumbs-wrapper {
    display: none !important;
}

/* إزالة padding/margin الزائد فوق المحتوى في الصفحة الرئيسية */
.home .site-content,
.home .ast-container,
.home #content,
.page-id-37 .site-content,
.page-id-37 #content,
.page-id-37 .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.home .entry-content,
.page-id-37 .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* إزالة padding من الـ main wrapper في الصفحة الرئيسية */
.home #primary,
.home #main,
.home .ast-article-single,
.page-id-37 #primary,
.page-id-37 #main,
.page-id-37 .ast-article-single,
.page-id-37 article {
    padding: 0 !important;
    margin: 0 !important;
}

/* إخفاء الكوبيرايت Astra الكامل بجميع الطرق */
.ast-small-footer,
.ast-footer-bar,
.ast-footer-credit,
.footer-bar-items,
#colophon .ast-small-footer-wrap,
.ast-small-footer-section {
    display: none !important;
}

/* إخفاء أي padding فوق الـ container */
.home .ast-separate-container .site-content,
.home .ast-no-sidebar .ast-article-single {
    padding: 0 !important;
}

/* fix: الهيدر يلتصق بالـ Hero */
.home .ast-above-header-wrap {
    display: none !important;
}

/* ========================================
   FIX TARGETED: إزالة الفراغ الأبيض فوق Hero - targeted
======================================== */

/* الـ entry-header الفارغ */
.page-id-37 header.entry-header,
.home header.entry-header,
.page-id-37 .ast-article-single > header,
header.ast-header-without-markup {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
}

/* إزالة padding من ast-container على الصفحة الرئيسية */
.page-id-37 .ast-container,
.home .ast-container {
    padding: 0 !important;
    max-width: 100% !important;
}

/* إزالة padding من site-content */
.page-id-37 #content.site-content,
.home #content.site-content {
    padding: 0 !important;
}

/* إزالة كل الـ padding من المقالة الرئيسية */
.page-id-37 article.ast-article-single,
.home article.ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hero يملأ العرض كاملاً */
.page-id-37 .hero-wrap,
.home .hero-wrap {
    margin-right: calc(-50vw + 50%) !important;
    margin-left: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
}
