@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/work-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/work-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/work-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --gold: #B99A5B;
  --gold-dark: #8B6F3E;
  --charcoal: #241E1A;
  --cream: #FAF5EC;
  --card-white: #FFFFFF;
  --taupe: #8A8272;
  --line: #E4DBC8;
  --success: #5C7A5E;
  --pending: #A85C32;
  --gold-wash: #F2E6CC;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.btn-primary:hover { background: #38302A; text-decoration: none; }
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--cream); text-decoration: none; }
/* Primary client CTA — solid charcoal bg, gold text (per approved UX mockup) */
.btn-cta {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  text-align: center;
  background: var(--charcoal);
  color: var(--gold);
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
}
.btn-cta:hover { background: #38302A; text-decoration: none; color: var(--gold); }
.btn-cta:disabled,
.btn-cta:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--charcoal);
  color: var(--gold);
  border-color: var(--charcoal);
}
/* Muted gold CTA — pre-confirmation "Pay via Thawani" look: soft gold-cream, not solid charcoal */
.btn-muted-gold {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold-wash);
  color: var(--charcoal);
  border: 1px solid var(--gold-wash);
  border-radius: 8px;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: not-allowed;
  opacity: 0.85;
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--gold); text-decoration: none; }
.btn-danger {
  background: transparent;
  color: var(--pending);
  border-color: var(--pending);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Cards --- */
.card {
  background: var(--card-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--line);
  color: var(--charcoal);
}
.status-pill.paid, .status-pill.completed { background: var(--success); color: #fff; }
.status-pill.submitted, .status-pill.payment_sent { background: var(--pending); color: #fff; }
.status-pill.expired { background: #C9C0AC; color: var(--charcoal); }

/* --- Forms --- */
label { display: block; font-size: 0.85rem; color: var(--taupe); margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--charcoal);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(185, 154, 91, 0.25);
}
.field { margin-bottom: 1.1rem; }
.error-banner {
  background: #FBEAE0;
  border: 1px solid var(--pending);
  color: var(--pending);
  padding: 0.7rem 1rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}
.success-banner {
  background: #EAF1EA;
  border: 1px solid var(--success);
  color: var(--success);
  padding: 0.7rem 1rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

/* --- Auth screens (full-bleed photo) --- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.auth-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,30,26,0.55), rgba(36,30,26,0.75));
}
.auth-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: rgba(250, 245, 236, 0.97);
  padding: 2.25rem;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  text-align: center;
}
.auth-box img.logo { max-width: 140px; margin-bottom: 1rem; }
.auth-box h1 { font-size: 1.3rem; margin: 0 0 1.4rem; }
.auth-box .field { text-align: left; }

/* --- Admin shell --- */
.admin-nav {
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.9rem 0;
}
.admin-nav .container { display: flex; align-items: center; justify-content: space-between; }
.admin-nav a { color: var(--cream); opacity: 0.85; margin-left: 1.4rem; font-size: 0.92rem; }
.admin-nav a:hover { opacity: 1; text-decoration: none; color: var(--gold); }
.admin-nav .brand { display: flex; align-items: center; gap: 0.6rem; }
.admin-nav .brand img { height: 30px; }

/* --- Parallax banner (admin dashboard) --- */
.parallax-banner {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
}
.parallax-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,30,26,0.05), rgba(36,30,26,0.75));
}
.parallax-banner .banner-caption {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 1.4rem 0 1.2rem;
  width: 100%;
}
@media (max-width: 700px) {
  .parallax-banner { background-attachment: scroll; height: 180px; }
}

/* --- Package / menu item photo cards --- */
.photo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.photo-card {
  background: var(--card-white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.photo-card:hover { box-shadow: 0 8px 24px rgba(36,30,26,0.12); }
.photo-card .photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--line);
}
.photo-card .body { padding: 1rem 1.1rem; }
.photo-card .price { color: var(--gold-dark); font-weight: 600; }
.photo-card .meta { color: var(--taupe); font-size: 0.85rem; }

.menu-item-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,154,91,0.35);
}
.menu-item-card { position: relative; }
.menu-item-card .checkmark {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.menu-item-card.selected .checkmark { display: flex; }

/* --- Category chips (pill-shaped tab nav) --- */
.chip-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.3rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-white);
  color: var(--charcoal);
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.active {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.chip .chip-count { color: var(--gold); margin-left: 0.3rem; font-size: 0.8rem; }
.chip.active .chip-count { color: var(--gold); }

.category-panel { display: none; }
.category-panel.active { display: block; }

/* --- Horizontal-scroll "Popular" row --- */
.scroll-row {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scroll-row .scroll-card {
  flex: 0 0 220px;
  background: var(--card-white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  display: block;
}
.scroll-row .scroll-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--line);
}
.scroll-row .scroll-card .name {
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  text-align: center;
}

/* --- Client hero --- */
.hero {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,30,26,0.35), rgba(36,30,26,0.6));
}
.hero .hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }

