/* ═══════════════════════════════════════
   مصنع الشرقاوي — الستايل الرئيسي
   ═══════════════════════════════════════ */

:root {
  --red:      #c0131a;
  --red-dk:   #8a0c10;
  --red-lt:   #e01f27;
  --gold:     #e8b84b;
  --gold-lt:  #f5d98a;
  --green:    #1a6b2e;
  --green-lt: #2a8a42;
  --cream:    #fdf6e3;
  --dark:     #1a0a05;
  --dark-2:   #1f0d08;
  --dark-3:   #2a0f0b;
  --radius:   12px;
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  direction: rtl;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ══════════════════
   NAV
══════════════════ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: rgba(26,10,5,.96);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(10px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 5%;
  transition: padding var(--transition);
}
nav.scrolled { padding: 8px 5%; }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.nav-logo span { font-size: 1.3rem; font-weight: 900; color: var(--gold); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 600; font-size: .95rem;
  position: relative; padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--red);
  color: #fff; border: none;
  padding: 9px 22px; border-radius: 6px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--red-dk); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 72px; right: 0; left: 0; z-index: 998;
  background: rgba(26,10,5,.98);
  border-bottom: 2px solid var(--gold);
  padding: 20px 5%;
  flex-direction: column; gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer li { list-style: none; }
.nav-drawer a {
  display: block; padding: 14px 0;
  color: var(--cream); font-weight: 700; font-size: 1.1rem;
  border-bottom: 1px solid rgba(232,184,75,.15);
  transition: color var(--transition);
}
.nav-drawer a:hover { color: var(--gold); }

/* ══════════════════
   HERO
══════════════════ */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(192,19,26,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(26,107,46,.2) 0%, transparent 50%),
    linear-gradient(160deg, #1a0a05 0%, #2e0e0b 55%, #1a0a05 100%);
  display: flex; align-items: center;
  padding: 110px 5% 90px;
  position: relative; overflow: hidden;
  gap: 40px;
}

/* zigzag bottom strip */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
  background: repeating-linear-gradient(
    120deg,
    var(--red) 0, var(--red) 16px,
    var(--gold) 16px, var(--gold) 32px
  );
  clip-path: polygon(
    0 100%, 2.5% 0, 5% 100%, 7.5% 0, 10% 100%,
    12.5% 0, 15% 100%, 17.5% 0, 20% 100%,
    22.5% 0, 25% 100%, 27.5% 0, 30% 100%,
    32.5% 0, 35% 100%, 37.5% 0, 40% 100%,
    42.5% 0, 45% 100%, 47.5% 0, 50% 100%,
    52.5% 0, 55% 100%, 57.5% 0, 60% 100%,
    62.5% 0, 65% 100%, 67.5% 0, 70% 100%,
    72.5% 0, 75% 100%, 77.5% 0, 80% 100%,
    82.5% 0, 85% 100%, 87.5% 0, 90% 100%,
    92.5% 0, 95% 100%, 97.5% 0, 100% 100%
  );
  opacity: .6;
}

.hero-text { flex: 1; max-width: 580px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--green);
  color: var(--gold-lt);
  padding: 5px 16px; border-radius: 5px;
  font-size: .85rem; font-weight: 700; letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900; line-height: 1.15;
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
  margin-bottom: 18px;
}
.hero h1 span { color: #fff; }
.hero-desc {
  font-size: 1.05rem; line-height: 1.95;
  color: rgba(255,255,255,.78);
  margin-bottom: 36px;
}
.hero-desc strong { color: var(--gold); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  flex: 1;
  display: flex; justify-content: center; align-items: center;
}
.hero-visual img {
  width: min(340px, 85vw);
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 40px rgba(232,184,75,.25),
    0 0 100px rgba(192,19,26,.2);
  animation: floatBadge 4.5s ease-in-out infinite;
  object-fit: cover;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-16px) rotate(1deg); }
}

/* ══════════════════
   BUTTONS
══════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 13px 30px; border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
  box-shadow: 0 4px 22px rgba(192,19,26,.4);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--red-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(192,19,26,.55);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
  padding: 12px 28px; border-radius: 8px;
  border: 2px solid var(--gold);
  font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 1rem;
  background: transparent; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  background: rgba(232,184,75,.12);
  transform: translateY(-2px);
}

/* ══════════════════
   STATS BAR
══════════════════ */
.stats {
  background: var(--red);
  padding: 40px 5%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; text-align: center;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.stat-item { padding: 10px; }
.stat-num {
  font-size: 2.6rem; font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .88rem; color: rgba(255,255,255,.85);
  font-weight: 600; margin-top: 6px;
}

/* ══════════════════
   SECTION SHARED
══════════════════ */
section { padding: 80px 5%; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--gold);
}
.section-head p {
  color: rgba(255,255,255,.6);
  margin-top: 10px; font-size: 1rem;
}
.divider {
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  margin: 14px auto 0; border-radius: 2px;
}

