/* Inter găzduit pe site (fără Google Fonts: nu trimitem IP-ul vizitatorilor la Google) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* paleta caldă, din poze: piatră, teracotă, albastru prăfuit */
  --bg: #ffffff;
  --fg: #1c1917;
  --muted: #57534e;
  --faint: #a8a29e;
  --line: #ece9e4;
  --card: #ffffff;
  --soft: #faf8f5;
  --accent: #b4532a;
  --accent-soft: #fbf1eb;
  --blue: #5b7a99;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--fg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11";
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── top bar ── */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; font-size: 15px; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
.links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--fg); }
@media (max-width: 640px) { .links .hide-sm { display: none; } }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, opacity .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.ghost { border-color: var(--line); background: var(--card); color: var(--fg); }
.btn.ghost:hover { border-color: var(--faint); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.links .btn.primary { color: var(--bg); }

/* ── hero ── */
.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px 5px 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4d9a6a; box-shadow: 0 0 0 4px color-mix(in srgb, #4d9a6a 18%, transparent); }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: .98; letter-spacing: -.045em; font-weight: 850; margin-top: 26px; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 40ch; margin-top: 24px; line-height: 1.5; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 72px; }
.facts div { padding: 22px 24px 0 0; }
.facts b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } .facts div { padding: 16px 0 0; } }

/* ── sections ── */
section.blk { padding: 72px 0; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin-top: 12px; max-width: 20ch; }
h2 .g { color: var(--faint); }
.intro { color: var(--muted); font-size: 17px; max-width: 58ch; margin-top: 16px; }

