/* easiForms — base styles, tokens, menu and footer.
   Page layouts live in ef-pages.css. */

:root {
  /* brand */
  --ef-blue: #0f6e6a;           /* easiForms teal, as in the app (was #2c5fd9; tracker e94bfbf8) */
  --ef-blue-deep: #084643;
  --ef-blue-soft: #e5efef;
  --ef-blue-light: #6dbeb9;
  --ef-blue-100: #d6e6e6;
  --ef-blue-200: #c2dad9;
  --ef-blue-300: #a9cbc9;
  --ef-orange: #f2711c;           /* accent only, never for text */
  /* neutrals */
  --ef-ink: #1b1f24;
  --ef-slate: #5b6472;
  --ef-border: #e2e5ea;
  --ef-border-strong: #c9cfd8;
  --ef-ground: #f6f7f9;
  --ef-surface: #f0f2f5;
  --ef-white: #ffffff;
  /* status */
  --ef-green: #1f8a4c;
  --ef-green-text: #17703d;
  --ef-green-soft: #e6f4ec;
  --ef-amber: #8a5a00;
  --ef-amber-soft: #fdf3dc;
  --ef-red: #c4372f;
  /* type */
  --ef-font-head: 'Plus Jakarta Sans', sans-serif;
  --ef-font-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ef-radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ef-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ef-ink);
  background: var(--ef-white);
}
img, svg { max-width: 100%; }
a { color: var(--ef-blue); }
a:hover { color: var(--ef-blue-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ef-blue-light);
  outline-offset: 2px;
}
input, select, textarea { font: inherit; color: inherit; }

.ef-hide-sm { display: flex; }
@media (max-width: 720px) { .ef-hide-sm { display: none; } }

[hidden] { display: none !important; }

/* ---------- Menu (partials/nav-*.html) ---------- */
.ef-nav { border-bottom: 1px solid var(--ef-border); background: var(--ef-white); position: relative; z-index: 10; }
.ef-nav__inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px 28px; }
.ef-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.ef-brand img { display: block; height: 34px; width: auto; }
.ef-nav__links { display: flex; flex-wrap: wrap; gap: 2px 22px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.ef-nav__links a { color: var(--ef-ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.ef-nav__links a:hover { color: var(--ef-blue); }
.ef-nav__links a.is-active { color: var(--ef-blue); border-bottom-color: var(--ef-blue); }
.ef-nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ef-lang { font-size: 14px; font-weight: 600; color: var(--ef-slate); text-decoration: none; padding: 10px 8px; }
.ef-lang .is-current { color: var(--ef-blue); }
.ef-btn { display: inline-block; font-size: 15px; font-weight: 600; text-decoration: none; padding: 11px 18px; border-radius: var(--ef-radius); border: 0; cursor: pointer; }
.ef-btn--primary { color: var(--ef-white); background: var(--ef-blue); }
.ef-btn--primary:hover { color: var(--ef-white); background: var(--ef-blue-deep); }
.ef-btn--ghost { color: var(--ef-ink); background: transparent; padding-left: 12px; padding-right: 12px; }
.ef-nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); background: var(--ef-white); color: var(--ef-ink); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .ef-nav__inner { flex-wrap: wrap; }
  .ef-nav__toggle { display: inline-flex; }
  .ef-nav__links, .ef-nav__actions { display: none; flex-basis: 100%; }
  .ef-nav.is-open .ef-nav__links { display: flex; flex-direction: column; gap: 0; }
  .ef-nav.is-open .ef-nav__links a { padding: 12px 0; border-bottom: 1px solid var(--ef-border); }
  .ef-nav.is-open .ef-nav__links a.is-active { border-bottom-color: var(--ef-border); }
  .ef-nav.is-open .ef-nav__actions { display: flex; flex-wrap: wrap; padding-top: 8px; }
}

/* ---------- Footer (partials/footer-*.html) ---------- */
.ef-footer { border-top: 1px solid var(--ef-border); background: var(--ef-white); padding: 36px 24px; color: var(--ef-slate); font-size: 14px; }
.ef-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ef-footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.ef-footer__brand img { display: block; height: 28px; width: auto; }
.ef-footer__links { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.ef-footer__links a { color: var(--ef-slate); text-decoration: none; padding: 10px 0; }
.ef-footer__links a:hover { color: var(--ef-blue); }
.ef-footer__links a.ef-footer__lang { color: var(--ef-blue); font-weight: 600; }

/* ---------- Contact form states ---------- */
.ef-form-error { grid-column: 1 / -1; color: var(--ef-red); font-size: 14px; font-weight: 500; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--ef-red) !important; }
.ef-form-thanks { font-weight: 600; color: var(--ef-green-text); font-size: 16px; }
