@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* ───────── CSS Variables ───────── */
:root {
  --bg: #f3e7d7;
  --card: #e6d3bd;
  --border: #c9ae90;

  --primary: #7a4e2d;
  --primary10: rgba(122, 78, 45, 0.12);

  --secondary: #dcc3aa;

  --fg: #2d1d14;
  --muted: #6e5647;

  --logo-bg: #efdfcc;

  --radius: 16px;
  --nav-h: 68px;
}
/* ───────── Reset & Base ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--fg);
  direction: rtl;
  min-height: 100dvh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: 'Cairo', sans-serif; cursor: pointer; border: none; background: none; }
input, textarea { font-family: 'Cairo', sans-serif; }

.hidden { display: none !important; }

/* ───────── Intro Screen ───────── */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, filter 0.8s ease;
}
#intro-screen.fade-out {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}
.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.intro-logo {
  width: 320px;
  height: 320px;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 1);
  opacity: 0;
  transform: scale(0.92);
  animation: introIn 0.9s ease forwards;
}
.intro-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--primary);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.5s forwards;
}
@keyframes introIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ───────── App Wrapper ───────── */
#app {
  opacity: 0;
  transition: opacity 0.6s ease;
  padding-bottom: var(--nav-h);
}
#app.visible { opacity: 1; }

/* ───────── Pages ───────── */
.page {
  display: none;
  animation: pageIn 0.4s ease;
}
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────── Sticky Logo Header (Home) ───────── */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--logo-bg);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.logo-container {
  height: 160px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.main-logo {
  width: 500%;
  height: 500%;
  object-fit: cover;
 image-rendering: auto;
  backface-visibility: hidden;

  position: relative;
  left: 8px;
  top: -30;
}
.tagline-bar {
  text-align: center;
  padding: 10px 0 12px;
  background: var(--logo-bg);
  border-bottom: 1px solid var(--border);
}
.tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--primary);
}

/* ───────── Marquee ───────── */
.marquee-wrapper {
  overflow: hidden;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 4px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────── Home Content ───────── */
.home-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ───────── Sections ───────── */
.section { }
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
}
.section-text {
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
  font-size: 15px;
}

/* ───────── Feature Cards ───────── */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(60, 35, 20, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:hover { transform: translateY(-2px); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ───────── CTA Section ───────── */
.cta-section { text-align: center; }
.cta-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--primary10);
  transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover { background: hsl(345, 35%, 55%); }
.cta-btn:active { transform: scale(0.97); }
.cta-btn.pulse {
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 var(--primary10); }
  50%       { box-shadow: 0 0 22px var(--primary10); }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  background: var(--secondary);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ───────── Contact Card ───────── */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-header {
  text-align: center;
  padding: 20px 20px 8px;
}
.contact-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.contact-sub   { font-size: 12px; color: var(--muted); }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.contact-row:hover { background: var(--secondary); }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.contact-info { flex: 1; text-align: right; }
.contact-name { font-size: 14px; font-weight: 700; }
.contact-desc { font-size: 12px; color: var(--muted); }
.contact-arrow { font-size: 20px; color: var(--muted); }

/* ───────── Generic Page Content ───────── */
.page-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 40px;
}
.page-header {
  text-align: center;
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-header p { color: var(--muted); font-size: 15px; }

/* ───────── Features Page ───────── */
#page-features .feature-card { flex-direction: row; align-items: flex-start; }

/* ───────── Reviews Page ───────── */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.review-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 16px;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reviewer-name { font-size: 13px; font-weight: 700; }
.reviewer-occ  { font-size: 11px; color: var(--muted); }

/* ───────── Order Page ───────── */
#page-order .page-content {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.order-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 24px;
}
#page-order h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
#page-order .sub { color: var(--muted); margin-bottom: 32px; max-width: 280px; line-height: 1.7; }
.order-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
}
.order-chip {
  background: var(--secondary);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}

/* ───────── Bottom Nav ───────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 40;
  height: var(--nav-h);
  background: var(--logo-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: row;
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  transition: color 0.2s;
  position: relative;
  padding: 8px 0;
}
.nav-btn.active { color: var(--primary); }
.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn:active { transform: scale(0.92); }

/* ───────── Order Modal ───────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(30,20,16,0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.15);
  max-height: 92dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }

.modal-handle-row {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
  flex-shrink: 0;
}
.modal-handle {
  width: 40px;
  height: 5px;
  background: var(--border);
  border-radius: 4px;
}
.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
  flex-shrink: 0;
}
.modal-progress {
  display: flex;
  gap: 6px;
}
.progress-dot {
  height: 6px;
  border-radius: 4px;
  background: var(--secondary);
  width: 16px;
  transition: background 0.3s, width 0.3s;
}
.progress-dot.active { background: var(--primary); width: 24px; }
.progress-dot.done   { background: var(--primary10); }
.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
  border-radius: 50%;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--secondary); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 24px;
  overscroll-behavior: contain;
}

.step { display: none; }
.step.active {
  display: block;
  animation: pageIn 0.28s ease;
}

.step-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.step-sub   { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* Occasions Grid */
.occasions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.occ-btn {
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.occ-btn .occ-icon { font-size: 18px; }
.occ-btn.selected {
  background: var(--primary10);
  border-color: var(--primary);
  color: var(--primary);
}

/* Text inputs */
.form-input, .form-textarea {
  width: 100%;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-size: 15px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Cairo', sans-serif;
}
.form-input:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: none; height: 100px; }

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  margin-top: 16px;
  transition: background 0.2s, opacity 0.2s;
}
.btn-primary:hover  { background: hsl(345, 35%, 55%); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary {
  width: 100%;
  background: var(--secondary);
  color: var(--fg);
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  margin-top: 10px;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--border); }
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-row .btn-secondary { margin-top: 0; flex: 1; }
.btn-row .btn-primary   { margin-top: 0; flex: 2; }

/* Review step */
.review-box {
  background: var(--secondary);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-row-label { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.review-row-val   { font-size: 14px; font-weight: 700; }
.confirm-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.confirm-btn:hover { background: hsl(345, 35%, 55%); }
.edit-btn {
  width: 100%;
  background: var(--secondary);
  color: var(--fg);
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ───────── Scroll fade-in ───────── */
.fade-in-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───────── Responsive ───────── */
@media (min-width: 640px) {
  .modal-sheet { border-radius: 24px; margin-bottom: 16px; }
  .occasions-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card,
.review-card,
.contact-card,
.modal-sheet {
  backdrop-filter: blur(10px);
}

.section-title,
.page-header h1 {
  letter-spacing: -0.5px;
}

.cta-btn,
.confirm-btn {
  box-shadow: 0 10px 30px rgba(122, 78, 45, 0.18);
}
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}
img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}