/*
Theme Name: Al Baraka Export & Import
Theme URI: https://albaraka-eg.com
Author: Al Baraka Tech & Media
Author URI: https://albaraka-eg.com
Description: ثيم ووردبريس احترافي متكامل لشركة البركة للاستيراد والتصدير. يدعم العمل بلغتين (العربية والإنجليزية)، متوافق 100% مع أليمنيتور، مدمج به لوجو الشركة الأصلي وشاشة افتتاحية بأنيميشن متطور، وتصميم متناسق مع كافة الشاشات مع ميثاق الجودة وجدول المواسم ونموذج RFQ الدولي.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: albaraka
Domain Path: /languages
*/

:root {
  --primary-green: #0E4D2D;
  --secondary-navy: #0A2540;
  --accent-gold: #D4AF37;
  --accent-gold-hover: #b89528;
  --emerald-light: #166534;
  --ocean-blue: #0284c7;
  --light-bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #E2E8F0;
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Readex Pro', 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s 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: var(--font-ar);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* LTR Support for English Mode */
html[dir="ltr"] body,
body.lang-en {
  direction: ltr;
  text-align: left;
  font-family: var(--font-en);
}

html[dir="rtl"] body,
body.lang-ar {
  direction: rtl;
  text-align: right;
  font-family: var(--font-ar);
}

/* ====================================================
   1. Splash Screen Preloader with Real Logo
   ==================================================== */
.albaraka-splash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #0E4D2D 0%, #0A2540 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.85s ease;
}

.splash-content {
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.splash-logo-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
  z-index: 2;
  animation: logo-pulse 2s infinite ease-in-out;
}

.splash-ring {
  position: absolute;
  inset: -6px;
  border: 3px solid transparent;
  border-top-color: var(--accent-gold);
  border-right-color: #2ECC71;
  border-radius: 50%;
  animation: baraka-spin 1.2s infinite linear;
}

.splash-title {
  font-family: var(--font-ar);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.splash-subtitle {
  font-size: 13px;
  letter-spacing: 3px;
  color: #E2E8F0;
  text-transform: uppercase;
}

.splash-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

@keyframes baraka-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ====================================================
   2. Site Header & Bilingual Navigation
   ==================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 37, 64, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  padding: 12px 0;
  transition: var(--transition);
}

.header-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.site-logo-img:hover {
  transform: scale(1.05);
}

.site-brand-text h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
}

.site-brand-text p {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #94A3B8;
  margin-top: 2px;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.main-navigation a {
  color: #F8FAFC;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.main-navigation a:hover {
  color: var(--accent-gold);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-navigation a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Bilingual Language Switcher with Clear Icons */
.lang-switcher-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 30px;
  padding: 3px 5px;
  gap: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #E2E8F0;
  transition: var(--transition);
  text-decoration: none;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B89528 100%);
  color: #0A2540;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.lang-btn svg {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  vertical-align: middle;
}

