/* CMS additions — logo, uploaded media, language switch. Additive only. */

/* Logo images */
.nav-logo .logo-img { height: 26px; width: auto; display: block; }
.footer .logo-img { height: 30px; width: auto; display: block; margin-bottom: 14px; }

/* Brand wordmark fallback (shown when no logo image is uploaded) — clean, not a placeholder slot */
.logo-slot {
  width: auto; height: auto;
  border: none; background: none; padding: 0;
  color: var(--text-primary);
  font-family: 'Source Code Pro', monospace;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .18em;
}
.logo-slot--footer { width: auto; height: auto; font-size: 1.2rem; margin-bottom: 14px; display: inline-block; }

/* Uploaded media fills its frame; neutralize placeholder chrome when an image is set */
.media-placeholder.has-img { border: none; padding: 0; background: transparent; }
.media-placeholder.has-img > span { display: none; }
.media-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

.browser-body .browser-shot { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }

/* Trust logo images */
.logo-chip img { height: 26px; width: auto; max-width: 150px; display: block; object-fit: contain; }
.logo-chip.is-img { background: none; border: none; padding: 0; }

/* Testimonial logo */
.tq-logo { height: 28px; width: auto; max-width: 140px; margin: 0 0 14px; display: block; object-fit: contain; }

/* Language switch (navbar) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; font-size: 12px; font-weight: 500; }
.lang-switch a { color: var(--text-muted); padding: 4px 7px; border-radius: 6px; text-decoration: none; letter-spacing: .04em; transition: color .15s; }
.lang-switch a.active { color: var(--accent); }
.lang-switch a:hover { color: var(--text-primary); }
.lang-switch .sep { color: var(--border-glass); }

/* ---------- Contact section ---------- */
.contact-section { position: relative; padding: var(--space-section) 0; }
.contact-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 360px at 80% 0%, rgba(245, 230, 66, .06), transparent 60%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-intro { padding-top: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-card); padding: 28px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-input { width: 100%; background: var(--bg-primary); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); color: var(--text-primary); padding: 13px 15px; font-family: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.cf-input::placeholder { color: var(--text-muted); }
.cf-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 230, 66, .14); }
.cf-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.contact-form .btn { margin-top: 4px; justify-content: center; }
.cf-response { margin: 0; font-size: .9rem; min-height: 1.2em; }
.cf-response.is-ok { color: var(--success); }
.cf-response.is-error { color: var(--danger); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Popup ---------- */
.site-popup { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 9, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cmsPopIn .25s ease; }
.site-popup[hidden] { display: none; }
.site-popup__box { position: relative; width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.site-popup__img { width: 100%; height: 180px; object-fit: cover; display: block; }
.site-popup__content { padding: 26px; }
.site-popup__content h2 { margin: 0 0 10px; font-size: 1.35rem; color: var(--text-primary); }
.site-popup__content p { margin: 0 0 18px; color: var(--text-secondary); line-height: 1.6; }
.site-popup__close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; z-index: 2; }
.site-popup__close:hover { background: rgba(0, 0, 0, .65); }
@keyframes cmsPopIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- PWA install prompt ---------- */
.pwa-install { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-pill); padding: 10px 12px 10px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.pwa-install[hidden] { display: none; }
.pwa-install__txt { font-size: .9rem; color: var(--text-primary); font-weight: 500; }
.pwa-install__btn { padding: 8px 16px !important; }
.pwa-install__close { width: 28px; height: 28px; border: none; background: transparent; color: var(--text-muted); font-size: 18px; cursor: pointer; border-radius: 50%; }
.pwa-install__close:hover { color: var(--text-primary); }

/* ---------- Book-a-demo modal ---------- */
.demo-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 9, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cmsPopIn .22s ease; overflow-y: auto; }
.demo-modal[hidden] { display: none; }
.demo-modal__box { position: relative; width: 100%; max-width: 540px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-card); padding: 30px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.demo-modal__close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: none; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--text-secondary); font-size: 20px; line-height: 1; cursor: pointer; }
.demo-modal__close:hover { background: rgba(255, 255, 255, .12); color: var(--text-primary); }
.demo-modal__head h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--text-primary); }
.demo-modal__sub { margin: 0 0 22px; color: var(--text-secondary); line-height: 1.55; font-size: .95rem; }
.demo-form { display: flex; flex-direction: column; gap: 14px; }
.demo-form .btn { margin-top: 4px; justify-content: center; }
.demo-success { text-align: center; padding: 18px 6px; }
.demo-success__icon { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #15140a; background: var(--accent); }
.demo-success__msg { color: var(--text-primary); font-size: 1.05rem; line-height: 1.5; margin: 0 0 22px; }
@media (max-width: 560px) { .demo-modal__box { padding: 24px 20px; } }

/* ---------- Cookie banner ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 950; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 680px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-card); padding: 14px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { margin: 0; flex: 1; min-width: 200px; font-size: .88rem; color: var(--text-secondary); line-height: 1.5; }
.cookie-bar__text a { color: var(--accent); text-decoration: underline; }
.cookie-bar__btn { padding: 9px 22px !important; white-space: nowrap; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .cf-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; }
}
