/* ═══════════════════════════════════════════════
   Restaurant Theme — style.css
   Primary: #C8A96E | Dark: #1a1a1a
═══════════════════════════════════════════════ */

:root {
  --primary:     #C8A96E;
  --primary-dark:#a8894e;
  --dark:        #1a1a1a;
  --dark2:       #2a2a2a;
  --light-bg:    #fdf9f5;
  --text:        #333;
  --text-muted:  #6c757d;
  --radius:      12px;
}

/* ── Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1,h2,h3,h4,.display-1,.display-2,.display-3,.display-4,.display-5 {
  font-family: 'Playfair Display', serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.text-primary-color { color: var(--primary) !important; }
.bg-primary-color   { background-color: var(--primary) !important; }

/* ── Buttons ──────────────────────────────────── */
.btn-primary {
  background-color: var(--primary);
  border-color:     var(--primary);
  color: var(--dark);
  font-weight: 600;
  letter-spacing: .03em;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color:     var(--primary-dark);
  color: var(--dark);
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color:     var(--primary);
  color: var(--dark);
}

/* ── Navbar ───────────────────────────────────── */
.navbar {
  background: var(--dark) !important;
  padding: .75rem 0;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.navbar-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--primary) !important; }
.navbar-brand-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}
.nav-link { color: rgba(255,255,255,.85) !important; font-size: .9rem; letter-spacing: .02em; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--primary); color: var(--dark);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ── Hero Carousel ────────────────────────────── */
.hero-slide {
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75) 40%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 640px;
}
.hero-content h1 { font-size: clamp(2rem, 6vw, 4rem); color: #fff; }
.hero-content p   { color: rgba(255,255,255,.8); font-size: 1.1rem; }

/* Hero Fallback, Carousel & Captions */
.hero-fallback {
  min-height: 75vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-fallback h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-fallback .btn-primary {
  font-size: 1.1rem;
  padding: .75rem 2rem;
}

.carousel-item {
  min-height: 75vh;
  background-size: cover;
  background-position: center;
}
.carousel-caption {
  position: relative;
  background: rgba(0,0,0,.5);
  padding: 2rem;
  border-radius: 8px;
  bottom: auto;
  left: auto;
  right: auto;
}
.hero-caption-inner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-caption-inner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
}

/* ── Page Header ─────────────────────────────── */
.hero-slider {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  min-height: 75vh;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  min-height: 75vh;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1;
}

.carousel-caption.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  bottom: auto;
  z-index: 2;
  background: none;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
}

.hero-img {
  height: 100%;
  object-fit: cover;
}

/* ── Page Header ─────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 60%, var(--dark2));
  padding: 3rem 0;
}

/* ── Section titles ──────────────────────────── */
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-divider { width: 60px; height: 3px; background: var(--primary); margin: 0 auto 1rem; }

/* ── Menu card ───────────────────────────────── */
.menu-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.menu-card-body { padding: 1rem; }
.menu-card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 1rem 1rem 0;
  overflow: hidden;
}
.menu-card-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.menu-card .card-img-top { height: 200px; object-fit: cover; }
.menu-card .price { font-weight: 700; color: var(--primary); }
.menu-card .price-sale { font-weight: 700; color: var(--primary); }
.menu-card .price-original { text-decoration: line-through; color: var(--text-muted); font-size: .85rem; }
.badge-new  { background: #28a745; }
.badge-feat { background: var(--primary); color: var(--dark); }
.badge-veg  { background: #20c997; }
.badge-spicy{ background: #dc3545; }

.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; letter-spacing: .05em;
  border-radius: var(--radius);
}

/* ── Cart ────────────────────────────────────── */
.cart-item { border-bottom: 1px solid #f0f0f0; }
.cart-summary { position: sticky; top: 80px; }

/* ── Checkout ────────────────────────────────── */
.tracker-dot   { transition: background .4s; }
.time-slot-btn { min-width: 80px; }

/* ── Forms ───────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(200,169,110,.25);
}

/* ── Footer ──────────────────────────────────── */
footer.bg-dark { color: rgba(255,255,255,.7); }
footer.bg-dark h5, footer.bg-dark h6 { color: #fff; }
footer.bg-dark .text-muted { color: rgba(255,255,255,.6) !important; }
footer.bg-dark a { color: rgba(255,255,255,.6); transition: color .2s; }
footer.bg-dark a:hover { color: var(--primary); }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.footer-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}
[dir="rtl"] .footer-brand {
  direction: rtl;
}
@media (max-width: 575.98px) {
  .footer-brand {
    width: 100%;
    justify-content: center;
  }
  .footer-logo-left { margin: 0 auto; }
  .footer-tagline {
    text-align: center;
  }
  .footer-social-row {
    justify-content: center;
  }
}
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a { color: rgba(255,255,255,.6); transition: color .2s; }
.site-footer a:hover { color: var(--primary); }
.footer-divider { border-color: rgba(255,255,255,.1); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7); transition: .2s;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--dark); }

/* ── Testimonials ────────────────────────────── */
.testimonial-card {
  border: none;
  border-radius: var(--radius);
  background: var(--light-bg);
  padding: 2rem;
}
.testimonial-stars { color: var(--primary); letter-spacing: .1em; }

/* ── Gallery thumb ───────────────────────────── */
.gallery-thumb { transition: transform .25s, box-shadow .25s; }
.gallery-thumb:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

/* ── Package card ────────────────────────────── */
.package-card { cursor: pointer; transition: .2s; }
.package-card.border-primary { border-width: 2px !important; }

/* ── Quick action cards ──────────────────────── */
.quick-action-card {
  border: none;
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, background .2s;
  background: var(--light-bg);
}
.quick-action-card i,
.quick-action-card p {
  transition: color .2s;
}
.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
  background: var(--primary);
  color: var(--dark);
}
.quick-action-card:hover .qa-icon,
.quick-action-card:hover h6,
.quick-action-card:hover i,
.quick-action-card:hover p { color: #fff !important; }

/* ── Toast notifications ─────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
}
.toast-item {
  min-width: 260px; padding: .75rem 1.25rem;
  background: var(--dark); color: #fff;
  border-radius: var(--radius); margin-top: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: .75rem;
  animation: slideIn .3s ease;
}
.toast-item.success { border-left: 4px solid #28a745; }
.toast-item.error   { border-left: 4px solid #dc3545; }
.toast-item.info    { border-left: 4px solid var(--primary); }

@keyframes slideIn {
  from { opacity:0; transform: translateX(40px); }
  to   { opacity:1; transform: translateX(0); }
}

/* ── Mini cart slide panel ───────────────────── */
.mini-cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100vw);
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 0;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .2);
  z-index: 1080;
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform .34s ease, opacity .28s ease;
}