.btn-rfq {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #E6A117 100%);
  color: #0A2540;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-rfq:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  color: #000;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ====================================================
   3. Hero Section
   ==================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(ellipse at top right, #0E4D2D 0%, #0A2540 85%);
  color: #FFFFFF;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-overlay-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 22px;
}

.hero-content h2 span {
  color: var(--accent-gold);
}

.hero-content p {
  font-size: 18px;
  color: #CBD5E1;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-secondary {
  border: 2px solid var(--accent-gold);
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #FFFFFF;
}

.hero-badge-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 32px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.hero-badge-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 18px;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ====================================================
   4. KPI Bar
   ==================================================== */
.kpi-bar {
  background: #FFFFFF;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  margin-top: -45px;
  position: relative;
  z-index: 10;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

html[dir="rtl"] .kpi-item {
  border-left: 1px solid var(--border-color);
  text-align: center;
}
html[dir="rtl"] .kpi-item:last-child {
  border-left: none;
}

html[dir="ltr"] .kpi-item {
  border-right: 1px solid var(--border-color);
  text-align: center;
}
html[dir="ltr"] .kpi-item:last-child {
  border-right: none;
}

.kpi-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ====================================================
   5. General Section Styles
   ==================================================== */
.section {
  padding: 80px 0;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  background: rgba(14, 77, 45, 0.08);
  color: var(--primary-green);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
  border: 1px solid rgba(14, 77, 45, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(26px, 3.8vw, 38px);
  color: var(--secondary-navy);
  font-weight: 800;
  line-height: 1.3;
}

/* ====================================================
   6. Seasonality Matrix Table
   ==================================================== */
.seasonality-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
  padding: 20px;
}

.seasonality-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.seasonality-table th,
.seasonality-table td {
  padding: 12px 10px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.seasonality-table th {
  background: #0A2540;
  color: #fff;
  font-weight: 700;
}

.seasonality-table th.product-col {
  text-align: start;
  width: 25%;
}

.seasonality-table td.product-col {
  text-align: start;
  font-weight: 700;
  color: var(--secondary-navy);
}

.season-active {
  background: #2ECC71;
  color: #fff;
  font-weight: 800;
  border-radius: 6px;
}

.season-peak {
  background: var(--accent-gold);
  color: #0A2540;
  font-weight: 800;
  border-radius: 6px;
}

/* ====================================================
   7. Product Grid & Cards
   ==================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(14, 77, 45, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.product-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 55px;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: rgba(10, 37, 64, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid var(--accent-gold);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-body h3 {
  font-size: 19px;
  color: var(--secondary-navy);
  margin-bottom: 10px;
  font-weight: 800;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

.product-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-link {
  color: var(--primary-green);
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-link:hover {
  color: var(--accent-gold-hover);
}

/* ====================================================
   8. Quality Assurance & OEM Section
   ==================================================== */
.quality-box {
  background: linear-gradient(135deg, #0A2540 0%, #0E4D2D 100%);
  color: #fff;
  border-radius: 22px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.quality-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quality-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #E2E8F0;
}

.quality-features li .check-icon {
  background: var(--accent-gold);
  color: #0A2540;
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}

.oem-card {
  background: rgba(255, 255, 255, 0.07);
  padding: 34px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(10px);
}

.oem-card h3 {
  color: var(--accent-gold);
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 800;
}

/* ====================================================
   9. RFQ Form (Request For Quote)
   ==================================================== */
.rfq-container {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  padding: 44px;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--secondary-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  font-family: inherit;
  font-size: 14px;
  background: #F8FAFC;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 77, 45, 0.15);
}

/* ====================================================
   10. Footer & Mobile Sticky Bar
   ==================================================== */
.site-footer {
  background: #0A2540;
  color: #94A3B8;
  padding: 70px 0 30px;
  border-top: 3px solid var(--accent-gold);
}

.footer-logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0A2540;
  border-top: 1px solid var(--accent-gold);
  padding: 10px 16px;
  z-index: 999;
}

.mobile-action-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-mobile-wa {
  background: #25D366;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-mobile-quote {
  background: var(--accent-gold);
  color: #0A2540;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ====================================================
   11. Responsiveness Breakpoints
   ==================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .kpi-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  html[dir="rtl"] .kpi-item:nth-child(2) {
    border-left: none;
  }
  html[dir="ltr"] .kpi-item:nth-child(2) {
    border-right: none;
  }
  .quality-box {
    grid-template-columns: 1fr;
  }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: #0A2540;
    padding: 24px;
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  }
  .main-navigation.is-active {
    display: block;
  }
  .main-navigation ul {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .mobile-toggle {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .kpi-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  html[dir="rtl"] .kpi-item,
  html[dir="ltr"] .kpi-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
  }
  .kpi-item:last-child {
    border-bottom: none;
  }
  .mobile-action-bar {
    display: block;
  }
  body {
    padding-bottom: 60px;
  }
  .rfq-container {
    padding: 24px;
  }
  .site-brand-text {
    display: none;
  }
}
