/* ==========================================================================
   Sister site banner (Quest Manufacturing)
   ========================================================================== */
.qt-sister {
  background: var(--qt-color-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.qt-sister__inner {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .qt-sister__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Left: text content */
.qt-sister__content {
  display: flex;
  align-items: center;
  padding: var(--qt-space-10) var(--qt-space-6);
  text-align: center;
  justify-content: center;
}

.qt-sister__content .qt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .qt-sister__content {
    text-align: left;
    justify-content: flex-start;
  }

  .qt-sister__content .qt-container {
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .qt-sister__content {
    padding: 9rem var(--qt-space-8) 9rem var(--qt-container-pad);
    margin-left: auto;
    max-width: calc(var(--qt-container-max) / 2);
  }
}

.qt-sister__label {
  display: inline-block;
  font-family: var(--qt-font-heading);
  font-size: var(--qt-text-xs);
  font-weight: var(--qt-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qt-color-primary);
  margin-bottom: var(--qt-space-2);
}

.qt-sister__heading {
  font-family: var(--qt-font-heading);
  font-size: var(--qt-text-2xl);
  font-weight: var(--qt-weight-extrabold);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 var(--qt-space-2);
}

.qt-sister__text {
  font-size: var(--qt-text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 var(--qt-space-6);
  max-width: 500px;
  line-height: 1.5;
}

.qt-sister__btn {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.qt-sister__btn:hover {
  background: var(--qt-color-primary);
  border-color: var(--qt-color-primary);
  color: #fff;
}

/* Right: background image with logo overlay */
.qt-sister__media {
  display: none;
}

@media (min-width: 768px) {
  .qt-sister__media {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
  }
}

.qt-sister__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.qt-sister__media:hover .qt-sister__bg-img {
  transform: scale(1.05);
}

.qt-sister__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  transition: background 0.4s ease;
}

.qt-sister__media:hover .qt-sister__media-overlay {
  background: linear-gradient(
    135deg,
    rgba(204, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.qt-sister__cta-row {
  display: flex;
  align-items: center;
  gap: var(--qt-space-4);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .qt-sister__cta-row {
    justify-content: flex-start;
    gap: var(--qt-space-6);
  }
}

.qt-sister__logo {
  max-height: 50px;
  width: auto;
}

@media (min-width: 768px) {
  .qt-sister__logo {
    max-height: 60px;
  }
}

/* ==========================================================================
   Newsletter bar — global, appears above footer on every page
   ========================================================================== */
.qt-newsletter {
  background-color: var(--qt-color-primary);
  padding: var(--qt-space-12) 0;
  position: relative;
  overflow: hidden;
}


.qt-newsletter__inner {
  display: grid;
  gap: var(--qt-space-6);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 768px) {
  .qt-newsletter__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--qt-space-8);
  }
}

.qt-newsletter__headline {
  font-size: var(--qt-text-2xl);
  font-weight: var(--qt-weight-extrabold);
  color: #fff;
  margin-bottom: var(--qt-space-1);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.qt-newsletter__description {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--qt-text-sm);
  margin: 0;
  line-height: 1.5;
}

.qt-newsletter__input-group {
  display: flex;
  gap: 0;
  border-radius: var(--qt-radius);
  overflow: hidden;
  box-shadow: var(--qt-shadow);
}

.qt-newsletter__input-group input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: var(--qt-space-4);
  font-size: var(--qt-text-base);
  background: #fff;
}

.qt-newsletter__input-group input:focus {
  box-shadow: none;
  outline: none;
}

.qt-newsletter__input-group .qt-btn {
  border-radius: 0;
  white-space: nowrap;
  background: var(--qt-color-dark);
  border-color: var(--qt-color-dark);
  font-size: var(--qt-text-base);
  padding: var(--qt-space-4) var(--qt-space-6);
}

.qt-newsletter__input-group .qt-btn:hover {
  background: var(--qt-color-secondary);
  border-color: var(--qt-color-secondary);
}

.qt-newsletter__default-form {
  margin: 0;
}

.qt-newsletter__turnstile {
  margin-top: var(--qt-space-3);
}

.qt-newsletter__turnstile .cf-turnstile,
.qt-newsletter__turnstile .cf-turnstile iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.qt-newsletter__result {
  margin-top: var(--qt-space-3);
  padding: var(--qt-space-3);
  border-radius: var(--qt-radius);
  font-size: var(--qt-text-sm);
  font-weight: var(--qt-weight-medium);
  text-align: center;
}

.qt-newsletter__result--success {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.qt-newsletter__result--error {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.qt-footer {
  background-color: var(--qt-color-dark);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.qt-footer::before {
  content: '';
  position: absolute;
  right: -20px;
  top: 0;
  width: 350px;
  height: 100%;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='350' height='600' viewBox='0 0 350 600' fill='none'%3E%3Cpath d='M160 0 C160 60 160 60 160 100 C160 140 100 140 100 180 C100 220 100 260 100 300 C100 340 160 340 160 380 C160 420 160 460 160 500 C160 540 110 540 110 580 C110 590 110 600 110 600' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M175 0 C175 60 175 60 175 100 C175 140 115 140 115 180 C115 220 115 260 115 300 C115 340 175 340 175 380 C175 420 175 460 175 500 C175 540 125 540 125 580 C125 590 125 600 125 600' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M175 180 C210 180 250 180 280 160 C310 140 310 110 310 80' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M175 400 C210 400 260 400 290 420 C320 440 320 470 320 500' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3Crect x='145' y='95' width='40' height='18' rx='3' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3Cline x1='152' y1='99' x2='152' y2='109' stroke='%23fff' stroke-width='1'/%3E%3Cline x1='158' y1='99' x2='158' y2='109' stroke='%23fff' stroke-width='1'/%3E%3Cline x1='164' y1='99' x2='164' y2='109' stroke='%23fff' stroke-width='1'/%3E%3Cline x1='170' y1='99' x2='170' y2='109' stroke='%23fff' stroke-width='1'/%3E%3Cline x1='176' y1='99' x2='176' y2='109' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.qt-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--qt-transition);
}

.qt-footer a:hover {
  color: #fff;
}

/* Main footer area */
.qt-footer__main {
  padding: var(--qt-space-16) 0 var(--qt-space-8);
}

.qt-footer__grid {
  display: grid;
  gap: var(--qt-space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .qt-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Brand column */
.qt-footer__brand {
  max-width: 320px;
}

.qt-footer__brand img,
.qt-footer__brand .custom-logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--qt-space-4);
}

.qt-footer__site-name {
  font-family: var(--qt-font-heading);
  font-size: var(--qt-text-xl);
  font-weight: var(--qt-weight-bold);
  color: #fff;
  display: block;
  margin-bottom: var(--qt-space-4);
}

.qt-footer__tagline {
  font-size: var(--qt-text-sm);
  margin-bottom: var(--qt-space-4);
  line-height: 1.6;
}

.qt-footer__address {
  font-size: var(--qt-text-sm);
  font-style: normal;
  line-height: 1.6;
  margin-bottom: var(--qt-space-4);
}

/* Social links */
.qt-footer__social {
  display: flex;
  gap: var(--qt-space-3);
  margin-top: var(--qt-space-4);
}

.qt-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--qt-radius);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: background-color var(--qt-transition), color var(--qt-transition);
}

.qt-footer__social-link:hover {
  background: var(--qt-color-primary);
  color: #fff;
}

/* Footer column */
.qt-footer__heading {
  font-family: var(--qt-font-heading);
  font-size: var(--qt-text-sm);
  font-weight: var(--qt-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: var(--qt-space-4);
}

.qt-footer__heading--contact {
  margin-top: var(--qt-space-6);
  padding-top: var(--qt-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qt-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qt-footer__links li {
  margin-bottom: var(--qt-space-2);
}

.qt-footer__links a {
  font-size: var(--qt-text-sm);
  display: inline-block;
  padding: var(--qt-space-1) 0;
}

/* Contact list with icons */
.qt-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qt-footer__contact-list li {
  display: flex;
  gap: var(--qt-space-2);
  margin-bottom: var(--qt-space-3);
  font-size: var(--qt-text-sm);
  line-height: 1.5;
}

.qt-footer__contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.qt-footer__contact-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.qt-footer__contact-list a:hover {
  color: #fff;
}

/* Bottom bar */
.qt-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--qt-space-4) 0;
}

.qt-footer__bottom-inner {
  text-align: center;
}

.qt-footer__bottom p {
  font-size: var(--qt-text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.qt-footer__credit {
  margin-top: var(--qt-space-1) !important;
}

.qt-footer__credit a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.qt-footer__credit a:hover {
  color: var(--qt-color-primary);
}
