:root {
  --brand: #c0392b;
  /* Define our custom muted background color based on your preferences */
  --foodmood-muted: #f6f6f4;
}

html {
  scroll-behavior: smooth;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Ensure section scrolling accounts for navbar height */
section {
  scroll-margin-top: 80px;
}

body {
  font-size: 17px;
  line-height: 220%;
  color: #0f0e0d;
  background: #ffffff;
  position: relative;
  font-weight: 300;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: "Merriweather", serif;
}

#mainNav ul li a {
  color: #645b52;
  position: relative;
  display: block;
  padding: 5px 15px;
  margin: 5px;
  text-transform: uppercase;
  font-size: 0.9em;
  font-weight: 700;
}

/* Product card image size */
.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-item {
  opacity: 0;
  transform: translateY(30px);
}

.product-item.animated {
  animation: scrollReveal 0.6s ease-out forwards;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

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

/* Logo slider size */
.brands-slider {
  overflow: hidden;
  padding: 1.75rem 0.75rem;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: brandsAutoScroll 36s linear infinite;
}

.brands-slider:hover .brands-track {
  animation-play-state: paused;
}

.brand-slide {
  flex: 0 0 clamp(175px, 18vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 0.5rem;
}

.brand-slide img {
  display: block;
  width: auto;
  height: 96px;
  min-height: 96px;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

@keyframes brandsAutoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

@media (max-width: 992px) {
  .brands-track {
    gap: 1.25rem;
    animation-duration: 32s;
  }

  .brand-slide {
    flex-basis: clamp(160px, 24vw, 210px);
    min-height: 104px;
  }

  .brand-slide img {
    height: 88px;
    min-height: 88px;
    max-height: 88px;
  }
}

@media (max-width: 576px) {
  .brands-slider {
    padding: 1.25rem 0.5rem;
  }

  .brands-track {
    gap: 1rem;
    animation-duration: 28s;
  }

  .brand-slide {
    flex-basis: clamp(145px, 44vw, 185px);
    min-height: 94px;
  }

  .brand-slide img {
    height: 78px;
    min-height: 78px;
    max-height: 78px;
  }
}

.brand-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 80px;
  border: 2px dashed #d0cfc9;
  border-radius: 6px;
}

.brand-logo-placeholder span {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  color: #aaa;
  letter-spacing: 0.05em;
  text-align: center;
}

.section-padding {
  padding: 4rem 0;
}

/* Contact CTA block style */
.contact-cta {
  background: linear-gradient(90deg, rgb(165 167 71 / 22%), rgba(0, 0, 0, 0));
  border-left: 4px solid #a5a747;
  padding: 1.25rem;
}

/* Headings styles */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 900;
  font-family: "Merriweather", serif;
  color: #645b52;
}

/* Global display heading color (override Bootstrap white default) */
.display-5 {
  color: white;
}

/* Global Button styles */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 22px;
  font-size: 1rem;
  line-height: 1.5;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: none;
  font-weight: 700;
  transition: all 0.15s ease-in-out;
}

/* Custom color for main button */
.btn-danger {
  margin: 0;
  outline: none !important;
  background: #a5a747;
  color: #ffffff !important;
  border: 1px solid transparent;
}

/* Outline button styling */
.btn-outline-danger {
  margin: 0;
  outline: none !important;
  color: #a5a747 !important;
  border: 1px solid #a5a747;
  background: transparent;
}

.btn-outline-danger:hover {
  background: #a5a747;
  color: #ffffff !important;
  border: 1px solid transparent;
}

.btn-danger:hover {
  color: #ffffff !important;
  background: #645b52;
  border: 1px solid transparent;
}

/* Black arrows for brands slider */
#brandsCarousel .carousel-control-prev-icon,
#brandsCarousel .carousel-control-next-icon {
  filter: invert(1);
}

#brandsCarousel .carousel-control-prev,
#brandsCarousel .carousel-control-next {
  width: 40px;
  top: 50%;
  transform: translateY(-50%);
}

/* Heading decorative line */
h2:after,
.h2:after {
  display: block;
  content: "";
  position: absolute;
  bottom: 30px;
  left: 0;
  height: 4px;
  border-radius: 2px;
  background: #a5a747;
  width: 60px;
}

h2 {
  position: relative;
  padding-bottom: 40px;
}

