/* fucini.consulting — what every page shares.
 *
 * Reused from fucini.software rather than redrawn: the palette and the
 * quick-links panel and footer come from its assets/style.css, the house icon
 * from coverage-studio/assets/site.css. Loaded before each page's own inline
 * <style>, so a page can still refine what it needs; the shared markup these
 * rules style is written into every page by scripts/build-site.mjs.
 */

/* The fucini.software palette. Pages keep their own :root for anything
   page-specific; these are the defaults a new page gets for free. */
:root {
  --bg: #050a14; --bg2: #0b1525; --bg3: #0f1e35;
  --accent: #00d4ff; --accent2: #0077ff; --green: #00e676;
  --text: #e8f0fe; --muted: #7a90b0; --border: rgba(0,212,255,.15);
  --radius: 12px; --font: 'Inter', sans-serif; --mono: 'JetBrains Mono', monospace;
}

/* ── language selector: the options are real links, one per language copy ── */
.lang-selector-wrapper { display: flex; align-items: center; gap: .75rem; }
a.lang-option { color: var(--text); text-decoration: none; }
a.lang-option.active { color: var(--accent); }

/* ── nav: the house (fucini.software .nav-home) and the way to the software ── */
.nav-home {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  color: var(--muted); border: 1px solid var(--border); border-radius: 99px;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-home:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,212,255,.08); }
.nav-home svg { width: 16px; height: 16px; }
/* The way into the dashboard (login.php), a quiet pill beside the language
   selector: fucini.software's .nav-login. */
.nav-login {
  display: inline-block; white-space: nowrap; text-decoration: none;
  font-family: var(--font); font-size: .78rem; line-height: 1.4;
  color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: .38rem .9rem;
  background: rgba(10,20,40,.6); transition: color .2s, border-color .2s, background .2s;
}
.nav-login:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,212,255,.08); }
/* On a phone the fixed language/login buttons and the nav share one row:
   the logo shrinks, and the house gives way (the logo leads home too).
   fucini.software is reached from the third card on the home page. */
@media (max-width: 640px) {
  .nav-right { margin-right: 0 !important; }
  .nav-home { display: none; }
  .nav-login { padding: .3rem .55rem; font-size: .7rem; }
  .lang-selector-wrapper { gap: .4rem; }
  .logo-image-small { width: 140px !important; }
}

/* ── quick links (fucini.software assets/style.css .quick-links) ──
   A fixed panel on the left of every page from 1024px, with the page moved
   aside so the panel never covers content — these pages run edge to edge,
   unlike fucini.software's column. Below that there is no room beside the
   content, so the same links are a row of pills at the top of the page.
   Never in the footer (2026-09-15). */
.quick-links {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem .5rem;
  max-width: 1100px; margin: 0 auto; padding: 2rem 6% .5rem;
  font-family: var(--font);
}
.quick-links h2 { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); margin: 0 .5rem 0 0; line-height: 1.4; }
.quick-links h2 span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.quick-links a { color: var(--muted); font-size: .8rem; padding: .2rem .65rem; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; text-decoration: none; line-height: 1.6; }
.quick-links a:hover { color: var(--accent); border-color: var(--accent); }
.quick-links a.here { color: var(--text); border-color: var(--accent2); background: rgba(0,119,255,.18); cursor: default; }
@media (max-width: 1023px) {
  /* The two division pages open under a fixed nav: clear it. */
  body[data-page="embedded"] .quick-links, body[data-page="it-services"] .quick-links { padding-top: 6rem; }
  /* The home page and the legal pages carry it inside their own column. */
  .page > .quick-links, .page-wrap > .quick-links { padding: 0 0 2rem; }
  /* The home page has no header of its own: clear the fixed Log in / language buttons. */
  .page > .quick-links { padding-top: 2.75rem; }
}
@media (min-width: 1024px) {
  body[data-page] { padding-inline-start: 14.5rem; }
  .quick-links {
    position: fixed; left: 1.25rem; top: 7.75rem; z-index: 90; width: 12rem; max-width: none;
    flex-direction: column; align-items: stretch; gap: .35rem; margin: 0; padding: 1rem 1.1rem; text-align: left;
    background: rgba(15,30,53,.85); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(0,212,255,.06); backdrop-filter: blur(8px);
  }
  .quick-links h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
  .quick-links a { border: none; padding: .25rem 0; font-size: .85rem; white-space: normal; }
  .quick-links a.here { background: none; color: var(--accent); font-weight: 600; }
  [dir="rtl"] .quick-links { left: auto; right: 1.25rem; }
  [dir="rtl"] body[data-page] { padding-inline-start: 0; padding-inline-end: 14.5rem; }
}

