/* ==========================================================================
   PIZZA BRAVOOO - BRAND STYLING & CORE DESIGN SYSTEM
   Colors: Primary Red (#D62828), Golden Yellow (#F4C430), Italian Green (#2E7D32)
   Background: #FFF8F0, Text: #222222
   ========================================================================== */

:root {
  --primary-red: #D62828;
  --primary-red-hover: #b81d1d;
  --golden-yellow: #F4C430;
  --golden-yellow-dark: #dca714;
  --italian-green: #2E7D32;
  --bg-cream: #FFF8F0;
  --bg-card: #FFFFFF;
  --text-dark: #222222;
  --text-muted: #666666;
  --border-light: #F0E6D8;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(214, 40, 40, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(214, 40, 40, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

body {
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red-hover);
}

/* Typography Utilities */
.font-brand {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
}

.text-red { color: var(--primary-red) !important; }
.text-yellow { color: var(--golden-yellow-dark) !important; }
.text-green { color: var(--italian-green) !important; }

/* Buttons */
.btn-brand-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b81d1d 100%);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-brand-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, #e63939 0%, var(--primary-red) 100%);
}

.btn-brand-secondary {
  background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--golden-yellow-dark) 100%);
  color: var(--text-dark) !important;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-brand-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(244, 196, 48, 0.6);
}

.btn-outline-brand {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: var(--transition-normal);
}

.btn-outline-brand:hover {
  background: var(--primary-red);
  color: #fff !important;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-subtitle {
  color: var(--primary-red);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--golden-yellow), var(--italian-green));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Navbar */
.navbar-bravo {
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  transition: var(--transition-normal);
}

.navbar-bravo .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-bravo .logo-img {
  height: 55px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.nav-link {
  font-weight: 700;
  color: var(--text-dark) !important;
  font-size: 1.05rem;
  margin: 0 8px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 3px;
  background: var(--primary-red);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-phone-badge {
  background: #E8F5E9;
  color: var(--italian-green);
  border: 1px solid var(--italian-green);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Floating Favorites Count */
.fav-badge {
  background: #ffffff;
  color: var(--primary-red);
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  margin-right: 4px;
  font-weight: 800;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.88) 0%, rgba(214, 40, 40, 0.8) 100%),
              url('images/download.jpeg') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-overlay-graphic {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(244, 196, 48, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 196, 48, 0.2);
  border: 1px solid var(--golden-yellow);
  color: var(--golden-yellow);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--golden-yellow);
  text-shadow: 0 4px 15px rgba(244, 196, 48, 0.4);
}

.hero-description {
  font-size: 1.25rem;
  opacity: 0.92;
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-floating-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: floatAnim 4s ease-in-out infinite alternate;
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-15px); }
}

.hero-feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.hero-feature-pill i {
  font-size: 1.5rem;
  color: var(--golden-yellow);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--bg-cream);
}

.stat-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-bottom: 4px solid var(--primary-red);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--golden-yellow-dark);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(214, 40, 40, 0.1);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 15px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-dark);
}

.stat-label {
  color: var(--text-muted);
  font-weight: 700;
}

/* Categories Bar */
.categories-section {
  padding: 20px 0;
  position: sticky;
  top: 75px;
  z-index: 1020;
  background: rgba(255, 248, 240, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border-light);
}

.cat-scroll-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.cat-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.cat-pill-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.cat-pill-btn.active {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b81d1d 100%);
  color: #ffffff;
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
}

/* Controls Bar */
.menu-controls-bar {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
}

.search-input-group {
  position: relative;
}

.search-input-group i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-input-group input {
  padding-right: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  font-weight: 600;
}

.search-input-group input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(214, 40, 40, 0.15);
}

.filter-toggle-btn {
  height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Digital Menu Section */
.menu-section {
  padding: 30px 0 80px;
  background: var(--bg-cream);
}

/* Clean Text Product Card (No Product Images) */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214, 40, 40, 0.3);
}

.badge-tag-inline {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge-tag-inline.popular {
  background: rgba(244, 196, 48, 0.2);
  color: var(--golden-yellow-dark);
  border: 1px solid var(--golden-yellow);
}

.badge-tag-inline.fast {
  background: rgba(46, 125, 50, 0.15);
  color: var(--italian-green);
  border: 1px solid var(--italian-green);
}

.btn-favorite-inline {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid var(--border-light);
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-favorite-inline:hover,
.btn-favorite-inline.active {
  color: var(--primary-red);
  background: rgba(214, 40, 40, 0.1);
  border-color: var(--primary-red);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

/* Sizes Pills */
.sizes-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-pill-option {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #f9f9f9;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.size-pill-option.active {
  background: rgba(214, 40, 40, 0.08);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-light);
}

.price-tag {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-red);
}

.price-tag span {
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 2px;
}

/* Featured Section */
.featured-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #FFF8F0 0%, #FBEFE2 100%);
}

.featured-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  height: 100%;
}

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

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
  background: var(--bg-cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Customer Reviews */
.reviews-section {
  padding: 80px 0;
  background: #ffffff;
}

.review-card {
  background: var(--bg-cream);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin: 10px 0;
}

.stars-rating {
  color: var(--golden-yellow-dark);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.reviewer-name {
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 15px;
}

/* Location & Contact */
.contact-section {
  padding: 80px 0;
  background: var(--bg-cream);
}

.contact-card {
  background: #ffffff;
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 100%;
}

.contact-info-list {
  list-style: none;
  margin-top: 20px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-info-list i {
  width: 42px;
  height: 42px;
  background: rgba(214, 40, 40, 0.1);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.call-big-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--italian-green) 0%, #1e5623 100%);
  color: #ffffff !important;
  font-size: 1.3rem;
  font-weight: 900;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.35);
  transition: var(--transition-normal);
  width: 100%;
  margin-top: 25px;
}

.call-big-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.5);
}

/* Facebook CTA */
.facebook-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #1877F2 0%, #0d5cb6 100%);
  color: #ffffff;
  text-align: center;
}

.btn-facebook {
  background: #ffffff;
  color: #1877F2 !important;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-facebook:hover {
  transform: translateY(-3px);
  background: #f0f4f9;
}

/* Footer */
.footer-bravo {
  background: #1a1a1a;
  color: #dddddd;
  padding: 70px 0 30px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--golden-yellow);
  padding-right: 5px;
}

/* Toast Notifications */
.toast-container-custom {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1090;
}

.toast-custom {
  background: var(--text-dark);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  margin-top: 10px;
  animation: slideInRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-section {
    padding: 120px 0 60px;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .categories-section {
    top: 65px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .contact-card {
    padding: 20px;
  }
}
