/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: #373F43;
  color: #f5f5f5;
  padding: 16px 24px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  font-family: inherit;
}

.cookie-consent-banner.cookie-consent-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-banner.cookie-consent-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #f5f5f5;
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.cookie-consent-accept {
  background-color: #1fab61;
  color: #fff;
}

.cookie-consent-accept:hover {
  background-color: #178a4d;
}

.cookie-consent-decline {
  background-color: transparent;
  border-color: #f5f5f5;
  color: #f5f5f5;
}

.cookie-consent-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Reopen button (bottom-left up arrow) */
.cookie-reopen-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #1fab61;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
}

.cookie-reopen-btn:hover {
  background-color: #178a4d;
  color: #fff;
}

@media (max-width: 767px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-consent-buttons {
    justify-content: center;
  }
}

/* === Site-wide nav menu & dropdown animations === */

/* Top nav links: smooth colour transition on hover/active */
.navmenu,
.navmenu-copy,
.link-dd,
.link-block-10 .textbloglink,
.text-2 {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Dropdown panels (Process / Blogs / The Range): fade + slide instead of an instant show/hide */
.w-dropdown-list {
  display: block;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.w-dropdown-list.w--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown arrow icon rotates to show open/closed state */
.w-dropdown-toggle .w-icon-dropdown-toggle {
  transition: transform 0.25s ease;
}

.w-dropdown-toggle.w--open .w-icon-dropdown-toggle,
.w-dropdown.w--open .w-icon-dropdown-toggle {
  transform: rotate(180deg);
}

/* Dropdown links: clearer hover feedback, easier to click accurately */
.link-dd {
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.link-dd:hover {
  padding-left: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .w-dropdown-list,
  .w-dropdown-toggle .w-icon-dropdown-toggle,
  .link-dd,
  .navmenu,
  .navmenu-copy {
    transition: none;
  }
}

/* === Next/Previous Section scroll buttons === */
.section-nav {
  position: fixed;
  top: 20vh;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-nav-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #1fab61;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.section-nav-btn:hover {
  background-color: #178a4d;
  transform: scale(1.08);
}

.section-nav-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  background-color: #373F43;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.section-nav-btn[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #373F43;
  pointer-events: none;
}

@media (max-width: 767px) {
  .section-nav {
    display: none;
  }
}
