/* =====================================================================
   Genesis Business Solutions — stiluri site public
   CSS propriu, fără dependențe externe.

   BRAND: paleta de bleumarin + Roboto. Pentru orice ajustare de culoare
   sau tipografie se modifică DOAR blocul :root de mai jos.
   ===================================================================== */

:root {
  /* --- Paleta de brand: bleumarin ----------------------------------- */
  --navy-900:     #0A2540;   /* bleumarin închis — logo, footer, titluri */
  --navy-700:     #123A63;
  --navy-500:     #1B4B8A;   /* culoarea principală de acțiune */
  --navy-400:     #2A6FBB;
  --navy-300:     #4A90D9;   /* accent deschis */
  --navy-050:     #E8EFF7;   /* fundal de accent */

  --brand:        var(--navy-500);
  --brand-dark:   var(--navy-700);
  --brand-light:  var(--navy-050);
  --accent:       var(--navy-300);

  --ink:          #0F1D2E;
  --ink-soft:     #44566B;
  --ink-muted:    #6C7C8E;
  --line:         #DDE5EE;
  --bg:           #ffffff;
  --bg-alt:       #F5F8FC;
  --bg-dark:      var(--navy-900);

  /* --- Tipografie ----------------------------------------------------
     Fonturi de sistem: zero fișiere de încărcat, zero cereri externe.
     Fiecare sistem folosește fontul lui nativ — Segoe UI Variable pe
     Windows, SF Pro pe macOS/iOS, Roboto pe Android și ChromeOS.
     Toate sunt sans-serif neutre, foarte apropiate ca aspect.
     -------------------------------------------------------------------- */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               "Noto Sans", Arial, sans-serif;
  --font-head: var(--font-body);

  /* --- Layout ------------------------------------------------------- */
  --maxw:         1160px;
  --maxw-narrow:  760px;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 1px 2px rgba(10,37,64,.06), 0 4px 14px rgba(10,37,64,.07);
  --shadow-lg:    0 10px 34px rgba(10,37,64,.13);
  --gutter:       1.5rem;
}

/* ------------------------------------------------------------- Reset */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 650;
  letter-spacing: -.015em;
}

p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid rgba(27,75,138,.35); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ Layout */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--center { text-align: center; padding: 6rem 0; }

.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.section__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.2rem; }
.section__head .section__title { margin: 0; }

.link-more { font-size: .95rem; font-weight: 600; white-space: nowrap; }

.empty { color: var(--ink-muted); padding: 2rem 0; }

/* ------------------------------------------------------------ Header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy-900); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: .055em; text-transform: uppercase;
}
.brand__sub {
  font-size: .565rem; font-weight: 500; margin-top: 3px;
  letter-spacing: .19em; text-transform: uppercase; color: var(--navy-500);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav__link {
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: .95rem; font-weight: 550;
}
.nav__link:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav__link.is-active { color: var(--brand); background: var(--brand-light); }

.lang-switch {
  display: flex; margin-left: .6rem;
  border: 1px solid var(--line); border-radius: 99px; overflow: hidden;
}
.lang-switch__item {
  padding: .28rem .62rem; font-size: .78rem; font-weight: 700;
  color: var(--ink-muted); letter-spacing: .04em;
}
.lang-switch__item:hover { background: var(--bg-alt); text-decoration: none; }
.lang-switch__item.is-active { background: var(--brand); color: #fff; }

.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: .5rem; margin-left: auto; }
.nav-burger span {
  display: block; width: 22px; height: 2px; margin: 4px 0;
  background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s;
}

/* -------------------------------------------------------------- Hero */

.hero {
  background:
    radial-gradient(900px 380px at 15% -10%, rgba(27,75,138,.13), transparent 60%),
    radial-gradient(700px 340px at 95% 0%, rgba(74,144,217,.12), transparent 60%),
    var(--bg);
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--brand);
  margin: 0 0 .8rem;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 20ch;
  margin: 0 0 1rem;
}
.hero__lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 2rem;
}
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-img {
  width: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-top: -1rem;
}

/* --------------------------------------------------------- Page head */

.page-head {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-head__title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .5rem; }
.page-head__lead { color: var(--ink-soft); max-width: 68ch; margin: 0; font-size: 1.05rem; }
.page-head__meta {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  color: var(--ink-muted); font-size: .92rem; margin: .8rem 0 0;
}
.page-head__with-icon { display: flex; align-items: flex-start; gap: 1rem; }
.page-head__icon {
  flex: none; width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); border-radius: 12px;
}

.breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  font-size: .85rem; color: var(--ink-muted); margin-bottom: .9rem;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ------------------------------------------------------------ Butoane */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost { color: var(--ink-soft); background: transparent; }
.btn--ghost:hover { color: var(--brand); background: var(--bg-alt); }

/* -------------------------------------------------------------- Carduri */

