:root {
  --font-family-main: 'Afacad', sans-serif;
  --footer-font-size: 14px;
}

.colourmetrix {
  --bg-gradient: linear-gradient(180deg, #f6b6a691 0%, #c7a3ffcc 100%);
  --link-color: #a30c5e;
  --link-hover: #67073c;
  --subscribe-bg: #a30c5ecc;
  --text-color: #222;
  --footer-top: 60px;
  --footer-bottom-margin: 60px;
  --logo-img-height: 32px;
  --footer-input-bradius: 12px;
  --footer-input-bg: #f4f4f4;
  --mobile-privacy-bottom: 0.75rem;
}

.flavandfrag {
  --logo-img-height: 100px;
}

.keyintermediates {
  --logo-img-height: 44px;
}

.phormulations {
  --logo-img-height: 70px;
}

.tredapi {
  --logo-img-height: 55px;
  --heading-color: #053763;
}

.xipients {
  --text-color: #0b2d50;
  --link-color: #0b2d50e0;
  --heading-color: #0b2d50;
  --logo-img-height: 50px;
}

.footer {
  font-family: 'Afacad', sans-serif;
  background: var(--bg-gradient, #ffffff);
  color: var(--text-color, #053763);
  padding-top: var(--footer-top, 30px);
  padding-bottom: 15px;
  position: relative;
  border-top: 1px solid #05376342;
}

.footer-overlay {
  padding: 0;
}

.footer-bottom {
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  margin-bottom: var(--footer-bottom-margin, 35px);
}

.footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  color: var(--link-color, #053763e0);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 4px;
}

.footer-section ul li a {
  color: var(--link-color, #053763e0);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  font-weight: 700;
  color: var(--link-hover, #053763e0);
  transform: translateX(4px);
}

.footer-section ul li a::before {
  content: "➤";
  font-size: 8px;
  color: var(--link-color, #053763e0);
}

.logo {
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-left: -2px;
  margin-bottom: 5px;
  gap: 8px;
}

.logo img {
  height: var(--logo-img-height, 50px);
  width: auto;
}

.footer-section p {
  margin: 0px;
  font-size: 16px;
  color: var(--text-color-fade, var(--link-color, #053763e0));
  font-weight: 400;
  line-height: 1.4;
}

.newsletter-form {
  display: flex;
}

.footer-section input[type="email"] {
  width: 100%;
  height: auto;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  margin-right: 8px;
  border-radius: var(--footer-input-bradius, 100px);
  background: var(--footer-input-bg, #e8ebea);
  color: #222;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.footer-section input[type="email"]:focus {
  outline: none;
  background: var(--footer-input-bg, #e8ebea);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.subscribe-btn {
  width: 55%;
  height: 40px;
  border: none;
  border-radius: var(--footer-input-bradius, 100px);
  background-position: left center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background: var(--subscribe-bg, #053763e0);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background-position: right center;
  color: white;
  transform: translateY(-1px);
  text-decoration: none;
}

.privacy-policy {
  text-align: center;
  color: var(--privacy-color, #053763e0);
  font-weight: 500;
  font-size: 13px;
  padding-top: var(--privacy-padtop, 15px);
  border-top: 1px solid #05376342;
}

.privacy-policy a {
  color: var(--link-color, #053763e0);
  font-weight: 500;
  text-decoration: none;
}

.privacy-policy a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer {
    padding-top: 30px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 0px;
  }

  .privacy-policy {
    padding: var(--mobile-privacy-pad, 10px 5px);
    margin-top: 1.2rem;
    margin-bottom: var(--mobile-privacy-bottom, 0);
  }

  .footer-section input,
  .subscribe-btn {
    width: 100%;
  }

  .logo {
    justify-content: center;
  }

  .lead {
    font-size: 1rem !important;
  }

  .list-group-item {
    padding: .75rem 0.5rem;
  }
}