/* ===================================================================
   Blog promo cards + quick-contact modal
   Loaded only by blog article pages via <link> in template.
   =================================================================== */

/* Carousel wrapper — flex row: [prev arrow] [card stack] [next arrow] */
.blog-promo-carousel {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 36px 0;
}
.blog-promo-stack {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.blog-promo-carousel .blog-promo { margin: 0 !important; width: 100%; box-sizing: border-box; }
.blog-promo-carousel .blog-promo[hidden] { display: none !important; }

.promo-arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 14px rgba(11, 30, 63, 0.25);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  z-index: 10;
}
.promo-arrow:hover {
  background: var(--gold);
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.4);
}
.promo-arrow:active { transform: scale(0.94); }
.promo-arrow:focus-visible {
  outline: 3px solid rgba(201, 162, 75, 0.5);
  outline-offset: 2px;
}
.promo-arrow svg { display: block; }

@media (max-width: 640px) {
  .blog-promo-carousel { gap: 6px; }
  .promo-arrow { width: 34px; height: 34px; }
  .promo-arrow svg { width: 11px; height: 11px; }
}

/* Inline promo (inside article body) */
.blog-promo {
  margin: 36px 0;
  padding: 24px 26px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 2px 10px rgba(11, 30, 63, 0.04);
  position: relative;
  overflow: hidden;
}
.blog-promo::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--navy);
}
.blog-promo.promo-gold::before { background: var(--gold); }
.blog-promo.promo-gold { background: linear-gradient(135deg, #fffbeb 0%, #fff 100%); }
.blog-promo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 10px;
}
.blog-promo.promo-gold .blog-promo-badge { background: var(--gold); color: #fff; }
.blog-promo-h {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--navy);
}
.blog-promo-p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}
.blog-promo-cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}
.blog-promo-cta:hover { background: var(--navy-700); color: #fff !important; }
.blog-promo.promo-gold .blog-promo-cta { background: var(--gold); }
.blog-promo.promo-gold .blog-promo-cta:hover { background: #b08530; }

/* Sticky right-side promo (only on wide screens) */
.blog-sticky-promo { display: none; }
@media (min-width: 1200px) {
  .blog-sticky-promo {
    display: block;
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 320px;
    z-index: 50;
    animation: stickyFadeIn 0.5s ease 0.6s both;
  }
  /* Sticky: use absolute-positioned arrows OVERLAPPING card edges (saves width for content) */
  .blog-sticky-promo .blog-promo-carousel {
    display: block !important;
    position: relative;
    margin: 0;
    gap: 0;
  }
  .blog-sticky-promo .blog-promo { padding: 18px 20px; box-shadow: 0 10px 30px rgba(11,30,63,0.12); }
  .blog-sticky-promo .promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    box-shadow: 0 4px 12px rgba(11,30,63,0.25);
    z-index: 5;
  }
  .blog-sticky-promo .promo-arrow svg { width: 12px; height: 12px; }
  .blog-sticky-promo .promo-arrow-prev { left: -14px; }
  .blog-sticky-promo .promo-arrow-next { right: -14px; }
  .blog-sticky-promo .promo-arrow:hover {
    transform: translateY(-50%) scale(1.12);
  }
  .blog-sticky-promo .promo-arrow:active { transform: translateY(-50%) scale(0.94); }
  .blog-sticky-promo .blog-promo-h { font-size: 1rem; }
  .blog-sticky-promo .blog-promo-p { font-size: 0.85rem; margin-bottom: 12px; }
  .blog-sticky-promo .blog-promo-cta { font-size: 0.85rem; padding: 8px 14px; }
}
@keyframes stickyFadeIn {
  from { opacity: 0; transform: translate(20px, -50%); }
  to   { opacity: 1; transform: translate(0,    -50%); }
}

/* Quick contact modal */
.qc-modal {
  position: fixed; inset: 0;
  background: rgba(11,30,63,0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.qc-modal.open { display: flex; }
.qc-modal-card {
  background: #fff; border-radius: 16px; padding: 32px 28px;
  max-width: 440px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: qcModalIn 0.2s ease;
}
@keyframes qcModalIn { from {opacity:0; transform: translateY(8px);} to {opacity:1; transform: translateY(0);} }
.qc-modal-card h2 { margin: 0 0 8px; font-size: 1.4rem; color: var(--navy); }
.qc-modal-card .muted { font-size: 0.92rem; margin-bottom: 22px; }
.qc-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  font-size: 1.6rem; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 4px 10px; border-radius: 6px;
}
.qc-close:hover { color: var(--ink); background: var(--bg); }
.qc-field { display: block; margin-bottom: 14px; }
.qc-field span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.qc-field input {
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  box-sizing: border-box;
}
.qc-field input:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,30,63,0.12);
}
.qc-modal-card button[type=submit] { width: 100%; margin-top: 4px; }
.qc-honeypot { position: absolute; left: -9999px; opacity: 0; }
.qc-state { margin: 12px 0 0; font-size: 0.88rem; text-align: center; min-height: 1.2em; }
.qc-state.pending { color: var(--muted); }
.qc-state.ok      { color: var(--success); font-weight: 600; }
.qc-state.err     { color: var(--danger); }
