/* ===================== CIVILA INVEST — design system ===================== */
:root {
  --ink: #0f1613;          /* fundal închis, cu tentă verde */
  --ink-2: #141d19;
  --ink-3: #1b2620;
  --line-dark: rgba(255,255,255,.09);
  --paper: #f6f7f4;        /* fundal deschis */
  --paper-2: #ffffff;
  --line-light: #e3e6e0;
  --green: #1f8a4c;        /* verdele din logo */
  --green-strong: #2aa35d;
  --orange: #f28c28;       /* portocaliul din logo */
  --yellow: #f2c94c;
  --txt-on-dark: #e9ede9;
  --muted-on-dark: #9fb0a6;
  --txt-on-light: #1c2420;
  --muted-on-light: #5d6a62;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(9, 14, 11, .45);
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
a, button, .card, .filter { -webkit-tap-highlight-color: rgba(42, 163, 93, .16); }
body {
  font-family: var(--font-body);
  color: var(--txt-on-light);
  background: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; }
section { scroll-margin-top: 84px; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-strong), var(--green));
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(42, 163, 93, .65);
}
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(42, 163, 93, .8); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--txt-on-dark); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* ===================== NAV ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(13, 19, 16, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.6);
  padding: 8px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-logo {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 10px; padding: 6px 12px;
}
.brand-logo img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 600;
  color: var(--txt-on-dark);
  position: relative;
  padding: 4px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--orange);
  transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 170px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(13,19,15,.96) 0%, rgba(13,19,15,.86) 45%, rgba(13,19,15,.66) 100%),
    url("../assets/img/hero-crane.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}
.hero h1 em {
  font-style: normal; color: transparent;
  background: linear-gradient(120deg, var(--green-strong), var(--yellow) 80%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub { color: var(--muted-on-dark); font-size: 1.08rem; max-width: 34rem; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 165px; gap: 14px;
}
.hero-mosaic figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-mosaic figure:hover img { transform: scale(1.06); }
.hero-mosaic figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem .85rem .6rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(transparent, rgba(10,14,11,.85));
}
.hero-mosaic .m1 { grid-column: 1; grid-row: 1 / span 2; }
.hero-mosaic .m2 { grid-column: 2; grid-row: 1; }
.hero-mosaic .m3 { grid-column: 1; grid-row: 3; }
.hero-mosaic .m4 { grid-column: 2; grid-row: 2 / span 2; }

.stats-band {
  position: relative; z-index: 1;
  margin-top: 4.2rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(20, 29, 24, .6);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.stat { padding: 1.6rem 1rem; text-align: center; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
}
.stat-label { font-size: .82rem; color: var(--muted-on-dark); letter-spacing: .03em; }

/* ===================== CLIENTS MARQUEE ===================== */
.clients { background: var(--ink-2); border-block: 1px solid var(--line-dark); padding: 1.6rem 0 1.8rem; }
.clients-title {
  text-align: center; font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .26em;
  color: var(--muted-on-dark); margin-bottom: 1.1rem;
}
.marquee { overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; gap: 3.2rem; white-space: nowrap; animation: scroll 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: rgba(233, 237, 233, .55);
  transition: color .25s ease;
}
.marquee-track span:hover { color: var(--orange); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===================== SECTIONS ===================== */
.section { padding: 6.2rem 0; }
.section-light { background: var(--paper); color: var(--txt-on-light); }
.section-dark { background: var(--ink); color: var(--txt-on-dark); }
.section-head { max-width: 46rem; margin-bottom: 3.4rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.015em; }
.section-note { margin-top: .9rem; color: var(--muted-on-light); font-size: .95rem; }
.section-note strong { color: var(--txt-on-light); font-weight: 700; }
.section-dark .section-head h2 { color: #fff; }

/* ===== Despre noi ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.4rem; align-items: start; margin-bottom: 4rem; }
.about-text .lead { font-size: 1.15rem; font-weight: 500; margin-bottom: 1.2rem; }
.about-text p + p { margin-top: 1.1rem; }
.about-text strong { color: var(--green); }
.about-photo { display: grid; gap: 14px; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.about-photo img:first-child { aspect-ratio: 16 / 6.5; }
/* a doua imagine e aproape patrata (Ramada in executie) — o lasam intreaga */
.about-photo img:last-child { aspect-ratio: 1 / 1; object-position: center 40%; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  background: var(--paper-2); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 2rem 1.7rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -22px rgba(28, 36, 32, .28);
  border-color: var(--green);
}
.service-ico {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(42,163,93,.14), rgba(242,140,40,.14));
  color: var(--green); margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.service-card p { font-size: .93rem; color: var(--muted-on-light); }

/* ===== Featured projects ===== */
.feature {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem;
  align-items: center; margin-bottom: 4.6rem;
}
.feature:last-child { margin-bottom: 0; }
.feature-rev .feature-media { order: 2; }
.feature-rev .feature-text { order: 1; }
.feature-media { cursor: zoom-in; }
.feature-media > img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.feature-thumbs.thumbs-2 { grid-template-columns: repeat(2, 1fr); }
.feature-thumbs img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 9px; opacity: .85; transition: opacity .25s ease, transform .25s ease;
}
.feature-thumbs img:hover { opacity: 1; transform: translateY(-3px); }
.feature-tag {
  display: inline-block;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--orange);
  border: 1px solid rgba(242,140,40,.4);
  padding: .35rem .8rem; border-radius: 99px; margin-bottom: 1.1rem;
}
.tag-green { color: var(--green); border-color: rgba(31,138,76,.45); }
.feature-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: #fff; margin-bottom: .5rem; }
.section-light .feature-text h3, .newproj-text h3 { color: var(--txt-on-light); }
.feature-loc { font-size: .88rem; font-weight: 600; color: var(--muted-on-dark); margin-bottom: 1rem; }
.section-light .feature-loc { color: var(--muted-on-light); }
.feature-text > p:last-child { color: var(--muted-on-dark); }
.section-light .feature-text > p:last-child { color: var(--muted-on-light); }

.pano { margin: 0 0 4.6rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pano img { width: 100%; display: block; }

/* ===== Portfolio ===== */
.filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.6rem; }
.filter {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  padding: .6rem 1.3rem; border-radius: 99px;
  border: 1.5px solid var(--line-light); background: var(--paper-2);
  color: var(--muted-on-light); cursor: pointer;
  transition: all .22s ease;
}
.filter:hover { border-color: var(--green); color: var(--green); }
.filter.active { background: var(--green); border-color: var(--green); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line-light);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -24px rgba(28,36,32,.35); }
.card.hidden { display: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.05); }
.card figcaption { padding: 1.1rem 1.2rem 1.25rem; }
.card-year {
  display: inline-block; font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .35rem;
}
.card h4 { font-size: 1.02rem; margin-bottom: .25rem; }
.card figcaption p { font-size: .84rem; color: var(--muted-on-light); }
.card-count {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .06em;
  color: #fff; background: rgba(10, 14, 11, .68);
  backdrop-filter: blur(4px);
  padding: .3rem .65rem; border-radius: 99px;
  pointer-events: none;
}
.card-count::before { content: "📷 "; font-size: .62rem; }
.noimg {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(31,138,76,.92), rgba(15,22,19,.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
}
.noimg span { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,.28); }
.noimg-tall { aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== Harta acoperirii ===== */
.map-wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.4rem; align-items: start; }
.map-figure {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem .9rem;
}
.map-zoom {
  position: absolute; top: 1rem; right: 1rem;
  display: flex; gap: .35rem; z-index: 2;
}
.map-zoom button {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  min-width: 32px; height: 32px; padding: 0 .7rem;
  border: 1px solid var(--line-light); background: var(--paper-2);
  color: var(--muted-on-light); border-radius: 8px; cursor: pointer;
  transition: all .2s ease;
}
.map-zoom button:last-child { font-size: .76rem; font-weight: 600; }
.map-zoom button:hover { border-color: var(--green); color: var(--green); }
#roMap {
  width: 100%; height: auto; display: block;
  overflow: hidden;              /* obligatoriu: la zoom, altfel iese din sectiune */
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(31,138,76,.04), transparent);
}
/* cand e apropiata, harta se plimba cu degetul; altfel degetul trebuie sa scroleze pagina */
#roMap.zoomed { touch-action: none; cursor: grab; }
#roMap.dragging { cursor: grabbing; }
.ro-outline {
  fill: rgba(31, 138, 76, .10);
  stroke: var(--green);
  stroke-width: 2;
  stroke-linejoin: round;
}
.map-link {
  fill: none; stroke: var(--orange); stroke-width: 1.2;
  stroke-dasharray: 5 6; opacity: .45;
  stroke-dashoffset: 400;
  animation: traseu 1.6s ease-out forwards;
}
@keyframes traseu { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .map-link { animation: none; stroke-dashoffset: 0; }
}
.map-pin:focus { outline: none; }
.map-pin:focus-visible .pin-dot { stroke: var(--green); stroke-width: 3.5; }
.map-pin:focus-visible .pin-halo { opacity: .35; }
.map-pin.is-hq .pin-dot { fill: var(--green); }
.map-pin.is-hq .pin-halo { fill: var(--green); }
/* lucrari aflate acum in executie — punct galben, cu halou care pulseaza */
.map-pin.is-activ .pin-dot { fill: var(--yellow); }
.map-pin.is-activ .pin-halo { fill: var(--yellow); opacity: .3; animation: pulsActiv 2.4s ease-in-out infinite; }
@keyframes pulsActiv {
  0%, 100% { transform: scale(1); opacity: .28; }
  50% { transform: scale(1.35); opacity: .12; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin.is-activ .pin-halo { animation: none; }
}
/* articolul catre care sare harta, evidentiat scurt */
.newproj.evidentiat {
  outline: 3px solid var(--orange); outline-offset: 14px;
  border-radius: 6px; transition: outline-color .4s ease;
}
.pin-hq-ring {
  fill: none; stroke: var(--green); stroke-width: 1.6; opacity: .55;
}
.map-pin { cursor: pointer; }
.map-pin .pin-halo {
  fill: var(--orange); opacity: .18;
  transform-box: fill-box; transform-origin: center;
  transition: opacity .25s ease, transform .25s ease;
}
.map-pin .pin-dot {
  fill: var(--orange); stroke: #fff; stroke-width: 1.6;
  transition: fill .2s ease;
}
.map-pin .pin-label {
  font-family: var(--font-display); font-weight: 700;
  fill: var(--txt-on-light); paint-order: stroke;
  stroke: #fff; stroke-linejoin: round;
  pointer-events: none;
  transition: opacity .25s ease;
}
/* etichetele localitatilor mici apar doar cand harta e apropiata */
.map-pin.is-mic .pin-label { opacity: 0; }
#roMap.zoomed .map-pin.is-mic .pin-label { opacity: 1; }
#roMap { transition: none; }
.map-pin:hover .pin-halo,
.map-pin.active .pin-halo { opacity: .35; transform: scale(1.35); }
.map-pin:hover .pin-dot { fill: var(--green); }
.map-pin.active .pin-dot { fill: var(--green); stroke-width: 2.4; }
.map-hint {
  margin-top: .6rem; text-align: center;
  font-size: .78rem; color: var(--muted-on-light);
}

.map-panel {
  background: var(--ink-2); color: var(--txt-on-dark);
  border-radius: var(--radius); padding: 1.8rem;
  min-height: 320px;
}
.map-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.map-stats div { text-align: center; }
.map-stats strong {
  display: block; font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800; color: var(--orange); line-height: 1.1;
}
.map-stats span { font-size: .74rem; color: var(--muted-on-dark); }
.map-panel-empty > p { font-size: .88rem; color: var(--muted-on-dark); }
.map-reach {
  display: flex; gap: .6rem; align-items: flex-start;
  margin-top: 1.1rem; padding: .85rem 1rem;
  background: rgba(242, 140, 40, .09);
  border-left: 3px solid var(--orange);
  border-radius: 0 10px 10px 0;
  font-size: .86rem !important; line-height: 1.55;
  color: var(--txt-on-dark) !important;
}
.map-reach svg { flex: 0 0 auto; margin-top: .18rem; color: var(--orange); }
.map-reach strong { color: #fff; font-weight: 700; }
.map-panel-cta { margin-top: 1rem; font-weight: 600; color: var(--green-strong) !important; }
.map-panel h3 {
  font-size: 1.25rem; color: #fff; margin-bottom: .2rem;
}
.map-panel .mp-sub {
  font-size: .8rem; color: var(--orange); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.mp-list { list-style: none; padding: 0; margin: 0; max-height: 340px; overflow-y: auto; }
.mp-list li { border-top: 1px solid var(--line-dark); }
.mp-list button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: .7rem .2rem; color: var(--txt-on-dark);
  font-family: var(--font-body); font-size: .9rem;
  display: flex; gap: .8rem; align-items: baseline;
  transition: color .2s ease, padding-left .2s ease;
}
.mp-list button:hover { color: var(--orange); padding-left: .5rem; }
.mp-list .mp-year {
  font-family: var(--font-display); font-weight: 700; font-size: .76rem;
  color: var(--muted-on-dark); flex: 0 0 auto; min-width: 3.6rem;
}
.mp-back {
  margin-top: 1.2rem; background: none; border: 0; cursor: pointer;
  color: var(--green-strong); font-family: var(--font-display);
  font-weight: 600; font-size: .85rem; padding: 0;
}
.mp-back:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-panel { min-height: 0; }
}
@media (max-width: 640px) {
  .map-pin .pin-label { font-size: 15px; }
  .map-figure { padding: .8rem .6rem .6rem; }
}

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 800px; margin-inline: auto; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--green-strong), var(--orange));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 2.4rem 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--green-strong);
  transform: translateX(1.5px);
}
.tl-item:last-child::before { border-color: var(--orange); }
.tl-year {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--orange); display: block; margin-bottom: .3rem;
}
.tl-body h4 { color: #fff; font-size: 1.08rem; margin-bottom: .3rem; }
.tl-body p { color: var(--muted-on-dark); font-size: .95rem; }

/* ===== Proiecte noi ===== */
.newproj {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem;
  align-items: center; margin-bottom: 4.4rem;
}
.newproj:last-child { margin-bottom: 0; }
.newproj-rev > :first-child { order: 2; }
.newproj-rev > :last-child { order: 1; }
.newproj-media { cursor: zoom-in; }
.newproj-media > img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.newproj-media .feature-thumbs { grid-template-columns: repeat(2, 1fr); }
.newproj-media .feature-thumbs.thumbs-3 { grid-template-columns: repeat(3, 1fr); }
.newproj-media .feature-thumbs.thumbs-4 { grid-template-columns: repeat(4, 1fr); }
.np-video {
  width: 100%; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: #000;
}
.pn-credit {
  margin-top: 1.2rem; font-size: .85rem;
  color: var(--muted-on-light) !important;
}
.mai-multe { display: none; }   /* apare doar pe telefon, vezi media query-ul de jos */
.pn-credit a { color: var(--green); font-weight: 600; text-decoration: underline; }
.pn-credit a:hover { color: var(--orange); }
.newproj-text h3 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); margin-bottom: .5rem; }
.newproj-text > p:last-child { color: var(--muted-on-light); }
.proj-specs { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.proj-specs li {
  position: relative; padding-left: 1.5rem; margin-bottom: .45rem;
  font-size: .93rem; color: var(--muted-on-light);
}
.proj-specs li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--green);
}
.proj-quote {
  margin-top: 1.2rem; padding-left: 1rem;
  border-left: 3px solid var(--orange);
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  color: var(--txt-on-light) !important;
}

