/* ===== Nile Spices — Stylesheet ===== */

:root {
  --cream: #fdf6e9;
  --cream-dark: #f5ead0;
  --charcoal: #2b1b12;
  --charcoal-soft: #4a3221;
  --rust: #00aeef;
  --rust-dark: #006e96;
  --turmeric: #e0951a;
  --turmeric-light: #f2b84b;
  --cumin: #8b5a2b;
  --pepper: #2b2420;
  --line: #e8dcc4;
  --white: #fffdf9;
  --shadow-soft: 0 10px 30px rgba(43, 27, 18, 0.08);
  --shadow-hover: 0 20px 45px rgba(43, 27, 18, 0.16);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-arabic: "Cairo", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--charcoal-soft); font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); transform: translateY(-2px); }

.btn-light {
  background: var(--cream);
  color: var(--charcoal);
}
.btn-light:hover { background: var(--white); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 246, 233, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
  background: rgba(253, 246, 233, 0.92);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .brand-en {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
}
.brand-text .brand-ar {
  font-family: var(--font-arabic);
  font-size: 0.72rem;
  color: var(--rust);
  letter-spacing: 0.02em;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--charcoal);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-arabic);
}
.lang-toggle:hover { border-color: var(--rust); color: var(--rust); transform: translateY(-1px); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--rust); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu-inner { display: flex; flex-direction: column; padding: 8px 24px 24px; gap: 4px; }
.mobile-menu-inner a {
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-weight: 500;
}
.mobile-menu-inner .btn { margin-top: 14px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(224, 149, 26, 0.22), transparent 55%),
    radial-gradient(circle at 8% 85%, rgba(181, 69, 27, 0.14), transparent 50%),
    var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--rust); font-style: italic; }

.hero-ar {
  font-size: 1.1rem;
  color: var(--charcoal-soft);
  margin-bottom: 18px;
  direction: rtl;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--charcoal-soft);
  max-width: 480px;
  margin-bottom: 34px;
}

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

.hero-tags { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-tag { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--charcoal-soft); font-weight: 500; }
.hero-tag svg { width: 18px; height: 18px; color: var(--rust); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-jar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--turmeric), var(--rust), var(--cumin), var(--turmeric));
  opacity: 0.16;
  filter: blur(6px);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
}
.hero-stage .stage-photo {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(43, 27, 18, 0.28));
}
.hero-stage .stage-main { width: 36%; left: 32%; top: 8%; z-index: 3; }
.hero-stage .stage-left { width: 26%; left: 6%; top: 34%; transform: rotate(-9deg); z-index: 2; opacity: 0.94; }
.hero-stage .stage-right { width: 26%; right: 6%; top: 30%; transform: rotate(9deg); z-index: 2; opacity: 0.94; }

.hero-rating-chip {
  position: absolute;
  bottom: 4%;
  left: 2%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--shadow-hover);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--charcoal);
}
.hero-rating-chip .stars { color: var(--turmeric); letter-spacing: 1px; }

/* ===== Stats ===== */
.stats {
  background: var(--charcoal);
  color: var(--cream);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 24px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--turmeric-light);
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: rgba(253, 246, 233, 0.72); letter-spacing: 0.03em; }

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 820px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid .product-card:nth-child(5) { grid-column: span 2; }
  .products-grid .product-card:nth-child(5) .product-card-body { max-width: 640px; }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.product-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-photo-frame {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  height: 170px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo-frame::before {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 60%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(43, 27, 18, 0.16), transparent 72%);
}
.product-photo-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(43, 27, 18, 0.16));
  transition: transform 0.3s ease;
}
.product-card:hover .product-photo-frame img { transform: scale(1.05); }

.product-card h3 { font-size: 1.3rem; }
.product-card .tagline { color: var(--rust); font-weight: 600; font-size: 0.88rem; }
.product-card .desc { color: var(--charcoal-soft); font-size: 0.94rem; flex-grow: 1; }

.size-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.size-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cream-dark);
  color: var(--charcoal-soft);
}

