/* ==========================================================================
   ChefMate — Header (sticky nav) + Testimonials ("Loved by thousands").
   Selectors are scoped to .site-header / .testimonials so they don't collide
   with the theme's existing .container / .eyebrow / .btn / .nav-links rules.
   ========================================================================== */

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s linear;
}
.site-header:hover {
  background-color: #fff;
}

/* Solid background keeps the menu readable over any section while scrolling;
   the shadow just adds depth once the page is scrolled. */
.site-header.is-scrolled {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.site-header .logo img { width: 151px; height: auto; }

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: #2B2B28;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav-links a:hover { color: #3B7A46; }

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: normal;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.site-header .btn-outline {
  background: #FFFFFF;
  border-color: #1F6A2E;
  color: #1F6A2E;
}

.site-header .btn-outline:hover { border-color: #3B7A46; color: #3B7A46; }

.site-header .btn-solid { background: #1F6A2E; color: #FFFFFF; }
.site-header .btn-solid:hover { background: #084414; }

.site-header .nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #E3E3DF;
  background: #FFFFFF;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.site-header .nav-toggle svg { width: 18px; height: 18px; }
.site-header .nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-menu { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }
.site-header.is-open .mobile-panel .nav-links,.site-header.is-open .mobile-panel .header-actions{
  display: flex !important;
}

.site-header .mobile-panel { display: none; }

@media (max-width: 900px) {
  .site-header .nav-toggle { display: flex; }

  .site-header .container > .nav-links,
  .site-header .container > .header-actions { display: none; }

  .site-header .mobile-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E3E3DF;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    z-index: 90;
  }

  .site-header.is-open .mobile-panel { max-height: 420px; }

  .site-header .mobile-panel .container {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .site-header .mobile-panel .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-header .mobile-panel .nav-links li { border-bottom: 1px solid #E3E3DF; }
  .site-header .mobile-panel .nav-links li:last-child { border-bottom: none; }
  .site-header .mobile-panel .nav-links a { display: block; padding: 14px 0; }

  .site-header .mobile-panel .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
  }

  .site-header .mobile-panel .header-actions .btn { width: 100%; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials .become-cook__deco {
  position: absolute;
  top: -13%;
  right: 17%;
  width: 160px;
  pointer-events: none;
}

.testimonials .container { position: relative; }

.testimonials {
  position: relative;
  padding: 90px 0 70px;
  background: #FFFFFF;
  text-align: center;
  overflow: visible;
}

.testimonials-deco {
  position: absolute;
  top: -6px;
  right: 60px;
  width: 130px;
  transform: rotate(-14deg);
  pointer-events: none;
}

.testimonials-header {
  position: relative;
  max-width: 480px;
  margin: 0 auto 46px;
}

.testimonials .eyebrow {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1F6A2E;
  margin: 0 0 8px;
}

.testimonials-header h2 {
  font-size: 48px;
  font-weight: 500;
  color: #084414;
  margin: 0 0 14px;
  line-height: 1.2;
}

.testimonials-header p {
  font-size: 18px;
  line-height: 1.6;
  color: #656565;
  margin: 0;
}

.notif-chip {
  position: absolute;
  right: -74px;
  top: -34px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E3E3DF;
  border-radius: 12px;
  padding: 7px 12px 7px 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  white-space: nowrap;
  z-index: 3;
}

.notif-chip-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3B7A46;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-chip-badge svg { width: 13px; height: 13px; }
.notif-chip-text { text-align: left; line-height: 1.25; }
.notif-chip-text strong { display: block; font-size: 12px; font-weight: 700; color: #2B2B28; }
.notif-chip-text span { display: block; font-size: 11px; color: #8A8A85; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.testimonial-card { position: relative; }

.testimonial-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1.44 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #ECF3ED;
}

.testimonial-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease, transform .5s ease;
}

.testimonial-media img.img-hover { opacity: 0; }
.testimonial-card:hover .testimonial-media img.img-base { opacity: 0; transform: scale(1.04); }
.testimonial-card:hover .testimonial-media img.img-hover { opacity: 1; transform: scale(1.04); }

/* Owl Carousel — quote slider */
.quote-owl { position: relative; margin: 0 auto 26px; }
.quote-owl .item { padding: 2px; }

.testimonial-quote {
  background: #FFFFFF;
  border: 1px solid #E3E3DF;
  border-radius: 12px;
  padding: 18px 15px 20px;
  text-align: center;
  height: 100%;
  font-weight: 300;
}

.testimonial-quote > p {
  font-style: italic;
  font-size: 16px;
  color: #084414;
  margin: 0 0 14px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.testimonial-author-id { display: flex; align-items: center; gap: 8px; }

.testimonial-author img {
  width: 50px !important;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 18px; font-weight: 500; color: #1F1F1F; line-height: 1.3; }
.testimonial-author span { display: block; font-size: 12px; font-weight: 500; color: #656565; line-height: 1.3; }

.stars {
  display: flex;
  gap: 1px;
  font-size: 20px;
  color: #E3E3DF;
  flex-shrink: 0;
  margin-left: 6px;
}
.stars span { font-size: 20px; }
.stars .filled { color: #1F6A2E; }

.quote-owl .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  margin: 0;
}

.quote-owl .owl-nav button.owl-prev,
.quote-owl .owl-nav button.owl-next {
  pointer-events: auto;
  position: absolute;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 1px solid #E3E3DF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
  margin: 0 !important;
}

.quote-owl .owl-nav button.owl-prev:hover,
.quote-owl .owl-nav button.owl-next:hover { background: #ECF3ED !important; border-color: #3B7A46; }

.quote-owl .owl-nav button.owl-prev { left: -46px; }
.quote-owl .owl-nav button.owl-next { right: -46px; }
.quote-owl .owl-nav button.disabled { opacity: .35; pointer-events: none; }
.quote-owl .owl-nav svg { width: 14px; height: 14px; }

.quote-owl .owl-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.quote-owl .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: #E3E3DF;
  transition: width .25s ease, background .25s ease;
  display: block;
}

.quote-owl .owl-dots .owl-dot.active span {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: #3B7A46;
}

.testimonials-features {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 26px;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 24px;
  font-weight: 500;
  color: #084414;
  white-space: nowrap;
}

.feature-item .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3B7A46;
  flex-shrink: 0;
}

.feature-item .check svg { width: 9px; height: 9px; }

@media (max-width: 992px) {
  .testimonials-deco { right: 24px; width: 100px; }
  .feature-item{
    font-size: 20px;
  }
}

@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .notif-chip { display: none; }
  .testimonials-deco { display: none; }
  .quote-owl .owl-nav button.owl-prev { left: -8px; }
  .quote-owl .owl-nav button.owl-next { right: -8px; }
}

@media (max-width: 768px) {
  .testimonials { padding: 60px 0 46px; }
  .testimonials-header h2 { font-size: 28px; }
  .feature-item{
    font-size: 18px;
  }

}

@media (max-width: 576px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-features {  align-items: flex-start; gap: 14px; }
  .quote-owl .owl-nav { display: none; }
}
