/* ==========================================================================
   Damascus Delicacies - Design System & Stylesheet (v2.1)
   Palette: Rich Damascene Burgundy (#7A1C1C), Warm Gold (#D4AF37), Cream (#FAF6F0), Onyx (#1A1A1A)
   ========================================================================== */

:root {
  --primary: #7A1C1C;
  --primary-hover: #5E1414;
  --accent: #D4AF37;
  --accent-light: #F4E8C1;
  --bg-main: #FAF6F0;
  --bg-card: #FFFFFF;
  --text-main: #2C2C2C;
  --text-muted: #666666;
  --border-color: #E8E2D9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(122, 28, 28, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: 0;
  font-weight: 700;
}

h1 { font-size: 2.75rem; line-height: 1.2; }
h2 { font-size: 2.1rem; line-height: 1.3; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }

p { margin-top: 0; margin-bottom: 1rem; color: var(--text-main); }
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

header > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-icon {
  background-color: var(--primary);
  color: var(--accent);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-phone {
  font-weight: 700;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.btn-phone:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-light);
  color: #5A4000;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-box b {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* Sections Styling */
section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

/* Story Section */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.story-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight-item {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.highlight-item b { display: block; color: var(--primary); }
.highlight-item span { font-size: 0.85rem; color: var(--text-muted); }


/*About us */
/* Story Image Slideshow Container */
.story-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px; /* Maintains vertical height matching story text */
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
}

.story-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out; /* Smooth cross-fade transition */
}

.story-slide.active {
  opacity: 1;
}

/* Menu Tabs & Dynamic Items */
.menu-categories {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-top: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.menu-tab {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.menu-tab.active, .menu-tab:hover {
  background-color: var(--primary);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.menu-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu-card-img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  background-color: #f0ebe1;
}

.menu-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.menu-card-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15rem;
  margin-left: 0.5rem;
}

.menu-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.menu-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background-color: var(--bg-main);
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Modal Dialog & Standardized Image Container Styling
   ========================================================================== */

/* Modal Overlay Backdrop */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex !important;
}

/* Modal Window Container */
.modal-content {
  background: var(--bg-card);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* High-Contrast Close Button */
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff !important;
  border: 2px solid #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--primary);
  border-color: var(--accent);
  transform: scale(1.08);
}

/* Standardized Image Container & Background */
.modal-img-container {
  width: 100%;
  height: 280px;
  background-color: #FAF6F0;
  background-image: radial-gradient(#E8E2D9 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

/* Standardized Modal Image Frame */
.modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.modal-body {
  padding: 1.75rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-header h2 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--primary);
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.modal-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.modal-cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

/* Notice Box */
.notice-box {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Order Section */
/* Order Section (Stacked Full-Width Layout) */
/* Order Card Layout */
.order-card {
  background: linear-gradient(135deg, var(--primary) 0%, #4A1010 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.order-text-content h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.order-text-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
}

/* Button Row & Mobile Wrapping */
.order-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

/* Embedded Notice Box */
.order-notice-box {
  background-color: var(--accent-light, #F4E8C1);
  color: #2C2C2C;
  border-left: 4px solid var(--accent, #D4AF37);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm, 8px);
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Clickable Phone Link inside Notice Box */
.notice-phone-link {
  font-weight: 800;
  color: var(--primary, #7A1C1C) !important;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.notice-phone-link:hover {
  opacity: 0.85;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .order-buttons a {
    width: 100%; /* Stacks buttons vertically on small mobile screens */
    text-align: center;
  }
}

.btn-app {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.btn-app:hover {
  background: #ffffff;
  color: var(--primary) !important;
}

/* ==========================================================================
   Reviews Section (Equal Heights, Clean Badges, No Dark Box Overflow)
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch; /* Keeps all cards equal in height */
}

.review-card {
  background: var(--bg-card, #ffffff);
  padding: 1.75rem;
  border-radius: var(--radius-md, 14px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.05));
  border: 1px solid var(--border-color, #E8E2D9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
}

.review-stars {
  color: #F5A623;
  font-size: 1.15rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.review-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-main, #2C2C2C);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Automatically pushes footer badge to the bottom */
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-color, #E8E2D9);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #666666);
}

.review-badge-google {
  color: #4285F4;
  font-weight: 800;
}

.review-badge-fb {
  color: #1877F2;
  font-weight: 800;
}

/* Visit & Hours Grid */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.hours-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-color);
}

/* Footer */
footer {
  background-color: var(--text-main);
  color: #fff;
  padding: 3rem 1.5rem 5rem 1.5rem;
}

footer > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

footer a { color: #ccc; }
footer a:hover { color: var(--accent); }

/* Mobile Bottom Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.mobile-sticky-bar a {
  flex: 1;
  text-align: center;
  padding: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-section, .story-grid, .visit-grid, .order-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  
  nav { display: none; }
  
  .mobile-sticky-bar {
    display: flex;
  }
  
  body { padding-bottom: 50px; }
  h1 { font-size: 2.1rem; }
}


/* review added sections*/
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.25rem;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.review-author-info strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.review-author-info span {
  font-size: 0.78rem;
  color: #777;
  margin-top: 2px;
}

.review-badge-doordash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #ff3008;
  color: white;
  font-weight: 800;
  font-size: 13px;
}

.review-badge-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #777;
  color: white;
  font-weight: 700;
}