/* ==========================================================================
   SSM · SU · PSI — sistem de design
   Ton: dosar oficial de conformitate. Hârtie, cerneală, ștampilă.
   ========================================================================== */

:root {
  --ink:        #1C2321;
  --ink-light:  #5B564C;
  --paper:      #E4E0D2;
  --paper-deep: #DAD5C3;
  --paper-card: #EFEBDD;
  --teal:       #1F4E3D;
  --teal-dark:  #163A2D;
  --amber:      #C98A1F;
  --amber-deep: #A66F14;
  --rust:       #9C3B2E;
  --line:       #C9C2AC;
  --line-dark:  #8B8672;

  --display: 'Fraunces', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- texture: paper grain via subtle noise-free layering ---------- */
body {
  background-image:
    radial-gradient(circle at 15% 8%, rgba(31,78,61,0.05), transparent 40%),
    radial-gradient(circle at 85% 92%, rgba(201,138,31,0.06), transparent 45%);
  background-attachment: fixed;
}


/* ---------------------------------- topbar ---------------------------------- */
.topbar {
  background: var(--amber);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: #2b1d05;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-item:hover { text-decoration: underline; }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 560px) {
  .topbar-inner { justify-content: center; gap: 18px; }
  .topbar-item { font-size: 12px; }
}

/* ---------------------------------- header ---------------------------------- */
.site-header {
  background: var(--teal);
  color: var(--paper);
  border-bottom: 3px solid var(--teal-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.brand-text .name {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.1;
}
.brand-text .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 3px;
}
nav.main-nav {
  display: flex;
  gap: 24px;
  font-size: 14.5px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  row-gap: 8px;
}
nav.main-nav a {
  text-decoration: none;
  color: rgba(228,224,210,0.88);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--paper);
  border-bottom-color: var(--amber);
}
.cross-links {
  flex-basis: 100%;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cross-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #39ff8a;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(0,0,0,0.22);
  padding: 4px 10px;
  border-radius: 3px;
}
.cross-links a:hover { background: rgba(0,0,0,0.35); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid rgba(228,224,210,0.4);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 3px;
  }
}

/* ---------------------------------- hero (dosar de conformitate) ---------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  border-bottom: 1px dashed var(--line-dark);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

.dossier-ref {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--ink-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.dossier-ref::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--rust);
  display: inline-block;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero .lede {
  font-size: 18px;
  color: var(--ink-light);
  max-width: 46ch;
  margin-bottom: 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--paper);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* the seal — signature element */
.seal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.seal {
  width: 100%;
  max-width: 260px;
  animation: seal-in 0.9s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes seal-in {
  from { opacity: 0; transform: scale(0.85) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(-6deg); }
}

/* ---------------------------------- perforated divider ---------------------------------- */
.perforated {
  border: none;
  height: 1px;
  margin: 0;
  background-image: repeating-linear-gradient(to right, var(--line-dark) 0 6px, transparent 6px 14px);
}

/* ---------------------------------- section shell ---------------------------------- */
section { padding: 68px 0; }
section.compact { padding: 40px 0; }
.hero.compact { padding: 40px 0 32px; }
.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}
.section-head.tight { margin-bottom: 26px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 14px;
}
.section-head p {
  color: var(--ink-light);
  font-size: 16.5px;
}

/* ---------------------------------- fișe (services) ---------------------------------- */
.fise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (max-width: 760px) { .fise-grid { grid-template-columns: 1fr; } }

.fisa {
  background: var(--paper-card);
  padding: 34px 32px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: background 0.15s ease;
}
.fisa:hover { background: #F5F2E7; }
.fisa .fisa-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber-deep);
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: block;
}
.fisa h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
}
.fisa p {
  color: var(--ink-light);
  font-size: 15.5px;
  margin: 0 0 16px;
}
.fisa .go {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fisa:hover .go { color: var(--rust); }

/* ---------------------------------- stat strip ---------------------------------- */
.stat-strip {
  background: var(--teal);
  color: var(--paper);
  padding: 44px 0;
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border-left: 2px solid rgba(228,224,210,0.25);
  padding-left: 18px;
}
.stat .num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--amber);
  display: block;
  margin-bottom: 4px;
}
.stat .label {
  font-size: 13.5px;
  color: rgba(228,224,210,0.82);
  line-height: 1.4;
}

/* ---------------------------------- credentials row ---------------------------------- */
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.cred-chip {
  font-family: var(--mono);
  font-size: 12.5px;
  border: 1px solid var(--line-dark);
  padding: 8px 14px;
  border-radius: 2px;
  color: var(--ink-light);
  background: var(--paper-card);
}
.cred-chip strong { color: var(--ink); }

/* ---------------------------------- RSVTI callout ---------------------------------- */
.callout {
  background: var(--paper-card);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--amber);
  padding: 28px 32px;
  margin: 8px 0;
}
.callout h4 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 10px;
}
.callout p { margin: 0; color: var(--ink-light); font-size: 15.5px; }
.callout p + p { margin-top: 10px; }

/* ---------------------------------- process / timeline (real sequence, numbered) ---------------------------------- */
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  min-width: 0;
}
.step {
  counter-increment: step;
  background: var(--paper-card);
  padding: 30px 26px;
  transition: background 0.15s ease;
}
.step:hover { background: #F5F2E7; }
.step::before {
  content: "Art. " counter(step);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--rust);
  display: block;
  margin-bottom: 12px;
}
.step h4 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0 0 8px;
  line-height: 1.2;
}
.step p { margin: 0; color: var(--ink-light); font-size: 15px; line-height: 1.55; }

@media (max-width: 700px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------------------------------- split layout: main content + compact sidebar ---------------------------------- */
.info-split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 820px) {
  .info-split { grid-template-columns: 1fr; }
}
.info-split .process {
  grid-template-columns: 1fr;
  min-width: 0;
}
.side-panel {
  background: var(--paper-card);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--amber);
  padding: 22px 22px;
}
.side-panel h4 {
  font-family: var(--display);
  font-size: 16px;
  margin: 0 0 10px;
}
.side-panel p {
  margin: 0 0 14px;
  color: var(--ink-light);
  font-size: 14px;
  line-height: 1.55;
}
.side-panel .creds { margin-top: 0; gap: 8px; }
.side-panel .cred-chip { font-size: 11.5px; padding: 6px 10px; display: block; }

/* ---------------------------------- CTA band ---------------------------------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 14px;
}
.cta-band p {
  color: rgba(228,224,210,0.75);
  max-width: 50ch;
  margin: 0 auto 28px;
}

/* ---------------------------------- footer ---------------------------------- */
footer.site-footer {
  background: var(--teal-dark);
  color: rgba(228,224,210,0.75);
  padding: 48px 0 28px;
  font-size: 14.5px;
}
footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { footer.site-footer .foot-grid { grid-template-columns: 1fr; } }
footer.site-footer h5 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--paper); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 9px; }
.foot-links {
  border-top: 1px solid rgba(228,224,210,0.15);
  padding-top: 18px;
  font-size: 13px;
  color: rgba(228,224,210,0.6);
}
.foot-links a { color: rgba(228,224,210,0.85); }
.foot-links a:hover { color: var(--paper); }
.foot-bottom {
  border-top: 1px solid rgba(228,224,210,0.15);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(228,224,210,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------------------------- utility ---------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
