/* ==========================================================================
   EUCVmaker.com — main stylesheet (EU blue #003399 / gold #FFCC00)
   ========================================================================== */
:root {
  --eu-blue: #003399;
  --eu-blue-dark: #002266;
  --eu-gold: #ffcc00;
  --eu-ink: #1f2937;
  --eu-muted: #6b7280;
  --eu-radius: 14px;
}
body {
  color: var(--eu-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f7f9fc;
  padding-bottom: 64px;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }
a { color: var(--eu-blue); }

/* ------------------------------------------------------------------ header */
/* safe-area padding keeps the blue bar clear of the notch in landscape */
.eu-header { background: var(--eu-blue); color: #fff;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.eu-stars {
  display: flex; justify-content: center; gap: 10px;
  padding: 5px 0 0; font-size: 11px; color: var(--eu-gold); letter-spacing: 2px;
}
.eu-nav { padding-top: 4px; padding-bottom: 8px; }
.eu-nav .navbar-brand { color: #fff !important; font-weight: 700; }
.eu-nav .nav-link { color: rgba(255, 255, 255, .9); }
.eu-nav .nav-link:hover, .eu-nav .nav-link:focus { color: var(--eu-gold); }
.eu-nav .navbar-toggler { border-color: rgba(255, 255, 255, .4); }
.eu-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.eu-logo {
  /* big five point star (wide inner body) with the EU blue initials inside */
  display: inline-flex; align-items: flex-start; justify-content: center;
  width: 100px; height: 88px; flex: 0 0 100px;
  background: var(--eu-gold); color: var(--eu-blue);
  font-weight: 800; font-size: 13px; letter-spacing: 0; line-height: 1;
  padding-top: 38px;                    /* a little above the middle of the star */
  clip-path: polygon(50% 0%, 65.3% 29%, 97.6% 34.5%, 74.7% 58%, 79.4% 90.5%,
                     50% 76%, 20.6% 90.5%, 25.3% 58%, 2.4% 34.5%, 34.7% 29%);
  -webkit-clip-path: polygon(50% 0%, 65.3% 29%, 97.6% 34.5%, 74.7% 58%, 79.4% 90.5%,
                     50% 76%, 20.6% 90.5%, 25.3% 58%, 2.4% 34.5%, 34.7% 29%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}
@media (max-width: 575.98px) {
  .eu-logo { width: 78px; height: 69px; flex: 0 0 78px; font-size: 10px; padding-top: 30px; }
}
.eu-nav .eu-logo { margin-top: -10px; margin-bottom: -10px; }
/* the logo uploaded to the project root (logo.png / logo.jpg / logo.svg) */
.eu-brand-img { height: 46px; width: auto; border-radius: 8px; display: inline-block; flex: 0 0 auto; }
.eu-brand-img-sm { height: 34px; }
@media (max-width: 575.98px) { .eu-brand-img { height: 38px; } }
/* site title (brand) + slogan underneath, like a "Site Title" and its tagline */
.eu-brand-lockup { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.eu-brand-text { font-size: 1.5rem; letter-spacing: .3px; }      /* navbar default is 1.25rem */
.eu-brand-slogan {
  font-size: .72rem; font-weight: 400; letter-spacing: .02em; margin-top: 2px;
  color: rgba(255, 255, 255, .82);
  white-space: normal;                                           /* overrides navbar-brand nowrap */
}
@media (max-width: 575.98px) {
  .eu-brand-text { font-size: 1.3rem; }
  .eu-brand-slogan { font-size: .62rem; margin-top: 1px; }
}

/* ------------------------------------ mobile header (lg down): three columns
   1 · logo (bigger) · 2 · title with the slogan under it · 3 · language selector.
   Without the burger menu every language stays one tap away. */
@media (max-width: 991.98px) {
  .eu-nav .container { flex-wrap: nowrap; gap: 10px; }
  .eu-nav .navbar-brand { flex: 1 1 auto; min-width: 0; margin-right: 0; }
  .eu-nav .eu-brand-img { height: 56px; }
  .eu-nav .eu-logo { width: 78px; height: 69px; flex: 0 0 78px; font-size: 11.5px; padding-top: 33px; }
  .eu-brand-text { font-size: 1.55rem; }
  .eu-brand-slogan { font-size: .68rem; }
  .eu-mlang { flex: 0 0 auto; }
  .eu-mlang-toggle {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: #fff; text-decoration: none; padding: 3px 4px; border-radius: 10px;
  }
  .eu-mlang-toggle .eu-flag-img { width: 32px; height: auto; box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
  .eu-mlang-toggle::after { margin: 0; color: var(--eu-gold); }
  .eu-mlang-toggle:hover, .eu-mlang-toggle:focus { color: var(--eu-gold); }
  body { padding-bottom: 76px; }                 /* room for the fixed tab bar */
}
.flag { font-size: 1.1rem; line-height: 1; }
.eu-flag-img {
  display: inline-block; vertical-align: middle; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); background: #fff;
}
.eu-flag-img-lg { width: auto; height: 20px; }
.eu-flag-link .eu-flag-img { opacity: .78; }
.eu-flag-link:hover .eu-flag-img, .eu-flag-link.active .eu-flag-img { opacity: 1; box-shadow: 0 0 0 2px var(--eu-gold); }
.eu-lang-card .eu-flag-img { flex: 0 0 auto; }
.en-flag-btn { font-weight: 600; }
.lang-menu { max-height: 62vh; overflow-y: auto; min-width: 260px; }
/* hidden anti-spam field: bots fill it, people never see it */
.eu-honeypot { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------------- hero */
.eu-hero {
  background: linear-gradient(135deg, var(--eu-blue) 0%, #0047cc 55%, #0059ff 100%);
  color: #fff; padding: 48px 0 56px;
}
.eu-badge { background: rgba(255, 255, 255, .16); color: var(--eu-gold); font-weight: 600; }
.eu-hero-card { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px; padding: 18px; }
.eu-hero-doc { background: #fff; color: var(--eu-ink); border-radius: 12px; padding: 18px; }
/* real CV screenshot: only the upper part of the picture is visible */
.eu-hero-doc-img { padding: 10px 10px 14px; }
.eu-hero-cv {
  display: block; width: 100%; height: auto; max-height: none;
  aspect-ratio: 2.2 / 1; object-fit: cover; object-position: top center;
  border: 1px solid #e6e9f0; border-radius: 8px; background: #fff;
}
.eu-hero-doc-img .eu-hero-tags { margin-top: 10px; }
.eu-hero-doc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.eu-hero-photo { width: 46px; height: 59px; border-radius: 4px; background: #dbe4ff; }
.eu-hero-name { font-weight: 700; }
.eu-hero-role { font-size: .8rem; color: var(--eu-muted); text-transform: uppercase; letter-spacing: .08em; }
.eu-hero-line { height: 9px; border-radius: 5px; background: #eef2ff; margin-bottom: 8px; }
.eu-hero-line.short { width: 62%; }
.eu-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.eu-hero-tags span { background: #eef2ff; color: var(--eu-blue); border-radius: 999px;
  padding: 4px 10px; font-size: .74rem; font-weight: 600; }
.eu-hero-flags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 14px; font-size: 1.2rem; }

/* ------------------------------------------------------------------ blocks */
.btn-eu-blue { background: var(--eu-blue); border-color: var(--eu-blue); color: #fff; }
.btn-eu-blue:hover, .btn-eu-blue:focus { background: var(--eu-blue-dark); border-color: var(--eu-blue-dark); color: #fff; }
.btn-eu-gold { background: var(--eu-gold); border-color: var(--eu-gold); color: var(--eu-blue); font-weight: 700; }
.btn-eu-gold:hover, .btn-eu-gold:focus { background: #e6b800; border-color: #e6b800; color: var(--eu-blue-dark); }
.eu-card { background: #fff; border: 1px solid #e6e9f0; border-radius: var(--eu-radius);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.eu-trust { background: #fff; border-bottom: 1px solid #e6e9f0; }
.eu-trust-item { font-size: .87rem; font-weight: 600; color: var(--eu-blue); }
.eu-step-card { background: #fff; border: 1px solid #e6e9f0; border-radius: var(--eu-radius); padding: 22px; }
.eu-step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--eu-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.eu-lang-card { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e6e9f0;
  border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--eu-ink); height: 100%; }
.eu-lang-card:hover { border-color: var(--eu-blue); box-shadow: 0 4px 14px rgba(0, 51, 153, .12); }
.eu-lang-card small { font-size: .72rem; }
.eu-cta { background: var(--eu-blue); color: #fff; }
.eu-photo-thumb { width: 64px; height: 82px; object-fit: cover; border-radius: 4px;
  border: 2px solid var(--eu-blue); margin-top: 8px; }
/* Passport photo frames (35 x 45 mm ratio, never a circle) */
.eu-passport { width: 64px; height: 82px; object-fit: cover; border-radius: 4px;
  border: 2px solid var(--eu-blue); margin-top: 8px; }
.eu-passport-lg { width: 110px; height: 141px; }
.eu-bank { background: #f3f6ff; border-left: 4px solid var(--eu-gold); border-radius: 8px; padding: 10px 12px; }

/* ------------------------------------------------------------------ footer */
.eu-footer { background: #0b1f4d; color: rgba(255, 255, 255, .85);
  padding: 26px env(safe-area-inset-right, 0px) 16px env(safe-area-inset-left, 0px); margin-top: 40px; }
.eu-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.eu-footer a:hover { color: var(--eu-gold); }
.eu-footer h6 { color: var(--eu-gold); letter-spacing: .08em; }
.eu-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.eu-flag-link { font-size: 1.1rem; opacity: .75; }
.eu-flag-link.active, .eu-flag-link:hover { opacity: 1; }

/* ---------------------------------------------- mobile bottom bar (app tabs)
   Navy tab bar pinned to the bottom edge of the viewport, icons + short labels:
   Home · CV · Contact · English flag. Hidden from lg up (header navigation). */
.eu-mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; margin: 0;
  z-index: 1035;
  background: var(--eu-blue-dark); border-top: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .22);
  display: flex; align-items: stretch; justify-content: space-around;
  padding: 6px calc(4px + env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px))
    calc(4px + env(safe-area-inset-left, 0px));
}
.eu-mobile-bar .eu-tab {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px 3px; border-radius: 10px;
  color: rgba(255, 255, 255, .72); text-decoration: none;
  font-size: .66rem; line-height: 1; text-align: center;
}
.eu-mobile-bar .eu-tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eu-mobile-bar .eu-tab .eu-icon { display: block; }
.eu-mobile-bar .eu-tab .eu-flag-img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.eu-mobile-bar .eu-tab:hover, .eu-mobile-bar .eu-tab:focus,
.eu-mobile-bar .eu-tab.active { color: var(--eu-gold); }
.eu-mobile-bar .eu-tab.active { background: rgba(255, 255, 255, .08); }

/* ------------------------------------------------------------------- chat */
.eu-chat { background: #fff; border: 1px solid #e6e9f0; border-radius: var(--eu-radius);
  overflow: hidden; box-shadow: 0 8px 26px rgba(15, 23, 42, .07); }
.eu-chat-head { background: var(--eu-blue); color: #fff; padding: 10px 14px; }
.eu-chat-progress { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.eu-chat-progress-bar { height: 100%; background: var(--eu-gold); transition: width .35s ease; }
.eu-chat-progress-text { font-size: .78rem; opacity: .9; }
.eu-chat-body { padding: 16px 14px; max-height: 52vh; overflow-y: auto; background: #f8fafc; }
.eu-msg { display: flex; flex-direction: column; margin-bottom: 12px; }
.eu-msg-ai { align-items: flex-start; }
.eu-msg-user { align-items: flex-end; }
.eu-msg-bubble { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: .95rem;
  white-space: pre-wrap; word-wrap: break-word; }
.eu-msg-ai .eu-msg-bubble { background: #fff; border: 1px solid #e6e9f0; border-bottom-left-radius: 4px; }
/* the AI interview question is written in navy blue */
.eu-msg-ai .eu-msg-bubble.eu-msg-question {
  color: var(--eu-blue-dark);
  background: #f4f7ff;
  border-color: #c9d6f2;
  font-weight: 600;
}
/* the hint next to the answer box belongs to the same question */
.eu-chat-hint { color: var(--eu-blue) !important; }
.eu-msg-user .eu-msg-bubble { background: var(--eu-blue); color: #fff; border-bottom-right-radius: 4px; }
.eu-msg-meta { font-size: .72rem; color: var(--eu-muted); margin-top: 4px; }
.eu-typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%;
  background: var(--eu-blue); animation: euBlink 1.2s infinite; }
.eu-typing span:nth-child(2) { animation-delay: .2s; }
.eu-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes euBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.eu-chat-form { padding: 12px 14px 6px; border-top: 1px solid #e6e9f0; }
.eu-chat-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.eu-chat-hint { padding: 0 14px 14px; }

/* -------------------------------------------------------------- CV preview */
.eu-preview-wrap { background: #eef2f7; border: 1px solid #e6e9f0; border-radius: var(--eu-radius); padding: 14px; }
.cv-doc { background: #fff; border-radius: 8px; padding: 26px 28px; position: relative; overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .08); }
.cv-doc-wm .cv-wm {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; font-weight: 800; color: rgba(0, 51, 153, .12); transform: rotate(-24deg);
  pointer-events: none; letter-spacing: .1em; text-align: center;
}
.cv-head { display: flex; gap: 18px; align-items: center; border-bottom: 3px solid var(--eu-blue);
  padding-bottom: 14px; margin-bottom: 16px; }
.cv-photo { width: 82px; flex: 0 0 82px; }
.cv-photo img,
.cv-photo-box { width: 82px; height: 105px; border-radius: 4px; border: 2px solid var(--eu-blue);
  background: #f1f5f9; }
.cv-photo img { object-fit: cover; display: block; }
.cv-photo-box { background-size: cover; background-position: center; background-repeat: no-repeat; }
.cv-head-txt h1 { font-size: 1.65rem; font-weight: 700; color: var(--eu-blue); margin: 0 0 3px; }
.cv-target { font-weight: 600; color: #334155; margin-bottom: 6px; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: #475569; }
.cv-address { margin-top: 4px; }
.cv-cicon { margin-right: 4px; color: var(--eu-blue); }
.cv-body .cv-sec { margin-bottom: 16px; }
.cv-body h2 { font-size: .95rem; font-weight: 700; color: var(--eu-blue); text-transform: uppercase;
  letter-spacing: .07em; border-bottom: 1px solid #cbd5e1; padding-bottom: 4px; margin-bottom: 8px; }
.cv-body p { margin: 0 0 4px; font-size: .92rem; line-height: 1.5; color: #334155; }
.cv-ul { margin: 0 0 6px; padding-left: 20px; }
.cv-ul li { font-size: .92rem; line-height: 1.5; color: #334155; }
.cv-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid #e6e9f0; font-size: .72rem; color: #94a3b8; }
.inv-preview { font-size: .95rem; }

