/* Condor S.R.L. | design system
   Paleta vine din lucrările firmei: oțel de conductă (albastru), apă, colector, semnal de șantier (portocaliu). */
:root {
    --ink: #0c2d48;
    --blue: #1d5fb4;
    --water: #3aa6c4;
    --sewer: #5e8c86;
    --signal: #f2641d;
    --mist: #edf2f6;
    --paper: #ffffff;
    --line: #c9d3da;
    --muted: #4a6178;
    --font-ui: "Segoe UI Variable Text", "Aptos", "Avenir Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --font-head: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", "Avenir Next Condensed", "Franklin Gothic Medium", system-ui, sans-serif;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
    --gap: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 1.0625rem/1.65 var(--font-ui); color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.small { font-size: .9rem; color: var(--muted); }

.container { width: min(100% - 2 * var(--pad), 72rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

/* Butoane */
.btn { display: inline-block; font: 600 1rem/1 var(--font-ui); padding: .95rem 1.4rem; border: 2px solid transparent; border-radius: 4px; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--blue); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.link-arrow { font-weight: 600; text-decoration-thickness: 2px; }

/* Antet */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand__mark { color: var(--blue); flex: none; }
.brand__window { fill: var(--signal); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font: 700 1.6rem/1 var(--font-head); letter-spacing: .02em; }
.brand__sub { font-size: .72rem; color: var(--muted); margin-top: .15rem; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .6rem .9rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }
.nav-toggle { display: none; width: 3rem; height: 3rem; border: 2px solid var(--ink); background: transparent; border-radius: 4px; cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 50%; width: 1.25rem; height: 2px; background: var(--ink); content: ""; transform: translateX(-50%); transition: transform .2s, opacity .2s; }
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { top: -7px; left: 50%; }
.nav-toggle__bars::after { top: 7px; left: 50%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
    .js .nav-toggle { display: block; }
    .js .nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1rem; }
    .js .nav.is-open { display: block; }
    .nav ul { flex-direction: column; }
    .nav a { padding: .9rem 0; border-bottom: 1px solid var(--mist); }
    .nav a[aria-current="page"] { border-bottom-color: var(--signal); }
    .no-js .site-header__bar { flex-wrap: wrap; padding-block: .75rem; }
    .no-js .nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* Hero */
.hero { background: var(--mist); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.hero__copy { padding-bottom: clamp(1rem, 4vw, 3.5rem); }
.hero__copy h1 { max-width: 18ch; }
.hero__art { margin: 0; }
@media (min-width: 900px) {
    .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-block: clamp(2.5rem, 6vw, 5rem); }
    .hero__copy { padding-bottom: 0; }
    .hero__copy h1 { max-width: 15ch; font-size: clamp(2.1rem, 1rem + 3vw, 3.4rem); }
}

/* Desen tehnic din hero */
.ha { width: 100%; }
.ha-hatch { stroke: var(--line); stroke-width: 1.2; }
.ha-aquifer { fill: var(--water); opacity: .22; }
.ha-watertable { fill: none; stroke: var(--water); stroke-width: 2; }
.ha-edge { stroke: var(--ink); stroke-width: 2; }
.ha-road { fill: var(--ink); }
.ha-mark { stroke: var(--mist); stroke-width: 2; stroke-dasharray: 14 12; }
.ha-base { fill: #b9c6cf; }
.ha-wall { fill: none; stroke: var(--ink); stroke-width: 22; }
.ha-water { fill: none; stroke: var(--water); stroke-width: 16; }
.ha-sewer { fill: none; stroke: var(--sewer); stroke-width: 28; }
.ha-wall[d^="M0 330"] { stroke-width: 34; }
.ha-flow { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 6 14; opacity: .85; }
.ha-flow-up { fill: none; stroke: var(--water); stroke-width: 2.5; stroke-dasharray: 5 9; }
.ha-service { fill: none; stroke: var(--water); stroke-width: 4; }
.ha-house-body { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.ha-house-door { fill: var(--ink); }
.ha-house-pane { stroke: var(--ink); stroke-width: 2; }
.ha-roof { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linejoin: miter; stroke-linecap: square; }
.ha-shaft { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.ha-rung { stroke: var(--ink); stroke-width: 1.5; }
.ha-cover { fill: var(--signal); }
.ha-screen { stroke: var(--ink); stroke-width: 2; }
.ha-plant rect { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.ha-plant path { fill: none; stroke: var(--sewer); stroke-width: 2.5; }
.ha-dim { fill: none; stroke: var(--signal); stroke-width: 2; }
.ha-label { font: 600 12.5px var(--font-ui); fill: var(--ink); paint-order: stroke; stroke: var(--mist); stroke-width: 5px; stroke-linejoin: round; }
.ha-label--mid { text-anchor: middle; }
.ha-label--end { text-anchor: end; }

@media (max-width: 640px) {
    .ha-label { font-size: 15px; stroke-width: 6px; }
    .ha-label--minor { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .ha-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ha-draw 1.5s cubic-bezier(.3, .6, .2, 1) forwards; }
    .ha-d1 { animation-delay: .25s; }
    .ha-d2 { animation-delay: .75s; }
    .ha-fill, .ha-flow { opacity: 0; animation: ha-in .6s ease-out 1.4s forwards; }
    .ha-flow { animation: ha-in .6s ease-out 1.8s forwards, ha-flow 5s linear 1.8s infinite; }
    .ha-flow--slow { animation: ha-in .6s ease-out 2.1s forwards, ha-flow 9s linear 2.1s infinite; }
    .ha-flow-up { animation: ha-up 4s linear infinite; }
}
@keyframes ha-draw { to { stroke-dashoffset: 0; } }
@keyframes ha-in { to { opacity: .9; } }
@keyframes ha-flow { to { stroke-dashoffset: -20; } }
@keyframes ha-up { to { stroke-dashoffset: 14; } }

/* Cifre */
.facts { border-bottom: 1px solid var(--line); }
.facts__list { display: grid; margin-block: 0; }
.facts__list div { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.facts__list div:first-child { border-top: 0; }
.facts__list dt { font: 700 1.45rem/1.2 var(--font-head); }
.facts__list dd { margin: .2rem 0 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 760px) {
    .facts__list { grid-template-columns: repeat(3, 1fr); }
    .facts__list div { border-top: 0; border-left: 1px solid var(--line); padding: 1.8rem 1.5rem; }
    .facts__list div:first-child { border-left: 0; padding-left: 0; }
}

/* Secțiuni */
.section { padding-block: var(--gap); }
.section--tint { background: var(--mist); }
.section h2 { margin-bottom: 1.2rem; }
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { max-width: 22ch; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); }
.page-head .lead { margin-bottom: 0; }
.news__date { font-weight: 600; color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }

/* Domenii */
.domains { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 2px solid var(--ink); }
.domain { position: relative; display: grid; gap: 1rem 2.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.domain:hover { background: var(--mist); }
.domain__head h3 { margin-bottom: .35rem; }
.domain__head p { margin: 0; color: var(--muted); max-width: 30rem; }
.domain__caps { list-style: none; margin: 0; padding: 0; font-size: .98rem; }
.domain__caps li { padding: .2rem 0 .2rem 1.1rem; position: relative; }
.domain__caps li::before { content: ""; position: absolute; left: 0; top: .85em; width: .5rem; height: 2px; background: var(--signal); }
.domain__count { font: 700 1.15rem/1 var(--font-head); color: var(--blue); text-decoration: none; white-space: nowrap; }
.domain__count::after { content: ""; position: absolute; inset: 0; }
.domain__count:hover { text-decoration: underline; }
@media (min-width: 900px) {
    .domain { grid-template-columns: 1.1fr 1.2fr auto; align-items: start; padding-inline: 1rem; }
}

/* Bandă albastră */
.band { background: var(--ink); color: #fff; padding-block: var(--gap); }
.band h2 { max-width: 20ch; margin-bottom: 2.5rem; }
.band__grid { display: grid; gap: 0; }
.band article { padding: 1.6rem 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.band article p { color: #d3e0ea; }
.band h3 { font-size: 1.9rem; }
@media (min-width: 860px) {
    .band__grid { grid-template-columns: repeat(3, 1fr); }
    .band article { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .28); padding: .4rem 1.8rem 1rem; }
    .band article:first-child { border-left: 0; padding-left: 0; }
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; }
.tags span { font-size: .88rem; padding: .2rem .7rem; border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; }
.tags--quiet { margin: .6rem 0 0; }
.tags--quiet span { border-color: var(--line); color: var(--muted); }

/* Împărțiri de conținut */
.split, .prose-grid, .ident, .contact { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 4rem; }
    .prose-grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; }
    .ident { grid-template-columns: 1fr 1.2fr; align-items: start; gap: 4rem; }
    .contact { grid-template-columns: 1fr 1.4fr; gap: 4.5rem; align-items: start; }
}
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .5rem; padding-left: .3rem; }
.plain-list li::marker { color: var(--signal); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.eu-note { margin-top: 2rem; padding: 1.2rem 1.4rem; border-left: 4px solid var(--blue); background: var(--mist); font-size: .98rem; }

/* Certificate */
.cert-row, .certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); }
.cert-row li, .certs li { text-align: center; font-size: .95rem; font-weight: 600; }
.cert-row img, .certs img { width: 100%; aspect-ratio: 640 / 880; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(12, 45, 72, .12); margin-bottom: .6rem; transition: transform .2s; }
.certs a:hover img { transform: translateY(-4px); }
.certs p { margin: 0; font-weight: 400; color: var(--muted); }
.certs strong { color: var(--ink); }
.iqnet { margin-top: 2rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(12, 45, 72, .86); }
.lightbox img { max-height: 92vh; width: auto; margin: auto; background: #fff; }
.lightbox button { position: absolute; top: .5rem; right: .5rem; }

/* Organigramă și date */
.org { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.org li { padding: .75rem 1rem; background: var(--mist); border-left: 4px solid var(--blue); font-weight: 600; font-size: .98rem; }
@media (min-width: 560px) { .org { grid-template-columns: 1fr 1fr; } }
.defs { margin: 0; }
.defs div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.defs dt { font-size: .88rem; color: var(--muted); }
.defs dd { margin: .1rem 0 0; font-weight: 600; }
.doc { margin: 0; }
.doc img { width: 100%; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(12, 45, 72, .12); }
.doc figcaption { margin-top: .7rem; font-size: .9rem; color: var(--muted); }
.sidebox { background: var(--mist); padding: 1.6rem; border-top: 4px solid var(--blue); align-self: start; }

/* Știri și îndemn */
.news { max-width: 46rem; }
.cta { background: var(--blue); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta h2 { margin-bottom: .4rem; }
.cta p { margin: 0; color: #e3eefb; }
.cta .actions { margin: 0; }
.cta__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1fr auto; } }
.cta a:focus-visible { outline-color: #fff; }

/* Portofoliu */
.filters { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; gap: .5rem; align-items: baseline; padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; background: var(--paper); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__n { font-weight: 400; opacity: .75; font-size: .88rem; }
.search { display: flex; gap: .5rem; max-width: 36rem; }
.search input { flex: 1; min-width: 0; }
.results-count { font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.works { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.work { padding: 1.2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .1rem 2rem; }
.work__title { margin: 0; font-weight: 600; max-width: 46rem; }
.work__place { margin: 0; color: var(--muted); font-size: .95rem; }
.empty { padding: 2rem 0; color: var(--muted); }
@media (min-width: 900px) {
    .work { grid-template-columns: minmax(0, 1fr) 14rem; align-items: start; }
    .work__title { grid-column: 1; }
    .work__place { grid-column: 2; grid-row: 1; }
    .work .tags { grid-column: 1 / -1; }
}

/* Formulare */
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; gap: 0 1.2rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .98rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #7d90a1; border-radius: 4px; padding: .8rem .9rem; }
textarea { resize: vertical; min-height: 9rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .92rem; margin: .35rem 0 0; font-weight: 600; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 0 .7rem; align-items: start; }
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--blue); }
.field--check label { font-weight: 400; margin: 0; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 4px solid; }
.notice--ok { background: #e8f5ec; border-color: #1e7a3c; }
.notice--error { background: #fdecea; border-color: #b3261e; }
.contact address { font-style: normal; }
.contact__info h2 { font-size: 1.5rem; }

/* Subsol */
.site-footer { background: var(--ink); color: #d3e0ea; padding-top: 3.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr 1.3fr 1fr; } }
.site-footer__brand { font: 700 1.3rem var(--font-head); color: #fff; margin-bottom: .4rem; }
.site-footer__title { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__links { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.muted-on-ink { color: #a9bdcc; font-size: .9rem; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .2); padding-block: 1.2rem; font-size: .9rem; color: #a9bdcc; }
.site-footer__legal p { margin: 0; }
.site-footer a:focus-visible { outline-color: #fff; }

@media print {
    .site-header, .site-footer, .cta, .hero__art, .skip { display: none; }
    body { font-size: 11pt; }
}