.cards { display: grid; gap: 1.4rem; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  display: block; color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover {
  text-decoration: none;
  border-color: rgba(27,75,138,.38);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card--service { padding: 1.6rem; }
.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1rem;
  background: var(--brand-light); color: var(--brand);
  border-radius: 12px;
}
.card__title { font-size: 1.12rem; margin: 0 0 .5rem; }
.card__text { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .8rem; }
.card__more { color: var(--brand); font-size: .9rem; font-weight: 600; }
.card__meta {
  display: block; color: var(--ink-muted);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600; margin-bottom: .4rem;
}
.card__body { padding: 1.35rem 1.5rem 1.6rem; }
.card__img { width: 100%; height: 190px; object-fit: cover; background: var(--bg-alt); }
.card__img--wide { height: 230px; }
.card__img--empty {
  display: grid; place-items: center;
  color: var(--ink-muted); background: var(--bg-alt);
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.tag {
  font-size: .76rem; font-weight: 600;
  background: var(--bg-alt); color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: .12rem .55rem; border-radius: 99px;
}
.page-head .tags { margin-top: 1rem; }

/* ---------------------------------------------------------------- Echipă */

.team-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.team-grid--wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.member { margin: 0; text-align: center; }
.member__photo {
  width: 132px; height: 132px; object-fit: cover;
  border-radius: 50%; margin: 0 auto .9rem;
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.member__photo--empty {
  display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand);
}
.member__name { display: block; font-size: 1.02rem; }
.member__role { display: block; color: var(--ink-muted); font-size: .9rem; margin-top: .1rem; }
.member__bio { color: var(--ink-soft); font-size: .92rem; margin: .7rem 0 .5rem; }
.member__links { display: flex; gap: .8rem; justify-content: center; font-size: .88rem; }
.member--detailed { text-align: center; }

/* ---------------------------------------------------------------- Prose */

.prose { font-size: 1.03rem; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.4rem; color: var(--ink); margin: 2rem 0 .7rem; }
.prose h3 { font-size: 1.16rem; color: var(--ink); margin: 1.6rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem;
  border-left: 3px solid var(--brand); color: var(--ink);
  font-style: italic;
}
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.prose th { background: var(--bg-alt); }
.prose code {
  background: var(--bg-alt); padding: .1rem .35rem; border-radius: 4px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose pre { background: var(--bg-alt); padding: 1rem; border-radius: var(--radius); overflow-x: auto; }

.lead { font-size: 1.15rem; color: var(--ink); font-weight: 500; margin-bottom: 1.6rem; }

.detail-actions {
  display: flex; gap: .8rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------ Paginare */

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.pagination__item {
  min-width: 40px; padding: .45rem .7rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: .92rem; font-weight: 600;
}
.pagination__item:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination__item.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ----------------------------------------------------------- CTA band */

.cta-band { background: var(--bg-dark); color: #fff; padding: 3.2rem 0; }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.cta-band__title { margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); max-width: 40ch; }

/* ------------------------------------------------------------ Contact */

.contact-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 3rem; }

.contact-info__item { display: flex; gap: .9rem; margin-bottom: 1.5rem; }
.contact-info__icon {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); border-radius: 10px;
}
.contact-info__label {
  display: block; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-muted); font-weight: 700;
}
.contact-map { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.field { display: block; margin-bottom: 1.1rem; }
.field__label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; }
.field__opt { color: var(--ink-muted); font-weight: 400; }

.input, .textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem;
  color: var(--ink); background: #fff;
}
.input:focus, .textarea:focus { border-color: var(--brand); outline: 3px solid rgba(27,75,138,.15); }
.textarea { resize: vertical; min-height: 130px; }

.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.checkbox { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.3rem;
  font-size: .9rem; color: var(--ink-soft); }
.checkbox input { margin-top: .28rem; width: 17px; height: 17px; flex: none; }

/* Honeypot: ascuns vizual, dar prezent în DOM pentru roboți */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: 1.2rem; font-size: .94rem; border: 1px solid transparent;
}
.notice--ok    { background: #e8f5ee; color: #14663f; border-color: #b8dfc9; }
.notice--error { background: #fdeceb; color: #a02219; border-color: #f0c2bf; }

/* -------------------------------------------------------------- Footer */

.site-footer { background: var(--bg-dark); color: #a9b6c7; padding: 3.5rem 0 0; margin-top: 0; }
.site-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  padding-bottom: 2.5rem;
}
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub  { color: #9CC0E8; }
.site-footer__tagline { color: #a9b6c7; margin: 1rem 0 .6rem; font-size: .95rem; max-width: 40ch; }
.site-footer__legal { font-size: .84rem; color: #7d8ba0; margin: 0; }
.site-footer__title {
  color: #fff; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .1em; margin: 0 0 .9rem;
}
.site-footer__title + .site-footer__title { margin-top: 1.6rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.site-footer__list li { margin-bottom: .45rem; }
.site-footer a { color: #a9b6c7; }
.site-footer a:hover { color: #fff; }

.social { display: flex; gap: .6rem; }
.social__link {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #a9b6c7;
}
.social__link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.2rem; padding-bottom: 1.5rem;
  font-size: .85rem; color: #7d8ba0;
}

.error-code {
  font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800;
  color: var(--brand-light); margin: 0; line-height: 1;
}

/* ------------------------------------------------------------- Mobile */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .form-row2 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav__link { padding: .75rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .lang-switch { margin: .8rem 0 0; align-self: flex-start; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
