/* Le Royaume du Couscous — LymaWeb prototype
   Palette : bordeaux + or + crème + terre cuite
   Mobile-first, FR/AR ready
*/

:root {
  --c-bordeaux: #6b1a25;
  --c-bordeaux-dark: #4a0f17;
  --c-or: #c89b3c;
  --c-or-light: #e6c88a;
  --c-creme: #fbf6ec;
  --c-creme-2: #f4ead3;
  --c-terre: #b8623a;
  --c-ink: #1f1208;
  --c-muted: #6e5b48;
  --c-line: rgba(31, 18, 8, 0.12);
  --c-success: #25d366; /* WhatsApp green */
  --shadow-sm: 0 2px 6px rgba(31, 18, 8, 0.08);
  --shadow-md: 0 12px 28px rgba(31, 18, 8, 0.14);
  --shadow-lg: 0 24px 60px rgba(31, 18, 8, 0.20);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --t-display: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --t-body: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-arabic: "Cairo", "Tajawal", "Noto Naskh Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--t-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-creme);
  -webkit-font-smoothing: antialiased;
}
[lang="ar"] body, [dir="rtl"] body { font-family: var(--t-arabic); }

img { max-width: 100%; display: block; }
a { color: var(--c-bordeaux); text-decoration: none; }
a:hover { color: var(--c-terre); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--t-display); font-weight: 600; line-height: 1.18; color: var(--c-bordeaux-dark); margin: 0 0 0.6em; letter-spacing: -0.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { font-family: var(--t-arabic); }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-or);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--t-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c-bordeaux-dark);
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-bordeaux), var(--c-bordeaux-dark));
  color: var(--c-or);
  border-radius: 50%;
  font-family: var(--t-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand-name { display: none; }
@media (min-width: 480px) { .brand-name { display: inline; } }

.nav-links {
  display: none;
  list-style: none; margin: 0; padding: 0;
  gap: 24px;
}
.nav-links a {
  color: var(--c-ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--c-bordeaux);
}
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--c-or);
}
@media (min-width: 880px) {
  .nav-links { display: flex; }
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  border: 1px solid var(--c-line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-bordeaux-dark);
  letter-spacing: 0.04em;
}
.lang-toggle:hover { background: var(--c-creme-2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--c-bordeaux);
  color: var(--c-creme);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-bordeaux-dark); color: var(--c-creme); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-whatsapp {
  background: var(--c-success);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { transform: translateY(-1px); color: white; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--c-bordeaux-dark);
  border: 1px solid var(--c-bordeaux);
}
.btn-ghost:hover { background: var(--c-bordeaux); color: var(--c-creme); }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* Mobile menu */
.menu-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-bordeaux-dark);
}
@media (min-width: 880px) { .menu-btn { display: none; } }
.menu-btn svg { width: 22px; height: 22px; }

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--c-line);
  padding: 16px 0 24px;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.mobile-drawer a { display: block; font-weight: 500; color: var(--c-ink); }
@media (min-width: 880px) { .mobile-drawer, .menu-btn { display: none !important; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  color: var(--c-creme);
  overflow: hidden;
  display: grid; place-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 8, 4, 0.30) 0%, rgba(20, 8, 4, 0.55) 60%, rgba(20, 8, 4, 0.78) 100%),
              url('../images/couscous-royal-hero.jpg') center/cover;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 80px 0;
}
.hero-eyebrow {
  display: inline-block;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-or-light);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--c-creme);
  font-size: clamp(2.4rem, 6vw + 1rem, 4.6rem);
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero p.lede {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
  color: var(--c-creme);
  opacity: 0.94;
}
.hero-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}
.hero-meta {
  margin-top: 42px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 24px;
  font-size: 0.92rem;
  opacity: 0.92;
}
.hero-meta span::before { content: "✦  "; color: var(--c-or-light); }

/* ===== Sections ===== */
.split {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split.reverse > :first-child { order: 2; }
@media (min-width: 880px) { .split.reverse > :first-child { order: 1; } .split.reverse > :last-child { order: 2; } }
.split img { border-radius: var(--r-md); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }

.section.bg-creme2 { background: var(--c-creme-2); }
.section.bg-bordeaux { background: var(--c-bordeaux-dark); color: var(--c-creme); }
.section.bg-bordeaux h2, .section.bg-bordeaux h3 { color: var(--c-or-light); }

.feature-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: white;
  padding: 28px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--c-creme-2);
  color: var(--c-bordeaux);
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.feature-card h3 { color: var(--c-bordeaux-dark); margin-bottom: 6px; }
.feature-card p { margin: 0; color: var(--c-muted); font-size: 0.95rem; }