.client-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.client-nav .container { display: flex; align-items: center; justify-content: space-between; }
.client-nav img.logo { height: 34px; }

/* ==========================================================================
   Booking flow screens (Package Selection -> Status Tracker)
   Matches the approved UX mockup: narrow single-column shell, plain cards/
   checklists, no photography — do not reintroduce photo-card grids here.
   ========================================================================== */
.booking-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--taupe);
  margin-bottom: 1.1rem;
}
.home-link:hover { color: var(--gold-dark); text-decoration: none; }
.booking-shell h1.serif { font-size: 1.5rem; margin: 0 0 0.15rem; }
.booking-shell .screen-subtitle { color: var(--taupe); font-size: 0.88rem; margin: 0 0 1.6rem; }

/* Package selection cards */
.pkg-card {
  display: block;
  background: var(--card-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
  cursor: pointer;
  color: inherit;
}
.pkg-card:hover { border-color: var(--gold); text-decoration: none; }
.pkg-card.selected {
  border: 2px solid var(--gold);
  background: var(--gold-wash);
  padding: calc(1rem - 1px) calc(1.2rem - 1px);
}
.pkg-card .pkg-name { font-weight: 600; font-size: 1.02rem; }
.pkg-card .pkg-subtitle { color: var(--taupe); font-size: 0.82rem; margin: 0.15rem 0 0.5rem; }
.pkg-card.selected .pkg-subtitle { color: var(--gold-dark); }
.pkg-card .pkg-price { font-weight: 600; }

/* Category counter + checklist rows (Menu Builder) */
.category-block { margin-bottom: 1.6rem; }
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}
.category-header .count { color: var(--gold-dark); font-weight: 600; font-size: 0.92rem; }

.check-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  cursor: pointer;
}
.check-square {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  background: transparent;
}
.check-row.selected .check-square { background: var(--gold); border-color: var(--gold); }
.check-row .check-label { color: var(--taupe); font-size: 0.95rem; }
.check-row.selected .check-label { color: var(--charcoal); font-weight: 500; }
.check-row.disabled { cursor: not-allowed; }
.check-row input[type="checkbox"] { display: none; }

/* Stepper rows (Extras) */
.stepper-row { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.stepper-row:last-of-type { border-bottom: none; }
.stepper-row-top { display: flex; justify-content: space-between; align-items: center; }
.stepper-row .stepper-label { font-size: 0.95rem; }
.stepper-row .stepper-caption { color: var(--taupe); font-size: 0.8rem; margin-top: 0.15rem; }
.stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.stepper-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--card-white);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper-btn:hover { border-color: var(--gold); }
.stepper-qty { min-width: 1.4rem; text-align: center; font-weight: 600; }

/* Price breakdown */
.price-breakdown { margin: 1.4rem 0; }
.price-breakdown .row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}
.price-breakdown .row.total {
  border-top: 1px solid var(--charcoal);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Calendar (booking flow) */
.booking-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0.5rem 0 1rem; text-align: center; }
.booking-cal-grid .weekday { font-size: 0.75rem; color: var(--taupe); padding-bottom: 0.4rem; }
.cal-circle {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--charcoal);
  cursor: default;
}
.cal-circle.available {
  border: 1.5px solid var(--gold);
  cursor: pointer;
  background: transparent;
}
.cal-circle.available:hover { background: var(--gold-wash); }
.cal-circle.booked {
  background: var(--charcoal);
  color: var(--cream);
  border: 1.5px solid var(--charcoal);
}
.cal-circle.unavailable {
  color: var(--taupe);
  border: 1.5px solid transparent;
}
.cal-circle.selected {
  background: var(--charcoal);
  color: var(--gold);
  border: 1.5px solid var(--charcoal);
}
.cal-legend {
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
  color: var(--taupe);
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.cal-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 0.35rem; vertical-align: middle; }
.cal-legend .dot.available { border: 1.5px solid var(--gold); }
.cal-legend .dot.booked { background: var(--charcoal); }
.cal-legend .dot.unavailable { background: var(--line); }

