/* ===== Color Variables ===== */
:root {
  --primary-color: #D94F30;
  --primary-dark: #B83D20;
  --primary-light: #FF6B4A;
  --secondary-color: #2C3E50;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
}

/* ===== Base Styles ===== */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

/* ===== Navigation ===== */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.brand-highlight {
  color: var(--primary-color);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #FFF5F2 0%, #FFFFFF 100%);
  padding-top: 80px;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 79, 48, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.logo-main {
  max-width: 500px;
  width: 100%;
  height: auto;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  color: var(--primary-color);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-content p {
  font-size: 1.2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.opening-hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(217, 79, 48, 0.3);
  animation: fadeInUp 1s ease 0.6s both;
}

.opening-hours-badge i {
  font-size: 1.5rem;
}

/* ===== Hero Highlights ===== */
.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeInRight 1s ease both;
}

.highlight-item:nth-child(1) {
  animation-delay: 0.2s;
}

.highlight-item:nth-child(2) {
  animation-delay: 0.4s;
}

.highlight-item:nth-child(3) {
  animation-delay: 0.6s;
}

.highlight-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(217, 79, 48, 0.15);
}

.highlight-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 5px 15px rgba(217, 79, 48, 0.3);
}

.highlight-text h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.highlight-text h2.h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.highlight-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Hero Image Container ===== */
.hero-image-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}

.badge-produce {
  top: 10%;
  left: 10%;
  color: #27AE60;
  border-left: 4px solid #27AE60;
  animation-delay: 0s;
}

.badge-grocery {
  top: 50%;
  right: 10%;
  color: #E67E22;
  border-left: 4px solid #E67E22;
  animation-delay: 1s;
}

.badge-meat {
  bottom: 15%;
  left: 20%;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  animation-delay: 2s;
}

/* ===== Features Section ===== */
.features-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
  padding: 5rem 0;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.service-card-inner {
  position: relative;
  z-index: 2;
}

.service-number {
  position: absolute;
  top: -10px;
  right: 0;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(217, 79, 48, 0.08);
  line-height: 1;
  font-family: 'Arial Black', sans-serif;
}

.service-icon-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #FFF5F2, #FFE5E0);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.4s ease;
}

.card-produce .service-icon-large {
  color: #27AE60;
}

.card-grocery .service-icon-large {
  color: #E67E22;
}

.card-meat .service-icon-large {
  color: var(--primary-color);
}

.service-card:hover .service-icon-large {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(217, 79, 48, 0.3);
}

.card-produce .service-badge {
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.card-grocery .service-badge {
  background: linear-gradient(135deg, #E67E22, #F39C12);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.feature-card {
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
  box-shadow: 0 5px 20px rgba(217, 79, 48, 0.3);
}

.feature-card h3 {
  color: var(--text-dark);
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 5rem 0;
}

.contact-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.contact-item-link:hover {
  transform: translateY(-5px);
}

.contact-item-link:hover .contact-item {
  background: white;
  box-shadow: 0 10px 30px rgba(217, 79, 48, 0.15);
}

.contact-item-link:hover .contact-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.contact-item {
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* Mobile-specific button styling */
@media (max-width: 767px) {
  .contact-item-link {
    display: block;
  }
  
  .contact-item {
    background: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(217, 79, 48, 0.2);
    padding: 1.25rem;
    border-radius: 15px;
    position: relative;
  }
  
  .contact-item::after {
    content: 'Tap to Open';
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .contact-item-link:active .contact-item {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(217, 79, 48, 0.3);
  }
  
  .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 12px rgba(217, 79, 48, 0.3);
  }
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  padding: 5rem 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .logo-main {
    max-width: 350px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-image-container {
    height: 300px;
  }
  
  .hero-highlights {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .floating-badge {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .service-number {
    font-size: 4rem;
  }
}

@media (max-width: 767px) {
  .opening-hours-badge {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .brand-text {
    font-size: 1.2rem;
  }
  
  .highlight-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.75rem;
  }
  
  .highlight-text h4 {
    font-size: 1.1rem;
  }
  
  .highlight-text p {
    font-size: 0.875rem;
  }
  
  .service-icon-large {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .service-title {
    font-size: 1.25rem;
  }
  
  .service-number {
    font-size: 3.5rem;
  }
}

@media (max-width: 575px) {
  .hero-image-container {
    height: 250px;
  }
  
  .floating-badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
}