/* ══════════════════
   PRODUCTS
══════════════════ */
.products { background: var(--dark-2); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: linear-gradient(145deg, var(--dark-3), #200c09);
  border: 1px solid rgba(232,184,75,.18);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  position: relative; overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.product-card::before {
  content: '';
  position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232,184,75,.5);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.prod-icon { font-size: 3rem; margin-bottom: 14px; }
.prod-flavor {
  display: inline-block;
  background: var(--green); color: var(--gold-lt);
  font-size: .78rem; font-weight: 700;
  padding: 3px 12px; border-radius: 4px;
  margin-bottom: 12px; letter-spacing: .3px;
}
.product-card h3 {
  font-size: 1.15rem; font-weight: 800;
  color: #fff; margin-bottom: 10px;
}
.product-card p {
  font-size: .88rem; color: rgba(255,255,255,.58);
  line-height: 1.75;
}

/* ══════════════════
   WHY US
══════════════════ */
.why { background: var(--dark); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(232,184,75,.14);
  border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.why-card:hover {
  background: rgba(232,184,75,.06);
  border-color: rgba(232,184,75,.35);
  transform: translateY(-4px);
}
.why-icon { font-size: 2.6rem; margin-bottom: 14px; }
.why-card h4 {
  font-size: 1rem; font-weight: 800;
  color: var(--gold); margin-bottom: 8px;
}
.why-card p {
  font-size: .87rem; color: rgba(255,255,255,.58);
  line-height: 1.75;
}

/* ══════════════════
   GALLERY
══════════════════ */
.gallery { background: var(--dark-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 12px;
}
.gimg {
  border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(232,184,75,.18);
  position: relative;
  transition: border-color var(--transition);
}
.gimg:hover { border-color: var(--gold); }
.gimg.g1 { grid-row: span 2; }
.gimg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gimg:hover img { transform: scale(1.05); }

/* ══════════════════
   CONTACT
══════════════════ */
.contact { background: var(--dark); }
.contact-inner { max-width: 680px; margin: 0 auto; }

.contact-card {
  background: linear-gradient(135deg, var(--red-dk) 0%, var(--red) 100%);
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 50px rgba(192,19,26,.35);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute; top: -30px; left: -30px;
  width: 120px; height: 120px;
  background: rgba(232,184,75,.08);
  border-radius: 50%;
}
.contact-card::after {
  content: '';
  position: absolute; bottom: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(232,184,75,.06);
  border-radius: 50%;
}

.contact-card h3 {
  font-size: 1.9rem; font-weight: 900;
  color: var(--gold); margin-bottom: 14px;
  position: relative; z-index: 1;
}
.contact-card p {
  color: rgba(255,255,255,.85);
  font-size: 1rem; line-height: 1.85;
  margin-bottom: 32px;
  position: relative; z-index: 1;
}
.contact-phone {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,.3);
  padding: 14px 32px; border-radius: 10px;
  color: var(--gold-lt);
  font-size: 1.6rem; font-weight: 900;
  margin-bottom: 24px;
  border: 1px solid rgba(232,184,75,.3);
  transition: background var(--transition);
  position: relative; z-index: 1;
}
.contact-phone:hover { background: rgba(0,0,0,.5); }

.contact-btns {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366;
  color: #fff; padding: 13px 28px; border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

.contact-manager {
  font-size: .9rem; color: rgba(255,255,255,.55);
  margin-top: 22px;
  position: relative; z-index: 1;
}
.contact-manager span { color: var(--gold); font-weight: 700; }

/* ══════════════════
   WHATSAPP FLOAT
══════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
}

.wa-btn {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.wa-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37,211,102,.7);
}
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }

/* pulse ring */
.wa-btn::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 3px solid #25D366;
  animation: waPulse 2s ease-out infinite;
  opacity: 0;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* tooltip */
.wa-tooltip {
  position: absolute;
  right: 72px; top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #075E54;
  padding: 6px 14px; border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: .88rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #fff;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ══════════════════
   FOOTER
══════════════════ */
footer {
  background: #0e0503;
  border-top: 2px solid var(--gold);
  padding: 30px 5%;
  text-align: center;
}
.footer-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 14px;
}
.footer-logo img {
  width: 40px; height: 40px;
  border-radius: 50%; border: 2px solid var(--gold);
  object-fit: cover;
}
.footer-logo span { font-size: 1.1rem; font-weight: 900; color: var(--gold); }
footer p { color: rgba(255,255,255,.35); font-size: .82rem; margin-bottom: 4px; }
footer span { color: var(--gold); }

/* ══════════════════
   REVEAL ANIMATION
══════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════
   RESPONSIVE
══════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 110px 5% 80px;
  }
  .hero-btns { justify-content: center; }
  .hero-visual { margin-top: 30px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 160px);
  }
  .gimg.g1 { grid-row: span 1; }

  .contact-card { padding: 36px 20px; }
  .contact-phone { font-size: 1.3rem; }

  .wa-float { bottom: 20px; left: 18px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .gimg.g1 { grid-row: span 1; }
}
