/* =========================================================
   TSignature — dynamic site content (Phase 7)
   Tools / portfolio / PDFs / contacts / cookie banner
   ========================================================= */

#portfolioItems[hidden],
#presentationList[hidden] { display: none; }

.chat-launcher[hidden] { display: none !important; }
.modal-avatar[hidden] { display: none !important; }

/* ---------- Hero profile / avatar (v2.5) ---------- */
.hero-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-profile[hidden] { display: none !important; }
.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  flex: 0 0 auto;
}
.hero-avatar[hidden] { display: none !important; }
.hero-profile-copy { display: flex; flex-direction: column; gap: 2px; }
.hero-profile-copy strong { font-size: 1rem; font-weight: 700; }
.hero-profile-copy span { color: var(--muted); font-size: .82rem; }

.portfolio-items { margin-top: 22px; }
.pdf-list { margin-top: 22px; }

.dynamic-empty {
  grid-column: 1 / -1;
  width: 100%;
}

/* ---------- Dynamic card images ---------- */
.tool-card-image,
.portfolio-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--bg-alt);
  margin-bottom: 16px;
}

.pdf-card {
  min-height: 210px;
}
.pdf-card .card-tag { margin-bottom: 14px; }
.pdf-card .btn { margin-top: auto; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  animation: cookieIn .25s ease both;
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.cookie-notice {
  margin: 0;
  flex: 1 1 380px;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-policy {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 4px;
}
.cookie-policy:hover { color: var(--gold-soft); }

/* ---------- Footer privacy link ---------- */
.footer-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-link:hover { color: var(--gold); }

/* ---------- Avatar in Quick Introduction ---------- */
.modal-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  display: block;
}

/* ---------- Live chat disabled ---------- */
body.chat-disabled #chatLauncher,
body.chat-disabled [data-open-chat] {
  display: none !important;
}

/* ---------- Contact channels ---------- */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.contact-channels[hidden] { display: none; }

.contact-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.contact-channel:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--gold);
  background: var(--card-hover);
}
.contact-channel--static { cursor: default; }
.contact-channel--static:hover {
  transform: none;
  border-color: var(--line-soft);
  color: var(--text);
  background: var(--card);
}
.contact-channel:focus-visible,
.footer-social-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.contact-channel-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact-channel-icon svg { width: 18px; height: 18px; }
.contact-channel-name {
  font-size: .82rem;
  font-weight: 700;
}
.contact-channel-value {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .72rem;
}

/* ---------- Footer social icons ---------- */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.footer-social[hidden] { display: none; }

.footer-social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.footer-social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(201, 169, 97, .35);
  transform: translateY(-2px);
}
.footer-social-link--static { cursor: default; }
.footer-social-link--static:hover {
  color: var(--muted);
  border-color: var(--line-soft);
  box-shadow: none;
  transform: none;
}
.footer-social-link .footer-social-icon {
  display: grid;
  place-items: center;
  color: inherit;
}
.footer-social-link svg { width: 17px; height: 17px; }

.footer-credit {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .76rem;
}
.footer-credit[hidden] { display: none !important; }

/* ---------- Contact form ---------- */
.contact-form-wrap {
  margin-top: 26px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.contact-form-head { margin-bottom: 18px; }
.contact-form-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
}
.contact-form-desc { margin: 0; color: var(--muted); font-size: .9rem; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form-field { display: flex; flex-direction: column; gap: 5px; }
.contact-form-field label {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, .15);
}
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
.contact-consent input { margin-top: 3px; accent-color: var(--gold); flex: 0 0 auto; }
.contact-form-actions { display: flex; gap: 10px; }
.contact-form-alert {
  margin: 0;
  min-height: 1.1em;
  font-size: .83rem;
  color: var(--muted);
}
.contact-form-alert.is-success { color: #a8e0bc; }
.contact-form-alert.is-error { color: #f0b3b3; }

/* ---------- CAPTCHA ---------- */
.captcha-slot { margin-top: 2px; }
.captcha-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.captcha-label {
  flex: 1 1 100%;
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
}
.captcha-visual { display: flex; align-items: center; gap: 10px; }
.captcha-image {
  display: block;
  width: 100%;
  max-width: 240px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}
.captcha-question {
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .05em;
}
.captcha-input {
  width: 110px;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
}
.captcha-refresh {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1rem;
}
.captcha-refresh:hover { border-color: var(--gold); }
.captcha-box--turnstile { flex-direction: column; align-items: flex-start; }
.captcha-error { margin: 0; color: #f0b3b3; font-size: .8rem; }
.chat-captcha .captcha-box { padding: 10px; }
.chat-captcha .captcha-image { max-width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .tool-card-image,
  .portfolio-card-image { height: 160px; }

  .contact-form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 20px 18px; }

  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px 16px 0 0;
    padding: 16px 18px;
  }

  .cookie-notice { flex: 1 1 100%; }
  .cookie-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}
