/* VegaVision page CSS: only what a reference names as page CSS (inside a visual, a group's --p-h,
   a section's tablet height), on top of the kit (public/assets, never edited). */

/* the services list: each row's line under its name (in-page-service.html) */
.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-body); line-height: 1.5; margin-top: var(--s-1); }

/* lucrari: the one case with only a logo shows it whole on the tile's surface */
.tile__media--logo { display: grid; place-items: center; }
.tile__media--logo > img { width: 46%; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (hover: hover) and (pointer: fine) { a.tile:hover .tile__media--logo > img { transform: scale(1.03); } }
#lucrari .tile { --tile-ratio: 4 / 3; }
#lucrari .tile > p:not(.tile__facts) { margin-top: calc(-1 * var(--s-3)); }
.work-logos { margin-top: var(--s-8); display: grid; gap: var(--s-5); }
.work-logos .logos > img { height: 48px; width: 48px; object-fit: contain; }

/* reels: four 9:16 frames on span-3; the video fills its frame */
.reel { --ratio: 177.78%; margin: 0; background: var(--ink); }
.reel > video { object-fit: cover; }
@media (min-width: 640px) and (max-width: 1023px) {
  #reels .grid > .reel { grid-column: auto / span 3; }
}
@media (max-width: 639px) {
  #reels .grid > .reel { grid-column: auto / span 6; }
}

/* servicii: picture-develops on the split's right column, as tall as the list beside it */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(620px, var(--ly-fit)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* proces: one --p-h for the group of four step cards */
#proces .panel { --p-h: 320px; }
@media (min-width: 640px) and (max-width: 1023px) {
  #proces .grid > .card { grid-column: auto / span 6; }
  #proces .panel { --p-h: 160px; }
}
@media (max-width: 639px) { #proces .panel { --p-h: 180px; } }

/* echipa: the portrait beside the statement */
.portrait { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(640px, var(--ly-fit)); background: var(--surface); }
.portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 1023px) { .portrait { height: auto; aspect-ratio: 4 / 5; margin-top: var(--s-7); max-height: 70svh; } }

/* oferta: the form on --g-alt beside the text and one photograph */
.offer-form { background: var(--g-alt, var(--surface)); border-radius: var(--r-lg); padding: var(--s-7); }
.offer-photo { margin: var(--s-6) 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.offer-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 639px) { .offer-form { padding: var(--s-5); } }
