/* ═══ Sticky CTA System — ADU Home Construction ═══ */

/* Bottom bar */
.adu-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a4d5f 0%, #1e5a6e 100%);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Roboto', 'Inter', 'Segoe UI', Arial, sans-serif;
}
.adu-sticky-bar.visible {
  transform: translateY(0);
}
.adu-sticky-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
}
.adu-sticky-bar__text {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin-right: 4px;
}

/* CTA buttons */
.adu-sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.adu-sticky-btn--guide {
  background: #d4a574;
  color: #1a4d5f;
}
.adu-sticky-btn--guide:hover {
  background: #c9955f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,165,116,0.4);
}
.adu-sticky-btn--contractor {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.adu-sticky-btn--contractor:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}
.adu-sticky-btn__icon {
  font-size: 16px;
}

/* Dismiss button */
.adu-sticky-bar__dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  margin-left: 4px;
  transition: color 0.2s;
}
.adu-sticky-bar__dismiss:hover {
  color: rgba(255,255,255,0.9);
}

/* ── Slide-in side CTA (appears on scroll deeper) ── */
.adu-side-cta {
  position: fixed;
  right: -320px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  width: 280px;
  background: white;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  font-family: 'Roboto', 'Inter', 'Segoe UI', Arial, sans-serif;
}
.adu-side-cta.visible {
  right: 0;
}
.adu-side-cta__header {
  background: linear-gradient(135deg, #1a4d5f, #2c7a8f);
  color: white;
  padding: 16px 18px 12px;
  position: relative;
}
.adu-side-cta__header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.adu-side-cta__header p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.4;
}
.adu-side-cta__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.adu-side-cta__close:hover {
  color: white;
}
.adu-side-cta__body {
  padding: 14px 18px 18px;
}
.adu-side-cta__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #2c3e50;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  margin-bottom: 8px;
}
.adu-side-cta__link:last-child {
  margin-bottom: 0;
}
.adu-side-cta__link:hover {
  background: #f0f7f4;
}
.adu-side-cta__link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.adu-side-cta__link-icon--guide {
  background: #fdf3e7;
  color: #d4a574;
}
.adu-side-cta__link-icon--contractor {
  background: #e8f4f8;
  color: #2c7a8f;
}
.adu-side-cta__link-label small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .adu-sticky-bar__text {
    display: none;
  }
  .adu-sticky-bar__inner {
    gap: 8px;
    padding: 10px 14px;
  }
  .adu-sticky-btn {
    padding: 10px 16px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
  }
  .adu-side-cta {
    display: none; /* bottom bar only on mobile */
  }
}
@media (max-width: 380px) {
  .adu-sticky-btn {
    padding: 9px 10px;
    font-size: 12px;
  }
  .adu-sticky-btn__icon {
    display: none;
  }
}

/* Add bottom padding to body so sticky bar doesn't cover footer content */
body.adu-sticky-active {
  padding-bottom: 60px;
}
