/* Al-Rehman Food Exports - Creative Theme */

:root {
    /* Green + Red Halal Theme */
    --primary: #0b5e38;
    --primary-mid: #147a4a;
    --primary-light: #1fa866;
    --accent: #dc2626;
    --accent-dark: #b91c1c;
    --accent-gold: #22c55e;
    --accent-gold-light: #86efac;
    --halal-red: #dc2626;
    --halal-green: #2bb15c;
    --success: #15803d;
    --text: #1a2e23;
    --text-muted: #4b6358;
    --bg: #ffffff;
    --bg-alt: #f0fdf4;
    --bg-dark: #052e1a;
    --border: #d1e7dd;
    --shadow: 0 4px 20px rgba(11, 94, 56, 0.1);
    --shadow-lg: 0 12px 40px rgba(11, 94, 56, 0.16);
    --radius: 16px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.25;
    color: var(--primary);
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--halal-green); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }

/* ===== HEADER ===== */
.site-header {
    /* position: fixed; */
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: all var(--transition);
}

.site-header.scrolled,
.site-header.header-solid {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    position: sticky;
}

.site-header.scrolled .top-bar,
/* .site-header.header-solid .top-bar { display: none; } */

.top-bar {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    padding: 0.45rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
}

.halal-tag {
    background: var(--halal-red);
    color: white;
    padding: 0.15rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.top-item.halal-green {
    background: var(--halal-green);
    color: white;
    padding: 0.15rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.main-nav { padding: 0.85rem 0; transition: padding var(--transition); }
.site-header.scrolled .main-nav,
.site-header.header-solid .main-nav { padding: 0.6rem 0; }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-emblem {
    width: 60px;
     height: 52px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.logo-halal {
    font-size: 0.55rem;
    color: var(--halal-red);
    font-weight: 700;
    line-height: 1;
}

.logo-arfe {
    font-size: 0.65rem;
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.site-header.home-header:not(.scrolled) .logo-text strong { color: #000; }
.site-header.home-header:not(.scrolled) .logo-text small {   }

.logo-text small {
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
}

.site-header.home-header:not(.scrolled) .nav-links a { color: #000; }
.site-header.home-header:not(.scrolled) .nav-links a:hover,
.site-header.home-header:not(.scrolled) .nav-links a.active {   }

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(11, 94, 56, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 26px; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header.home-header:not(.scrolled) .nav-toggle span { background: #000; }

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    margin-top: 0;
}

.slider-track { position: relative; width: 100%; height: 100%; }

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 1s ease, transform 6s ease;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,46,26,0.88) 0%, rgba(11,94,56,0.6) 45%, rgba(220,38,38,0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0px;
    max-width: 800px;
}

.slide-badge {
    display: inline-block;
    background: rgba(34,197,94,0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold-light);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.slide-content h1 {
    color: white;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeUp 0.8s ease 0.4s both;
}

.slide-content p {
    color: rgba(255,255,255,0.88);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeUp 0.8s ease 0.6s both;
}

.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.8s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 52px; height: 52px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
}

.slider-arrow:hover { background: var(--halal-red); border-color: var(--halal-red); }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.slider-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--halal-red);
    border-color: var(--halal-red);
    transform: scale(1.2);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--halal-green) 50%, var(--halal-red) 100%);
    padding: 0;
    position: relative;
    z-index: 5;
    margin-top: -2px;
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats-bar-item {
    text-align: center;
    padding: 0.75rem 1rem;
    color: white;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.stats-bar-item:last-child { border-right: none; }

.stats-bar-item strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
}

.stats-bar-item span {
    font-size: 0.82rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--halal-red);
    color: white;
    border-color: var(--halal-red);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
    color: white;
}

.btn-secondary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-secondary:hover { background: var(--primary-mid); color: white; }

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.btn-sm { padding: 0.45rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== SECTIONS ===== */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-dark {
    background: linear-gradient(160deg, var(--bg-dark) 0%, var(--primary-mid) 100%);
    color: white;
}

.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center p { max-width: 600px; margin: 0.75rem auto 0; color: var(--text-muted); }
.section-header.light p { color: rgba(255,255,255,0.7); }

.section-tag {
    display: inline-block;
    color: var(--halal-green);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.section-tag.light { color: var(--accent-gold-light); }

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
}

.section-cta { margin-top: 2.5rem; }

/* ===== ABOUT SPLIT ===== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual { position: relative; }

.about-img-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img { width: 100%; height: 420px; object-fit: cover; }

.about-img-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
}

.about-img-float img { width: 100%; }

.about-experience {
    position: absolute;
    top: 30px;
    left: -30px;
    background: linear-gradient(135deg, var(--halal-red), var(--accent-dark));
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text { font-size: 0.8rem; line-height: 1.3; opacity: 0.9; }

.about-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-content .lead { font-size: 1.05rem; color: var(--text); font-weight: 500; margin-bottom: 1rem; }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; }

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--halal-green);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.product-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img { transform: scale(1.1); }

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,46,26,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-body { padding: 1.5rem; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: white; }
.product-body p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* Products Page */
.products-page-grid { display: flex; flex-direction: column; gap: 4rem; }

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.product-detail-card:nth-child(even) { direction: rtl; }
.product-detail-card:nth-child(even) > * { direction: ltr; }

.product-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-detail-img img { width: 100%; height: 350px; object-fit: cover; }

.product-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--halal-green);
    opacity: 0.6;
    line-height: 1;
}

.product-detail-body h2 { font-size: 1.75rem; margin: 0.5rem 0 1rem; }

.product-features {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
}

.product-features li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ===== BRAND ===== */
.brand-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.brand-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--halal-green);
}

