/* Access Development — site.css
   Fără framework, fără JavaScript. Fontul este Cooper Hewitt (fontul logo-ului), licență SIL OFL. */

@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooperhewitt-book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooperhewitt-bookitalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooperhewitt-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooperhewitt-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cooper Hewitt"; src: url("../fonts/cooperhewitt-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0E2238;
  --ink-2: #4A5D72;
  --paper: #FFFFFF;
  --mist: #F0F5FA;
  --line: #D5E1EC;
  --blue: #0076DD;
  --blue-strong: #005FB5;
  --cyan: #00CDE9;
  --band-a: #0066C8;
  --band-b: #0093CB;
  --on-band: #FFFFFF;
  --card: #FFFFFF;
  --chart-grid: #D5E1EC;
  --header-bg: rgba(255, 255, 255, .86);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6EEF6;
    --ink-2: #A3B4C6;
    --paper: #0C1A2B;
    --mist: #112338;
    --line: #23394F;
    --blue: #4BA6F2;
    --blue-strong: #7BBFF6;
    --band-a: #0A4F9C;
    --band-b: #0A7DA8;
    --card: #0F2034;
    --chart-grid: #23394F;
    --header-bg: rgba(12, 26, 43, .86);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E6EEF6;
  --ink-2: #A3B4C6;
  --paper: #0C1A2B;
  --mist: #112338;
  --line: #23394F;
  --blue: #4BA6F2;
  --blue-strong: #7BBFF6;
  --band-a: #0A4F9C;
  --band-b: #0A7DA8;
  --card: #0F2034;
  --chart-grid: #23394F;
  --header-bg: rgba(12, 26, 43, .86);
  color-scheme: dark;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cooper Hewitt", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-strong); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.lead { font-size: clamp(1.2rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-strong); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0C1A2B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { color: #0C1A2B; } }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand span { font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand:hover { color: var(--ink); }

