/* THEHIFLEX — demo shared base */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --font: "Outfit", system-ui, sans-serif;
  --font-ar: "Noto Sans Arabic", "Outfit", system-ui, sans-serif;
  --container: 72rem;
  --pad: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Pitch banner */
.demo-banner {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 0.45rem var(--pad);
  font-size: 0.7rem;
  font-weight: 600;
}

.demo-banner a { color: #e8c468; }

/* Header shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  text-decoration: none;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.65;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-btn {
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.85;
}

.lang-btn:hover { opacity: 1; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* Main */
main { min-height: 50vh; }

.page-head {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.page-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.12;
}

.page-head p {
  margin: 0;
  max-width: 52ch;
  font-size: 1rem;
  opacity: 0.75;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-block { display: flex; width: 100%; }

.btn-ghost {
  background: transparent;
  border: 1px solid currentColor;
}

/* Cards */
.panel {
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

/* Grid utilities */
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2.5rem var(--pad) 2rem;
  font-size: 0.72rem;
  opacity: 0.6;
}

.site-footer a { text-decoration: none; font-weight: 600; }

/* WA float */
.wa-fab {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  z-index: 90;
  transition: transform 0.2s;
}

.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }

/* i18n */
.inline-en, .inline-ar { display: none; }
html[lang="en"] .inline-en, html[lang="ar"] .inline-ar { display: inline; }
html[lang="en"] .block-en, html[lang="ar"] .block-ar { display: block; }
html[lang="en"] .block-ar, html[lang="ar"] .block-en { display: none; }

html[lang="ar"] body { font-family: var(--font-ar); direction: rtl; }

/* Menu tabs */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.menu-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .menu-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .menu-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
}

.menu-item[hidden] { display: none; }

.menu-item strong { display: block; font-size: 0.95rem; }
.menu-item .desc { font-size: 0.78rem; opacity: 0.65; margin-top: 0.15rem; }
.menu-item .price { font-weight: 700; white-space: nowrap; font-size: 1rem; }

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.chip {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 700px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .timeline li { border-inline-end: 1px solid; padding-inline-end: 1rem; }
  .timeline li:last-child { border: 0; }
}

.timeline li {
  padding: 1rem 0 1.25rem;
  position: relative;
}

.timeline strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.timeline span { font-size: 0.78rem; opacity: 0.7; }

/* Toast */
.demo-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  z-index: 200;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(18, 16, 14, 0.93);
  color: #f0ebe3;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    padding: 0.75rem var(--pad) 1rem;
    gap: 0.15rem;
    border-bottom: 1px solid;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
  }

  .site-header { position: sticky; }
  .header-inner { position: relative; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
