/* UOMAS website styles — one file for all pages.
   Sizes copied from the original Squarespace site, measured at 1440, 1920 and 2560px wide and on a 390px phone.
   Like the original: content sits in a centred column of max 1400px, and vertical spacing grows a little
   with screen width (that's what the "px + vw" values do). */

:root {
  --dark: #1c1c1c;
  --light: #fafafa;
  --white: #ffffff;
  --text: #000000;
  --footer-text: #dcdcdc;
  --side: 3vw;                                   /* page edge margin */
  --column: min(1400px, 100vw - 6vw);            /* width of the centred content column */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0; }
.hidden-title { position: absolute; left: -9999px; }
.column { width: var(--column); margin: 0 auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: calc(35px + 1.95vw);                  /* 63px at 1440, 85px at 2560 */
  background: var(--dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--side);
}
.header .logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 1.95vw; }                 /* 28px at 1440, 50px at 2560 */
.nav a { color: #fff; text-decoration: none; font-size: 16px; line-height: 1.8; }
.nav a:hover { opacity: .7; }
.nav a.active { background: linear-gradient(#fff, #fff) left bottom / 100% 1px no-repeat; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px 0; width: 36px; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 7px 0; }

@media (max-width: 767px) {
  .header { height: 67px; padding: 0 15px; }
  .header .logo img { height: 29px; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--dark); padding: 8px 15px 24px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 20px; }
  .nav a.active { background: none; text-decoration: underline; }
}

[id] { scroll-margin-top: 70px; }

/* ---------- Home: project photo reel ---------- */
.reel { position: relative; }
.reel-track { display: flex; overflow-x: auto; scrollbar-width: none; height: 80vh; }
.reel-track::-webkit-scrollbar { display: none; }
.project-card {
  flex: 0 0 calc(80vh * 2 / 3 - 84px);          /* original: width = 2/3 of height minus 84px */
  position: relative; text-decoration: none; color: #000; overflow: hidden;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-card span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 28px; text-align: center;
  background: rgba(250, 250, 250, .7);
  font-size: 40px; font-weight: 500; line-height: 1.8;
  opacity: 0; transition: opacity .3s;
}
.project-card:hover span { opacity: 1; }
.reel-btn {
  position: absolute; top: 37%; z-index: 2;
  width: 44px; height: 44px; border: 0; padding: 0;
  background: #f2f2f2; opacity: .75; cursor: pointer;
  font-size: 24px; line-height: 44px; color: #000;
}
.reel-btn:hover { opacity: 1; }
.reel-btn.prev { left: 15px; }
.reel-btn.next { right: 15px; }

/* ---------- Home: services ---------- */
.services {
  width: var(--column); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px;
  padding: 3.3vw 0;
}
.service { background: var(--white); text-align: center; padding: 44px 26px 30px; aspect-ratio: 444 / 390; }
.service img { width: 26.3%; aspect-ratio: 1; object-fit: contain; margin: 0 auto 29px; }
.service h3 { font-size: 36.16px; line-height: 1.33; margin-bottom: 32px; }

/* ---------- Home: why choose us ---------- */
.why { width: var(--column); margin: 0 auto; padding: 3.3vw 0; text-align: center; }
.why h2 { font-size: 46.24px; line-height: 1.3; margin-bottom: 62px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10%; width: 91.6%; margin: 0 auto; }
.why-grid h3 { font-size: 36.16px; line-height: 1.33; margin-bottom: 32px; }
.why-grid p { margin-bottom: 64px; }
.why-grid .col > div:last-child p { margin-bottom: 0; }

/* ---------- Home: client logos (slide by themselves, endlessly) ---------- */
.trust { padding: 2vw var(--side) 4.5vw; text-align: center; overflow: hidden; }
.trust h2 { font-size: 46.24px; line-height: 1.8; margin-bottom: 70px; }
.logo-strip { --logo: calc(7.86vw - 12px); --step: calc(94vw / 6.06); overflow: hidden; }   /* logo 101px at 1440, 189px at 2560; ~6 per row */
.logo-track { display: flex; gap: calc(var(--step) * 0.07); }
.logo-item { flex: 0 0 calc(var(--step) * 0.93); display: flex; justify-content: center; }
.logo-item img { width: var(--logo); aspect-ratio: 101 / 68; object-fit: cover; }

@media (max-width: 767px) {
  .services { grid-template-columns: 1fr; gap: 12px; width: auto; padding: 50px 23px; }
  .service { aspect-ratio: auto; padding: 50px 20px 50px; }
  .service img { width: 78px; }
  .service h3 { font-size: 28.96px; margin-bottom: 31px; }
  .why { width: auto; padding: 30px 23px; }
  .why h2 { font-size: 35.44px; margin-bottom: 48px; }
  .why-grid { grid-template-columns: 1fr; width: auto; }
  .why-grid h3 { font-size: 28.96px; margin-bottom: 31px; }
  .why-grid p, .why-grid .col:first-child > div:last-child p { margin-bottom: 36px; }
  .trust { padding: 18px 15px 43px; }
  .trust h2 { font-size: 35.44px; margin-bottom: 70px; }
  .logo-strip { --logo: 87px; --step: 193px; }
}

/* ---------- Mūsų darbai ---------- */
.projects { width: var(--column); margin: 0 auto; padding-bottom: calc(20px + 3.7vw); }
/* --g = space above each project at 1440px, copied per project from the original; grows with screen width */
.project {
  display: grid; grid-template-columns: 387fr 899fr; column-gap: 5%;
  align-items: center; margin-top: calc(var(--g) * 0.348px + var(--g) * 0.0453vw);
}
.project h3 { font-size: 36.16px; line-height: 1.33; margin-bottom: 32px; }
.project p { margin-bottom: 16px; }
.project a { word-break: break-word; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.photos button { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
/* Projects with 2 photos: two bigger squares, aligned right (as on the original) */
.project.two .photos { grid-template-columns: repeat(2, 1fr); width: 74.6%; margin-left: auto; }
/* Light Conversion block is slightly narrower on the original */
.project.narrow .photos { width: 93.8%; margin-left: auto; }
@media (max-width: 767px) {
  .projects { width: auto; padding: 240px 23px 60px; }
  .project { grid-template-columns: 1fr; gap: 11px; margin: 0 0 285px; }
  .project:last-child { margin-bottom: 0; }
  .project h3 { font-size: 28.96px; margin-bottom: 31px; }
  .photos, .project.two .photos { grid-template-columns: 1fr; width: 100%; }
  .project.narrow .photos { width: 100%; }
}

/* ---------- NT projektai (dark page) ---------- */
.dark-page { background: var(--dark); color: var(--light); }
.nt { width: calc(var(--column) * 0.664); margin: 0 auto; padding-top: calc(14px + 3.96vw); }
.nt + .nt { padding-top: calc(80.6px + 6.07vw); }
.nt:last-child { padding-bottom: calc(20px + 4.2vw); }
.nt h2 { text-align: center; font-size: 34.48px; font-weight: 400; line-height: 1.8; margin-bottom: 35px; }
.nt .photos { grid-template-columns: 1fr 1fr; gap: 35px; }
.nt .photos button { aspect-ratio: 16 / 9; }
@media (max-width: 767px) {
  .nt { width: auto; padding: 30px 23px 0; }
  .nt + .nt { padding-top: 90px; }
  .nt h2 { font-size: 27.88px; margin-bottom: 46px; }
  .nt .photos { grid-template-columns: 1fr; gap: 35px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--footer-text); }
.footer-inner {
  width: var(--column); margin: 0 auto;
  display: grid; grid-template-columns: 32.8% 32.8%; column-gap: 17.6%; justify-content: center;
  align-items: center; text-align: center;
  padding: calc(64px + 0.6vw) 0;
}
.footer p { margin-bottom: 16px; }
.footer p:last-child { margin-bottom: 0; }
.footer strong { font-weight: 700; color: #fff; }
@media (max-width: 767px) {
  .footer-inner { width: auto; grid-template-columns: 1fr 1fr; column-gap: 12px; padding: 35px 23px 50px; align-items: start; }
}

/* ---------- Photo viewer (lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 40px;
  cursor: pointer; padding: 10px 18px;
}
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