/* ── footer (fucini.software assets/style.css .site-foot) ── */
footer.site-foot {
  position: relative; z-index: 1; display: block;
  text-align: center; color: var(--muted); font-size: .8rem;
  padding: 1.5rem 6%; margin-top: 1.5rem; border-top: 1px solid var(--border); background: transparent;
}
.foot-note { margin: 0; font-family: var(--font); font-size: .8rem; color: var(--muted); line-height: 1.7; letter-spacing: normal; }
.foot-note-sub { font-size: .74rem; opacity: .6; margin-top: .3rem; }
.foot-note a { color: var(--muted); text-decoration: none; }
.foot-note a:hover { color: var(--accent); }

/* ── cookie consent (was inline in every page) ── */
#cookie-backdrop { display:none; position:fixed; inset:0; z-index:500; background:rgba(0,0,0,.78); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); align-items:center; justify-content:center; }
#cookie-backdrop.active { display:flex; }
#cookie-notice { background:var(--bg2); border:1px solid var(--border); border-radius:20px; padding:2.5rem 2rem 2rem; max-width:420px; width:90%; box-shadow:0 24px 64px rgba(0,0,0,.55); text-align:center; font-family:var(--font); animation:cnFadeIn .3s ease; }
@keyframes cnFadeIn { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.cn-icon { font-size:2.2rem; margin-bottom:.9rem; display:block; }
.cn-title { font-size:1rem; font-weight:700; color:var(--text); margin-bottom:.6rem; letter-spacing:-.01em; }
.cn-text { font-size:.84rem; color:var(--muted); line-height:1.65; margin-bottom:1.6rem; }
.cn-text a { color:var(--accent); text-decoration:none; }
.cn-text a:hover { text-decoration:underline; }
.cn-actions { display:flex; gap:.75rem; justify-content:center; }
.cn-btn { font-family:var(--mono); font-size:.73rem; letter-spacing:.06em; padding:.55rem 1.6rem; border-radius:8px; cursor:pointer; border:1px solid; transition:all .15s; background:transparent; }
.cn-btn-accept { background:var(--accent2); border-color:var(--accent2); color:#fff; }
.cn-btn-accept:hover { filter:brightness(1.15); }

/* ── contact forms: status line and the toast (was inline in two pages) ── */
.form-status { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.form-status.error { color: #ff6b6b; }
.form-privacy-note { text-align: center; margin-top: .75rem; font-size: .78rem; color: var(--muted); }
.form-privacy-note a { color: var(--accent); text-decoration: none; }
#success-toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 1000;
  background: var(--bg2); border: 1px solid #00e676;
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  max-width: 360px; width: calc(100% - 4rem);
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 20px rgba(0,230,118,.12);
  display: flex; align-items: flex-start; gap: 1rem;
  transform: translateX(calc(100% + 3rem)); opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  overflow: hidden; font-family: var(--font);
}
#success-toast.toast-show { transform: translateX(0); opacity: 1; pointer-events: auto; }
[dir="rtl"] #success-toast { right: auto; left: 2rem; transform: translateX(calc(-100% - 3rem)); }
[dir="rtl"] #success-toast.toast-show { transform: translateX(0); }
.toast-img { flex-shrink:0; width:56px; height:auto; max-height:48px; border-radius:8px; object-fit:contain; display:block; }
.toast-body { flex:1; }
.toast-title { font-weight:600; color:#00e676; font-size:.95rem; margin-bottom:.2rem; }
.toast-msg { font-size:.82rem; color:var(--muted); line-height:1.4; }
.toast-close { flex-shrink:0; background:none; border:none; color:var(--muted); cursor:pointer; font-size:1rem; line-height:1; padding:0; transition:color .2s; }
.toast-close:hover { color:var(--text); }
.toast-bar { position:absolute; bottom:0; left:0; height:3px; background:#00e676; width:100%; transform-origin:left; }
@keyframes toastShrink { from{transform:scaleX(1)} to{transform:scaleX(0)} }
#success-toast.toast-error { border-color: #ff6b6b; box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 20px rgba(255,107,107,.12); }
#success-toast.toast-error .toast-title { color: #ff6b6b; }
#success-toast.toast-error .toast-bar { background: #ff6b6b; }

/* ── the legal and contact pages (built on privacy.html's layout) ── */
.pp-title span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ct-form-h { font-size: 1.3rem; font-weight: 800; margin: 0 0 .3rem; text-align: center; }
.ct-forms-intro { text-align: center; color: var(--muted); font-size: .88rem; margin: 0 0 1.5rem; }
/* contact.html: one form (2026-09-16) that starts with a choice — Embedded
   Systems, IT Services, and the three Fucini Software topics — each card in
   its team's colour; the form itself takes the colour of the chosen card. The
   radio is visually hidden but focusable. */
.ct-one { max-width: 720px; margin: 0 auto 3rem; }
.ct-reach { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.ct-reach-legend { color: var(--muted); font-size: .88rem; margin-bottom: .5rem; padding: 0; }
.ct-choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.ct-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ct-choice-body {
  display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: .85rem 1rem;
  background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--div); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.ct-choice:hover .ct-choice-body { border-color: var(--div); }
.ct-choice input:checked + .ct-choice-body { border-color: var(--div); box-shadow: 0 0 0 1px var(--div), 0 0 16px var(--div-soft); background: linear-gradient(180deg, var(--div-soft), transparent 6rem), var(--bg); }
.ct-choice input:focus-visible + .ct-choice-body { outline: 2px solid var(--div); outline-offset: 2px; }
.ct-choice-name { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1rem; color: var(--div); }
.ct-choice-brand { color: var(--text); font-weight: 600; }
.ct-choice-desc { color: #b0c4de; font-size: .84rem; line-height: 1.5; }
.ct-choice-mail { font-family: var(--mono); font-size: .74rem; color: var(--div); word-break: break-word; }
.ct-sw-note { display: none; color: var(--muted); font-size: .84rem; line-height: 1.5; margin: -.2rem 0 0; }
.ct-form:has(.ct-sw input:checked) .ct-sw-note { display: block; }
.ct-form:has(.ct-emb input:checked) { --div: #0077ff; --div-ink: #fff; --div-soft: rgba(0,119,255,.12); }
.ct-form:has(.ct-it input:checked) { --div: #00a3a3; --div-ink: #04111f; --div-soft: rgba(0,163,163,.12); }
@media (min-width: 640px) {
  .ct-reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ct-form {
  --div: var(--accent); --div-ink: #04111f; --div-soft: rgba(0,212,255,.08);
  display: flex; flex-direction: column; gap: .8rem; min-width: 0;
  background: linear-gradient(180deg, var(--div-soft), transparent 10rem), var(--bg3);
  border: 1px solid var(--border); border-top: 3px solid var(--div); border-radius: 20px; padding: 1.5rem 1.25rem;
}
.ct-emb { --div: #0077ff; --div-ink: #fff; --div-soft: rgba(0,119,255,.12); }
.ct-it { --div: #00a3a3; --div-ink: #04111f; --div-soft: rgba(0,163,163,.12); }
.ct-sw { --div: #00d4ff; --div-ink: #04111f; --div-soft: rgba(0,212,255,.1); }
.ct-form-title { display: flex; align-items: center; gap: .55rem; font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--div); }
.ct-dot { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--div); box-shadow: 0 0 10px var(--div); }
.ct-form-desc { color: #b0c4de; font-size: .86rem; line-height: 1.55; margin-top: -.35rem; }
.ct-form-mail { font-family: var(--mono); font-size: .76rem; margin: -.45rem 0 .2rem; word-break: break-word; }
.ct-form-mail a { color: var(--div); text-decoration: none; }
.ct-form-mail a:hover { text-decoration: underline; }
.ct-form input, .ct-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1.1rem; color: var(--text); font-family: var(--font); font-size: .9rem; outline: none; resize: vertical;
}
.ct-form input:focus, .ct-form textarea:focus { border-color: var(--div); box-shadow: 0 0 12px var(--div-soft); }
.ct-form input::placeholder, .ct-form textarea::placeholder { color: var(--muted); }
.ct-form .g-recaptcha { min-height: 78px; }
.ct-submit {
  align-self: stretch; padding: .8rem 1.8rem; border: none; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: .9rem; color: var(--div-ink, #fff);
  background: var(--div, var(--accent2)); box-shadow: 0 4px 22px var(--div-soft, rgba(0,119,255,.35));
}
.ct-submit:hover { filter: brightness(1.12); }
.ct-submit[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 640px) {
  .ct-form { padding: 1.25rem 1rem; }
}
@media (min-width: 1400px) {
  body[data-page="contact"] .page-wrap { max-width: 1180px; padding-inline: 2rem; }
  body[data-page="contact"] .pp-header, body[data-page="contact"] .ct-narrow { max-width: 780px; margin-inline: auto; }
}

/* ── the newsletter signup at the top of every footer ── */
.nl-form { max-width: 640px; margin: 0 auto 1.4rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border); font-family: var(--font); }
.nl-head { margin: 0 0 .6rem; font-size: .88rem; color: var(--muted); line-height: 1.6; }
.nl-head strong { color: var(--text); margin-inline-end: .35rem; }
.nl-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.nl-row input { flex: 1 1 11rem; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .55rem .8rem; color: var(--text); font-family: var(--font); font-size: .85rem; outline: none; }
.nl-row input:focus { border-color: var(--accent); }
.nl-row input::placeholder { color: var(--muted); }
.nl-row button { flex: 0 0 auto; border: none; border-radius: 8px; padding: .55rem 1.2rem; cursor: pointer; font-family: var(--font); font-size: .85rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent2), var(--accent)); }
.nl-row button[disabled] { opacity: .6; cursor: wait; }
.nl-row .nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-note { margin: .5rem 0 0; font-size: .74rem; color: var(--muted); opacity: .8; }
.nl-status { margin: .5rem 0 0; font-size: .82rem; color: var(--green); }
.nl-status.error { color: #ff6b6b; }