/* Global link color */
a {
  color: #a5a747;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

a:hover {
  color: #7d7c35;
  text-decoration: underline;
}

/* Better text-muted contrast for accessibility (WCAG AA) */
.text-muted {
  color: #6b6b6b !important;
}

b,
strong {
  font-weight: 700;
}

/* Custom form elements */
.rounded-pill {
  border-radius: 24px !important;
  border: 1px solid #9a9a9a;
  padding: 10px;
}

.form-check-input {
  vertical-align: middle;
  margin-top: 0;
}

/* Consultation circular image styles */
.consultation-image-wrapper {
  border-radius: 50%;
  width: 380px;
  height: 380px;
  max-width: 100%;
  margin: 0 auto;
  border: 8px solid #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.consultation-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom color for icons and accent text */
.text-primary {
  --bs-text-opacity: 1;
  color: #a5a747 !important;
}

/* Define custom Zebra styling classes */
.fm-zebra-striping .bg-white {
  background-color: #ffffff !important;
}

.fm-zebra-striping .bg-light {
  background-color: var(--foodmood-muted) !important;
}

/* Hero Slider styles */
.hero-slider {
  --hero-nav-height: 80px;
}

.hero-slider,
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: calc(100vh - var(--hero-nav-height));
  height: calc(100dvh - var(--hero-nav-height));
}

.hero-slider .carousel-item {
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 991.98px) {
  .hero-slider {
    --hero-nav-height: 72px;
  }
}

/* Fade transition effect */
.carousel-fade .carousel-item {
  transition: opacity 1s ease-in-out;
}

/* Text animation on slide activation */
.hero-slider .carousel-item .col-md-12 {
  animation: fadeInUp 1s ease-in-out;
}

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

/* Round indicators (instead of lines) */
.hero-slider .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* Force displays color for displays inside hero slider */
.hero-slider [class*="display-"] {
  color: #a5a747;
}

/* Subtle radial overlay for readability */
.hero-slider .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

/* Ensure content remains above overlay */
.hero-slider .carousel-item .container {
  position: relative;
  z-index: 2;
  justify-content: flex-end !important;
  align-items: center;
}

/* Push text block to bottom of slider */
.hero-slider .carousel-item .col-md-12 {
  position: relative;
  z-index: 1;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.25rem;
  margin-bottom: calc(1.25rem + 88px);
}

.hero-slider .carousel-item .col-md-12::before {
  content: "";
  position: absolute;
  inset: -1.5rem -2rem -1.75rem;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0.56) 0%,
      rgba(0, 0, 0, 0.42) 36%,
      rgba(0, 0, 0, 0.22) 62%,
      rgba(0, 0, 0, 0) 100%);
  filter: blur(18px);
  opacity: 0.95;
}

/* Text shadow for readability */
.hero-slider h1,
.hero-slider h2 {
  text-shadow:
    0 2px 6px rgba(0,0,0,0.62),
    0 10px 28px rgba(0,0,0,0.28);
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.24);
}

.hero-slider h1::before,
.hero-slider h1::after,
.hero-slider h2::before,
.hero-slider h2::after {
  content: none;
  display: none;
}

.hero-slider h2 {
  position: static;
  padding-bottom: 0;
}

.hero-slider .lead {
  text-shadow:
    0 2px 4px rgba(0,0,0,0.58),
    0 8px 18px rgba(0,0,0,0.22);
}

.hero-scroll-cue {
  display: inline-flex;
  margin-top: 0.65rem;
  text-decoration: none;
}

.hero-scroll-cue-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-scroll-cue-circle i {
  font-size: 1.05rem;
  line-height: 1;
}

.hero-scroll-cue:hover .hero-scroll-cue-circle,
.hero-scroll-cue:focus-visible .hero-scroll-cue-circle {
  transform: translateY(2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.78);
}

.hero-scroll-cue:focus-visible {
  outline: none;
}

@media (max-width: 767.98px) {
  .hero-scroll-cue {
    margin-top: 0.5rem;
  }

  .hero-scroll-cue-circle {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767.98px) {
  .hero-slider .carousel-item .col-md-12 {
    padding: 0.85rem 0.75rem;
    margin-bottom: calc(1rem + 78px);
  }

  .hero-slider .carousel-item .col-md-12::before {
    inset: -1rem -1rem -1.25rem;
    filter: blur(14px);
    background:
      radial-gradient(ellipse at center,
        rgba(0, 0, 0, 0.64) 0%,
        rgba(0, 0, 0, 0.48) 40%,
        rgba(0, 0, 0, 0.24) 68%,
        rgba(0, 0, 0, 0) 100%);
  }
}

/* Read More button style for cards */
.read-more-link {
  cursor: pointer;
  font-size: 0.9em;
}

/* Form validation styles */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}

.invalid-feedback.d-block {
  display: block !important;
}

.form-check-input.is-invalid {
  border-color: #dc3545;
}

.form-check-input.is-invalid:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Footer styles */
footer {
  background-color: #f6f6f4;
  color: #9a9a9a;
  padding: 40px 0;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
