/* additions.css — eu-ai-act.ro
   Supplementary, additive only: does not touch main.css.
   Fixes: founder photo cropping, footer address wrapping,
   adds: ASK result styling, demo modal, form status messages. */

/* ---- Real document generator (70 docs) ---- */
.gen-doc-groups {
  margin-top: 22px;
}
.gen-modgroup {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.gen-modgroup summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #fff);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.gen-modgroup summary::-webkit-details-marker {
  display: none;
}
.gen-cnt {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: var(--text-faint, #a3a39a);
  font-weight: 400;
}
.gen-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 10px;
}
.gen-doc-name {
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: var(--gold, #f0c14b);
}
.gen-doc-type {
  font-size: 11.5px;
  color: var(--text-faint, #a3a39a);
}
.gen-doc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.gen-doc-actions button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim, #b8b3a4);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.gen-doc-actions button:hover {
  border-color: var(--gold, #f0c14b);
  color: var(--gold, #f0c14b);
}
.gen-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: none;
  background: rgba(10, 10, 10, 0.85);
}
.gen-viewer-overlay.show {
  display: block;
}
.gen-viewer-panel {
  max-width: 780px;
  margin: 4vh auto;
  max-height: 92vh;
  overflow-y: auto;
  background: #121212;
  border: 1px solid rgba(240, 193, 75, 0.25);
  border-radius: 10px;
  padding: 0;
}
.gen-viewer-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: var(--gold, #f0c14b);
}
.gen-viewer-head button {
  background: transparent;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
}
.gen-viewer-body {
  padding: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim, #b8b3a4);
  white-space: pre-wrap;
  font-family: var(--mono, monospace);
}

/* ---- TOFU/MOFU/BOFU stage badges on homepage section tags ---- */
.stage-badge {
  font-family: var(--mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 10px;
  vertical-align: middle;
}
.stage-tofu { background: rgba(240, 193, 75, 0.15); color: #f0c14b; }
.stage-mofu { background: rgba(79, 176, 232, 0.15); color: #4fb0e8; }
.stage-bofu { background: rgba(232, 115, 79, 0.18); color: #e8734f; }

/* ---- 4 piloni (Talk. Govern. Trust. Verify.) ---- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pillar-card {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold, #f0c14b);
}
.pillar-num {
  font-family: var(--serif, serif);
  font-size: 22px;
  color: var(--gold, #f0c14b);
  margin-bottom: 6px;
}
.pillar-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text, #fff);
}
.pillar-card p {
  font-size: 12.5px;
  color: var(--text-dim, #b8b3a4);
  line-height: 1.5;
}
@media (max-width: 780px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

.module-row {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
a.module-row:hover {
  background: rgba(240, 193, 75, 0.04);
}
.module-more {
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 400;
  color: var(--gold, #f0c14b);
  margin-left: 8px;
  white-space: nowrap;
}
.role-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.role-card:hover {
  transform: translateY(-4px);
}
.persona {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.persona:hover {
  transform: translateY(-4px);
}
.persona-label {
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold, #f0c14b);
  margin-top: 8px;
  margin-bottom: 4px;
}
.lbl-sub {
  font-size: 11.5px;
  color: var(--text-faint, #a3a39a);
  margin-top: 4px;
  line-height: 1.4;
}

/* ---- Compliance journey roadmap ---- */
.journey-head {
  text-align: center;
  margin-bottom: 30px;
}
.journey-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-top: 14px;
}
.journey-step {
  position: relative;
  flex: 1 1 150px;
  max-width: 190px;
  text-align: center;
  padding-top: 26px;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.journey-step:hover {
  transform: translateY(-4px);
}
.journey-active:hover {
  transform: translateY(-14px) scale(1.06);
}
.journey-here {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--jc, #f0c14b);
  color: #0a0a0a;
  font-family: var(--mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.journey-chevron {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--jc, #888), color-mix(in srgb, var(--jc, #888) 55%, #000));
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 15% 50%);
  margin: 0 -14px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 10px 18px -6px color-mix(in srgb, var(--jc, #888) 65%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.journey-step:first-child .journey-chevron {
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
  margin-left: 0;
}
.journey-icon {
  font-size: 22px;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.95;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}
.journey-active {
  transform: translateY(-10px) scale(1.06);
  z-index: 2;
}
.journey-active .journey-chevron {
  box-shadow:
    0 16px 28px -6px color-mix(in srgb, var(--jc, #888) 75%, transparent),
    0 0 30px color-mix(in srgb, var(--jc, #888) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 14px rgba(0, 0, 0, 0.2);
}
.journey-label {
  margin-top: 10px;
  font-family: var(--mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--jc, #fff);
}
.journey-sub {
  font-size: 11.5px;
  color: var(--text-dim, #b8b3a4);
  margin-top: 2px;
}
@media (max-width: 780px) {
  .journey-track { gap: 24px 6px; }
  .journey-step { flex: 1 1 42%; }
  .journey-chevron { margin: 0; clip-path: none; border-radius: 8px; }
  .journey-step:first-child .journey-chevron { clip-path: none; }
}
.founder-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.founder-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.founder-text {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}
.founder-text strong {
  color: #ccc;
}

/* ---- Footer address — was clipping in narrow layouts ---- */
.address-val {
  font-size: 14px;
  margin-top: 4px;
  color: var(--text-dim, #b8b3a4);
  max-width: 480px;
  line-height: 1.5;
}

/* ---- Partner photo (Roxana) already gets inline object-fit,
   this is a safety net if main.css ever overrides it ---- */
.feature-item img {
  object-fit: cover;
}

/* ---- ASK result rendering ---- */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: eu-ai-act-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes eu-ai-act-spin {
  to {
    transform: rotate(360deg);
  }
}
.ask-highlight {
  justify-content: flex-start !important;
}
.ask-grid {
  grid-template-columns: 1fr 1fr !important;
}
.ask-highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.ask-highlight-head .badge {
  margin-bottom: 0 !important;
}
.ask-highlight-label {
  font-family: var(--serif, serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: none;
}
.ask-answer {
  display: block !important;
  background: transparent !important;
  border-left: none !important;
  color: #ffffff !important;
  white-space: normal !important;
  padding: 0 !important;
  margin-top: 0;
  min-height: 48px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold, #f0c14b) rgba(255, 255, 255, 0.08);
}
.ask-answer::-webkit-scrollbar {
  width: 8px;
}
.ask-answer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
.ask-answer::-webkit-scrollbar-thumb {
  background: var(--gold, #f0c14b);
  border-radius: 4px;
}
.ask-answer::-webkit-scrollbar-thumb:hover {
  background: #ffd873;
}
.ask-answer:empty {
  display: flex !important;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.ask-answer:empty::before {
  content: "Răspunsul apare aici după ce apeși Întreabă.";
  color: var(--text-dim, #b8b3a4);
  font-size: 13px;
  font-style: italic;
  padding: 14px;
}
.no-result {
  font-size: 14px;
  color: #ffffff;
  padding: 10px 0;
}
.no-result.waiting {
  opacity: 0.85;
}
.result-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding: 0 0 16px 0;
  margin-bottom: 16px;
}
.result-label {
  font-family: var(--mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold, #f0c14b);
  margin-bottom: 6px;
}
.result-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 12px;
}
.result-text:last-of-type {
  margin-bottom: 0;
}
.sources {
  margin-top: 10px;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sources span:first-child {
  color: var(--text-faint, #a3a39a);
  text-transform: uppercase;
  font-family: var(--mono, monospace);
  font-size: 10.5px;
}
.sources a {
  color: var(--gold, #f0c14b);
  text-decoration: none;
}
.sources a:hover {
  text-decoration: underline;
}
.rrvi-card {
  display: inline-block;
  margin-top: 8px;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text, #fff);
}
.rrvi-label {
  font-weight: 600;
  margin-right: 4px;
  color: var(--gold, #f0c14b);
}
.ask-highlight .badge {
  margin-bottom: 4px;
}

/* ---- Form status (lead / contact) ---- */
.form-status {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 1em;
}
.form-status.pending {
  color: var(--text-dim, #b8b3a4);
}
.form-status.success {
  color: #6fce8f;
}
.form-status.success a {
  color: var(--gold, #f0c14b);
}
.form-status.error {
  color: #e07a7a;
}

/* ---- Demo modal ---- */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}
.demo-modal.open {
  display: block;
}
.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(2px);
}
.demo-modal-panel {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 5vh auto;
  max-height: 90vh;
  overflow-y: auto;
  background: #121212;
  border: 1px solid rgba(240, 193, 75, 0.25);
  border-radius: 12px;
  padding: 32px 32px 28px;
}
.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}
.demo-modal-close:hover {
  color: #fff;
}
.demo-modal-head h3 {
  font-family: var(--serif, serif);
  font-size: 24px;
  margin: 10px 0 8px;
  color: #fff;
}
.demo-modal-head p {
  color: var(--text-dim, #b8b3a4);
  font-size: 14px;
  line-height: 1.6;
  max-width: 600px;
}
.demo-tabs {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0;
}
.demo-tab {
  background: transparent;
  border: none;
  color: var(--text-dim, #b8b3a4);
  font-family: var(--mono, monospace);
  font-size: 12px;
  text-transform: uppercase;
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.demo-tab.active {
  color: var(--gold, #f0c14b);
  border-bottom-color: var(--gold, #f0c14b);
}
.demo-panel {
  display: none;
  padding-top: 20px;
}
.demo-panel.active {
  display: block;
}
.demo-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: var(--text-faint, #6a6558);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.demo-doc-status {
  color: var(--gold, #f0c14b);
}
.demo-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.demo-doc-table th,
.demo-doc-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text, #eee);
}
.demo-doc-table th {
  color: var(--text-faint, #6a6558);
  font-family: var(--mono, monospace);
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 400;
}
.demo-doc-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text, #eee);
}
.demo-doc-code {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 12px;
  overflow-x: auto;
  color: #a8e6b8;
  margin-bottom: 14px;
}
.demo-modal-foot {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .demo-modal-panel {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
    padding: 24px 18px 20px;
  }
}

/* ================================================================
   MENIU HAMBURGER — la toate lățimile
   Bara orizontală de linkuri se rupea pe 2-3 rânduri pe desktop
   (16 linkuri). Meniul devine un panou care se deschide din buton.
   ================================================================ */
header.site-header { position: sticky; }
.nav-row { position: relative; }

nav.main-links { display: none; }
.burger { display: block; }

nav.main-links.open-mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: calc(100% - 6px);
  right: 0;
  min-width: 268px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 8px 0;
  background: #0d0d0d;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(0,0,0,.6);
  z-index: 60;
}
nav.main-links.open-mobile a {
  padding: 12px 20px;
  font-size: 13.5px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,.05);
  white-space: nowrap;
}
nav.main-links.open-mobile a:last-child { border-bottom: none; }
nav.main-links.open-mobile a:hover { color: var(--gold); background: rgba(240,193,75,.06); }

.burger { font-size: 16px; line-height: 1; cursor: pointer; }
.burger[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }

@media (max-width: 640px) {
  nav.main-links.open-mobile { left: 0; right: 0; min-width: 0; }
}

/* ================================================================
   BANDA DE STARE — sub header
   Data ultimei actualizari a site-ului (deploy) + data si ora curenta.
   Elementul e creat din script.js, deci apare pe toate paginile
   care au <header class="site-header">, fara editarea fiecarui HTML.
   ================================================================ */
.deploy-strip {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.012);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: .03em;
}
.deploy-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 9px 0;
}
.deploy-strip .ds-item { display: flex; align-items: center; gap: 7px; }
.deploy-strip .ds-lbl { text-transform: uppercase; font-size: 10px; opacity: .75; }
.deploy-strip .ds-val { color: var(--text-dim); }
.deploy-strip .ds-now .ds-val { color: var(--gold); font-variant-numeric: tabular-nums; }
.deploy-strip .ds-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.7);
  animation: ds-pulse 2s ease-in-out infinite;
}
@keyframes ds-pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
@media (max-width: 640px) {
  .deploy-strip { font-size: 10.5px; }
  .deploy-strip .wrap { gap: 6px 14px; padding: 8px 0; }
}