.brand-icon {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 50%;
    width: 70px; height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.halal-card .brand-icon {
    background: var(--halal-red);
    color: white;
    font-size: 1.2rem;
}

.brand-card.green-card .brand-icon {
    background: var(--halal-green);
    color: white;
}

.brand-card.red-card .brand-icon {
    background: var(--halal-red);
    color: white;
}

.brand-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.brand-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== COUNTRIES MARQUEE ===== */
.countries-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    white-space: nowrap;
    border: 1px solid var(--border);
}

.country-chip svg { color: var(--halal-green); }

/* ===== PROCESS ===== */
.process-preview {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: white;
}

.process-preview h2 { color: white; }

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    text-align: center;
    padding: 2rem 1.25rem;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all var(--transition);
}

.process-step:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-5px);
}

.process-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color:#dcc826;
    margin-bottom: 0.75rem;
}

.process-step h3 { color: white; font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* Process Full Page */
.process-full { display: flex; flex-direction: column; gap: 0; }

.process-full-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.process-full-item:last-child { border-bottom: none; }

.process-full-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--halal-green), var(--primary));
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.process-full-content h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.process-full-content p { color: var(--text-muted); }

.infra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.infra-content h2 { color: white; margin: 0.5rem 0 1rem; }
.infra-content p { color: rgba(255,255,255,0.75); margin-bottom: 1rem; }

.light-list li { color: rgba(255,255,255,0.8); }

.infra-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.infra-image img { width: 100%; height: 350px; object-fit: cover; }

/* ===== GALLERY PREVIEW ===== */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-preview-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.gallery-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-preview-item:hover img { transform: scale(1.08); }

/* ===== CONTACT CTA ===== */
.contact-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--halal-green) 50%, var(--halal-red) 100%);
    color: white;
    padding: 2rem 0;
}

.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.contact-cta-text h2 { color: white; font-size: 2rem; margin-bottom: 0.5rem; }
.contact-cta-text p { opacity: 0.9; font-size: 1.05rem; }

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-mid) 50%, var(--halal-red) 120%);
    color: white;
    padding: 4rem 0 4rem;
    text-align: center;
    margin-top: 0;
}

main > .page-hero:first-child,
main > .section:first-child {   }
main > .hero-slider:first-child { margin-top: 0; }

.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-hero p {
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-top: 3px solid var(--halal-green);
    text-align: center;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== CONTENT (About page) ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.content-main h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.content-main h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--primary-mid); }
.content-main p { color: var(--text-muted); margin-bottom: 1rem; }

.styled-list { list-style: none; margin-bottom: 1.5rem; }
.styled-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: var(--text-muted);
}
.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.styled-list.markets-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem 1.25rem;
}

.styled-list.markets-list li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    font-size: 0.95rem;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.sidebar-card h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--halal-green);
}

.sidebar-card.highlight {
    background: var(--primary);
    color: white;
    border: none;
}

.sidebar-card.highlight h3 { color: white; border-color: var(--halal-red); }
.sidebar-card.highlight p { opacity: 0.9; margin-bottom: 1rem; }

.facts-table { width: 100%; font-size: 0.88rem; }
.facts-table td { padding: 0.5rem 0; vertical-align: top; }
.facts-table td:first-child { color: var(--text-muted); width: 45%; font-weight: 500; }
.facts-table td:last-child { font-weight: 600; color: var(--primary); }

.reg-list { list-style: none; }
.reg-list li { padding: 0.4rem 0; font-size: 0.88rem; color: var(--text-muted); }
.reg-list strong { color: var(--primary); }