.mini-cart-panel.open {
  transform: translateX(0);
  opacity: 1;
}

.mini-cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1rem .35rem;
}

.mini-cart-head h5 {
  font-size: 1.05rem;
}

.mini-cart-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .5rem 1rem;
}

.mini-cart-stat {
  background: var(--light-bg);
  border: 1px solid #f0e7dc;
  border-radius: 12px;
  padding: .5rem .65rem;
}

.mini-cart-stat span {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mini-cart-stat strong {
  display: block;
  font-size: 1rem;
}

.mini-cart-items {
  max-height: calc(100vh - 205px);
  overflow: auto;
  padding: .4rem 1rem .5rem;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: .65rem;
  border-bottom: 1px solid #f3f3f3;
  padding: .5rem 0;
}

.mini-cart-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.mini-cart-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6efe5;
  color: #87683b;
}

.mini-cart-item-name {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
}

.mini-cart-item-meta,
.mini-cart-item-options {
  color: var(--text-muted);
  font-size: .77rem;
  line-height: 1.25;
}

.mini-cart-item-total {
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

.mini-cart-panel .btn {
  border-radius: 0;
}

/* ── Scroll Reveal Animations ───────────────── */
.page-home .scroll-reveal,
.about-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}

.page-home .scroll-reveal.is-visible,
.about-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Home Section Label Ornaments ───────────── */
.section-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8c6b34;
}

.section-label::before,
.section-label::after {
  content: "";
  width: 78px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 169, 110, 0) 0%, rgba(200, 169, 110, .55) 20%, rgba(200, 169, 110, 1) 50%, rgba(200, 169, 110, .55) 80%, rgba(200, 169, 110, 0) 100%);
}

/* ── Home Images Showcase ───────────────────── */
.home-images-section {
  background: linear-gradient(180deg, #fff 0%, #f8f3ec 100%);
}

/* ── Home Branches ──────────────────────────── */
.home-branches-section {
  background: radial-gradient(circle at top right, rgba(200, 169, 110, .14), transparent 42%), linear-gradient(180deg, #ffffff 0%, #f9f5ef 100%);
}

.branch-card {
  background: #fff;
  border: 1px solid #efe8dd;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .08);
  transition: transform .28s ease, box-shadow .28s ease;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .14);
}

.branch-card-media-wrap {
  position: relative;
  overflow: hidden;
}

.branch-card-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}

.branch-card:hover .branch-card-media {
  transform: scale(1.06);
}

.branch-card-body {
  padding: 1rem 1rem 1.1rem;
}

.branch-card-title {
  font-size: 1.22rem;
  color: var(--dark);
  margin: 0 0 .45rem;
}

.branch-card-location {
  color: #666;
  font-size: .92rem;
}

.branch-card-cta {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .92rem;
}

/* ── Branch Detail ──────────────────────────── */
.branch-detail-hero {
  background: linear-gradient(180deg, #fff 0%, #f9f4eb 100%);
}

.home-images-accordion {
  display: flex;
  gap: .18rem;
  padding: .18rem;
  border-radius: 22px;
  background: transparent;
  background: linear-gradient(130deg, var(--dark) 0%, var(--primary) 100%);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .14);
  min-height: 420px;
}

