/* ========================================
   Alabbar Group Food - Premium Stylesheet
   ======================================== */

:root {
    --abbar-green: #379237;
    --abbar-dark: #2d5a2d;
    --abbar-grey: #4d4d4d;
    --abbar-silver: #f5f5f5;
    --white: #ffffff;
    --text-main: #333333;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--white);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   SVG Texture Backgrounds
   ======================================== */

/* Subtle diagonal lines texture */
.texture-lines {
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 0h1L0 5V4zm1 2v-1L2 6H1zM0 0h1L0 1z' fill='%23379237' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* Dot grid texture */
.texture-dots {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%232d5a2d' fill-opacity='0.04'/%3E%3C/svg%3E");
}

/* Topographic / organic curves */
.texture-topo {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q20 20 40 40 T80 40' fill='none' stroke='%23379237' stroke-opacity='0.04' stroke-width='1'/%3E%3Cpath d='M0 60 Q20 40 40 60 T80 60' fill='none' stroke='%23379237' stroke-opacity='0.03' stroke-width='1'/%3E%3Cpath d='M0 20 Q20 0 40 20 T80 20' fill='none' stroke='%23379237' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

/* Cross hatch for footer */
.texture-crosshatch {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0M-10 10L10-10M30 50L50 30' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delay for cards */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.4s; }

/* ========================================
   Header
   ======================================== */

header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--abbar-grey);
    font-weight: 700;
    font-size: 15px;
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--abbar-green);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--abbar-green);
}

.lang-link {
    text-decoration: none;
    color: var(--abbar-grey);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #ddd;
    padding: 5px 15px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-link:hover {
    border-color: var(--abbar-green);
    color: var(--abbar-green);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    height: 550px;
    background: url('foods.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        135deg,
        rgba(45, 90, 45, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    animation: heroFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.hero-text p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    animation: heroFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.hero-line {
    width: 80px;
    height: 4px;
    background: var(--abbar-green);
    margin-top: 25px;
    animation: heroLineExpand 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
    border-radius: 2px;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroLineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* ========================================
   Features Cards
   ======================================== */

.features {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

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

.card {
    padding: 40px 30px;
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 35px;
    margin-bottom: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 { margin-bottom: 15px; font-size: 22px; }
.card p { font-size: 14px; opacity: 0.9; line-height: 2; }

.card-primary { background-color: var(--abbar-dark); }
.card-grey { background-color: var(--abbar-grey); }
.card-light { background-color: var(--abbar-green); }

/* ========================================
   About Section
   ======================================== */

.about {
    padding: 100px 0;
    position: relative;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q20 20 40 40 T80 40' fill='none' stroke='%23379237' stroke-opacity='0.04' stroke-width='1'/%3E%3Cpath d='M0 60 Q20 40 40 60 T80 60' fill='none' stroke='%23379237' stroke-opacity='0.03' stroke-width='1'/%3E%3Cpath d='M0 20 Q20 0 40 20 T80 20' fill='none' stroke='%23379237' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--abbar-green);
    border-radius: 8px;
    opacity: 0.2;
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-img:hover::before {
    top: 12px;
    right: 12px;
    opacity: 0.35;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.sub-title {
    color: var(--abbar-green);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
}

.about-info h2 {
    font-size: 32px;
    color: var(--abbar-grey);
    margin: 15px 0;
}

.about-info p {
    line-height: 2;
    color: #555;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat {
    font-weight: 700;
    color: var(--abbar-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.stat:hover {
    color: var(--abbar-green);
}

.stat i {
    color: var(--abbar-green);
    font-size: 18px;
}

/* ========================================
   Clients
   ======================================== */

.clients {
    padding: 60px 0;
    background-color: var(--abbar-silver);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%232d5a2d' fill-opacity='0.04'/%3E%3C/svg%3E");
    text-align: center;
}

.section-title { margin-bottom: 40px; color: var(--abbar-grey); }

.clients-slider {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 0.6;
}

/* ========================================
   Footer
   ======================================== */

footer {
    background-color: #1a1a1a;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0M-10 10L10-10M30 50L50 30' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
    color: #cecece;
    padding: 80px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--abbar-green), var(--abbar-dark), var(--abbar-green));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 50px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 50px;
}

.footer-logo {
    height: 90px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    line-height: 2;
    font-size: 14px;
}

.footer-contact h4,
.footer-hours h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.footer-contact h4::after,
.footer-hours h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--abbar-green);
}

.footer-contact p,
.footer-hours p { margin-bottom: 12px; font-size: 14px; }

.footer-contact i { color: var(--abbar-green); margin-left: 10px; }

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover { color: var(--abbar-green); }

.footer-social { display: flex; gap: 15px; margin-top: 20px; }

.footer-social a {
    color: var(--white);
    background: #2a2a2a;
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--abbar-green);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 12px;
    color: #555;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
    .grid-cards,
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero { height: 400px; }
    .hero-text h1 { font-size: 32px; }
    .hero-text p { font-size: 16px; }
    .nav-links { display: none; }

    .about { padding: 60px 0; }
    .about-grid { gap: 40px; }
    .about-img::before { display: none; }

    .footer-grid { gap: 30px; }
}

@media (max-width: 576px) {
    .hero { height: 350px; }
    .hero-text h1 { font-size: 26px; }
    .about-stats { flex-direction: column; gap: 15px; }
}