/* Before / after slider */
.ba {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1147 / 464; box-shadow: var(--shadow);
  user-select: none; touch-action: none; cursor: ew-resize;
  background: var(--ink-3);
  --pos: 50%;
}
/* pozele se pun din JS (data-bg) abia cand sliderul se apropie de ecran —
   altfel s-ar descarca ~1,5 MB la fiecare deschidere a paginii, si pe date mobile */
.ba-after, .ba-before { position: absolute; inset: 0; background-size: 200% 100%; }
.ba-after { background-position: left center; }
.ba-before { background-position: right center; clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; background: #fff; transform: translateX(-1.5px);
  box-shadow: 0 0 14px rgba(0,0,0,.5);
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
}
.ba-handle span::before {
  content: "◂ ▸"; font-size: .72rem; letter-spacing: 1px; color: var(--ink);
}
.ba-label {
  position: absolute; top: 12px;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(10,14,11,.72); color: #fff;
  padding: .3rem .7rem; border-radius: 6px;
}
.ba-label-l { left: 12px; }
.ba-label-r { right: 12px; }

/* varianta cu doua fotografii separate (nu o singura imagine cu doua jumatati).
   Imaginile se pun inline pe .ba-after / .ba-before, ca sa se rezolve fata de
   pagina, nu fata de acest fisier CSS. */
