/* ============================================================
   site.css — Agricultural Machinery Company
   Arabic RTL | Bootstrap 5 | Premium Corporate Design
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --primary: #2E7D32;
    --primary-d: #1B5E20;
    --primary-l: #4CAF50;
    --accent: #FFC107;
    --dark: #212529;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow: 0 4px 20px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --transition: all .3s ease;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--white);
    direction: rtl;
}

/* Bootstrap colour overrides */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary-d);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--primary-d);
        border-color: var(--primary-d);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
    }

.text-accent {
    color: var(--accent) !important;
}

/* Spacing helper */
.py-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.px-6 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* Buttons — scale on hover */
.btn {
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

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

    .btn:active {
        transform: scale(0.98);
    }


/* ============================================================
   NAVBAR
   ============================================================ */
.agri-navbar {
    padding: .9rem 0;
    background: rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}

    .agri-navbar.scrolled {
        background: var(--primary) !important;
        padding: .55rem 0;
        box-shadow: 0 4px 24px rgba(0,0,0,.22);
    }

    .agri-navbar .navbar-brand {
        font-size: 1.35rem;
        font-weight: 900;
        color: #fff !important;
        letter-spacing: -.3px;
    }

    .agri-navbar .nav-link {
        color: rgba(255,255,255,.9) !important;
        font-size: 1rem;
        font-weight: 600;
        border-radius: .4rem;
        transition: var(--transition);
        position: relative;
    }

        .agri-navbar .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            left: 50%;
            height: 2px;
            background: var(--accent);
            transition: var(--transition);
            border-radius: 2px;
        }

        .agri-navbar .nav-link:hover {
            color: #fff !important;
        }

            .agri-navbar .nav-link:hover::after {
                right: 8px;
                left: 8px;
            }


/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920') center center / cover no-repeat;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,.65) 0%, rgba(30,70,30,.55) 100%);
    z-index: 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    padding: .45rem 1.2rem;
    border-radius: 50px;
    letter-spacing: .3px;
}

.hero-title {
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 4px 24px rgba(0,0,0,.45);
    animation: floatUpDown 4s ease-in-out infinite;
}

.hero-subtitle {
    color: rgba(255,255,255,.88);
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-btn-primary {
    background: var(--primary);
    border-color: var(--primary-d);
    box-shadow: 0 6px 24px rgba(46,125,50,.45);
}

.hero-btn-outline {
    border-width: 2px;
    backdrop-filter: blur(4px);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}

    .hero-wave svg {
        display: block;
        width: calc(100% + 2px);
        height: 80px;
    }

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-wave svg {
        height: 50px;
    }
}


/* ============================================================
   BRANDS SLIDER
   ============================================================ */
.brand-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .brand-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
        border-color: var(--primary);
    }

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: .5px;
    text-align: center;
    line-height: 1.2;
    filter: grayscale(60%);
    transition: var(--transition);
}

.brand-card:hover .brand-name {
    filter: grayscale(0%);
}

.section-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
}


/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-tag {
    display: inline-block;
    background: rgba(46,125,50,.12);
    color: var(--primary);
    font-size: .85rem;
    font-weight: 700;
    padding: .35rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(46,125,50,.2);
    letter-spacing: .4px;
}

.section-tag-light {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.25;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-img {
    transition: transform .7s ease;
    width: 100%;
    height: 480px;
    object-fit: cover;
}

    .about-img:hover {
        transform: scale(1.03);
    }

.about-img-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 2.4rem;
    line-height: 1;
    display: inline-block;
}

.stat-plus {
    font-size: 1.5rem;
    display: inline-block;
    vertical-align: top;
    margin-top: .1rem;
}

.stat-label {
    font-size: .95rem;
    color: #6c757d;
    margin-top: .3rem;
}

@media (max-width: 991px) {
    .about-img-badge {
        display: none;
    }

    .about-img {
        height: 320px;
    }
}


/* ============================================================
   CATEGORIES
   ============================================================ */
