/* WasteWise Restaurant - Main CSS */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Color Palette - 5 Primary Colors + Light/Dark Shades */
:root {
  /* Primary Colors */
  --color-primary: #2e8c57;      
  --color-secondary: #99d648;    
  --color-tertiary: #ffaf00;     
  --color-quaternary: #7750dc;   
  --color-quinary: #fb632f;      
  
  /* Light Shades */
  --color-primary-light: #55c061;
  --color-secondary-light: #e5eee7;
  --color-tertiary-light: #f0d995;
  --color-quaternary-light: #c3b0dd;
  --color-quinary-light: #ec887d;
  
  /* Dark Shades */
  --color-primary-dark: #1b4c1b;
  --color-secondary-dark: #329b38;
  --color-tertiary-dark: #f08c0c;
  --color-quaternary-dark: #332296;
  --color-quinary-dark: #ea7122;
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-light: #F8F9FA;
  --color-gray-100: #F1F3F4;
  --color-gray-200: #d4d4d4;
  --color-gray-300: #d0d5e6;
  --color-gray-600: #51555c;
  --color-gray-800: #363a3f;
  --color-dark: #202128;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-quinary) 100%);
  --gradient-cool: linear-gradient(135deg, var(--color-quaternary) 0%, var(--color-primary) 100%);
  
  /* Typography - Conservative Sizes */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 26px;
  --font-size-h1: 2.25rem;  
  --font-size-h2: 1.875rem; 
  --font-size-h3: 1.5rem;   
  --font-size-h4: 1.25rem;  
  --font-size-h5: 1.125rem; 
  --font-size-h6: 1rem;     
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-max-width: 1200px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

p {
  margin-bottom: 1rem;
  color: var(--color-gray-600);
}

/* Header */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(11px);
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.62rem; 
  font-weight: 700;
  color: var(--color-primary) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--color-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary) !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.hero-decoration:first-child {
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-decoration:last-child {
  bottom: 10%;
  left: 10%;
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content h1 {
  padding-top: 50px !important;
  color: var(--color-white);
  font-size: var(--font-size-h1);
  margin-bottom: 1.61rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.67rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 13px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-11px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-white);
  font-size: 2rem;
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1rem 0;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  background: var(--color-white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-primary-light);
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--gradient-cool);
  transform: translateY(-2px);
  box-shadow: 0 11px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--color-primary-light);
  margin-bottom: 1.57rem;
}

.footer a {
  color: var(--color-gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--color-primary-light);
}

/* Contact Form */
.contact-form {
  background: var(--color-light);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid var(--color-gray-200);
  border-radius: 15px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(54, 118, 84, 0.25);
}

/* FAQ Section */
.faq-item {
  background: var(--color-white);
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-gray-600);
  display: none;
}

.faq-answer.active {
  display: block;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Testimonials */
.testimonials-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.testimonials-container::-webkit-scrollbar {
  height: 8px;
}

.testimonials-container::-webkit-scrollbar-track {
  background: var(--color-gray-200);
  border-radius: 4px;
}

.testimonials-container::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 300px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-rating {
  color: var(--color-tertiary);
  margin-bottom: 1rem;
}

/* Price Plans */
.price-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  background: var(--gradient-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.price-card:hover {
  transform: translateY(-10px);
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1rem 0;
}

.price-card.featured .price-amount {
  color: var(--color-white);
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-white);
  font-size: 1.63rem;
  font-weight: 700;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 45%;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
}

.timeline-content {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  right: -60px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -60px;
  right: auto;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 1rem 0;
  background: var(--color-light);
}

.breadcrumb-nav img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.section-bg-light {
  background-color: var(--color-light);
}

/* Blog Section */
.blog-card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.33rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.blog-excerpt {
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  color: var(--color-primary-dark);
}

/* Price Plans Enhancement */
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.price-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.price-card ul li:last-child {
  border-bottom: none;
}

.price-card.featured ul li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Navigation Menu Enhancement */
.navbar-nav .nav-link {
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Fixed navbar toggler for Bootstrap 5 */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Enhanced form styling */
.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(39, 110, 67, 0.25);
}

/* Button enhancement - adds to existing .btn styles */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Footer enhancement */
.footer-bottom {
  border-top: 1px solid var(--color-gray-600);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--color-gray-300);
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Team Social Links - Colorful Style */
.team-social-links {
  margin-top: 1rem;
}

.social-icons-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-link i {
  position: relative;
  z-index: 2;
}

.facebook-link {
  background: #1877f2;
}

.linkedin-link {
  background: #0a66c2;
}

.x-link {
  background: #1da1f2;
}

.x-link::after {
  content: 'X';
  position: absolute;
  font-weight: bold;
  font-size: 16px;
  z-index: 3;
}

.x-link i {
  display: none;
}

@media (max-width: 768px) {
  .social-icons-grid {
    gap: 10px;
  }
  
  .social-link {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}
