/* Custom CSS for Neme's Catering - Optimized for Performance */

/* CSS Variables for Brand Colors (extracted from logo) */
:root {
  --primary-color: #d4af37; /* Gold from logo */
  --secondary-color: #8b4513; /* Brown from logo */
  --accent-color: #ff6b35; /* Orange accent */
  --dark-color: #2c1810; /* Dark brown */
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --text-dark: #333333;
  --text-light: #666666;
}

/* Performance Optimizations */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-4, .display-5 {
  font-weight: 700;
}

/* Custom Bootstrap Color Overrides */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--dark-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--dark-color);
  transform: translateY(-2px);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--secondary-color) !important;
}

/* Header Styles */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-color) !important;
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(212, 175, 55, 0.1);
}

/* Top Contact Strip */
.top-strip {
  background-color: #4ac0b0;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-phone {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.top-phone:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-buttons {
  margin-top: 2rem;
}

.hero-features {
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-item i {
  font-size: 1.2rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Service Cards */
.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* About Section */
.about-content {
  padding-left: 2rem;
}

.about-image {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.highlight-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(212, 175, 55, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
}

.highlight-item h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.highlight-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Restaurant links - no visual styling */
.restaurant-link {
  color: inherit;
  text-decoration: none;
  transition: none;
}

.restaurant-link:hover,
.restaurant-link:focus,
.restaurant-link:visited {
  color: inherit;
  text-decoration: none;
}

/* Menu Section */
.menu-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.menu-category {
  color: var(--secondary-color);
  font-family: 'Playfair Display', serif;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.menu-note {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
}

.menu-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

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

.menu-item h4 {
  color: var(--dark-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.menu-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.menu-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.menu-cta {
  background: rgba(212, 175, 55, 0.05);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.menu-cta h4 {
  color: var(--secondary-color);
}

.menu-buttons {
  margin-top: 1.5rem;
}

/* Service Areas */
.area-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  text-align: center;
  height: 100%;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.area-card h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.area-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.featured-area {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.featured-area h4 {
  color: var(--primary-color);
  font-weight: 700;
}

.area-features {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.area-features small {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Food Gallery Styling */
.food-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.food-gallery-item:hover {
  transform: translateY(-5px);
}

.food-gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.food-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.food-gallery-item:hover .food-overlay {
  transform: translateY(0);
}

.food-overlay h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.food-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* FAQ Section */
.accordion-button {
  background-color: #f8f9fa;
  color: var(--dark-color);
  font-weight: 600;
  border: none;
  padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--dark-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
  border-color: var(--primary-color);
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.accordion-item {
  border: 1px solid #e9ecef;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

/* Contact Section */
.contact-item {
  text-align: center;
  padding: 1rem;
}

.contact-item i {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.contact-item h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-item p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.contact-item a {
  transition: all 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color) !important;
}

/* Footer */
footer {
  background-color: var(--dark-color) !important;
}

.footer-brand img {
  filter: brightness(1.2);
}

.footer-brand h5 {
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--dark-color) !important;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section .row {
    min-height: auto !important;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .about-content {
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .hero-buttons {
    text-align: center;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .area-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .service-card,
  .area-card {
    padding: 1.5rem 1rem;
  }
  
  .hero-features .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* Performance Optimizations */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Lazy Loading Support */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Preload Critical Images */
.hero-image img,
.navbar-brand img {
  will-change: transform;
}

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .hero-section,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}