.category-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .category-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent);
        transform: scaleX(0);
        transition: transform .3s ease;
        transform-origin: right;
    }

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(46,125,50,.25);
    }

        .category-card:hover::after {
            transform: scaleX(1);
        }

.category-icon-wrap {
    width: 70px;
    height: 70px;
    background: rgba(46,125,50,.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-icon-wrap {
    background: var(--primary);
}

    .category-card:hover .category-icon-wrap i {
        color: #fff !important;
    }


/* ============================================================
   PRODUCTS
   ============================================================ */
.product-card {
    transition: var(--transition);
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg) !important;
    }

.product-img-wrap {
    height: 240px;
    position: relative;
    background: #f5f5f5;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.product-card:hover .product-img {
    transform: scale(1.07);
}

.product-badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    background: var(--accent);
    color: var(--dark);
    font-size: .78rem;
    font-weight: 800;
    padding: .3rem .85rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.product-price {
    letter-spacing: -.5px;
}

.btn-product-detail {
    font-size: .95rem;
    padding: .65rem 1.2rem;
    border-width: 2px;
    transition: var(--transition);
}

    .btn-product-detail:hover {
        background: var(--primary);
        color: #fff;
    }


/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
    background: var(--primary);
}

.why-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.1) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.why-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    transition: var(--transition);
}

    .why-card:hover {
        background: rgba(255,255,255,.18);
        transform: translateY(-6px);
        box-shadow: 0 12px 36px rgba(0,0,0,.25);
    }

.why-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: rgba(255,193,7,.25);
}


/* ============================================================
   STATISTICS (big)
   ============================================================ */
.big-stat {
    position: relative;
}

.big-stat-number {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;
    display: inline-block;
    letter-spacing: -2px;
}

.big-stat-plus {
    font-size: 2.2rem;
    display: inline-block;
    vertical-align: top;
    margin-top: .3rem;
}

.big-stat-label {
    font-size: 1.05rem;
    color: #6c757d;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #1B4B1E 0%, var(--primary) 55%, #388E3C 100%);
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.07) 1px, transparent 0);
        background-size: 28px 28px;
    }

.text-white-75 {
    color: rgba(255,255,255,.75) !important;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-form-card {
    border: 1px solid #e9ecef;
}

.form-control {
    font-family: 'Cairo', sans-serif;
    border-color: #dee2e6;
    transition: var(--transition);
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(46,125,50,.15);
    }

.contact-icon {
    width: 46px;
    height: 46px;
    background: rgba(46,125,50,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-placeholder {
    height: 220px;
    background: #e9ecef;
    border: 2px dashed #ced4da;
    transition: var(--transition);
}

    .map-placeholder:hover {
        border-color: var(--primary);
    }

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .social-icon:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(46,125,50,.35);
    }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.6);
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
}

.footer-heading {
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 1.2rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: .65rem;
        font-size: .95rem;
        color: rgba(255,255,255,.55);
    }

    .footer-links a {
        color: rgba(255,255,255,.55);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--accent);
            padding-right: 4px;
        }

.footer-social {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

    .footer-social:hover {
        background: var(--accent);
        color: var(--dark);
        transform: translateY(-3px);
    }

.footer-divider {
    border-color: rgba(255,255,255,.1);
    margin-top: 0;
}


/* ============================================================
   UTILITY OVERRIDES
   ============================================================ */
.border-y {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-3 {
    border-radius: .75rem !important;
}

/* smooth scrollbar for modals */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
}


/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 575px) {
    .py-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-section {
        padding-top: 70px;
    }

    .stat-number {
        font-size: 1.9rem;
    }

    .big-stat-number {
        font-size: 2.6rem;
    }
}

@media (max-width: 991px) {
    .agri-navbar .nav-link::after {
        display: none;
    }

    #navbarMenu {
        background: var(--primary);
        border-top: 1px solid rgba(255,255,255,.15);
        padding: 1rem;
        border-radius: 0 0 var(--radius) var(--radius);
    }
}