/* Menu cards */
.menu-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
.menu-card {
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.menu-card img { aspect-ratio: 4/3; object-fit: cover; }
.menu-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.menu-card h3 { margin-bottom: 6px; color: var(--c-bordeaux-dark); }
.menu-card .desc { color: var(--c-muted); font-size: 0.95rem; flex: 1; }
.menu-card .price-row { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.menu-card .price { font-family: var(--t-display); font-size: 1.2rem; font-weight: 600; color: var(--c-or); }
.menu-card .tag {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-bordeaux);
  background: var(--c-creme-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Menu list (compact for menu page) */
.menu-section { margin-bottom: 44px; }
.menu-section h2 { border-bottom: 2px dashed var(--c-or); padding-bottom: 8px; display: inline-block; }
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--c-line);
}
.menu-row .name { font-weight: 600; color: var(--c-bordeaux-dark); margin-bottom: 4px; }
.menu-row .desc { color: var(--c-muted); font-size: 0.92rem; }
.menu-row .price { font-family: var(--t-display); font-size: 1.05rem; color: var(--c-or); white-space: nowrap; }
.menu-disclaimer {
  background: var(--c-creme-2);
  border: 1px dashed var(--c-or);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 32px;
}

/* Gallery */
.gallery-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }

/* Testimonials */
.testimonial-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card {
  background: var(--c-creme);
  padding: 28px 24px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-or);
  box-shadow: var(--shadow-sm);
}
[dir="rtl"] .testimonial-card { border-left: 0; border-right: 3px solid var(--c-or); }
.testimonial-card blockquote {
  margin: 0 0 14px;
  font-family: var(--t-display);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--c-ink);
  line-height: 1.55;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-bordeaux-dark);
}
.stars { color: var(--c-or); letter-spacing: 1px; margin-bottom: 8px; font-size: 0.95rem; }

/* Contact / forms */
.contact-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-block {
  background: white;
  border-radius: var(--r-md);
  padding: 16px 20px;
  border: 1px solid var(--c-line);
}
.info-block h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-block p { margin: 0; color: var(--c-muted); font-size: 0.95rem; line-height: 1.55; }
.info-block a { color: var(--c-bordeaux); font-weight: 500; }

.map-embed {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label { font-weight: 600; font-size: 0.88rem; color: var(--c-bordeaux-dark); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: white;
  color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0;
  border-color: var(--c-bordeaux);
  box-shadow: 0 0 0 3px rgba(107, 26, 37, 0.12);
}
.form textarea { min-height: 110px; resize: vertical; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; bottom: 18px; right: 18px;
  z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
}
[dir="rtl"] .sticky-cta { right: auto; left: 18px; }
.sticky-cta a {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  color: white;
  transition: transform .15s ease;
}
.sticky-cta a:hover { transform: scale(1.05); color: white; }
.sticky-cta .wa { background: var(--c-success); }
.sticky-cta .tel { background: var(--c-bordeaux); }
.sticky-cta svg { width: 26px; height: 26px; }
@media (min-width: 880px) { .sticky-cta { bottom: 28px; right: 28px; } }

/* Footer */
footer {
  background: var(--c-bordeaux-dark);
  color: var(--c-creme);
  padding: 56px 0 24px;
}
footer h4 { color: var(--c-or-light); font-family: var(--t-display); font-size: 1.05rem; margin-bottom: 14px; }
footer a { color: var(--c-creme); opacity: 0.85; }
footer a:hover { color: var(--c-or-light); opacity: 1; }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; } }
.footer-grid p { margin: 0 0 8px; opacity: 0.84; line-height: 1.55; font-size: 0.94rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid li { font-size: 0.94rem; opacity: 0.92; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 246, 236, 0.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.84rem;
  opacity: 0.7;
}

/* Page heading (used on inner pages) */
.page-head {
  background: linear-gradient(180deg, var(--c-bordeaux), var(--c-bordeaux-dark));
  color: var(--c-creme);
  padding: 72px 0 56px;
  text-align: center;
}
.page-head h1 { color: var(--c-creme); margin-bottom: 12px; }
.page-head p { max-width: 560px; margin: 0 auto; opacity: 0.92; font-size: 1.05rem; }

/* Hide-on-RTL/LTR helpers */
[lang="ar"] [data-fr] { display: none; }
[lang="fr"] [data-ar] { display: none; }
[lang="ar"] [data-ar] { display: inline; }
[lang="fr"] [data-fr] { display: inline; }
/* keep block-level for FR by default */
[lang="fr"] [data-fr][data-block] { display: block; }
[lang="ar"] [data-ar][data-block] { display: block; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Misc */
.muted { color: var(--c-muted); }
.center { text-align: center; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