.nav-desktop { display: flex; align-items: center; gap: 30px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-grid; place-items: center;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: .04em;
}
.lang:hover { border-color: var(--blue); color: var(--blue); }
.nav-desktop a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.nav-desktop a:not(.btn):hover { color: var(--blue); }
.nav-desktop .btn { min-height: 44px; padding: 0 1.1em; }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .bars { width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-mobile summary .bars::before, .nav-mobile summary .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-mobile summary .bars::before { top: -5px; }
.nav-mobile summary .bars::after { top: 5px; }
.nav-mobile[open] summary .bars { background: transparent; }
.nav-mobile[open] summary .bars::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] summary .bars::after { top: 0; transform: rotate(-45deg); }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(14, 34, 56, .35);
  padding: 10px; display: grid;
}
.nav-mobile nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-mobile nav a:hover { background: var(--mist); }
.nav-mobile nav .btn { margin-top: 6px; color: #fff; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1; letter-spacing: -.02em; margin-bottom: .45em; }
.hero .lead { margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--chart-grid); stroke-width: 1; stroke-dasharray: 3 6; }
.chart .grid line.base { stroke-dasharray: none; }
.chart .axis text { fill: var(--ink-2); font-family: inherit; font-size: 20px; font-weight: 500; }
.nowrap { white-space: nowrap; }
.chart .area { fill: url(#areaFill); }
.chart .line { fill: none; stroke: url(#lineStroke); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: var(--paper); stroke: var(--blue); stroke-width: 3; }
.chart .mark-arrow { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.7s cubic-bezier(.45, .05, .25, 1) .25s forwards; }
  .chart .area { opacity: 0; animation: fade .9s ease-out 1.1s forwards; }
  .chart .dot { opacity: 0; animation: fade .3s ease-out forwards; }
  .chart .dot:nth-of-type(1) { animation-delay: .45s; }
  .chart .dot:nth-of-type(2) { animation-delay: .85s; }
  .chart .dot:nth-of-type(3) { animation-delay: 1.2s; }
  .chart .dot:nth-of-type(4) { animation-delay: 1.55s; }
  .chart .mark { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); animation: pop .55s cubic-bezier(.3, 1.4, .5, 1) 1.8s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }

.facts {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 28px 24px 26px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.facts span { color: var(--ink-2); font-size: 1rem; line-height: 1.35; display: block; }

/* ---------- Secțiuni ---------- */
.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-bottom: .5em; }

/* Despre */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about .h2 { margin-bottom: .6em; }
.about-body p { color: var(--ink-2); }
.about-body p:first-of-type { color: var(--ink); font-size: 1.25rem; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li { padding: 22px 0 22px 20px; border-bottom: 1px solid var(--line); position: relative; }
.principles li::before { content: ""; position: absolute; left: 0; top: 30px; width: 4px; height: 22px; border-radius: 2px; background: linear-gradient(180deg, var(--blue), var(--cyan)); }
.principles h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.principles p { color: var(--ink-2); font-size: 1.0625rem; }

/* Servicii */
.services { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.services-intro { position: sticky; top: 112px; }
.services-intro .h2 { margin-bottom: .5em; }
.services-intro .lead { margin-bottom: 1.6em; }
.service-list { border-top: 2px solid var(--ink); }
.service { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 12px 32px; padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.service h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.service p { color: var(--ink-2); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .9375rem; font-weight: 500; color: var(--ink); background: var(--mist); border-radius: 6px; padding: 3px 10px; }
.section-mist .tags li { background: var(--paper); }

/* Cum lucrăm */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: calc(33.33% - 28px); height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.step { position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--blue); color: var(--blue);
  font-size: 1.5rem; font-weight: 700; margin-bottom: 22px; position: relative;
}
.step:last-child .step-num { background: linear-gradient(135deg, #0076DD, #00CDE9); color: #fff; border-color: transparent; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); }

/* Echipa */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.person { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); grid-template-areas: "photo head" "photo text"; grid-template-rows: auto 1fr; gap: 0 28px; align-items: start; }
.portrait { grid-area: photo; }
.person-head { grid-area: head; }
.person-text { grid-area: text; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(155deg, #0076DD, #00CDE9);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { color: #fff; font-size: 3.5rem; font-weight: 700; letter-spacing: .02em; }
.person h3 { font-size: 1.75rem; margin-bottom: 2px; }
.role { color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.person p { color: var(--ink-2); font-size: 1.0625rem; }
.person dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 1rem; }
.person dt { color: var(--ink-2); }
.person dd { margin: 0; }
.person .social { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.person .social svg { width: 20px; height: 20px; }

/* Contact */
.contact-band { background: linear-gradient(115deg, var(--band-a) 0%, var(--band-b) 100%); color: var(--on-band); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact .h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: .4em; }
.contact .lead { color: rgba(255, 255, 255, .9); margin-bottom: 1.6em; }
.phone-big { display: inline-block; color: #fff; text-decoration: none; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; border-bottom: 2px solid rgba(255, 255, 255, .45); line-height: 1.25; }
.phone-big:hover { color: #fff; border-bottom-color: #fff; }
.phone-note { margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: 1rem; }
.contact-card { background: var(--card); color: var(--ink); border-radius: 18px; padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 30px 60px -30px rgba(0, 30, 70, .45); }
.contact-card dl { margin: 0; display: grid; gap: 22px; }
.contact-card dt { font-size: .9375rem; color: var(--ink-2); margin-bottom: 2px; }
.contact-card dd { margin: 0; font-size: 1.125rem; font-weight: 500; }
.contact-card dd a { font-weight: 600; }
.contact-card .company { padding-top: 22px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink-2); line-height: 1.55; }
.contact-card .company strong { color: var(--ink); font-weight: 600; }
.todo { background: #FFF3C4; color: #5A4600; border-radius: 4px; padding: 0 6px; font-weight: 500; }

/* Footer */
.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

/* Pagini simple (confidențialitate) */
.page { padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: .5em; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .updated { font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .person { grid-template-columns: 1fr; grid-template-areas: "photo" "head" "text"; }
  .portrait { max-width: 220px; margin-bottom: 20px; }
}
@media (max-width: 900px) {
  .hero-grid, .about, .services, .contact { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .services-intro { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), var(--cyan)); }
  .step { padding-left: 80px; }
  .step-num { position: absolute; left: 0; top: -6px; margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .team { grid-template-columns: 1fr; }
  .person { grid-template-columns: 104px 1fr; grid-template-areas: "photo head" "text text"; gap: 0 20px; align-items: center; }
  .person .portrait { max-width: none; margin-bottom: 18px; }
  .person .initials { font-size: 2rem; }
  .service { grid-template-columns: 1fr; }
  .brand span { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