/* ===== GALLERY PAGE ===== */
.gallery-count { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 46, 26, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-zoom {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: white;
    border: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    opacity: 0;
    transition: all var(--transition);
}

.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-zoom:hover { background: var(--halal-green); color: white; transform: scale(1.1); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox-content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox-content img { max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox-content p { color: white; margin-top: 1rem; }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color var(--transition);
    line-height: 1;
}

.lightbox-close { top: 1rem; right: 1.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--halal-green); }

/* ===== VIDEOS ===== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.video-wrapper { background: #000; aspect-ratio: 16/9; }
.video-wrapper video { width: 100%; height: 100%; object-fit: contain; }
.video-info { padding: 1.25rem; }
.video-info h3 { font-size: 1rem; margin-bottom: 0.35rem; text-transform: capitalize; }
.video-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ===== DOCUMENTS ===== */
.documents-grid { display: grid; gap: 1rem; }

.document-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.document-card:hover { border-color: var(--halal-green); box-shadow: var(--shadow-lg); }
.document-icon { color: var(--halal-red); flex-shrink: 0; }
.document-info { flex: 1; }
.document-info h3 { font-size: 1rem; margin-bottom: 0.25rem; text-transform: capitalize; }
.document-meta { font-size: 0.8rem; color: var(--text-muted); }
.document-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.registrations-banner {
    margin-top: 3rem;
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
}

.registrations-banner h3 { color: white; margin-bottom: 1.5rem; text-align: center; }

.reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.reg-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.reg-item span { display: block; font-size: 0.8rem; opacity: 0.75; margin-bottom: 0.35rem; }
.reg-item strong { font-size: 0.9rem; word-break: break-all; }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-cards { display: grid; gap: 1rem; margin-bottom: 2rem; }

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-icon { font-size: 1.5rem; flex-shrink: 0; }

.contact-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card p { font-size: 0.95rem; }

.contact-form-wrap {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--halal-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.alert { padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.75rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 0.5rem; }
.empty-state code { background: white; padding: 0.15rem 0.5rem; border-radius: 4px; color: var(--primary); }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.75); }
.footer-top { padding: 2rem 0 1rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 2.5rem;
}

.footer-brand p { font-size: 0.88rem; margin: 1rem 0; line-height: 1.7; }
.footer-about { font-size: 0.88rem; line-height: 1.7; }

.footer-logo .logo-text strong { color: white; }
.footer-logo .logo-text small { color: rgba(255,255,255,0.5); }

.cert-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.badge {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge.halal { background: var(--halal-red); color: white; }
.badge.green { background: var(--halal-green); color: white; }

.site-footer h4 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent-gold-light); }

.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 0.65rem; font-size: 0.88rem; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--accent-gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.534);
}

 .map-placeholder {
    width: 90%;
    margin: 0px auto 40px;
  }

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .nav-links a { font-size: 0.82rem; padding: 0.5rem 0.6rem; }
    .products-grid, .brand-showcase { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .reg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .about-split, .infra-grid, .contact-grid, .content-grid { grid-template-columns: 1fr; }
    .styled-list.markets-list { grid-template-columns: repeat(2, 1fr); }
    .product-detail-card { grid-template-columns: 1fr; }
    .product-detail-card:nth-child(even) { direction: ltr; }
    .about-img-float { display: none; }
    .about-experience { left: 10px; top: 10px; }
    .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar-item:nth-child(2) { border-right: none; }
    .contact-cta-inner { flex-direction: column; text-align: center; }
    .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff !important;
        box-shadow: var(--shadow);
    }

    .site-header.home-header:not(.scrolled) .logo-text strong,
    .site-header.home-header:not(.scrolled) .logo-text small,
    .site-header.home-header:not(.scrolled) .nav-toggle span {
        color: var(--primary);
    }

    .site-header.home-header:not(.scrolled) .nav-toggle span {
        background: var(--primary);
    }

    .main-nav {
        background: #fff;
    }

    .nav-inner {
        position: relative;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1003;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1001;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        padding: 5.5rem 1.25rem 2rem;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        gap: 0.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .top-bar {
        display: none;
    }

    .nav-links.open {
        right: 0;
        justify-content: flex-start;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 1rem;
        font-size: 1rem;
        color: var(--text) !important;
        border-radius: 10px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--bg-alt);
        color: var(--primary) !important;
    }

    main > .page-hero:first-child,
    main > .section:first-child:not(.hero-slider) {
        margin-top: 72px;
    }

    .hero-slider { min-height: 500px; margin-top: 0; }
    .slide-content { padding-top: 90px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 1rem; }

    .products-grid, .brand-showcase, .process-timeline, .features-grid { grid-template-columns: 1fr; }
    .videos-grid { grid-template-columns: 1fr; }
    .document-card { flex-direction: column; text-align: center; }
    .document-actions { justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar-inner { justify-content: center; }
    .gallery-preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-bar-grid { grid-template-columns: 1fr; }
    .styled-list.markets-list { grid-template-columns: 1fr; }
    .stats-bar-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
    .slide-actions { flex-direction: column; width: 100%; }
    .slide-actions .btn { width: 100%; }
}