.product-card-actions { display: flex; gap: 10px; margin-top: 6px; }
.product-card-actions .btn { flex: 1; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 18, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-hover);
  animation: modalUp 0.25s ease;
}
@keyframes modalUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  font-size: 1.1rem;
  transition: background 0.2s ease;
}
.modal-close:hover { background: var(--rust); color: var(--white); }

.modal-photo {
  position: relative;
  height: 190px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.modal-photo::before {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 45%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(43, 27, 18, 0.18), transparent 72%);
}
.modal-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(43, 27, 18, 0.2));
}
.modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal p { color: var(--charcoal-soft); font-size: 0.95rem; margin-bottom: 18px; }
.modal-specs { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.modal-specs li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--charcoal-soft); align-items: center; }
.modal-specs svg { width: 16px; height: 16px; color: var(--rust); flex-shrink: 0; }

/* ===== Why us ===== */
.why-section { background: var(--cream-dark); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--rust);
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: var(--charcoal-soft); }

/* ===== About ===== */
.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-visual .stat-block {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}
.about-visual .stat-block .stat-num { color: var(--rust); }
.about-visual .stat-block .stat-label { color: var(--charcoal-soft); }

.about-copy p { color: var(--charcoal-soft); margin-bottom: 16px; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about-list svg { width: 20px; height: 20px; color: var(--rust); flex-shrink: 0; }

/* ===== Testimonials ===== */
.testimonials-section { background: var(--charcoal); color: var(--cream); }
.testimonials-section .section-head h2 { color: var(--cream); }
.testimonials-section .section-head p { color: rgba(253, 246, 233, 0.72); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: rgba(253, 246, 233, 0.06);
  border: 1px solid rgba(253, 246, 233, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testi-stars { color: var(--turmeric-light); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-card p.quote { font-size: 0.95rem; margin-bottom: 20px; color: rgba(253, 246, 233, 0.9); }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.78rem; color: rgba(253, 246, 233, 0.6); }
.testi-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(242, 184, 75, 0.16);
  color: var(--turmeric-light);
  margin-inline-start: 8px;
}

/* ===== Contact ===== */
.contact-section .container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.contact-info > p { color: var(--charcoal-soft); margin-bottom: 34px; }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: start;
  margin-bottom: 22px;
}
.contact-detail .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rust);
  flex-shrink: 0;
}
.contact-detail .icon-box svg { width: 20px; height: 20px; }
.contact-detail h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-detail p { font-size: 0.9rem; color: var(--charcoal-soft); }
.contact-detail a.detail-link {
  color: var(--charcoal-soft);
  transition: color 0.2s ease;
}
.contact-detail a.detail-link:hover { color: var(--rust); text-decoration: underline; }
.contact-detail .detail-sub { font-size: 0.78rem; color: var(--charcoal-soft); opacity: 0.7; margin-top: 2px; }

/* ===== Footer ===== */
.footer { background: var(--pepper); color: rgba(253, 246, 233, 0.75); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(253, 246, 233, 0.1);
}
.footer-brand .brand-text .brand-en { color: var(--cream); }
.footer-about { font-size: 0.88rem; margin-top: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(253, 246, 233, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--rust); }
.footer-social svg { width: 16px; height: 16px; }

.footer h5 { color: var(--cream); font-size: 0.92rem; margin-bottom: 18px; font-family: var(--font-body); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.88rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--turmeric-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .note { color: rgba(253, 246, 233, 0.45); }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--rust-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RTL (Arabic) ===== */
html[dir="rtl"] body { font-family: var(--font-arabic); }
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 { font-family: var(--font-arabic); font-weight: 700; }
html[dir="rtl"] .hero h1 .accent { font-style: normal; }
html[dir="rtl"] .back-to-top { right: auto; left: 28px; }
html[dir="rtl"] .hero-rating-chip { left: auto; right: 2%; }
html[dir="rtl"] .modal-close { right: auto; left: 18px; }
html[dir="rtl"] .testi-tag { margin-inline-start: 0; margin-inline-end: 8px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section .container { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost, .nav-cta .lang-toggle { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 130px 0 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-card { flex-direction: column; align-items: stretch; }
  .product-photo-frame { width: 100%; height: 190px; align-self: center; }
  .why-grid { grid-template-columns: 1fr; }
}