/* Soft gold status pill (client-facing, e.g. "Awaiting Confirmation") */
.status-pill-soft {
  display: inline-block;
  background: var(--gold-wash);
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
}

/* Vertical timeline (Status Tracker) */
.timeline { margin: 1rem 0 1.6rem; }
.timeline-item { display: flex; gap: 0.8rem; position: relative; padding-bottom: 1.4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: -4px;
  width: 1.5px;
  background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-top: 3px;
}
.timeline-dot.done { background: var(--gold); }
.timeline-dot.pending { background: transparent; border: 1.5px solid var(--line); }
.timeline-label.done { color: var(--charcoal); font-weight: 600; font-size: 0.95rem; }
.timeline-label.pending { color: var(--taupe); font-size: 0.95rem; }
.timeline-time { color: var(--taupe); font-size: 0.78rem; margin-top: 0.1rem; }

.section-title { text-align: center; margin: 2.5rem 0 1.5rem; }
.section-title p { color: var(--taupe); }

.price-total-bar {
  position: sticky;
  bottom: 0;
  background: var(--card-white);
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.price-total-bar .container { display: flex; align-items: center; justify-content: space-between; }
.price-total-bar .grand { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold-dark); }

/* RTL overrides — active whenever a page sets dir="rtl" on <html> (now every
   client-facing page once Arabic is selected, not just the calculators). */
[dir="rtl"] .booking-shell { text-align: right; }
[dir="rtl"] .booking-shell input,
[dir="rtl"] .booking-shell select { text-align: right; }
[dir="rtl"] .home-link { flex-direction: row-reverse; }
[dir="rtl"] .lang-toggle { text-align: left; }
[dir="rtl"] .stepper-row-top .stepper-label { text-align: right; }

/* ==========================================================================
   Public landing page (admin-editable hero + restaurant brief)
   ========================================================================== */
.landing-nav {
  padding: 1.4rem 0;
  background: var(--cream);
}
.landing-nav .logo { height: 36px; display: block; margin: 0 auto; }

.landing-hero {
  position: relative;
  min-height: 62vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,30,26,0.32), rgba(36,30,26,0.62));
}
.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 0 1.5rem;
}
.landing-hero-content h1 { font-size: 2.6rem; margin: 0 0 0.7rem; }
.landing-hero-content p { font-size: 1.05rem; opacity: 0.95; margin: 0 0 1.6rem; }

.landing-about {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  text-align: center;
}
.gold-rule { width: 48px; height: 2px; background: var(--gold); margin: 0 auto 1.4rem; }
.landing-about h2 { font-size: 1.7rem; margin: 0 0 1.2rem; }
.landing-about p { font-size: 1.02rem; line-height: 1.75; color: var(--charcoal); }

.landing-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  text-align: center;
  color: var(--taupe);
  font-size: 0.85rem;
}
.landing-footer .logo { height: 24px; opacity: 0.75; margin-bottom: 0.6rem; display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 700px) {
  .hero h1 { font-size: 1.7rem; }
  .landing-hero-content h1 { font-size: 1.9rem; }
  .admin-nav .container { flex-wrap: wrap; gap: 0.5rem; }
  .admin-nav a { margin-left: 0; margin-right: 0.9rem; font-size: 0.82rem; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .container { padding: 0 1rem; }
  .price-total-bar .container { flex-direction: column; gap: 0.7rem; align-items: stretch; }
  .steps { flex-wrap: wrap; }
  .step { flex: 0 0 33%; margin-bottom: 1rem; }
}