/* ── featured project ── */
.feature { margin-top: 40px; border: 1px solid var(--line); background: var(--card); border-radius: 24px; overflow: hidden; }
.feature .txt { padding: 36px 36px 8px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.feature h3 { font-size: 30px; letter-spacing: -.03em; font-weight: 800; line-height: 1.1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 650; letter-spacing: 0; color: #15803d; background: color-mix(in srgb, #22c55e 14%, transparent); border-radius: 999px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 6px; }
.feature .txt p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.feature .txt ul { list-style: none; display: grid; gap: 10px; }
.feature .txt li { font-size: 14.5px; color: var(--muted); padding-left: 22px; position: relative; }
.feature .txt li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.feature .txt li b { color: var(--fg); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips span { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 2px 9px; }
.feature .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 820px) {
  .feature .txt { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px 4px; }
  .stage { padding: 20px 14px 0; }
  .mock .body { padding: 20px 18px 0; }
}

/* ── services ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 24px; }
.card .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card .ic svg { width: 20px; height: 20px; }
.card h4 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; margin-top: 18px; }
.card p { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ── other projects ── */
.list { margin-top: 32px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row h4 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.row p { grid-column: 1 / -1; font-size: 14.5px; color: var(--muted); }
.row .meta { font-size: 13px; color: var(--faint); }

/* ── contact ── */
.contact { background: var(--soft); border: 1px solid var(--line); border-radius: 28px; padding: 64px 48px; margin: 24px 0 72px; }
.contact h2 { max-width: 16ch; }
.contact p { color: var(--muted); margin-top: 16px; font-size: 17px; max-width: 50ch; }
.contact .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact .btn.primary { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .contact { padding: 44px 24px; border-radius: 22px; } }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 13.5px; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer nav { display: flex; gap: 18px; }

/* ── résumé ── */
.cv { max-width: 760px; margin: 0 auto; padding: 56px 20px 40px; }
.cv-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.cv-head h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.04em; line-height: 1; font-weight: 850; }
.cv-head p { color: var(--muted); margin-top: 10px; }
.cv section { margin-top: 44px; }
.cv h3.sec { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.item { display: grid; grid-template-columns: 140px 1fr; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .when { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 3px; }
.item h4 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.item .role { font-size: 14px; color: var(--muted); }
.item p, .item li { font-size: 14.5px; color: var(--muted); }
.item p + p, .item .role + p { margin-top: 6px; }
.item ul { margin: 8px 0 0 18px; }
.item li + li { margin-top: 6px; }
.item li b { color: var(--fg); font-weight: 650; }
@media (max-width: 560px) { .item { grid-template-columns: 1fr; } }

@media print {
  :root { --bg: #fff; --fg: #000; --muted: #333; --faint: #666; --line: #ddd; --card: #fff; --accent: #c81e1e; }
  .bar, footer, .noprint { display: none !important; }
  .cv { padding: 0; max-width: none; }
  .cv section { margin-top: 22px; }
  .item { break-inside: avoid; padding: 10px 0; }
  a { text-decoration: none; }
}

/* ── reconstrucția unui răspuns Agent Juridic (HTML, nu captură) ── */
.stage { padding: 32px 36px 0; margin-top: 22px; border-top: 1px solid var(--line); background: var(--soft); }
.mock { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -28px rgba(0,0,0,.18); font-size: 14px; color: #171717; overflow: hidden; }
.mock .top { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-bottom: 1px solid #f0f0f0; font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.mock .top svg { width: 18px; height: 18px; }
.mock .top .mode { margin-left: auto; letter-spacing: 0; font-weight: 600; font-size: 11.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 9px; }
.mock .body { padding: 26px 32px 0; position: relative; max-height: 560px; overflow: hidden; }
.mock .body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, #fff); }
.mock .q { margin-left: auto; max-width: 82%; background: #f5f5f5; border-radius: 16px 16px 4px 16px; padding: 12px 16px; line-height: 1.5; }
.mock .trace { margin-top: 22px; padding-left: 14px; border-left: 2px solid #f0f0f0; display: grid; gap: 6px; color: #737373; font-size: 13px; }
.mock .trace .h { color: #a3a3a3; font-size: 12.5px; }
.mock .trace .ok::before { content: "✓"; color: #16a34a; font-weight: 700; margin-right: 8px; }
.mock .arts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 2px 20px; }
.mock .arts span { font-size: 11.5px; color: #404040; border: 1px solid #e5e5e5; border-radius: 7px; padding: 2px 8px; background: #fff; }
.mock .ans { margin-top: 20px; line-height: 1.6; }
.mock .ans h5 { font-size: 14.5px; font-weight: 700; margin: 16px 0 6px; }
.mock .ans h5:first-child { margin-top: 0; }
.mock .ans ul { margin-left: 18px; display: grid; gap: 6px; }
.mock .ans b { font-weight: 650; }
.mock .cite { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: #fecaca; text-underline-offset: 3px; }
.caption { text-align: center; font-size: 13px; color: var(--faint); padding: 14px 0 18px; }
@media (max-width: 640px) {
  .mock { font-size: 13px; }
  .mock .top { letter-spacing: .14em; white-space: nowrap; padding: 0 14px; }
  .mock .top .mode { white-space: nowrap; }
  .mock .body { padding: 18px 14px 0; max-height: 600px; }
  .mock .q { max-width: 94%; }
  .mock .trace { padding-left: 10px; }
  .mock .arts { margin-left: 0; }
  .mock .arts span:nth-child(n+4) { display: none; }
}
.ajlogo { width: 40px; height: auto; }
.mock .top img { width: 24px; height: auto; }
.withlogo { display: flex !important; align-items: center; gap: 8px; }
.withlogo img { width: 22px; height: auto; }

/* ── hero cu portret ── */
.hero .grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.portrait .badge { position: absolute; left: -22px; bottom: 34px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 30px -14px rgba(28,25,23,.25); font-size: 13px; }
.portrait .badge img { width: 26px; height: auto; aspect-ratio: auto; border-radius: 0; }
.portrait .badge b { display: block; font-size: 13.5px; }
.portrait .badge span { color: var(--muted); }
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { max-width: 360px; order: -1; }
  .portrait .badge { left: auto; right: -10px; bottom: 20px; }
}

/* ── about ── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 8px; }
.about .pics { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: end; }
.about .pics img { width: 100%; height: auto; border-radius: 22px; object-fit: cover; }
.about .pics .a { aspect-ratio: 1 / 1; }
.about .pics .b { aspect-ratio: 4 / 5; margin-bottom: 48px; }
.about .txt p { color: var(--muted); font-size: 16.5px; margin-top: 14px; }
.about .txt p:first-of-type { color: var(--fg); font-size: 19px; line-height: 1.5; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } .about .pics .b { margin-bottom: 24px; } }

/* avatar în bara de sus */
.logo .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }

/* ── prima secțiune: încape pe orice ecran (și pe cele late, dar scunde) ── */
.hero { padding: clamp(32px, 7vh, 88px) 0 clamp(40px, 6vh, 72px); }
.hero h1 { font-size: clamp(38px, min(6.2vw, 8.6vh), 74px); margin-top: clamp(16px, 2.6vh, 26px); }
.hero .sub { font-size: clamp(16px, min(1.9vw, 2.4vh), 20px); margin-top: clamp(14px, 2.4vh, 24px); }
.hero .cta { margin-top: clamp(20px, 3.4vh, 34px); }
.facts { margin-top: clamp(40px, 7vh, 72px); }
.portrait { justify-self: end; width: 100%; max-width: calc((100svh - 150px) * 0.8); min-width: 260px; }
@media (max-width: 860px) {
  .portrait { justify-self: start; max-width: min(340px, 72vw); min-width: 0; }
  .hero h1 { font-size: clamp(36px, 9.6vw, 60px); }
  .hero .sub { font-size: 17px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 34px; }
  .bar .wrap { height: 58px; }
  .links { gap: 12px; }
}
@media (min-width: 1600px) { .wrap { max-width: 1240px; } }
@media (max-width: 860px) { .portrait { max-width: min(250px, 62vw); } .portrait .badge { right: -60px; } }
@media (max-width: 400px) { .portrait .badge { right: -40px; padding: 8px 12px; } }

/* ── contact: formular + programare ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact .label { display: block; }
.book { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.book b { display: block; font-size: 15.5px; }
.book span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; max-width: 34ch; }
.contact .small { font-size: 13.5px; margin-top: 14px; color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.form label i { font-style: normal; font-weight: 400; color: var(--faint); }
.form input, .form textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--fg); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { justify-content: center; }
.form .small { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .form .two { grid-template-columns: 1fr; } .form { padding: 18px; } }
[id] { scroll-margin-top: 76px; }

/* profiluri sociale (în Contact) */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--fg); border-color: var(--faint); }
.social svg { width: 15px; height: 15px; }
footer nav { flex-wrap: wrap; }

/* Ecrane înguste: secțiuni mai strânse; pozele din About rămân decalate, dar fără gol mare */
@media (max-width: 860px) {
  section.blk { padding: 44px 0; }
  .hero { padding-bottom: 24px; }
  .about .pics { max-width: 560px; gap: 10px; }
  .about .pics .b { margin-bottom: 28px; }
  section.blk#about { padding-top: 4px; }
  .about { margin-top: 0; }
}

/* pagini de text (Privacy) */
.prose h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.035em; line-height: 1.05; font-weight: 850; margin-top: 10px; }
.prose .muted { color: var(--faint); font-size: 14px; margin-top: 8px; }
.prose h3.sec { margin-top: 34px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose p + p { margin-top: 10px; }
.prose ul { margin: 8px 0 10px 20px; display: grid; gap: 6px; }
.prose li b { color: var(--fg); font-weight: 650; }
.social svg[stroke] { fill: none; }
