/* ===== Variables ===== */
:root {
  --primary: #e11d48;
  --primary-glow: #fb7185;
  --accent: #14b8a6;
  --bg: #0b0d12;
  --bg-2: #11141b;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #f5f5f7;
  --muted: #9ca3af;
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(225,29,72,0.35);
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-glow));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: 'Cairo', system-ui, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: all .3s ease;
}
.header.scrolled {
  background: rgba(11,13,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-weight: 900; box-shadow: var(--shadow);
}
.nav { display: flex; gap: 28px; }
.nav a { font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
}
.lang-switch button {
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.lang-switch button.active { background: var(--gradient); color: white; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
}
.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; animation: float 12s ease-in-out infinite; }
.blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; right: -50px; animation: float 14s ease-in-out infinite reverse; }
.blob-3 { width: 350px; height: 350px; background: var(--primary-glow); top: 40%; left: 50%; animation: float 16s ease-in-out infinite; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.badge {
  display: inline-block; padding: 8px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--primary-glow); margin-bottom: 24px;
}
.hero-text h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800;
  line-height: 1.05; letter-spacing: -.02em; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #fff 50%, var(--primary-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text p { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600;
  transition: all .25s ease;
}
.btn-primary { background: var(--gradient); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 25px 70px -15px rgba(225,29,72,0.55); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.hero-brands { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-brands strong { color: var(--text); padding: 4px 12px; background: var(--surface); border-radius: 999px; border: 1px solid var(--border); }

.hero-art { position: relative; height: 480px; }
.pack {
  position: absolute; width: 180px; height: 240px;
  border-radius: 22px;
  background: linear-gradient(160deg, hsl(var(--hue,18) 70% 55%), hsl(var(--hue,18) 70% 35%));
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  display: grid; place-items: center;
}
.pack-inner {
  width: 100%; height: 100%; border-radius: 22px;
  background: linear-gradient(160deg, hsl(var(--hue) 80% 60%), hsl(var(--hue) 90% 35%));
  display: grid; place-items: center;
  font-weight: 900; font-size: 22px; letter-spacing: .1em;
  color: white;
  border: 4px solid rgba(255,255,255,0.15);
}
.pack-1 { top: 0; left: 30%; transform: rotate(-8deg); }
.pack-2 { top: 30px; right: 0; transform: rotate(6deg); }
.pack-3 { bottom: 0; left: 0; transform: rotate(-4deg); }
.pack-4 { bottom: 40px; right: 20%; transform: rotate(10deg); }

@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-20px) rotate(var(--r,0deg)); } }
.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out infinite .5s; }
.float-c { animation: float 8s ease-in-out infinite 1s; }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; padding: 6px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1;
}

/* ===== Brands ===== */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.brand-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: all .3s; position: relative; overflow: hidden;
}
.brand-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, hsl(var(--hue) 80% 50% / .15), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.brand-card:hover { transform: translateY(-6px); border-color: hsl(var(--hue) 70% 50% / .4); }
.brand-card:hover::before { opacity: 1; }
.brand-pack {
  width: 100px; height: 130px; border-radius: 14px;
  background: linear-gradient(160deg, hsl(var(--hue) 80% 55%), hsl(var(--hue) 85% 35%));
  margin-bottom: 20px; display: grid; place-items: center;
  font-weight: 900; color: white; font-size: 14px;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 15px 30px -10px hsl(var(--hue) 70% 40% / .6);
  position: relative; z-index: 1;
}
.brand-card h3 { font-size: 24px; margin-bottom: 6px; position: relative; }
.brand-card .tag { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 12px; position: relative; }
.brand-card p { color: var(--muted); font-size: 14px; position: relative; }

/* ===== Products ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter {
  padding: 10px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 14px; color: var(--muted);
  transition: all .2s;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--gradient); color: white; border-color: transparent; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card {
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: all .3s;
}
.product-card:hover { transform: translateY(-4px); border-color: hsl(var(--hue) 70% 50% / .5); }
.product-pack {
  width: 120px; height: 160px; margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, hsl(var(--hue) 80% 55%), hsl(var(--hue) 85% 35%));
  display: grid; place-items: center;
  font-weight: 900; color: white; font-size: 12px;
  border: 3px solid rgba(255,255,255,0.15);
}
.product-card h4 { font-size: 16px; margin-bottom: 4px; }
.product-card .flavor { color: var(--muted); font-size: 13px; }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: all .3s;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.why-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gradient); display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
}
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid h2 { margin-bottom: 20px; }
.about-grid p { color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat strong { display: block; font-size: 36px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13px; }
.about-art { position: relative; height: 400px; display: grid; place-items: center; }
.ring { position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 2px solid var(--primary); opacity: .3; animation: spin 20s linear infinite; }
.ring-2 { width: 220px; height: 220px; border-color: var(--accent); animation: spin 15s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-mark {
  width: 140px; height: 140px; border-radius: 30px;
  background: var(--gradient); display: grid; place-items: center;
  font-size: 48px; font-weight: 900; box-shadow: var(--shadow);
}

/* ===== Factory ===== */
.factory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.card h3 { font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.card p { font-size: 17px; font-weight: 500; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-grid h2 { margin-bottom: 16px; }
.contact-grid p { color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 14px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font: inherit; outline: none;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; }

/* ===== Footer ===== */
.footer { padding: 50px 0 30px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.copy { color: var(--muted); font-size: 13px; }

/* ===== Reveal Animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== RTL ===== */
html[dir="rtl"] .hero-text h1,
html[dir="rtl"] .section h2 { letter-spacing: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 70px 16px auto 16px;
    background: rgba(11,13,18,0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 20px; flex-direction: column; gap: 14px;
    transform: translateY(-20px); opacity: 0; pointer-events: none;
    transition: all .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .burger { display: flex; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { height: 380px; }
  .section { padding: 70px 0; }
}
@media (max-width: 500px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .pack { width: 140px; height: 190px; }
}
