/* ============================================================
   FLEX AUTO 84 — Midnight Navy & Metallic Copper Slate (Exact Image Replica)
   Identity: Deep Midnight Navy (#0B1320), Carbon Slate (#131C27), Copper Gold (#C5A059)
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  /* ─── Metallic Copper & Gold Accent Colors ─── */
  --primary:        #C5A059;       /* Copper Gold */
  --primary-dark:   #8B6508;
  --primary-light:  #E6C896;
  --primary-glow:   rgba(197, 160, 89, 0.35);
  --primary-subtle: rgba(197, 160, 89, 0.14);

  --yellow:         #D4AF37;       /* Pure Gold */
  --yellow-light:   #F3E5AB;
  --yellow-dark:    #9A7B3E;

  --whatsapp:       #25D366;

  /* ─── Midnight Navy & Carbon Slate Backgrounds (Exact Photo Match) ─── */
  --bg-base:        #0B1320;       /* Deep Midnight Navy */
  --bg-surface:     #0F1928;       /* Dark Steel Surface */
  --bg-card:        #131C27;       /* Carbon Slate Card */
  --bg-card-hover:  #1B2736;
  --bg-input:       #0F1928;
  --bg-glass:       rgba(19, 28, 39, 0.92);
  --bg-glass-hover: rgba(27, 39, 54, 0.96);

  /* ─── Text Colors ─── */
  --text-primary:   #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted:     #94A3B8;
  --text-accent:    var(--primary);

  /* ─── Borders ─── */
  --border:         rgba(255, 255, 255, 0.09);
  --border-light:   rgba(255, 255, 255, 0.16);
  --border-accent:  rgba(197, 160, 89, 0.5);
  --border-yellow:  rgba(212, 175, 55, 0.5);

  /* ─── Gradients ─── */
  --grad-primary:   linear-gradient(135deg, #C5A059 0%, #8B6508 100%);
  --grad-gold:      linear-gradient(135deg, #E6C896 0%, #C5A059 50%, #9A7B3E 100%);
  --grad-flex:      linear-gradient(135deg, #E6C896 0%, #C5A059 100%);
  --grad-hero:      radial-gradient(ellipse at 50% 15%, rgba(197, 160, 89, 0.15) 0%, #0B1320 70%);

  /* ─── Shadows ─── */
  --shadow-sm:      0 2px 10px rgba(0,0,0,0.5);
  --shadow-md:      0 8px 25px rgba(0,0,0,0.6);
  --shadow-lg:      0 16px 50px rgba(0,0,0,0.7);
  --shadow-glow:    0 8px 30px rgba(197, 160, 89, 0.35);

  /* ─── Radii ─── */
  --radius-xs:      6px;
  --radius-sm:      10px;
  --radius-md:      14px;
  --radius-lg:      18px;
  --radius-xl:      28px;
  --radius-full:    9999px;

  /* ─── Transitions ─── */
  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:all 0.15s ease;

  /* ─── Typography ─── */
  --font-ar:        'Cairo', 'Segoe UI', sans-serif;
  --font-en:        'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --fw-bold:        700;
  --fw-extrabold:   800;
  --fw-black:       900;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  direction: ltr;
  overflow-x: hidden;
  min-height: 100vh;
}

html[dir="rtl"] body {
  direction: rtl;
  font-family: var(--font-ar);
}

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

img {
  max-width: 100%;
  display: block;
}

ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: #1B2736;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography & Headers ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: var(--fw-extrabold);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 45px;
}

.section-header { text-align: center; margin-bottom: 45px; }
.section-header .badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.14);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: var(--fw-bold);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(197, 160, 89, 0.4);
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Metallic Text Gradient ─────────────────────────────── */
.text-gold, .text-bronze {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 22px rgba(197, 160, 89, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.55);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(197, 160, 89, 0.12);
}

.btn-sm { padding: 9px 20px; font-size: 0.86rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ── Cards & Glassmorphism ───────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  height: 75px !important;
  background: rgba(11, 19, 32, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
}

.navbar-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  gap: 20px !important;
}

.navbar-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
  border: 1px solid var(--primary-light);
}

.logo-text {
  font-size: 1.38rem;
  font-weight: var(--fw-black);
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.navbar-nav .nav-link {
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  transition: var(--transition) !important;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(197, 160, 89, 0.15) !important;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: var(--fw-extrabold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 90vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 75px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.14);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: var(--fw-black);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  gap: 35px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 2.2rem;
  font-weight: var(--fw-black);
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0F1928;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  z-index: 1;
  text-transform: uppercase;
}

.product-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-size: 0.98rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price-current {
  font-size: 1.15rem;
  font-weight: var(--fw-extrabold);
  color: var(--primary);
}

.btn-add-cart {
  width: 42px;
  height: 42px;
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
}

.btn-add-cart:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.55);
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY TABS & FILTERS
═══════════════════════════════════════════════════════════ */
.category-filter,
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 35px;
}

.filter-tab,
.category-tab {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: var(--fw-bold);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.filter-tab:hover,
.category-tab:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(197, 160, 89, 0.15);
}

.filter-tab.active,
.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
}

/* ═══════════════════════════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 58px;
  height: 58px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
}

.service-name {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════
   MAP & CONTACT SECTION
═══════════════════════════════════════════════════════════ */
.map-container,
iframe[src*="google.com/maps"] {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-accent) !important;
  overflow: hidden !important;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 30px;
}

/* ═══════════════════════════════════════════════════════════
   FORMS & INPUTS
═══════════════════════════════════════════════════════════ */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER STYLES
═══════════════════════════════════════════════════════════ */
.footer {
  background: #080E18;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0 25px;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1rem;
  font-weight: var(--fw-extrabold);
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--transition);
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item i {
  font-size: 1.1rem;
  margin-top: 3px;
}