.home-image-panel {
  flex: 1 1 0;
  flex-grow: 1;
  min-width: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  transition: flex-grow .95s cubic-bezier(.22, .61, .36, 1), transform .5s cubic-bezier(.22, .61, .36, 1), border-color .5s ease;
}

.home-image-panel.is-active {
  flex-grow: 3.2;
  border-color: transparent;
}

.home-image-card {
  position: relative;
  height: 100%;
  min-height: 420px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.home-image-media {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .72s cubic-bezier(.22, .61, .36, 1);
}

.home-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 8%, rgba(0, 0, 0, .18) 58%, rgba(0, 0, 0, .06) 100%);
  transition: background .55s ease;
}

.home-image-copy {
  width: 100%;
  max-width: 100%;
  padding: .45rem .6rem;
  border-radius: 10px;
  background: transparent;
  backdrop-filter: none;
  opacity: 1;
  transition: background .55s ease, backdrop-filter .55s ease;
}

.home-image-title {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  transform: translateY(0);
  opacity: 1;
  transition: transform .5s ease, opacity .5s ease;
}

.home-image-description {
  font-size: .88rem;
  line-height: 1.45;
  max-width: 100%;
  color: rgba(255, 255, 255, .88);
  transform: translateY(10px);
  opacity: 0;
  transition: transform .65s ease, opacity .6s ease;
}

.home-image-panel.is-active .home-image-media {
  transform: scale(1.1);
}

.home-image-panel.is-active .home-image-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 15%, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, .1) 100%);
}

.home-image-panel.is-active .home-image-title {
  transform: translateY(0);
}

.home-image-panel.is-active .home-image-description {
  transform: translateY(0);
  opacity: 1;
  transition-delay: .1s;
}

.home-image-panel.is-active .home-image-copy {
  background: rgba(135, 135, 135, .24);
  backdrop-filter: blur(2px);
}

.home-image-panel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .home-images-accordion {
    flex-direction: column;
    min-height: auto;
  }

  .home-image-panel {
    flex: 0 0 140px;
    flex-basis: 140px;
    transition: flex-basis .85s cubic-bezier(.22, .61, .36, 1), transform .5s cubic-bezier(.22, .61, .36, 1), border-color .5s ease;
  }

  .home-image-panel.is-active {
    flex-basis: 280px;
  }

  .home-image-card,
  .home-image-media {
    min-height: 280px;
  }
}

@media (max-width: 576px) {
  .home-image-panel {
    flex: 0 0 120px;
    flex-basis: 120px;
  }

  .home-image-panel.is-active {
    flex-basis: 220px;
  }

  .home-image-card,
  .home-image-media {
    min-height: 220px;
  }

  .home-image-title {
    font-size: 1.02rem;
  }

  .home-image-description {
    font-size: .78rem;
  }
}

/* ── About Page Dynamic Sections ─────────────── */
.about-story-section {
  background: linear-gradient(180deg, #fff 0%, #faf4ea 100%);
}

.about-main-image {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
}

.about-pillars {
  background: #fff;
}

.about-pillar-card {
  background: #fff;
  border: 1px solid #efe8dd;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
}

.about-icon-wrap,
.value-icon,
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 25%, white 75%);
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: .8rem;
}

.about-values {
  background: #fff;
}

.value-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0e8dc;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
}

.value-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.value-card-body {
  padding: 1rem;
}

.value-card h4 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}

.about-stats {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, #fff 80%) 0%, #fff 100%);
}

.about-stat-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ece2d4;
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
}

.stat-number {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .25rem;
}

/* ── CTA Banner & Section ────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--dark);
  padding: 4rem 0;
}
.cta-section {
    background: #fff;
    color: var(--dark);
    padding: 4rem 0;
  }

  .cta-section h2 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .cta-section p {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .cta-section .btn-outline-light {
    color: var(--dark) !important;
    border-color: var(--dark);
    background: transparent;
  }

  .cta-section .btn-outline-light:hover {
    background: var(--dark);
    color: #fff !important;
  }
  background: #fff;
  color: var(--dark);
}

/* ── Circle check (order success) ────────────── */
.circle-check {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, #28a745, #20c997);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(40,167,69,.4);
}

/* ── Order tracker ───────────────────────────── */
.order-tracker { padding: 0 8px; }

/* ── Loyalty card ────────────────────────────── */
.loyalty-balance-card { border-radius: var(--radius); }

/* ── Utilities ───────────────────────────────── */
.object-fit-cover { object-fit: cover; }
.cursor-pointer   { cursor: pointer; }
.rounded-4        { border-radius: 1rem !important; }
.rounded-5        { border-radius: 1.5rem !important; }

/* ── Responsive tweaks ───────────────────────── */
@media (max-width: 768px) {
  .hero-slide { min-height: 60vh; }
  .hero-content h1 { font-size: 2rem; }
  .mini-cart-panel {
    top: 0;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    transform: translateX(calc(100% + 24px));
  }
  .mini-cart-panel.open {
    transform: translateX(0);
  }
}