.ba-split { aspect-ratio: 4 / 3; }
.ba-split .ba-after,
.ba-split .ba-before {
  background-size: cover;
  background-position: center;
}

/* ===== Proiecte noi: stare de tranzitie ===== */
.proiecte-noi-gol {
  background: var(--paper-2);
  border: 1px dashed var(--line-light);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
.pn-titlu {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: var(--txt-on-light); margin-bottom: .6rem;
}
.proiecte-noi-gol p { color: var(--muted-on-light); }
.proiecte-noi-gol strong { color: var(--green); }
.pn-actiuni { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.pn-actiuni .btn-ghost { border-color: var(--line-light); color: var(--muted-on-light); }
.pn-actiuni .btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ===== CTA band ===== */
.cta-band {
  background:
    linear-gradient(115deg, rgba(15,22,18,.93), rgba(23,49,34,.9)),
    url("../assets/img/hala-panorama.jpg") center/cover no-repeat;
  padding: 5.4rem 0; text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: #fff; margin-bottom: .7rem; }
.cta-band p { color: var(--muted-on-dark); font-size: 1.08rem; margin-bottom: 2rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.4rem; align-items: start; }
.c-item { display: flex; gap: 1.1rem; margin-bottom: 1.7rem; }
.c-ico {
  flex: 0 0 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(42,163,93,.14); color: var(--green-strong);
}
.c-item h4 { color: #fff; font-size: .98rem; margin-bottom: .2rem; }
.c-item p, .c-item a { color: var(--muted-on-dark); font-size: .95rem; }
.c-item a:hover { color: var(--orange); }
.c-social { display: flex; gap: .8rem; margin: .4rem 0 1.8rem; }
.c-social a {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--muted-on-dark);
  transition: all .22s ease;
}
.c-social a:hover { color: #fff; border-color: var(--orange); background: rgba(242,140,40,.12); transform: translateY(-3px); }
.c-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.c-map iframe { width: 100%; height: 240px; border: 0; display: block; filter: grayscale(.2); }

.contact-form {
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 2.2rem;
}
.contact-form label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--muted-on-dark); margin-bottom: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: .4rem;
  background: var(--ink-3); border: 1px solid var(--line-dark);
  border-radius: 9px; padding: .8rem .95rem;
  color: var(--txt-on-dark); font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-strong); }
.contact-form textarea { resize: vertical; }
.check { display: flex; gap: .6rem; align-items: baseline; font-weight: 400 !important; }
.check input { width: auto; margin: 0; accent-color: var(--green-strong); }
.check a { color: var(--orange); text-decoration: underline; }
.form-note { font-size: .76rem; color: var(--muted-on-dark); margin-top: .9rem; }
.form-note.nota-ok { color: var(--green-strong); font-weight: 600; font-size: .85rem; }
.form-note.nota-eroare { color: var(--orange); font-weight: 600; font-size: .85rem; }
.form-note a { color: inherit; text-decoration: underline; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* ===== Footer ===== */
.site-footer { background: #0b100d; border-top: 1px solid var(--line-dark); padding-top: 4rem; color: var(--muted-on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.6rem; padding-bottom: 3rem; }
.f-brand .brand-logo { margin-bottom: 1.1rem; }
.f-motto { font-family: var(--font-display); font-weight: 600; color: var(--txt-on-dark); margin-bottom: .4rem; }
.f-small { font-size: .84rem; }
.f-col h5 {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--txt-on-dark); margin-bottom: 1.1rem;
}
.f-col a { display: block; font-size: .92rem; margin-bottom: .55rem; transition: color .2s ease; }
.f-col a:hover { color: var(--orange); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem; font-size: .82rem;
}
.footer-legal a:hover { color: var(--orange); }

/* ===== Lucrari de executie (sectiune dark) ===== */
.section-darker { background: #0b100d; }
.note-on-dark { color: var(--muted-on-dark) !important; }
.card-dark { background: var(--ink-2); border-color: var(--line-dark); }
.card-dark:hover { box-shadow: 0 26px 46px -20px rgba(0,0,0,.65); }
.card-dark h4 { color: #fff; }
.card-dark figcaption p { color: var(--muted-on-dark); }

/* ===== Fisa proiect (modal) ===== */
.pmodal {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(8, 12, 9, .9);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 5vh 4vw;
}
.pmodal.open { display: flex; }
.pmodal-box {
  position: relative;
  width: min(960px, 100%);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2.4rem 2.4rem 2.6rem;
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.pm-close {
  position: absolute; top: 14px; right: 20px;
  background: none; border: 0; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .7;
}
.pm-close:hover { opacity: 1; }
.pm-year {
  display: inline-block;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--orange); border: 1px solid rgba(242,140,40,.4);
  padding: .3rem .8rem; border-radius: 99px; margin-bottom: .9rem;
}
.pm-title { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .3rem; }
.pm-meta { color: var(--muted-on-dark); font-size: .92rem; margin-bottom: 1.6rem; }
.pm-section { margin-top: 1.4rem; }
.pm-section h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-strong); margin-bottom: .9rem;
}
.pm-exec h4 { color: var(--orange); }
.pm-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pm-thumbs img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 9px; cursor: zoom-in;
  transition: transform .2s ease, opacity .2s ease;
}
.pm-thumbs img:hover { transform: translateY(-3px); opacity: .9; }
@media (max-width: 640px) {
  .pmodal { padding: 3vh 3vw; }
  .pmodal-box { padding: 1.6rem 1.2rem 1.8rem; }
  .pm-thumbs { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 12, 9, .94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-stage { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin: 0; }
.lightbox img {
  max-width: min(1100px, 90vw); max-height: 80vh;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lb-caption {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  color: rgba(255,255,255,.85); text-align: center; padding-inline: 1rem;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 2.6rem; cursor: pointer; opacity: .7; transition: opacity .2s ease;
  line-height: 1; padding: .4rem .8rem;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 18px; right: 26px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); font-size: 3.4rem; }

/* ===================== RESPONSIVE ===================== */

/* --- meniul de sus: se strânge treptat, ca cele 7 butoane să stea pe un rând --- */
@media (max-width: 1060px) {
  .site-nav { gap: 1.15rem; }
  .site-nav a { font-size: .86rem; }
}
@media (max-width: 940px) {
  .site-nav { gap: .85rem; }
  .site-nav a { font-size: .8rem; }
  .brand-logo { padding: 5px 9px; }
  .brand-logo img { height: 30px; }
}

@media (max-width: 1000px) {
  .hero-grid, .about-grid, .feature, .newproj, .contact-grid { grid-template-columns: 1fr; }
  .feature-rev .feature-media, .newproj-rev > :first-child { order: 0; }
  .feature-rev .feature-text, .newproj-rev > :last-child { order: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line-dark); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 130px; }
  .hero-mosaic { grid-auto-rows: 140px; }
}

/* sub această lățime cele 7 linkuri nu mai încap pe un rând -> meniu hamburger */
@media (max-width: 800px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 16, 13, .98);
    padding: .4rem 5% 1.1rem; display: none;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    max-height: 80vh; overflow-y: auto;
    box-shadow: 0 24px 40px -22px rgba(0,0,0,.8);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem .2rem; width: 100%; font-size: 1rem; }
  .site-nav a + a { border-top: 1px solid rgba(255,255,255,.06); }
  .site-nav a::after { display: none; }
  /* bara devine opacă cât timp meniul e deschis, ca să nu se vadă poza prin ea
     (clasă pusă din JS, nu :has() — merge și pe iPhone-urile mai vechi) */
  .site-header.nav-open {
    background: rgba(13, 19, 16, .97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .nav-toggle { display: block; padding: 10px 12px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 4.2rem 0; }
  .hero-mosaic { grid-auto-rows: 110px; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-thumbs { grid-template-columns: repeat(3, 1fr); }
  /* 4 randari pe rand devin miniaturi de 80px pe telefon — le las 3 */
  .newproj-media .feature-thumbs.thumbs-4 { grid-template-columns: repeat(3, 1fr); }
  /* pe telefon aratam 12 miniaturi; restul apar la apasarea butonului (clasele vin din JS) */
  .newproj-media .feature-thumbs img.mob-hide { display: none; }
  .newproj-media .feature-thumbs.desfasurat img.mob-hide { display: block; }
  #portfolioGrid .card.card-mob-hide { display: none; }
  #portfolioGrid.desfasurat .card.card-mob-hide:not(.hidden) { display: block; }
  .mai-multe {
    display: block; width: 100%; margin-top: .8rem;
    padding: .85rem 1rem; border-radius: 10px;
    border: 1.5px solid var(--line-dark); background: rgba(255,255,255,.04);
    color: var(--txt-on-dark);
    font-family: var(--font-display); font-weight: 600; font-size: .92rem;
    cursor: pointer;
  }
  .section-light .mai-multe { border-color: var(--line-light); background: var(--paper-2); color: var(--txt-on-light); }
  .mai-multe:active { transform: scale(.99); }

  /* filtrele portofoliului: o bandă care se trage cu degetul, nu 3 rânduri de pastile */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -4%; padding: 0 4% .3rem;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; scroll-snap-align: start; }

  /* câmpuri de 16px: sub atât, iPhone-ul face zoom automat la focus */
  .contact-form input, .contact-form textarea { font-size: 16px; }
  .c-map iframe { height: 200px; }

  /* harta: butoane de zoom cât un deget */
  .map-zoom { top: .6rem; right: .6rem; }
  .map-zoom button { min-width: 42px; height: 42px; font-size: 1.05rem; }
  .map-zoom button:last-child { font-size: .74rem; padding: 0 .55rem; }
  .map-panel { padding: 1.3rem 1.1rem; }

  /* lightbox: săgeți jos, sub poză, ca să nu acopere imaginea și să se apese ușor */
  .lightbox img { max-width: 96vw; max-height: 66vh; }
  .lb-stage { gap: .6rem; }
  .lb-prev, .lb-next {
    top: auto; bottom: 14px; transform: none;
    font-size: 2rem; width: 72px; height: 52px; padding: 0;
    display: grid; place-items: center;
    background: rgba(255,255,255,.1); border-radius: 12px; opacity: 1;
  }
  .lb-prev { left: 6vw; }
  .lb-next { right: 6vw; }
  .lb-close { top: 10px; right: 12px; font-size: 2.4rem; padding: .2rem .6rem; }
  .lb-caption { font-size: .82rem; }
}

/* --- telefoane mici: mai puțin aer irosit, butoane pe toată lățimea --- */
@media (max-width: 480px) {
  .section { padding: 3.6rem 0; }
  .section-head { margin-bottom: 2.3rem; }
  .hero { padding: 116px 0 60px; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.7rem; }
  .hero-cta { gap: .7rem; }
  .hero-cta .btn, .cta-band .btn, .contact-form .btn, .pn-actiuni .btn { width: 100%; text-align: center; }
  .stats-band { margin-top: 2.8rem; }
  .stat { padding: 1.15rem .5rem; }
  .btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
  .cta-band { padding: 4rem 0; }
  .cta-band p { font-size: 1rem; }
  .contact-form { padding: 1.5rem 1.1rem; }
  .service-card { padding: 1.6rem 1.3rem; }
  .feature, .newproj { margin-bottom: 3rem; }
  .pano { margin-bottom: 2.8rem; }
  .about-grid { gap: 2.2rem; margin-bottom: 2.8rem; }
  .timeline { padding-left: 24px; }
  .tl-item { padding: 0 0 1.9rem 1.2rem; }
  .tl-item::before { left: -24px; width: 12px; height: 12px; }
  .pmodal-box { padding: 1.4rem 1rem 1.6rem; }
  .proiecte-noi-gol { padding: 1.8rem 1.2rem; }
  .footer-grid { gap: 2rem; padding-bottom: 2.2rem; }
}

/* pe touch nu există hover: efectele „ridică cardul" rămâneau blocate după atingere */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
  .card:hover img { transform: none; }
  .service-card:hover { transform: none; box-shadow: none; border-color: var(--line-light); }
  .btn:hover { transform: none; }
  .feature-thumbs img:hover, .pm-thumbs img:hover { transform: none; }
  .c-social a:hover { transform: none; }
  .hero-mosaic figure:hover img { transform: none; }
  .card:active { transform: scale(.985); }
}
